| | |
| | | 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 */ 467)) |
| | | 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 */ 475)) |
| | | }, |
| | | } |
| | | } catch (e) { |
| | |
| | | try { |
| | | console.log(this.userType, "============================================"); |
| | | this.$u.api.shopSilentLogin({}).then(function (res) { |
| | | if (res.code === 200) { |
| | | if (res.code === 200 && res.data) { |
| | | _this.$store.commit('setUserType', 1); |
| | | _this.$store.commit('setShopToken', res.data.token); |
| | | // 获取门店信息 |
| | |
| | | // }, 1000) |
| | | }); |
| | | } |
| | | |
| | | uni.hideLoading(); |
| | | }); |
| | | } catch (e) { |
| | | uni.hideLoading(); |
| | |
| | | while (1) { |
| | | switch (_context.prev = _context.next) { |
| | | case 0: |
| | | if (_this2.agreed) { |
| | | _context.next = 3; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '请先阅读并同意协议', |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 3: |
| | | if (_this2.form.telephone) { |
| | | _context.next = 6; |
| | | _context.next = 3; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 6: |
| | | case 3: |
| | | if (_this2.form.password) { |
| | | _context.next = 9; |
| | | _context.next = 6; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '请输入密码', |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | | case 6: |
| | | if (_this2.agreed) { |
| | | _context.next = 9; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '请先阅读并同意协议', |
| | | icon: 'none' |
| | | }); |
| | | return _context.abrupt("return"); |
| | |
| | | }, _callee, null, [[10, 29]]); |
| | | }))(); |
| | | }, |
| | | goToService: function goToService() { |
| | | goToService: function goToService(type) { |
| | | uni.navigateTo({ |
| | | url: '/pages/rich-text/rich-text?type=userAgreement' |
| | | }); |
| | | }, |
| | | goToPrivacy: function goToPrivacy() { |
| | | uni.navigateTo({ |
| | | url: '/pages/rich-text/rich-text?type=privacyPolicy' |
| | | url: '/pages/rich-text/rich-text?type=' + type |
| | | }); |
| | | } |
| | | } |