| | |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 19: |
| | | _context.next = 44; |
| | | _context.next = 47; |
| | | break; |
| | | case 21: |
| | | if (_this.form.legalPersonName) { |
| | |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 24: |
| | | if (_this.form.aliAccount) { |
| | | if (_this.form.legalPersonPhone) { |
| | | _context.next = 27; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '请输入法人手机号', |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 27: |
| | | if (_this.form.aliAccount) { |
| | | _context.next = 30; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 27: |
| | | case 30: |
| | | if (_this.form.aliName) { |
| | | _context.next = 30; |
| | | _context.next = 33; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 30: |
| | | case 33: |
| | | if (_this.form.legalPersonCard) { |
| | | _context.next = 33; |
| | | _context.next = 36; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 33: |
| | | case 36: |
| | | if (_this.form.legalPersonCardFront) { |
| | | _context.next = 36; |
| | | _context.next = 39; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 36: |
| | | case 39: |
| | | if (_this.form.legalPersonCardBack) { |
| | | _context.next = 39; |
| | | _context.next = 42; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 39: |
| | | case 42: |
| | | if (_this.form.businessImg) { |
| | | _context.next = 42; |
| | | _context.next = 45; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 42: |
| | | case 45: |
| | | _this.form.idcardImgBack = _this.form.legalPersonCardBack; |
| | | _this.form.idcardImg = _this.form.legalPersonCardFront; |
| | | case 44: |
| | | case 47: |
| | | if (_this.agreed) { |
| | | _context.next = 47; |
| | | _context.next = 50; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 47: |
| | | case 50: |
| | | uni.showLoading({ |
| | | title: '提交中...', |
| | | mask: true |
| | | }); |
| | | _context.prev = 48; |
| | | _context.next = 51; |
| | | _context.prev = 51; |
| | | _context.next = 54; |
| | | return _this.$u.api.applyShop(_this.form); |
| | | case 51: |
| | | case 54: |
| | | res = _context.sent; |
| | | uni.hideLoading(); |
| | | if (res.code === 200) { |
| | |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | _context.next = 60; |
| | | _context.next = 63; |
| | | break; |
| | | case 56: |
| | | _context.prev = 56; |
| | | _context.t0 = _context["catch"](48); |
| | | case 59: |
| | | _context.prev = 59; |
| | | _context.t0 = _context["catch"](51); |
| | | uni.hideLoading(); |
| | | uni.showToast({ |
| | | title: '提交失败', |
| | | icon: 'none' |
| | | }); |
| | | case 60: |
| | | case 63: |
| | | case "end": |
| | | return _context.stop(); |
| | | } |
| | | } |
| | | }, _callee, null, [[48, 56]]); |
| | | }, _callee, null, [[51, 59]]); |
| | | }))(); |
| | | }, |
| | | getMyShopData: function getMyShopData() { |