修复退款审核bug, 优化审核页面
This commit is contained in:
parent
e19e2aa1e8
commit
572e5a88a7
|
@ -40,6 +40,25 @@
|
||||||
{{orderInfo.refund_num}}
|
{{orderInfo.refund_num}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="form-item item-txt">
|
||||||
|
<text class="label">退款原因</text>
|
||||||
|
<view class="picker">
|
||||||
|
{{orderInfo.refund_message}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item item-txt">
|
||||||
|
<text class="label">退款备注</text>
|
||||||
|
<view class="picker">
|
||||||
|
{{orderInfo.mark}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item item-txt">
|
||||||
|
<text class="label">退款凭证</text>
|
||||||
|
<view class="imgs">
|
||||||
|
<image v-for="(img, index) in orderInfo.pics4" :src="img" :key="index" style="width: 60rpx;height: 60rpx;margin-right: 10rpx;"></image>
|
||||||
|
<image @click="previewImg" src="@/static/images/right.png" style="width: 40rpx;height: 40rpx;transform: rotate(180deg);"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="orderInfo.refund_type == 2 && status == 1" class="form-box">
|
<view v-if="orderInfo.refund_type == 2 && status == 1" class="form-box">
|
||||||
<view class="form-item item-txt">
|
<view class="form-item item-txt">
|
||||||
|
@ -116,7 +135,8 @@
|
||||||
let that = this;
|
let that = this;
|
||||||
getRefundOrderInfo(that.mer_id, that.order_id).then(
|
getRefundOrderInfo(that.mer_id, that.order_id).then(
|
||||||
res => {
|
res => {
|
||||||
that.orderInfo = res.data
|
res.data.pics4 = res.data.pics.slice(0,4);
|
||||||
|
that.orderInfo = res.data;
|
||||||
that.refundInfo = res.data.refund_info
|
that.refundInfo = res.data.refund_info
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
|
@ -138,7 +158,7 @@
|
||||||
status: that.status,
|
status: that.status,
|
||||||
fail_message: that.fail_message
|
fail_message: that.fail_message
|
||||||
}
|
}
|
||||||
if(that.orderInfo.refund_type == 2){
|
if(that.orderInfo.refund_type == 2 && that.status != -1){
|
||||||
if (!that.refundInfo.mer_delivery_user) {
|
if (!that.refundInfo.mer_delivery_user) {
|
||||||
return that.$util.Tips({
|
return that.$util.Tips({
|
||||||
title: '请填写收货人姓名'
|
title: '请填写收货人姓名'
|
||||||
|
@ -176,6 +196,13 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
// 查看图片
|
||||||
|
previewImg(){
|
||||||
|
uni.previewImage({
|
||||||
|
urls: this.orderInfo.pics,
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -191,6 +218,15 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
.label{
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-right: 24rpx;
|
||||||
|
}
|
||||||
|
.imgs{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.item-txt{
|
.item-txt{
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in New Issue