cuiqian2004
2025-07-31 fe10cf437b17a2ea0ef63373cae2e5790ebc3930
pages/modal/3037.vue
@@ -2627,10 +2627,21 @@
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                  if (data.result_type == 2) {
                  if (data.action) {
                  } else if (typeof data.result == 'string') {
                     if (data.result) {
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: data.result,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     }
                  }
                  try {
                     var actionlist =
                        data.action;
                        data.action || []
                     if (actionlist) {
                        for (var j =
                              0; j <
@@ -2750,6 +2761,18 @@
                           }
                        }
                     }
                  } catch (ex) {
                     let actionList = (data.action || []).map(a => a.action_type).join(';')
                     let tip = typeof ex == 'string' ? ex : ex.message
                     tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                     uni.showModal({
                        title: this.translateSys('tip'),
                        content: tip,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     console.log(ex)
                     return
                  }
               }