Explorar el Código

修复钉钉工作页面处理完成后无法关闭的bug

(cherry picked from commit 9b5f2574ef67d88afa1772cf7a4a5fe0c20b5cc5)
fancy hace 5 años
padre
commit
44e143827f
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      o2web/source/x_component_process_Xform/Form.js

+ 0 - 4
o2web/source/x_component_process_Xform/Form.js

@@ -3946,10 +3946,8 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
         //新建检查
         //新建检查
         this.workAction.checkDraft(this.businessData.work.id, function (json) {
         this.workAction.checkDraft(this.businessData.work.id, function (json) {
             // var str = JSON.stringify(json);
             // var str = JSON.stringify(json);
-
             _self.finishOnMobileReal();
             _self.finishOnMobileReal();
         }.bind(this), function () {
         }.bind(this), function () {
-
             _self.finishOnMobileReal();
             _self.finishOnMobileReal();
         }, false);
         }, false);
 
 
@@ -3962,8 +3960,6 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
             window.webkit.messageHandlers.closeWork.postMessage("");
             window.webkit.messageHandlers.closeWork.postMessage("");
         } else if (window.wx && window.__wxjs_environment === 'miniprogram') { //微信小程序 关闭页面
         } else if (window.wx && window.__wxjs_environment === 'miniprogram') { //微信小程序 关闭页面
             wx.miniProgram.navigateBack({ delta: 1 });
             wx.miniProgram.navigateBack({ delta: 1 });
-        } else if (window.wx) { //微信关闭 当前页面
-            wx.closeWindow();
         } else {
         } else {
             var len = window.history.length;
             var len = window.history.length;
             if (len > 1) {
             if (len > 1) {