xiaohaizhao vor 1 Jahr
Ursprung
Commit
93b71f43f9
3 geänderte Dateien mit 9 neuen und 5 gelöschten Zeilen
  1. 5 1
      packageA/saleClue/audit/client.js
  2. 1 1
      packageA/saleClue/change.js
  3. 3 3
      packageA/saleClue/translate.js

+ 5 - 1
packageA/saleClue/audit/client.js

@@ -33,7 +33,11 @@ Page({
     onLoad(options) {
     onLoad(options) {
         let detail = JSON.parse(options.data),
         let detail = JSON.parse(options.data),
             customersnote = detail.customersnote;
             customersnote = detail.customersnote;
-        let industry = JSON.parse(customersnote.industry)
+        let industry = []
+        try {
+            industry = JSON.parse(customersnote.industry)
+        } catch (error) {
+        }
         this.setData({
         this.setData({
             detail,
             detail,
             showMsgList: [{
             showMsgList: [{

+ 1 - 1
packageA/saleClue/change.js

@@ -297,7 +297,7 @@ Page({
         }).then(res => {
         }).then(res => {
             console.log("转化", res)
             console.log("转化", res)
             wx.showToast({
             wx.showToast({
-                title: res.msg != '成功' ? res.msg : '转化成功',
+                title: res.msg != '成功' ? res.msg : wx.getStorageSync('userMsg').siteid != 'HY' ? '提交成功' : '转化成功',
                 icon: "none"
                 icon: "none"
             })
             })
             if (res.msg != '成功') return;
             if (res.msg != '成功') return;

+ 3 - 3
packageA/saleClue/translate.js

@@ -442,11 +442,11 @@ Page({
         }
         }
     },
     },
     repClose() {
     repClose() {
-        return  this.setData({
+        return this.setData({
             repetitionShow: false,
             repetitionShow: false,
             isSubmit: false
             isSubmit: false
         })
         })
-        
+
         if (this.data.isSubmit) {
         if (this.data.isSubmit) {
             let that = this;
             let that = this;
             wx.showModal({
             wx.showModal({
@@ -587,7 +587,7 @@ Page({
                 icon: "none"
                 icon: "none"
             })
             })
             wx.showToast({
             wx.showToast({
-                title: '转化成功',
+                title: wx.getStorageSync('userMsg').siteid != 'HY' ? '提交成功' : '转化成功',
                 icon: "none",
                 icon: "none",
                 mask: true
                 mask: true
             })
             })