瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

yuantianjiao 6 年之前
父節點
當前提交
43a20aebe9
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 5
    1
      src/pages/system/verificationManager/phoneVerification/index.vue
  2. 2
    2
      src/util/api.js

+ 5
- 1
src/pages/system/verificationManager/phoneVerification/index.vue 查看文件

@@ -23,6 +23,7 @@
23 23
           <el-input
24 24
             placeholder="请输入手机号"
25 25
             v-model="phone"
26
+            @input="phone=phone.replace(/\D/g,'')"
26 27
             clearable>
27 28
           </el-input>
28 29
           </div>
@@ -46,9 +47,12 @@ export default {
46 47
     this.$nextTick(function () { })
47 48
   },
48 49
   methods: {
50
+    inputPhone () {
51
+      this.phone = this.phone.replace(/\D/g, '')
52
+    },
49 53
     toVerificationList () { // 前往核销列表
50 54
       if (this.phone !== '') {
51
-        this.$router.push({name: 'phoneVerificationList', query: {tel: this.phone}})
55
+        this.$router.push({ name: 'phoneVerificationList', query: { tel: this.phone } })
52 56
       } else {
53 57
         this.$message({
54 58
           message: '手机号为空!',

+ 2
- 2
src/util/api.js 查看文件

@@ -1,5 +1,5 @@
1
-// const baseUrl = '/api-v2'
2
-const baseUrl = '/api'
1
+const baseUrl = '/api-v2'
2
+// const baseUrl = '/api'
3 3
 const common = '/common/:org'
4 4
 const guest = '/guest/:org'
5 5