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