Browse Source

特殊商品退货须知

yuwenjun1997 2 years ago
parent
commit
1d77bf1651
2 changed files with 18 additions and 3 deletions
  1. 17 2
      pages/seller/order/order-details.vue
  2. 1 1
      pages/user/order/create-order.vue

+ 17 - 2
pages/seller/order/order-details.vue

@@ -32,7 +32,9 @@
 				ref="orderAddress"
 				v-if="isRequest && !rechargeGoods"
 				:addressData="addressData"
-			></order-address>
+			></order-address> 
+            <!-- 特殊商品退货须知 -->
+            <view class="return-instructions" v-if="returnGoodsStutas" v-html="helpContent"></view>
 			<!-- 商品 -->
 			<goods-list
 				ref="goods"
@@ -187,7 +189,9 @@ export default {
 			showAgan: false,
 			failList: [], // 再来一单可购买商品
 			promptitle: '',
-			aganOrderId: 0 // 再来一单商品id
+			aganOrderId: 0 ,// 再来一单商品id
+            returnGoodsStutas: false,
+            helpContent: '',
 		}
 	},
 	onLoad(option) {
@@ -272,6 +276,9 @@ export default {
 					if (this.clauseData && this.clauseData.name.length > 10) {
 						this.clauseData.name = this.clauseData.name.substr(0, 10) + '...'
 					}
+                    // 特殊商品退货须知
+                    this.returnGoodsStutas = data.returnGoodsStutas && data.returnGoodsStutas === 2 // 1:可以 2:不可以
+                    this.helpContent = data.helpContent
 				})
 				.catch(error => {
 					this.$util.modal('提示', '订单查询失败,请稍后重试~', '确定', '', false, () => {
@@ -725,4 +732,12 @@ page {
 		}
 	}
 }
+.return-instructions{
+    font-size: 26rpx;
+    color: #E15616;
+    line-height: 42rpx;
+    padding: 32rpx 50rpx;
+    background-color: #FFFAF8;
+    text-align: justify;
+}
 </style>

+ 1 - 1
pages/user/order/create-order.vue

@@ -53,7 +53,7 @@
 				</view>
 			</view>
 		</view>
-		<!-- 底部 -->
+		<!-- 底部 --> 
 		<view class="footer-wrapper" :style="{paddingBottom :isIphoneX ? '68rpx' : '0rpx'}">
             <cm-return-instructions v-if="returnGoodsStutas" :content="helpContent" @change="onAgreementChange"></cm-return-instructions>
             <view class="footer">