|
|
@@ -8,16 +8,8 @@
|
|
|
<text>退款花材</text>
|
|
|
</view>
|
|
|
<view class="commodity-list">
|
|
|
- <view
|
|
|
- v-for="(s, idx) in refundData.itemList"
|
|
|
- :key="idx"
|
|
|
- class="commodity-item"
|
|
|
- >
|
|
|
- <image
|
|
|
- class="item-icon"
|
|
|
- :src="s.cover"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <view v-for="(s, idx) in refundData.itemList" :key="idx" class="commodity-item">
|
|
|
+ <image class="item-icon" :src="s.cover" alt="" />
|
|
|
<view class="item-info">
|
|
|
<view class="info-line">
|
|
|
<text class="item-name">{{ s.name }}</text>
|
|
|
@@ -44,7 +36,7 @@
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false" v-if="discountType == 4">
|
|
|
<div class="tui-title">红包优惠</div>
|
|
|
- <div class="detail-price_box red"><text v-if="refundPrice == actPrice" style="margin-right:10rpx;">已退还</text>¥{{ discountAmount }}</div>
|
|
|
+ <div class="detail-price_box red"><text v-if="hbRefund == 1" style="margin-right:50rpx;">红包已退回</text>-¥{{ discountAmount }}</div>
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">实付金额</div>
|
|
|
@@ -96,7 +88,8 @@ export default {
|
|
|
actPrice:0,
|
|
|
discountType:0,
|
|
|
discountAmount:0,
|
|
|
- refundPrice:0
|
|
|
+ refundPrice:0,
|
|
|
+ hbRefund:0
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -108,8 +101,8 @@ export default {
|
|
|
init() {
|
|
|
this.initData()
|
|
|
},
|
|
|
- async initData () {
|
|
|
- return getRefundData({ cgId: this.option.id }).then(res => {
|
|
|
+ initData () {
|
|
|
+ getRefundData({ cgId: this.option.id }).then(res => {
|
|
|
this.refundData = res.data
|
|
|
this.prePrice = res.data.cgInfo.prePrice
|
|
|
this.discountType = res.data.cgInfo.discountType
|
|
|
@@ -120,9 +113,8 @@ export default {
|
|
|
}else{
|
|
|
this.actPrice = parseFloat(res.data.cgInfo.actPrice)
|
|
|
}
|
|
|
-
|
|
|
+ this.hbRefund = res.data.info.hbRefund
|
|
|
this.refundPrice = res.data.info.refundPrice
|
|
|
- this.$forceUpdate()
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -311,7 +303,7 @@ export default {
|
|
|
}
|
|
|
.detail-price_box {
|
|
|
color: #333333;
|
|
|
- font-size: 22px;
|
|
|
+ font-size: 28px;
|
|
|
text-align: right;
|
|
|
flex: 1;
|
|
|
font-weight: 600;
|