|
|
<template>
|
|
|
<div class="return return-refund">
|
|
|
<product-list :list="list" :data="refundData" type="refund"></product-list>
|
|
|
|
|
|
<div v-if="refundData.return_amount_info" class="return-amount-info">
|
|
|
{{refundData.return_amount_info}}
|
|
|
</div>
|
|
|
<div v-else class="return-info-hide-margtin-30"></div>
|
|
|
|
|
|
<div class="return-amount">
|
|
|
<!-- TODO:退货信息优化为组件 -->
|
|
|
<div class="return-amount-title">
|
...
|
...
|
@@ -26,10 +32,6 @@ |
|
|
<p>姓名:<span><input v-model="amount.alipay_name" type="text" placeholder="请填写收款人姓名"></span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div v-if="refundData.return_amount_info" class="return-amount-info">
|
|
|
{{refundData.return_amount_info}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -47,7 +49,12 @@ |
|
|
page: 'refund',
|
|
|
list: [],
|
|
|
amount: {
|
|
|
return_amount_mode: 0
|
|
|
return_amount_mode: 0,
|
|
|
bank_name: '',
|
|
|
bank_card: '',
|
|
|
payee_name: '',
|
|
|
alipay_account: '',
|
|
|
alipay_name: ''
|
|
|
},
|
|
|
r: {},
|
|
|
refundData: {}
|
...
|
...
|
@@ -72,6 +79,15 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
if (this.amount.return_amount_mode === 2) {
|
|
|
this.amount.alipay_account = '';
|
|
|
this.amount.alipay_name = '';
|
|
|
} else if (this.amount.return_amount_mode === 3) {
|
|
|
this.amount.bank_name = '';
|
|
|
this.amount.bank_card = '';
|
|
|
this.amount.payee_name = '';
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
order_code: qs.orderCode,
|
|
|
goods: JSON.stringify(goods),
|
...
|
...
|
@@ -182,7 +198,6 @@ |
|
|
|
|
|
.return-refund {
|
|
|
.return-amount {
|
|
|
margin: 30px 0;
|
|
|
font-size: 32px;
|
|
|
background: #fff;
|
|
|
}
|
...
|
...
|
@@ -209,12 +224,15 @@ |
|
|
}
|
|
|
|
|
|
.return-amount-info {
|
|
|
padding: 0 30px 30px;
|
|
|
padding: 20px 30px;
|
|
|
font-size: 24px;
|
|
|
line-height: 2.5;
|
|
|
color: #b0b0b0;
|
|
|
}
|
|
|
|
|
|
.return-info-hide-margtin-30 {
|
|
|
margin-top: 30px;
|
|
|
}
|
|
|
|
|
|
.return-amount-item {
|
|
|
p {
|
|
|
border-top: 1px solid #e0e0e0;
|
...
|
...
|
@@ -223,7 +241,6 @@ |
|
|
|
|
|
input {
|
|
|
border: none;
|
|
|
color: #e0e0e0;
|
|
|
font-size: 26px;
|
|
|
}
|
|
|
}
|
...
|
...
|
|