Jelajahi Sumber

测试优化

zhengjinyi 5 tahun lalu
induk
melakukan
5d501e5b25
2 mengubah file dengan 4 tambahan dan 5 penghapusan
  1. 2 2
      common/config/config.js
  2. 2 3
      pages/tabBar/cart/cart.vue

+ 2 - 2
common/config/config.js

@@ -2,9 +2,9 @@ let URL_CONFIG = ""
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
 	// URL_CONFIG = 'http://192.168.1.24:8008'	 //俊俊联调地址
-	URL_CONFIG = 'http://192.168.1.22:8008'	 //裴裴联调地址
+	// URL_CONFIG = 'http://192.168.1.22:8008'	 //裴裴联调地址
 	// URL_CONFIG = 'http://192.168.1.26:8008'	 //超超联调地址
-    // URL_CONFIG = 'https://spi-b.caimei365.com'	 //采美测试地址
+    URL_CONFIG = 'https://spi-b.caimei365.com'	 //采美测试地址
 	// URL_CONFIG = 'https://spi.caimei365.com'
 }else{
     // 生产环境

+ 2 - 3
pages/tabBar/cart/cart.vue

@@ -67,7 +67,7 @@
 									<!--选择商品-->
 									<view class="checkbox-box" @click.stop="ischeckFailure(failure)" v-if="isshowDelbtn">
 										<button class="checkbox iconfont" 
-										:disabled="!isshowDelbtn"
+										:disabled="!isCheckAll"
 										:class="[failure.productsChecked ?'icon-gouxuanl':'icon-weigouxuan']">
 									</button>
 									</view>
@@ -341,7 +341,7 @@
 				})
 				//删除按钮 全选包括失效商品勾选
 				this.failureList.forEach(failureItem=>{
-					failureItem.productsChecked = true;
+					failureItem.productsChecked = !failureItem.productsChecked;
 				})
 			},
 			updateBothCheckBtn() {
@@ -605,7 +605,6 @@
 					return
 				}else{			
 					console.log(this.delGoodsList);
-					debugger
 					this.$util.modal('','确定删除选中的商品吗?','确定','取消',true,() =>{
 						shoppingCartDelete({userID:this.userID,productIDs:this.delGoodsList}).then(response =>{
 							this.$util.msg('删除成功',2000);