twt 1 anno fa
parent
commit
ce4028fbc8
2 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 3 0
      pages/index/couponShare.vue
  2. 3 3
      pages/index/discountCardDetail.vue

+ 3 - 0
pages/index/couponShare.vue

@@ -183,6 +183,9 @@
 							 icon:'none',
 							 duration: 3000
 						});
+						uni.switchTab({
+							url:'../index/index'
+						})
 					}
 					//this.getData();
 					

+ 3 - 3
pages/index/discountCardDetail.vue

@@ -36,15 +36,15 @@
 								<image src="../../static/img/icon_youhui_red.png" mode="" class="redPoint"></image>
 								<view class="title">适用门店</view>
 						</view>
-							<view @click="spShopS" style="color: #666666;font-size: 24rpx;line-height: 24rpx;display: flex;">
+							<view v-if="detail.shopNames" @click="spShopS" style="color: #666666;font-size: 24rpx;line-height: 24rpx;display: flex;">
 							{{detail.shopNames.split(',').length}}家门店通用
 							<image src="../../static/img/little_rightArrow.png" mode="" style="width: 24rpx;height: 24rpx;"></image>
 						    </view>
 					</view> 
 				    
-					<!-- <view v-for="(v,index) in detail.shopNames.split(',')" v-if="index<5">
+					 <view v-for="(v,index) in detail.shopNames.split(',')" v-if="index<5">
 						<view class="content">{{v}}</view>
-					</view> -->
+					</view> 
 
 				
 			</view>