| | |
| | | <view class="order-card section-card"> |
| | | <view class="section-head"> |
| | | <text class="section-title">我的订单</text> |
| | | <view class="more-wrap" @click="toAllOrders"> |
| | | <view class="more-wrap" @click="toOrderDetail(-1)"> |
| | | <text class="more-text">全部订单</text> |
| | | <u-icon name="arrow-right" size="13" color="#999999"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="order-grid"> |
| | | <view v-for="(item, index) in orderMenus" :key="index" class="order-item" @click="toOrderDetail(item.label)"> |
| | | <view v-for="(item, index) in orderMenus" :key="index" class="order-item" @click="toOrderDetail(item.status)"> |
| | | <image class="order-icon" :src="item.url" mode="widthFix"></image> |
| | | <view v-if="item.badge" class="order-badge">{{ item.badge }}</view> |
| | | <text class="order-label">{{ item.label }}</text> |
| | |
| | | agreeChecked: true, |
| | | userName: '', |
| | | orderMenus: [ |
| | | { label: '待支付', url: '/static/icon/mine_ic_daifukuan@2x.png', badge: 0 }, |
| | | { label: '待收货', url: '/static/icon/mine_ic_daishouhuo@2x.png', badge: 0 }, |
| | | { label: '退款/售后', url: '/static/icon/mine_ic_tuikuan@2x.png', badge: 0 } |
| | | { 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} |
| | | ], |
| | | menuList: [ |
| | | { label: '门店入驻' }, |
| | |
| | | this.showAuthLogin = true |
| | | }, |
| | | toAllOrders() { |
| | | uni.navigateTo({ |
| | | url: '/pages/orders/orders' |
| | | uni.switchTab({ |
| | | url: '/pages/itinerary/itinerary' |
| | | }) |
| | | }, |
| | | handleMenuClick(item) { |
| | |
| | | } |
| | | }, |
| | | toOrderDetail(label) { |
| | | uni.navigateTo({ |
| | | url: '/pages/orders/orders?status=' + label |
| | | uni.setStorageSync("orderStatus",label) |
| | | uni.switchTab({ |
| | | url: '/pages/itinerary/itinerary?status=' + label |
| | | }) |
| | | }, |
| | | toSetting() { |