许成详 6 jaren geleden
bovenliggende
commit
7a82db7d64

+ 1
- 0
dist/index.html Bestand weergeven

@@ -0,0 +1 @@
1
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><title>城的空间后台管理系统</title><link href=./static/css/app.3e4748c83fcfdc07f0dd9260d0edb217.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.992319e39e0ff64940a3.js></script><script type=text/javascript src=./static/js/app.00453897a47c6acb81ec.js></script></body></html>

+ 1
- 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map Bestand weergeven

@@ -0,0 +1 @@
1
+{"version":3,"sources":["webpack:///webpack/bootstrap 6bfa9d07d14e3f431ca6"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,KAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3ad1d5771e9b13dbdad2.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 6bfa9d07d14e3f431ca6"],"sourceRoot":""}

+ 5
- 2
src/pages/system/verificationManager/phoneVerification/index.vue Bestand weergeven

@@ -51,12 +51,15 @@ export default {
51 51
     inputPhone () {
52 52
       this.phone = this.phone.replace(/\D/g, '')
53 53
     },
54
+    checkPhone (val) {
55
+      return !!(/^1[34578]\d{9}$/.test(val))
56
+    },
54 57
     toVerificationList () { // 前往核销列表
55
-      if (this.phone !== '') {
58
+      if (this.phone !== '' && this.checkPhone(this.phone)) {
56 59
         this.$router.push({ name: 'phoneVerificationList', query: { tel: this.phone } })
57 60
       } else {
58 61
         this.$message({
59
-          message: '手机号为空!',
62
+          message: '手机号格式错误',
60 63
           type: 'error'
61 64
         })
62 65
       }

+ 15
- 6
src/pages/system/verificationManager/phoneVerification/verificationList/index.vue Bestand weergeven

@@ -16,9 +16,9 @@
16 16
             type="warning"
17 17
             @click="reback">返回</el-button>
18 18
         </div>
19
-        <div v-if="(courses.list||[]).length>0">
19
+        <div v-if="courses.length>0">
20 20
           <el-table
21
-              :data="courses.list"
21
+              :data="courses"
22 22
               stripe
23 23
               style="width: 100%">
24 24
               <el-table-column
@@ -155,6 +155,7 @@ export default {
155 155
   name: '',
156 156
   data () {
157 157
     return {
158
+      courses: [],
158 159
       dialogVisible: false,
159 160
       dialogList: [],
160 161
       centerDialogVisible: false,
@@ -193,7 +194,7 @@ export default {
193 194
       }
194 195
     },
195 196
     ...mapVerifState({
196
-      courses: x => x.courseVerifs
197
+      // courses: x => x.courseVerifs
197 198
     }),
198 199
   },
199 200
   methods: {
@@ -212,6 +213,7 @@ export default {
212 213
         id: this.phone
213 214
       }).then((res) => {
214 215
         if (res !== null) {
216
+          // console.log(JSON.stringify(this.courses))
215 217
           this.customerId = res.CustomerId
216 218
           this.customerName = res.CustomerName
217 219
           const { code, tel } = this.$route.query
@@ -219,7 +221,7 @@ export default {
219 221
           this.tel = tel
220 222
           this.getList()
221 223
         } else {
222
-          this.courses = {list: []}
224
+          // this.courses = {list: []}
223 225
           this.$message({
224 226
             type: 'error',
225 227
             message: '未查询到用户信息'
@@ -249,10 +251,16 @@ export default {
249 251
     },
250 252
     getList () {
251 253
       if (this.code && this.code !== '') {
252
-        this.GetCourseVerList({ id: this.code, page: this.page, pagesize: this.pagesize })
254
+        this.GetCourseVerList({ id: this.code, page: this.page, pagesize: this.pagesize }).then((res) => {
255
+          res.list = res.list || []
256
+          this.courses = res.list
257
+        })
253 258
       } else {
254 259
         if (this.tel && this.tel !== '') {
255
-          this.GetCourseVerListByTel({ tel: this.tel, page: this.page, pagesize: this.pagesize })
260
+          this.GetCourseVerListByTel({ tel: this.tel, page: this.page, pagesize: this.pagesize }).then((res) => {
261
+            res.list = res.list || []
262
+            this.courses = res.list
263
+          })
256 264
         }
257 265
       }
258 266
     },
@@ -268,6 +276,7 @@ export default {
268 276
       this.getList()
269 277
     },
270 278
     reback () { // 返回
279
+      this.courses = []
271 280
       this.$router.push({ name: 'phoneVerification' })
272 281
     },
273 282
     bindKey (item) { // 绑定钥匙

+ 13
- 10
src/store/verification/verification.js Bestand weergeven

@@ -29,16 +29,19 @@ export default {
29 29
       })
30 30
     },
31 31
     GetCourseVerListByTel ({ commit }, payload) {
32
-      ajax(api.verification.coursebytel.url, {
33
-        method: api.verification.coursebytel.method,
34
-        urlData: {
35
-          tel: payload.tel
36
-        },
37
-        queryData: {
38
-          ...payload
39
-        }
40
-      }).then(res => {
41
-        commit('updateCourseList', res)
32
+      return new Promise((resolve, reject) => {
33
+        ajax(api.verification.coursebytel.url, {
34
+          method: api.verification.coursebytel.method,
35
+          urlData: {
36
+            tel: payload.tel
37
+          },
38
+          queryData: {
39
+            ...payload
40
+          }
41
+        }).then(res => {
42
+          commit('updateCourseList', res)
43
+          resolve(res)
44
+        }).catch(reject)
42 45
       })
43 46
     },
44 47
     CourseVerifs ({ commit }, payload) {