zs 2 년 전
부모
커밋
ac72604ccc
3개의 변경된 파일26개의 추가작업 그리고 4개의 파일을 삭제
  1. 21 0
      pagesMy/order/after.vue
  2. 2 2
      pagesMy/order/index.vue
  3. 3 2
      pagesMy/order/info.vue

+ 21 - 0
pagesMy/order/after.vue

@@ -39,6 +39,10 @@
 											<view class="other_1">
 												售后类型:<text>{{item.zhStatus||'暂无'}}</text>
 											</view>
+											<view class="other_1">
+												<text v-if="item.goods.gift.length>0" class="gift">赠品</text>
+												<text v-if="item.goods.sp_price" class="act">特价</text>
+											</view>
 										</view>
 									</view>
 									<view class="btn">
@@ -408,6 +412,23 @@
 								text {
 									color: var(--f85Color);
 								}
+
+								.gift {
+									margin: 0 1vw 0 0;
+									font-size: 12px;
+									color: #FFA500;
+									border: 1px solid #FFA500;
+									border-radius: 5px;
+									padding: 0 1vw;
+								}
+
+								.act {
+									font-size: 12px;
+									border: 1px solid var(--fFB1Color);
+									color: var(--fFB1Color);
+									border-radius: 5px;
+									padding: 0 1vw;
+								}
 							}
 						}
 					}

+ 2 - 2
pagesMy/order/index.vue

@@ -82,8 +82,8 @@
 													<view class="specs">
 														{{tag.name}}
 													</view>
-													<text v-if="tags.gift.length>0" class="gift">赠品</text>
-													<text v-if="tags.sp_price" class="act">特价</text>
+													<text v-if="tag.gift.length>0" class="gift">赠品</text>
+													<text v-if="tag.sp_price" class="act">特价</text>
 												</view>
 												<view class="goods_3">
 													<view v-if="item.type=='0'" class="price">

+ 3 - 2
pagesMy/order/info.vue

@@ -36,7 +36,7 @@
 											<view class="goods_1">
 												<view class="url">
 													<image class="image"
-														:src="tag.goods.file&&tag.goods.file.length>0?tag.goods.file[0].url:''"
+														:src="tag.goods.file&&tag.goods.file.length>0?tag.goods.file[0].url:tag.goods.goods.file[0].url"
 														mode=""></image>
 												</view>
 												<view class="goodsname">
@@ -94,7 +94,8 @@
 										<view class="goods_1">
 											<view class="url">
 												<image class="image"
-													:src="item.file&&item.file.length>0?item.file[0].url:''" mode="">
+													:src="item.file&&item.file.length>0?item.file[0].url:item.goods.file[0].url"
+													mode="">
 												</image>
 											</view>
 											<view class="goodsname">