浏览代码

Merge branch 'master' of http://git.cc-lotus.info/pointToNetwork/point-app

guhongwei 2 年之前
父节点
当前提交
5967d2be3a
共有 2 个文件被更改,包括 12 次插入12 次删除
  1. 6 6
      pagesHome/market/search.vue
  2. 6 6
      pagesHome/shop/index.vue

+ 6 - 6
pagesHome/market/search.vue

@@ -241,20 +241,20 @@
 					that.$set(that, `shang`, '0');
 					that.$set(that, `xia`, '-1');
 				}
-				let key = '';
 				let value;
 				if (index != 0) {
 					value = that.shang == '0' ? that.xia : that.shang;
 				}
 				if (index == 1) {
-					key = 'sell_num';
+					that.$set(that, `searchInfo`, {})
+					that.$set(that.searchInfo, `sell_num`, value);
 				} else if (index == 2) {
-					key = 'sell_money';
+					that.$set(that, `searchInfo`, {})
+					that.$set(that.searchInfo, `sell_money`, value);
 				} else if (index == 3) {
-					key = 'view_num';
+					that.$set(that, `searchInfo`, {})
+					that.$set(that.searchInfo, `view_num`, value);
 				}
-				that.$set(that.searchInfo, `key`, key);
-				that.$set(that.searchInfo, `value`, value);
 				that.clearPage();
 				that.search();
 			},

+ 6 - 6
pagesHome/shop/index.vue

@@ -380,20 +380,20 @@
 					that.$set(that, `shang`, '0');
 					that.$set(that, `xia`, '-1');
 				}
-				let key = '';
 				let value;
 				if (index != 0) {
 					value = that.shang == '0' ? that.xia : that.shang;
 				}
 				if (index == 1) {
-					key = 'sell_num';
+					that.$set(that, `searchInfo`, {})
+					that.$set(that.searchInfo, `sell_num`, value);
 				} else if (index == 2) {
-					key = 'sell_money';
+					that.$set(that, `searchInfo`, {})
+					that.$set(that.searchInfo, `sell_money`, value);
 				} else if (index == 3) {
-					key = 'view_num';
+					that.$set(that, `searchInfo`, {})
+					that.$set(that.searchInfo, `view_num`, value);
 				}
-				that.$set(that.searchInfo, `key`, key);
-				that.$set(that.searchInfo, `value`, value);
 				that.clearPage();
 				that.searchAll();
 			},