| | |
| | | try { |
| | | components = { |
| | | uIcon: function () { |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 482)) |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 498)) |
| | | }, |
| | | uPicker: function () { |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-picker/u-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-picker/u-picker.vue */ 533)) |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-picker/u-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-picker/u-picker.vue */ 549)) |
| | | }, |
| | | } |
| | | } catch (e) { |
| | |
| | | }); |
| | | return; |
| | | } |
| | | var mobileRegex = /^1\d{10}$/; |
| | | var landlineRegex = /^\d{3,4}-?\d{7,8}$/; |
| | | if (!mobileRegex.test(this.form.linkPhone) && !landlineRegex.test(this.form.linkPhone)) { |
| | | uni.showToast({ |
| | | title: '请输入正确的手机号或固定电话', |
| | | icon: 'none' |
| | | }); |
| | | return; |
| | | } |
| | | if (!this.form.idcard) { |
| | | uni.showToast({ |
| | | title: '请输入联系人身份证号', |
| | |
| | | submitApply: function submitApply() { |
| | | var _this = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { |
| | | var res; |
| | | var mobileRegex, landlineRegex, res; |
| | | return _regenerator.default.wrap(function _callee$(_context) { |
| | | while (1) { |
| | | switch (_context.prev = _context.next) { |
| | |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 19: |
| | | _context.next = 45; |
| | | _context.next = 50; |
| | | break; |
| | | case 21: |
| | | if (_this.form.legalPersonName) { |
| | |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 27: |
| | | mobileRegex = /^1\d{10}$/; |
| | | landlineRegex = /^\d{3,4}-?\d{7,8}$/; |
| | | if (!(!mobileRegex.test(_this.form.legalPersonPhone) && !landlineRegex.test(_this.form.legalPersonPhone))) { |
| | | _context.next = 32; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '请输入正确的手机号或固定电话', |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 32: |
| | | if (_this.form.aliAccount) { |
| | | _context.next = 30; |
| | | _context.next = 35; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 30: |
| | | case 35: |
| | | if (_this.form.aliName) { |
| | | _context.next = 33; |
| | | _context.next = 38; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 33: |
| | | case 38: |
| | | if (_this.form.legalPersonCard) { |
| | | _context.next = 36; |
| | | _context.next = 41; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 36: |
| | | case 41: |
| | | if (_this.form.idcardImg) { |
| | | _context.next = 39; |
| | | _context.next = 44; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 39: |
| | | case 44: |
| | | if (_this.form.idcardImgBack) { |
| | | _context.next = 42; |
| | | _context.next = 47; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 42: |
| | | case 47: |
| | | if (_this.form.businessImg) { |
| | | _context.next = 45; |
| | | _context.next = 50; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 45: |
| | | case 50: |
| | | if (_this.agreed) { |
| | | _context.next = 48; |
| | | _context.next = 53; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 48: |
| | | case 53: |
| | | uni.showLoading({ |
| | | title: '提交中...', |
| | | mask: true |
| | | }); |
| | | _context.prev = 49; |
| | | _context.next = 52; |
| | | _context.prev = 54; |
| | | _context.next = 57; |
| | | return _this.$u.api.applyShop(_this.form); |
| | | case 52: |
| | | case 57: |
| | | res = _context.sent; |
| | | uni.hideLoading(); |
| | | if (res.code === 200) { |
| | |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | _context.next = 61; |
| | | _context.next = 66; |
| | | break; |
| | | case 57: |
| | | _context.prev = 57; |
| | | _context.t0 = _context["catch"](49); |
| | | case 62: |
| | | _context.prev = 62; |
| | | _context.t0 = _context["catch"](54); |
| | | uni.hideLoading(); |
| | | uni.showToast({ |
| | | title: '提交失败', |
| | | icon: 'none' |
| | | }); |
| | | case 61: |
| | | case 66: |
| | | case "end": |
| | | return _context.stop(); |
| | | } |
| | | } |
| | | }, _callee, null, [[49, 57]]); |
| | | }, _callee, null, [[54, 62]]); |
| | | }))(); |
| | | }, |
| | | getMyShopData: function getMyShopData() { |