许成详 6 gadus atpakaļ
vecāks
revīzija
a1a21f324b

+ 5
- 1
src/pages/system/verificationManager/phoneVerification/index.vue Parādīt failu

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

+ 2
- 2
src/util/api.js Parādīt failu

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