|
|
|
@ -24,7 +24,8 @@ |
|
|
|
|
<view class="item" v-for="(item,index) in list" v-if="list.length>0"> |
|
|
|
|
<view class="hd"> |
|
|
|
|
<view class="a"> |
|
|
|
|
<image class="icon" v-if="item.storeInfo && item.storeInfo.image_url" :src="item.storeInfo.image_url"></image> |
|
|
|
|
<image class="icon" v-if="item.storeInfo && item.storeInfo.image_url" |
|
|
|
|
:src="item.storeInfo.image_url"></image> |
|
|
|
|
{{item.storeInfo.store_name}} |
|
|
|
|
</view> |
|
|
|
|
<view class="b" |
|
|
|
@ -73,13 +74,15 @@ |
|
|
|
|
v-if="item.order_status == OrderStatusEnum.COMPLETED.value || (item.pay_status == PayStatusEnum.PENDING.value&&item.order_status == OrderStatusEnum.NORMAL.value)"> |
|
|
|
|
更多</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<view class="n" v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_type == DeliveryTypeEnum.EXTRACT.value" |
|
|
|
|
<view class="n" |
|
|
|
|
v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_type == DeliveryTypeEnum.EXTRACT.value" |
|
|
|
|
@click="onExtractQRCode(item.order_id)">核销码 |
|
|
|
|
</view> |
|
|
|
|
<view class="n" |
|
|
|
|
v-if="item.pay_status == PayStatusEnum.PENDING.value && item.order_status == OrderStatusEnum.NORMAL.value" |
|
|
|
|
@click="onPay(item.order_id)">立即支付</view> |
|
|
|
|
<view class="n" v-if="item.delivery_type == DeliveryTypeEnum.EXPRESS.value&&item.delivery_status == DeliveryStatusEnum.DELIVERED.value" |
|
|
|
|
<view class="n" |
|
|
|
|
v-if="item.delivery_type == DeliveryTypeEnum.EXPRESS.value&&item.delivery_status == DeliveryStatusEnum.DELIVERED.value" |
|
|
|
|
@click="onLogistics(item.order_id)">查看物流 |
|
|
|
|
</view> |
|
|
|
|
<view class="n n-1" |
|
|
|
@ -266,12 +269,13 @@ |
|
|
|
|
app.getOrderList() |
|
|
|
|
}, |
|
|
|
|
changeMenu(index) { |
|
|
|
|
let idList = [] |
|
|
|
|
this.list.forEach(item => { |
|
|
|
|
this.list.forEach((item, ind) => { |
|
|
|
|
if (ind == index) { |
|
|
|
|
item.menushow = item.menushow == false ? true : false |
|
|
|
|
} else { |
|
|
|
|
item.menushow = false; |
|
|
|
|
idList.push(item.response.data.fileInfo.file_id) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.list[index].menushow = !this.list[index].menushow |
|
|
|
|
}, |
|
|
|
|
toggleImage() { |
|
|
|
|
this.isToggle = !this.isToggle |
|
|
|
@ -282,7 +286,6 @@ |
|
|
|
|
if (options.dataType) { |
|
|
|
|
const index = app.tabs.findIndex(item => item.value == options.dataType) |
|
|
|
|
app.current = index > -1 ? index : 0 |
|
|
|
|
console.log(app.current, 'KKKKKKK') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -498,6 +501,7 @@ |
|
|
|
|
white-space: nowrap; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100rpx; |
|
|
|
|
|
|
|
|
|
.list { |
|
|
|
|
position: relative; |
|
|
|
|
display: inline-block; |
|
|
|
@ -542,6 +546,7 @@ |
|
|
|
|
.order-list { |
|
|
|
|
margin-top: 20rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.receive { |
|
|
|
|
width: 100%; |
|
|
|
|
background: #F8F8F8; |
|
|
|
|