| | |
| | | <view class="tool-item" @click="toSetting"> |
| | | <image class="tool-icon" src="/static/icon/ic_option@2x.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view class="tool-item has-badge"> |
| | | <!-- <view class="tool-item has-badge"> |
| | | <image class="tool-icon" src="/static/icon/ic_notice@2x.png" mode="aspectFit"></image> |
| | | <view class="tool-badge" v-if="userInfo.hasMessage"></view> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | uni.$on('loginOut', () => { |
| | | this.orderMenus = [ |
| | | { label: '待支付', url: '/static/icon/mine_ic_daifukuan@2x.png', badge: 0,status:0 }, |
| | | { label: '待收货', url: '/static/icon/mine_ic_daishouhuo@2x.png', badge: 0,status:3 }, |
| | | { label: '退款/售后', url: '/static/icon/mine_ic_tuikuan@2x.png', badge: 0 ,status:5} |
| | | ] |
| | | }) |
| | | }, |
| | | async onShow() { |
| | | await this.$onLaunched; |
| | | if (this.token) { |
| | |
| | | '用户隐私政策': '/pages/rich-text/rich-text?type=1', |
| | | '关于我们': '/pages/rich-text/rich-text?type=5' |
| | | } |
| | | if (['门店入驻', '我的门店'].includes(item.label)) { |
| | | if (!this.token) { |
| | | this.showAuthLogin = true |
| | | return |
| | | } |
| | | } |
| | | if (['门店入驻','门店信息'].includes(item.label) && [0,1,2,3].includes(this.userInfo.shopAuditStatus)) { |
| | | uni.navigateTo({ |
| | | url: '/pages/details-entry/details-entry' |
| | |
| | | } |
| | | }, |
| | | toOrderDetail(label) { |
| | | if (!this.token) { |
| | | this.showAuthLogin = true |
| | | return |
| | | } |
| | | uni.setStorageSync("orderStatus",label===0?-2:label) |
| | | uni.switchTab({ |
| | | url: '/pages/itinerary/itinerary' |
| | | }) |
| | | }, |
| | | toSetting() { |
| | | if (!this.token) { |
| | | this.showAuthLogin = true |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/settings/settings' |
| | | }) |