|
@@ -6,9 +6,7 @@
|
|
|
<order-choose-address :addressInfo="userInfo" :disabled="true"></order-choose-address>
|
|
|
</view>
|
|
|
<!-- 特殊商品退货须知 -->
|
|
|
- <view class="return-instructions">
|
|
|
- 为保障会员权益,特殊类商品(包括耗材/配件/私密商品等),除外观跟质量问题之外,其他原因均不支持退货!
|
|
|
- </view>
|
|
|
+ <view class="return-instructions" v-if="returnGoodsStutas" v-html="helpContent"></view>
|
|
|
<!-- 订单商品列表-->
|
|
|
<view class="shop-list">
|
|
|
<view class="shop-section" v-for="shopInfo in shopOrderList" :key="shopInfo.shopId">
|
|
@@ -90,7 +88,9 @@ export default {
|
|
|
orderInfo: {},
|
|
|
shopOrderList: [],
|
|
|
userInfo: {},
|
|
|
- isCollapse: false
|
|
|
+ isCollapse: false,
|
|
|
+ returnGoodsStutas: false,
|
|
|
+ helpContent: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -99,10 +99,10 @@ export default {
|
|
|
onLoad(options) {
|
|
|
this.orderId = options.orderId
|
|
|
this.fetchOrderDetail()
|
|
|
- this.$on('orderAction', (type) => {
|
|
|
- if(type === 'delete'){
|
|
|
+ this.$on('orderAction', type => {
|
|
|
+ if (type === 'delete') {
|
|
|
this.$router.navigateBack(1)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.fetchOrderDetail()
|
|
|
}
|
|
|
})
|
|
@@ -115,6 +115,9 @@ export default {
|
|
|
this.orderInfo = res.data.order
|
|
|
this.shopOrderList = res.data.shopOrderList
|
|
|
this.userInfo = res.data.userInfo
|
|
|
+ // 特殊商品退货须知
|
|
|
+ this.returnGoodsStutas = res.data.returnGoodsStutas && res.data.returnGoodsStutas === 2 // 1:可以 2:不可以
|
|
|
+ this.helpContent = res.data.helpContent
|
|
|
} catch (e) {
|
|
|
console.log(e)
|
|
|
}
|
|
@@ -152,12 +155,12 @@ export default {
|
|
|
border-top: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
-.return-instructions{
|
|
|
+.return-instructions {
|
|
|
font-size: 26rpx;
|
|
|
- color: #E15616;
|
|
|
+ color: #e15616;
|
|
|
line-height: 42rpx;
|
|
|
padding: 32rpx 50rpx;
|
|
|
- background-color: #FFFAF8;
|
|
|
+ background-color: #fffaf8;
|
|
|
text-align: justify;
|
|
|
}
|
|
|
|