Browse Source

完善优惠券打包测试

qukaidi 4 năm trước cách đây
mục cha
commit
cec3836eac
2 tập tin đã thay đổi với 11 bổ sung4 xóa
  1. 9 2
      luntai/rukutongji_body.html
  2. 2 2
      luntai/sign_address.html

+ 9 - 2
luntai/rukutongji_body.html

@@ -143,7 +143,8 @@
 										<div style="font-size: 0.25rem;color: #888;">失效时间:{{item.expireTime}}</div>
 									</div>
 									<div style="margin: auto 0;padding-right: 0.1rem;">
-										<van-checkbox v-model="item.checked"></van-checkbox>
+										<!-- <van-checkbox v-model="item.checked"></van-checkbox> -->
+										<van-icon size="28px" name="checked" v-if="item.checked" color="#1989fa" />
 									</div>
 								</div>
 								<div class="flex"
@@ -246,7 +247,6 @@
 						});
 						return
 					}
-					this.showPopup = true
 					var data = {
 						"storeId": this.userid,
 						"brand": item.brand,
@@ -263,6 +263,13 @@
 					this.$post(url, data, function (ret) {
 						if (ret.code == 0) {
 							_this.couponList = ret.data
+							if (_this.couponList.length == 0) {
+								api.toast({
+									msg: '暂无优惠券',
+								});
+							} else {
+								_this.showPopup = true
+							}
 						}
 					})
 				},

+ 2 - 2
luntai/sign_address.html

@@ -146,10 +146,10 @@
                         }
                     this.$post(url, data, function (ret) {
                         if (ret.code == 0) {
-                            if (ret.list.length != 0) {
+                            if (ret.list.length != 0&&ret.list[0].signLv!=null) {
                                 _this.valueLv = ret.list[0].signLv;
                                 _this.numTask = ret.list[0].numTask;
-                                _this.titleStyle = "#969799"
+                                // _this.titleStyle = "#969799"
                                 _this.SingLvStatus = true
                                 _this.oldvalueLv = ret.list[0].signLv;
                             } else {