Explorar o código

【Mod】体验优化

liuxiangxin hai 6 meses
pai
achega
57a2798132
Modificáronse 2 ficheiros con 12 adicións e 8 borrados
  1. 6 4
      pages/coupon/active.vue
  2. 6 4
      pages/product/index.vue

+ 6 - 4
pages/coupon/active.vue

@@ -112,10 +112,12 @@
 						// 列表大于2.显示
 						if( re.data.product_list.length <= 2 ) this.show_more_product = true;
 					}else{
-						uni.showModal({
-							content:re.msg,
-							showCancel:false,
-						})
+						if( re.code != 'no_login' ){
+							uni.showModal({
+								content:re.msg,
+								showCancel:false,
+							})
+						}
 					}
 				});		
 			}else{

+ 6 - 4
pages/product/index.vue

@@ -303,10 +303,12 @@
 						//设置默认sku
 						this.sku_id = 0;
 					}else{
-						uni.showModal({
-							content:re.msg,
-							showCancel:false,
-						})
+						if( re.code != 'no_login' ){
+							uni.showModal({
+								content:re.msg,
+								showCancel:false,
+							})
+						}
 					}
 				});		
 			};