zs 2 năm trước cách đây
mục cha
commit
63f70233d0
2 tập tin đã thay đổi với 12 bổ sung5 xóa
  1. 3 2
      pagesHome/order/detail.vue
  2. 9 3
      pagesMy/order/index.vue

+ 3 - 2
pagesHome/order/detail.vue

@@ -125,10 +125,11 @@
 					<text>库存{{specsInfo.num||0}}</text>
 				</view>
 				<view class="btn">
-					<text @click="toBuy(type)" :class="{ 'button': specsInfo._id&&specsInfo.can_group=='0'}">
+					<text @click="toBuy(type)" :class="{ 'button': specsInfo._id&&specsInfo.can_group=='0'&&type=='1'}">
 						{{type=='0'?'加入购物车':'立即购买'}}
 					</text>
-					<text v-if="specsInfo._id&&specsInfo.can_group=='0'" @click="toGroup" class="button2">参团</text>
+					<text v-if="specsInfo._id&&specsInfo.can_group=='0'&&type=='1'" @click="toGroup"
+						class="button2">参团</text>
 				</view>
 			</view>
 		</uni-popup>

+ 9 - 3
pagesMy/order/index.vue

@@ -35,9 +35,12 @@
 													{{tags.name}}
 												</view>
 												<view class="goodsother">
-													<view class="price">
+													<view v-if="item.type=='0'" class="price">
 														¥{{tags.sell_money}}
 													</view>
+													<view v-else class="price">
+														¥{{tags.group_sell_money}}
+													</view>
 													<view class="num">
 														×{{tags.buy_num}}
 													</view>
@@ -87,8 +90,11 @@
 													{{tag.name}}
 												</view>
 												<view class="goodsother">
-													<view class="price">
-														¥{{tag.sell_money}}
+													<view v-if="item.type=='0'" class="price">
+														¥{{tags.sell_money}}
+													</view>
+													<view v-else class="price">
+														¥{{tags.group_sell_money}}
 													</view>
 													<view class="num">
 														×{{tag.buy_num}}