...
|
...
|
@@ -5,7 +5,7 @@ |
|
|
<u-tabs :list="list2" lineColor="#FED000" :scrollable="false" @click="onclick"></u-tabs>
|
|
|
</u-sticky>
|
|
|
<view class="group">
|
|
|
<view class="item" v-for="(item,idx) in showlist" :key="idx">
|
|
|
<view class="item" v-for="(item,idx) in showlist" :key="idx" @click.stop="ondetail(item.id)">
|
|
|
<view class="top flexA">
|
|
|
<view class="left flexA">
|
|
|
<image src="/static/order.png" mode=""></image>
|
...
|
...
|
@@ -34,14 +34,19 @@ |
|
|
</view>
|
|
|
<view class="right">
|
|
|
<text style="font-size: 20rpx;">¥</text>{{item.orderinfo.price}}
|
|
|
<view class="staright">
|
|
|
<text v-if="item.status==5">审核中</text>
|
|
|
<text v-if="item.status==7">已退回</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="line"></view>
|
|
|
<view class="botBtn flexA">
|
|
|
<view v-if="item.license_preview" class="flexC yellow" @click="openshow(item.license_preview)">交易证明
|
|
|
<view v-if="item.license_preview" class="flexC yellow"
|
|
|
@click.stop="openshow(item.id,idx,item.license_preview,item.status)">交易证明
|
|
|
</view>
|
|
|
<view v-if="reChest(item.status)" class="flexC" @click="order_confirm(item.id,idx,1)">已收货</view>
|
|
|
<view v-if="reChest(item.status)" class="flexC" @click="order_confirm(item.id,idx,2)" >未收货</view>
|
|
|
<view v-if="reChest(item.status)" class="flexC" @click.stop="order_confirm(item.id,idx,1)">已收货</view>
|
|
|
<view v-if="reChest(item.status)" class="flexC" @click.stop="order_confirm(item.id,idx,2)">未收货</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
...
|
...
|
@@ -52,8 +57,10 @@ |
|
|
</view>
|
|
|
<image class="popImage" :src="showimg" mode=""></image>
|
|
|
<view class="popBtn flexA">
|
|
|
<view class="btn flexC" @click="show=false">未接收</view>
|
|
|
<view class="btn flexC" @click="show=false">已接收</view>
|
|
|
<view class="btn flexC" v-if="reChest(showstatus)" @click="order_confirm(showid,showindex,2)">未收货
|
|
|
</view>
|
|
|
<view class="btn flexC" v-if="reChest(showstatus)" @click="order_confirm(showid,showindex,1)">已收货
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
...
|
...
|
@@ -77,22 +84,31 @@ |
|
|
}, {
|
|
|
name: '已完成'
|
|
|
}],
|
|
|
show: true,
|
|
|
show: false,
|
|
|
typeindex: 0,
|
|
|
currentpage: 1,
|
|
|
num: 10,
|
|
|
showlist: [],
|
|
|
//交易证明
|
|
|
showid: "",
|
|
|
showindex: "",
|
|
|
showstatus: "",
|
|
|
showimg: "",
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.buyerOrderList()
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
// 跳转详情
|
|
|
ondetail(id) {
|
|
|
console.log(id)
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/mine/order_detail?id=" + id
|
|
|
})
|
|
|
},
|
|
|
//确认收货
|
|
|
async order_confirm(id,idx,type) {
|
|
|
async order_confirm(id, idx, type) {
|
|
|
let obj = {
|
|
|
order_id: id,
|
|
|
type: type,
|
...
|
...
|
@@ -100,16 +116,16 @@ |
|
|
try {
|
|
|
const res = await order_confirm(obj)
|
|
|
console.log('order_confirm', res)
|
|
|
if(this.typeindex=2){
|
|
|
this.showlist.splice(idx,1)
|
|
|
}else{
|
|
|
if(type==2){
|
|
|
this.showlist[idx].status=5
|
|
|
}else{
|
|
|
this.showlist[idx].status=6
|
|
|
this.show = false
|
|
|
if (this.typeindex = 2) {
|
|
|
this.showlist.splice(idx, 1)
|
|
|
} else {
|
|
|
if (type == 2) {
|
|
|
this.showlist[idx].status = 5
|
|
|
} else {
|
|
|
this.showlist[idx].status = 6
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 保存数据
|
|
|
} catch (err) {
|
|
|
uni.showToast({
|
...
|
...
|
@@ -120,9 +136,12 @@ |
|
|
}
|
|
|
},
|
|
|
// 查看交易证明
|
|
|
openshow(img) {
|
|
|
openshow(id, index, img, status) {
|
|
|
this.showimg = img
|
|
|
this.show = true
|
|
|
this.showid = id
|
|
|
this.showstatus = status
|
|
|
this.showindex = index
|
|
|
},
|
|
|
//复制
|
|
|
copy(it) {
|
...
|
...
|
@@ -170,7 +189,7 @@ |
|
|
if (s == 3) return true;
|
|
|
},
|
|
|
reNest(s) {
|
|
|
|
|
|
|
|
|
},
|
|
|
},
|
|
|
}
|
...
|
...
|
@@ -222,6 +241,9 @@ |
|
|
.right {
|
|
|
color: rgba(0, 0, 0, 0.6);
|
|
|
font-size: 26rpx;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -256,6 +278,13 @@ |
|
|
.right {
|
|
|
font-size: 30rpx;
|
|
|
font-weight: 700;
|
|
|
.staright {
|
|
|
margin-top: 12rpx;
|
|
|
color: rgba(0, 0, 0, 0.3);
|
|
|
font-size: 26rpx;
|
|
|
font-weight: 400;
|
|
|
font-family: "PingFang SC";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
@@ -293,7 +322,6 @@ |
|
|
padding: 48rpx 32rpx 24rpx;
|
|
|
box-sizing: border-box;
|
|
|
width: 622rpx;
|
|
|
height: 962rpx;
|
|
|
background: #fff;
|
|
|
border-radius: 15rpx;
|
|
|
|
...
|
...
|
|