| | |
| | | <view class="func"> |
| | | <view class="func-top"> |
| | | <view class="func-top-title">我的订单</view> |
| | | <view class="func-top-to" @click="jumpOrder"> |
| | | <view class="func-top-to" @click="jumpOrder(0)"> |
| | | 全部订单 |
| | | <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <view class="func-list"> |
| | | <view class="func-list-item" @click="jumpOrder(0)"> |
| | | <view class="func-list-item" @click="jumpOrder(1)"> |
| | | <view class="func-list-item-num" v-if="orderNum && orderNum.waitPayOrders > 0">{{orderNum.waitPayOrders}}</view> |
| | | <image src="/static/icon/mine_ic_daifukuan@2x.png" mode="widthFix"></image> |
| | | <text>待支付</text> |
| | | </view> |
| | | <view class="func-list-item" @click="jumpOrder(1)"> |
| | | <view class="func-list-item" @click="jumpOrder(2)"> |
| | | <view class="func-list-item-num" v-if="orderNum && orderNum.waitOrders > 0">{{orderNum.waitOrders}}</view> |
| | | <image src="/static/icon/mine_ic_daifahuo@2x.png" mode="widthFix"></image> |
| | | <text>待发货/自提</text> |
| | | </view> |
| | | <view class="func-list-item" @click="jumpOrder(2)"> |
| | | <view class="func-list-item-num" v-if="orderNum && orderNum.waitOrders > 0">{{orderNum.waitReceivedOrders}}</view> |
| | | <view class="func-list-item" @click="jumpOrder(3)"> |
| | | <view class="func-list-item-num" v-if="orderNum && orderNum.waitReceivedOrders > 0">{{orderNum.waitReceivedOrders}}</view> |
| | | <image src="/static/icon/mine_ic_daishouhuo@2x.png" mode="widthFix"></image> |
| | | <text>待收货</text> |
| | | </view> |
| | |
| | | }, |
| | | // 跳转订单列表 |
| | | jumpOrder(status) { |
| | | if (status >= 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/order/order?status=' + status |
| | | url: '/pagesA/pages/order/order?userType=0&status=' + status |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/order/order' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |