gdpaoup
This commit is contained in:
parent
12d095dc05
commit
2bf46d983a
@ -19,6 +19,7 @@
|
|||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="num">共{{info.count_number}}件商品</view>
|
<view class="num">共{{info.count_number}}件商品</view>
|
||||||
<view class="price">实付<span>¥{{info.order_amount}}</span></view>
|
<view class="price">实付<span>¥{{info.order_amount}}</span></view>
|
||||||
|
<view class="time">{{ info.payment_time.slice(5,16) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -48,14 +49,14 @@ export default {
|
|||||||
height: 220rpx;
|
height: 220rpx;
|
||||||
background: rgba(255,255,255,1);
|
background: rgba(255,255,255,1);
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
padding: 30rpx;
|
padding: 20rpx 10rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
> image {
|
> image {
|
||||||
width: 160rpx;
|
width: 160rpx;
|
||||||
height: 160rpx;
|
height: 160rpx;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-right: 25rpx;
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
.goods {
|
.goods {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -82,9 +83,10 @@ export default {
|
|||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
width: 100%;
|
width: 470rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: rgba(102,102,102,1);
|
color: rgba(102,102,102,1);
|
||||||
.price {
|
.price {
|
||||||
@ -94,6 +96,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.time {
|
||||||
|
font-size: 20rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -16,6 +16,7 @@
|
|||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="num">共{{info.goods_try_num}}件商品</view>
|
<view class="num">共{{info.goods_try_num}}件商品</view>
|
||||||
<view class="price">实付<span>¥{{info.price}}</span></view>
|
<view class="price">实付<span>¥{{info.price}}</span></view>
|
||||||
|
<!-- <view class="time">{{ info.payment_time.slice(5,16) }}</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -181,9 +181,6 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
let pages = getCurrentPages();
|
|
||||||
let prePage = pages[pages.length - 2];
|
|
||||||
console.log(prePage);
|
|
||||||
this.type = option.type;
|
this.type = option.type;
|
||||||
console.log(this.type)
|
console.log(this.type)
|
||||||
this.orderid = option.id;
|
this.orderid = option.id;
|
||||||
@ -269,11 +266,18 @@ export default {
|
|||||||
//
|
//
|
||||||
confirm() {
|
confirm() {
|
||||||
this.showRefunds = false;
|
this.showRefunds = false;
|
||||||
|
if (!this.refundid) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: "请选择商品",
|
||||||
|
type: "warning"
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.cur == 0) {
|
if (this.cur == 0) {
|
||||||
// 确定退款
|
// 确定退款
|
||||||
this.$u.api.refund({
|
this.$u.api.refund({
|
||||||
refund_id: this.refundid,
|
refund_id: this.refundid,
|
||||||
seller_state: 2,
|
seller_state: 3,
|
||||||
seller_message: ""
|
seller_message: ""
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
@ -286,17 +290,20 @@ export default {
|
|||||||
title: res.message,
|
title: res.message,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let prePage = pages[pages.length - 2];
|
||||||
|
console.log(prePage.$vm);
|
||||||
|
prePage.$vm.del_id = this.orderid;
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
});
|
});
|
||||||
console.log(res);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 不进行退款
|
// 不进行退款
|
||||||
this.$u.api.refund({
|
this.$u.api.refund({
|
||||||
refund_id: this.refundid,
|
refund_id: this.refundid,
|
||||||
seller_state:3,
|
seller_state: 2,
|
||||||
seller_message: ""
|
seller_message: ""
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
|
@ -135,6 +135,7 @@ export default {
|
|||||||
carlist: [], //可投诉订单列表
|
carlist: [], //可投诉订单列表
|
||||||
reportinfo: null, //投诉信息
|
reportinfo: null, //投诉信息
|
||||||
reportcontent: '', //投诉内容
|
reportcontent: '', //投诉内容
|
||||||
|
del_id: 0, // 删除id
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -152,6 +153,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.publishstate = false;
|
this.publishstate = false;
|
||||||
|
this.getallorder(1);
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.num++;
|
this.num++;
|
||||||
|
Loading…
Reference in New Issue
Block a user