This commit is contained in:
Gdpao 2020-08-14 20:48:14 +08:00
parent 12d095dc05
commit 2bf46d983a
4 changed files with 25 additions and 10 deletions

View File

@ -19,6 +19,7 @@
<view class="info">
<view class="num">{{info.count_number}}件商品</view>
<view class="price">实付<span>{{info.order_amount}}</span></view>
<view class="time">{{ info.payment_time.slice(5,16) }}</view>
</view>
</view>
</view>
@ -48,14 +49,14 @@ export default {
height: 220rpx;
background: rgba(255,255,255,1);
border-radius: 10rpx;
padding: 30rpx;
padding: 20rpx 10rpx;
display: flex;
align-items: center;
> image {
width: 160rpx;
height: 160rpx;
flex-shrink: 0;
margin-right: 25rpx;
margin-right: 20rpx;
}
.goods {
display: flex;
@ -82,9 +83,10 @@ export default {
margin-bottom: 30rpx;
}
.info {
width: 100%;
width: 470rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 26rpx;
color: rgba(102,102,102,1);
.price {
@ -94,6 +96,9 @@ export default {
}
}
}
.time {
font-size: 20rpx;
}
}
}
</style>

View File

@ -16,6 +16,7 @@
<view class="info">
<view class="num">{{info.goods_try_num}}件商品</view>
<view class="price">实付<span>{{info.price}}</span></view>
<!-- <view class="time">{{ info.payment_time.slice(5,16) }}</view> -->
</view>
</view>
</view>

View File

@ -181,9 +181,6 @@ export default {
};
},
onLoad(option) {
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
console.log(prePage);
this.type = option.type;
console.log(this.type)
this.orderid = option.id;
@ -269,11 +266,18 @@ export default {
//
confirm() {
this.showRefunds = false;
if (!this.refundid) {
this.$refs.uToast.show({
title: "请选择商品",
type: "warning"
});
return;
}
if (this.cur == 0) {
// 退
this.$u.api.refund({
refund_id: this.refundid,
seller_state: 2,
seller_state: 3,
seller_message: ""
}).then(res => {
if (res.errCode != 0) {
@ -286,17 +290,20 @@ export default {
title: res.message,
type: 'success'
});
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
console.log(prePage.$vm);
prePage.$vm.del_id = this.orderid;
uni.navigateBack({
delta: 1
});
console.log(res);
}
});
} else {
// 退
this.$u.api.refund({
refund_id: this.refundid,
seller_state:3,
seller_state: 2,
seller_message: ""
}).then(res => {
if (res.errCode != 0) {

View File

@ -135,6 +135,7 @@ export default {
carlist: [], //
reportinfo: null, //
reportcontent: '', //
del_id: 0, // id
};
},
onLoad() {
@ -152,6 +153,7 @@ export default {
},
onShow() {
this.publishstate = false;
this.getallorder(1);
},
onReachBottom() {
this.num++;