|
|
|
@ -68,25 +68,21 @@ |
|
|
|
|
&& item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.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.pay_status == PayStatusEnum.PENDING.value && item.order_status == OrderStatusEnum.NORMAL.value" |
|
|
|
|
@click="onPay(item.order_id)">立即支付</view> |
|
|
|
|
<view class="n" v-if="item.delivery_status == DeliveryStatusEnum.DELIVERED.value" |
|
|
|
|
@click="onLogistics(item.order_id)">查看物流 |
|
|
|
|
</view> |
|
|
|
|
<view class="n n-1" |
|
|
|
|
v-if="item.delivery_status == DeliveryStatusEnum.DELIVERED.value && item.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value" |
|
|
|
|
@click="onReceipt(item.order_id)">确认收货</view> |
|
|
|
|
<view class="n" |
|
|
|
|
v-if="(item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == ReceiptStatusEnum.NOT_RECEIVED.value)||item.order_status == OrderStatusEnum.CANCELLED.value" |
|
|
|
|
@click="handleTargetGoods(item.goods[0].goods_id)">再次购买</view> |
|
|
|
|
<view class="n" |
|
|
|
|
v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value" |
|
|
|
|
@click="onCdDia(item.goods_id)">催发货</view> |
|
|
|
|
v-if="(item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == ReceiptStatusEnum.NOT_RECEIVED.value)||item.order_status == OrderStatusEnum.CANCELLED.value" |
|
|
|
|
@click="handleTargetGoods(item.goods[0].goods_id)">再次购买</view> |
|
|
|
|
<view class="n" |
|
|
|
|
v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value" |
|
|
|
|
@click="onCancel(item.order_id)"> |
|
|
|
|
取消订单 |
|
|
|
|
</view> |
|
|
|
|
@click="onCdDia(item.goods_id)">催发货</view> |
|
|
|
|
<!-- <view class="n" |
|
|
|
|
v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value" |
|
|
|
|
@click="onAdress(order.goods_id)">修改地址</view> --> |
|
|
|
@ -228,6 +224,7 @@ |
|
|
|
|
onShow() { |
|
|
|
|
// 注册全局事件订阅: 是否刷新订单列表 |
|
|
|
|
uni.$on('syncRefresh', canReset => { |
|
|
|
|
this.list=[] |
|
|
|
|
this.getOrderList() |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
@ -248,9 +245,14 @@ |
|
|
|
|
methods: { |
|
|
|
|
confirm() { |
|
|
|
|
// 刷新订单列表 |
|
|
|
|
this.list=[] |
|
|
|
|
app.getOrderList() |
|
|
|
|
}, |
|
|
|
|
changeMenu(index) { |
|
|
|
|
this.list.forEach(item => { |
|
|
|
|
item.menushow=false; |
|
|
|
|
idList.push(item.response.data.fileInfo.file_id) |
|
|
|
|
}); |
|
|
|
|
this.list[index].menushow = !this.list[index].menushow |
|
|
|
|
}, |
|
|
|
|
toggleImage() { |
|
|
|
@ -265,7 +267,7 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
/** |
|
|
|
|
* 获取列表 |
|
|
|
|
*/ |
|
|
|
|
async getOrderList() { |
|
|
|
@ -296,7 +298,7 @@ |
|
|
|
|
// 切换标签项 |
|
|
|
|
onChangeTab(index) { |
|
|
|
|
const app = this |
|
|
|
|
app.list=[] |
|
|
|
|
app.list = [] |
|
|
|
|
// 设置当前选中的标签 |
|
|
|
|
app.curTab = index |
|
|
|
|
if (index == 6) { |
|
|
|
@ -595,23 +597,10 @@ |
|
|
|
|
height: 40rpx; |
|
|
|
|
margin-right: 24rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&::after { |
|
|
|
|
content: ""; |
|
|
|
|
width: 16rpx; |
|
|
|
|
height: 16rpx; |
|
|
|
|
border-top: 1px solid #818181; |
|
|
|
|
border-left: 1px solid #818181; |
|
|
|
|
position: absolute; |
|
|
|
|
right: 0; |
|
|
|
|
top: 14rpx; |
|
|
|
|
z-index: 1; |
|
|
|
|
transform: rotate(135deg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.b { |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-size: 28rpx; |
|
|
|
|
font-weight: 400; |
|
|
|
|
color: #F21A1C; |
|
|
|
|
} |
|
|
|
@ -624,9 +613,10 @@ |
|
|
|
|
margin-bottom: 30rpx; |
|
|
|
|
|
|
|
|
|
.pic { |
|
|
|
|
width: 145rpx; |
|
|
|
|
height: 135rpx; |
|
|
|
|
margin-right: 20rpx; |
|
|
|
|
width: 162rpx; |
|
|
|
|
height: 148rpx; |
|
|
|
|
border-radius: 0px 0px 0px 0px; |
|
|
|
|
margin-right: 30rpx; |
|
|
|
|
|
|
|
|
|
image { |
|
|
|
|
width: 100%; |
|
|
|
@ -656,6 +646,7 @@ |
|
|
|
|
font-weight: 600; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
margin-top: 12rpx; |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
color: #F21A1C; |
|
|
|
|
} |
|
|
|
|