liuxiaona 2 years ago
parent
commit
84b9effca6

+ 3 - 1
.idea/workspace.xml

@@ -3,6 +3,8 @@
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="f876064f-ad38-46e7-bf7d-9df623a9178f" name="Changes" comment="">
5 5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/dialogPublic.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/dialogPublic.vue" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/importCustomer.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/importCustomer.vue" afterDir="false" />
6 8
       <change beforePath="$PROJECT_DIR$/qwh5/src/views/HomeView.vue" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/src/views/HomeView.vue" afterDir="false" />
7 9
     </list>
8 10
     <option name="SHOW_DIALOG" value="false" />
@@ -54,7 +56,7 @@
54 56
       <workItem from="1654573024055" duration="23176000" />
55 57
       <workItem from="1654653264438" duration="30604000" />
56 58
       <workItem from="1654739102819" duration="11048000" />
57
-      <workItem from="1654756255993" duration="10808000" />
59
+      <workItem from="1654756255993" duration="12675000" />
58 60
     </task>
59 61
     <servers />
60 62
   </component>

+ 1 - 1
index.html

@@ -7,4 +7,4 @@
7 7
         hm.src = "https://hm.baidu.com/hm.js?d61b9e2caf4d46ccda7471b5385e2333";
8 8
         var s = document.getElementsByTagName("script")[0];
9 9
         s.parentNode.insertBefore(hm, s);
10
-      })();</script><link href=./static/css/app.1bded63050ac0ba774c590abfe9d6c54.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.201f644de95796068836.js></script><script type=text/javascript src=./static/js/app.45403076c99d3dc6e810.js></script></body></html>
10
+      })();</script><link href=./static/css/app.ca0bb2ce5da7c6112059c43a66539fe9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.7d3582531b7ed57472bc.js></script><script type=text/javascript src=./static/js/app.45403076c99d3dc6e810.js></script></body></html>

+ 2 - 0
project/src/components/marketingGuest/batchAddFriend/addFriend/dialogPublic.vue

@@ -58,6 +58,8 @@ export default {
58 58
         this.$parent.dialogPublic_allot_multiple()
59 59
       }else if(this.type == 'importconfirm'){
60 60
         this.batchAddCustomerImportConfirm(num)
61
+      }else{
62
+        this.dialogVisible = false
61 63
       }
62 64
     },
63 65
     addCustomer_notice(){

+ 10 - 5
project/src/components/marketingGuest/batchAddFriend/addFriend/importCustomer.vue

@@ -131,13 +131,18 @@ export default {
131 131
           this.pranentInit()
132 132
           console.log(this.user_id_list);
133 133
         }else{
134
-          if(!res&&res.rst&&res.rst.count){
134
+          if(res&&res.rst&&!res.rst.count){
135
+            let msg = ''
135 136
             res.rst.forEach((item)=>{
136
-              this.$message({
137
-                message: `系统检测到表格第${item.row}行${item.error[0]}`,
138
-                type: "warning"
139
-              })
137
+              msg+=`系统检测到表格第${item.row}行${item.error[0]}。 `
140 138
             })
139
+            this.$nextTick(()=>{
140
+              this.dialogType = ''
141
+              this.$refs.dialogPublic.dialogVisible = true
142
+              this.dialogTitle = '提醒'
143
+              this.dialogMsg = msg
144
+            })
145
+
141 146
           }else{
142 147
             this.$nextTick(()=>{
143 148
               this.$refs.dialogPublic.dialogVisible = true

File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/css/app.2b55d8b6.css


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/css/app.e155fb38.css


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/index.html


File diff suppressed because it is too large
+ 0 - 2
qwh5/dist/js/app.512c73e3.js


File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/js/app.512c73e3.js.map


File diff suppressed because it is too large
+ 2 - 0
qwh5/dist/js/app.94e42e6b.js


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/js/app.94e42e6b.js.map


+ 25 - 11
qwh5/src/views/HomeView.vue

@@ -119,6 +119,19 @@ export default class HomeView extends Vue {
119 119
     }
120 120
   }
121 121
 
122
+  copyDomText (id) { //复制到粘贴板
123
+    const node = document.getElementById(id)
124
+    if (node) {
125
+      let createRange = document.createRange()
126
+      createRange.selectNodeContents(document.getElementById(id))
127
+      const selection = document.getSelection()
128
+      selection.removeAllRanges()
129
+      selection.addRange(createRange)
130
+      document.execCommand('Copy')
131
+      selection.removeAllRanges()
132
+    }
133
+  }
134
+
122 135
   loadMore () {
123 136
     if (this.noMore) {
124 137
       return
@@ -170,16 +183,17 @@ export default class HomeView extends Vue {
170 183
   }
171 184
 
172 185
   async goAddCustomer (item) { // 复制
173
-    if(item.add_status == 3){
174
-      ElMessage({
175
-        showClose:true,
176
-        message: '本客户已添加!',
177
-        type: 'info',
178
-        duration:3000
179
-      })
180
-      return
181
-    }
186
+    // if(item.add_status == 3){
187
+    //   ElMessage({
188
+    //     showClose:true,
189
+    //     message: '本客户已添加!',
190
+    //     type: 'info',
191
+    //     duration:3000
192
+    //   })
193
+    //   return
194
+    // }
182 195
     this.loading = true
196
+    this.copyDomText(item.phone)
183 197
     await this.getAuthInfo(item)
184 198
   }
185 199
 
@@ -249,7 +263,7 @@ export default class HomeView extends Vue {
249 263
     const _this = this
250 264
     wx.config({
251 265
       beta: true, // 必须这么写,否则wx.invoke调用形式的jsapi会有问题
252
-      debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
266
+      debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
253 267
       appId: this.authInfo.corpid, // 必填,企业微信的corpID
254 268
       timestamp: this.authInfo.timestamp, // 必填,生成签名的时间戳
255 269
       nonceStr: this.authInfo.nonce_str, // 必填,生成签名的随机串
@@ -277,7 +291,7 @@ export default class HomeView extends Vue {
277 291
       success: function (res) {
278 292
         // 回调
279 293
         wx.invoke('navigateToAddCustomer', {}, function (res) {
280
-          console.log(res, 'wx.invoke,navigateToAddCustomer')
294
+          // console.log(res, 'wx.invoke,navigateToAddCustomer')
281 295
         })
282 296
         _this.loading = false
283 297
       },

File diff suppressed because it is too large
+ 1 - 1
static/css/app.1bded63050ac0ba774c590abfe9d6c54.css


File diff suppressed because it is too large
+ 0 - 1
static/js/0.dec6f981c3ca1aeb0c7f.js


File diff suppressed because it is too large
+ 1 - 0
static/js/0.e20210ac85e77109c7fa.js


File diff suppressed because it is too large
+ 0 - 1
static/js/7.7bbddf84b92e31ba9666.js


File diff suppressed because it is too large
+ 1 - 0
static/js/7.eaa21a0a6bf804bea81b.js


File diff suppressed because it is too large
+ 1 - 1
static/js/manifest.201f644de95796068836.js