修改页面
This commit is contained in:
@ -19,13 +19,13 @@
|
||||
</view>
|
||||
<image style="width: 28rpx; height: 28rpx" src="/static/images/arrow_right.png"></image>
|
||||
</view>
|
||||
<view class="opt-item row-between" @tap="allRefunds">
|
||||
<!-- <view class="opt-item row-between" @tap="allRefunds">
|
||||
<view>
|
||||
<view class="lg normal">退货退款</view>
|
||||
<view class="muted xs mt10">已收到货,需退还收到的实物</view>
|
||||
</view>
|
||||
<image style="width: 28rpx; height: 28rpx" src="/static/images/arrow_right.png"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view :hidden="!hiddenOpt">
|
||||
<view class="refund-info row-between mt20">
|
||||
@ -34,24 +34,26 @@
|
||||
</view>
|
||||
<view class="refund-info row-between">
|
||||
<view class="lable">退款金额</view>
|
||||
<price-format color="#FF2C3C" :price="parseFloat(goods.total_pay_price) +
|
||||
<u-input v-model="refundMoney" input-align="right" placeholder="请输入退款金额"></u-input>
|
||||
<!-- <price-format color="#FF2C3C" :price="parseFloat(goods.total_pay_price) +
|
||||
parseFloat(goods.refund_express_money)
|
||||
" showSubscript="true" :subscriptSize="28" :firstSize="28" :secondSize="28" />
|
||||
" showSubscript="true" :subscriptSize="28" :firstSize="28" :secondSize="28" /> -->
|
||||
</view>
|
||||
<view class="refund-info row-between" @tap="showPopup">
|
||||
<view class="lable">退款原因</view>
|
||||
<view class="row">
|
||||
<text :class="'nr ' + (reasonIndex == -1 ? 'muted' : 'normal')">{{
|
||||
<u-input v-model="reason" input-align="right" placeholder="请输入退款原因"></u-input>
|
||||
<!-- <text :class="'nr ' + (reasonIndex == -1 ? 'muted' : 'normal')">{{
|
||||
reasonIndex == -1 ? "请选择" : reason[reasonIndex]
|
||||
}}</text>
|
||||
<image class="icon-sm ml20" src="/static/images/arrow_right.png"></image>
|
||||
<image class="icon-sm ml20" src="/static/images/arrow_right.png"></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="refund-info row">
|
||||
<!-- <view class="refund-info row">
|
||||
<view class="label">备注说明</view>
|
||||
<textarea v-show="!showPop" class="bg-body" placeholder="请描述申请售后的具体原因,100字以内" v-model="remark"
|
||||
name="textarea"></textarea>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="upload bg-white">
|
||||
<view class="title row-between">
|
||||
<view>上传凭证</view>
|
||||
@ -157,15 +159,15 @@ export default {
|
||||
applyAgainFun() {
|
||||
let { reason, reasonIndex, optTyle, remark, fileList } = this;
|
||||
|
||||
if (!reason[reasonIndex]) {
|
||||
return this.$toast({
|
||||
title: "请选择退款原因",
|
||||
});
|
||||
}
|
||||
// if (!reason[reasonIndex]) {
|
||||
// return this.$toast({
|
||||
// title: "请选择退款原因",
|
||||
// });
|
||||
// }
|
||||
|
||||
const data = {
|
||||
id: this.afterSaleId,
|
||||
reason: reason[reasonIndex],
|
||||
reason: reason,
|
||||
refund_type: optTyle,
|
||||
remark: remark,
|
||||
img: fileList.length <= 0 ? "" : fileList[0].base_url,
|
||||
@ -196,20 +198,32 @@ export default {
|
||||
},
|
||||
|
||||
applyAfterSaleFun() {
|
||||
let { reason, reasonIndex, optTyle, remark, fileList } = this;
|
||||
let { refundMoney, reason, reasonIndex, optTyle, remark, fileList } = this;
|
||||
|
||||
if (!reason[reasonIndex]) {
|
||||
if (!refundMoney) {
|
||||
return this.$toast({
|
||||
title: "请选择退款原因",
|
||||
title: "请输入退款金额",
|
||||
});
|
||||
}
|
||||
|
||||
if (!reason) {
|
||||
return this.$toast({
|
||||
title: "请输入退款原因",
|
||||
});
|
||||
}
|
||||
// if (!reason[reasonIndex]) {
|
||||
// return this.$toast({
|
||||
// title: "请选择退款原因",
|
||||
// });
|
||||
// }
|
||||
|
||||
const data = {
|
||||
item_id: this.itemId,
|
||||
order_id: this.orderId,
|
||||
refund_money: this.refundMoney,
|
||||
reason: reason[reasonIndex],
|
||||
refund_type: optTyle,
|
||||
remark: remark,
|
||||
// remark: remark,
|
||||
img: fileList.length <= 0 ? "" : fileList[0].url,
|
||||
};
|
||||
applyAfterSale(data).then((res) => {
|
||||
@ -255,7 +269,7 @@ export default {
|
||||
}).then((res) => {
|
||||
if (res.code == 1) {
|
||||
this.goods = res.data.goods;
|
||||
this.reason = res.data.reason;
|
||||
// this.reason = res.data.reason;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user