ソースを参照

修改商品规格后保持选中

junyuanz 4 年 前
コミット
6034c34151
共有2 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 1 1
      pages/areacart/areacart.js
  2. 1 1
      pages/centcart/centcart.js

+ 1 - 1
pages/areacart/areacart.js

@@ -662,7 +662,7 @@ Page({
 		console.log(this.data.selectProject)
 		console.log(this.data.selectProjectItem)
 		itemdata['count']=1;
-		itemdata['IsBuy']=false;
+		itemdata['IsBuy']=this.data.cartList[itemindex].IsBuy;
 		itemdata['movex']=0;
 		itemdata['overtype']=true;
 		that.setData({

+ 1 - 1
pages/centcart/centcart.js

@@ -697,7 +697,7 @@ Page({
   		console.log(this.data.selectProject)
   		console.log(this.data.selectProjectItem)
   		itemdata['count']=1;
-  		itemdata['IsBuy']=false;
+  		itemdata['IsBuy']=this.data.cartList[itemindex].IsBuy;
   		itemdata['movex']=0;
   		itemdata['overtype']=true;
   		that.setData({