| | |
| | | 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 */ 297)) |
| | | 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 */ 326)) |
| | | }, |
| | | } |
| | | } catch (e) { |
| | |
| | | _context.next = 2; |
| | | return _this.$onLaunched; |
| | | case 2: |
| | | _this.getOrderNum(); |
| | | if (_this.userInfo) { |
| | | _this.getOrderNum(); |
| | | } |
| | | case 3: |
| | | case "end": |
| | | return _context.stop(); |
| | |
| | | uni.navigateTo({ |
| | | url: '/pages/orders/orders' |
| | | }); |
| | | }, |
| | | handleMenuClick: function handleMenuClick(item) { |
| | | var urlMap = { |
| | | '门店入驻': '/pages/store-apply/store-apply', |
| | | '我的门店': '/pages/store-home/store-home', |
| | | '规范须知': '/pages/rich-text/rich-text?type=serverIntroduce', |
| | | '关于我们': '/pages/rich-text/rich-text?type=about' |
| | | }; |
| | | if (item.label === '门店入驻' && [0, 1, 2].includes(this.userInfo.shopAuditStatus)) { |
| | | uni.navigateTo({ |
| | | url: '/pages/details-entry/details-entry' |
| | | }); |
| | | return; |
| | | } |
| | | if (urlMap[item.label]) { |
| | | uni.navigateTo({ |
| | | url: urlMap[item.label] |
| | | }); |
| | | } |
| | | }, |
| | | toOrderDetail: function toOrderDetail(label) { |
| | | uni.navigateTo({ |
| | |
| | | if (res.code === 200) { |
| | | that.$u.api.wxAuthPhone({ |
| | | code: e.detail.code, |
| | | openid: 'oKKHU5IFKpss_DIbFX1lqghFJOEg' |
| | | openid: res.data.openid |
| | | }).then(function (res) { |
| | | if (res.code === 200) { |
| | | that.$store.commit('setUserInfo', res.data.member); |