소스 검색

优化转化

xiaohaizhao 1 년 전
부모
커밋
93b71f43f9
3개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  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) {
         let detail = JSON.parse(options.data),
             customersnote = detail.customersnote;
-        let industry = JSON.parse(customersnote.industry)
+        let industry = []
+        try {
+            industry = JSON.parse(customersnote.industry)
+        } catch (error) {
+        }
         this.setData({
             detail,
             showMsgList: [{

+ 1 - 1
packageA/saleClue/change.js

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

+ 3 - 3
packageA/saleClue/translate.js

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