Explorar el Código

扫描用户二维码进入用户详情

yuhao hace 2 años
padre
commit
f7a9c0e0d5
Se han modificado 2 ficheros con 13 adiciones y 1 borrados
  1. 1 1
      src/pages/customerMan/details/index.vue
  2. 12 0
      src/pages/home/index.vue

+ 1 - 1
src/pages/customerMan/details/index.vue

@@ -67,7 +67,7 @@
67 67
           <span class="dataListTitle">客户来源</span> :
68 68
           <el-select
69 69
             v-model="sourceValue"
70
-            placeholder="请选择"
70
+            placeholder="请选择"  
71 71
             size="mini"
72 72
             @change="selectSource"
73 73
           >

+ 12 - 0
src/pages/home/index.vue

@@ -336,6 +336,18 @@ export default {
336 336
         }
337 337
         result = result.replace(/\n/g, "");
338 338
         result = result.replace(/\s+/g, "");
339
+        if (result.indexOf("userid") != -1) {
340
+          that.closeQR();
341
+          var index = result.lastIndexOf("d");
342
+          let str = result.substring(index + 1, result.length);
343
+          that.$router.push({
344
+            path: "/customerMan/details",
345
+            query: {
346
+              id: str,
347
+            },
348
+          });
349
+          return;
350
+        }
339 351
         that.goodsCode = result;
340 352
         that.closeQR();
341 353
         that.goodsPickUp();