Commit 6ebe430d8af496a8b5e7ad588784110fdcb16792
1 parent
fd26792b
ppt测试, 秒杀多门店的优化
Showing
1 changed file
with
24 additions
and
0 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -3223,6 +3223,7 @@ Page({ | @@ -3223,6 +3223,7 @@ Page({ | ||
3223 | //要把不匹配还原 | 3223 | //要把不匹配还原 |
3224 | if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | 3224 | if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ |
3225 | th.data.def_pick_store.is_no_dis=0; | 3225 | th.data.def_pick_store.is_no_dis=0; |
3226 | + th.data.def_pick_store.is_no_dis_nor=0; | ||
3226 | th.setData({def_pick_store:th.data.def_pick_store}) | 3227 | th.setData({def_pick_store:th.data.def_pick_store}) |
3227 | } | 3228 | } |
3228 | 3229 | ||
@@ -5100,6 +5101,13 @@ Page({ | @@ -5100,6 +5101,13 @@ Page({ | ||
5100 | //如果是拼单活动的普通购买 | 5101 | //如果是拼单活动的普通购买 |
5101 | if (ind == 1) { | 5102 | if (ind == 1) { |
5102 | 5103 | ||
5104 | + | ||
5105 | + //要把不匹配还原 | ||
5106 | + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
5107 | + th.data.def_pick_store.is_no_dis_nor=0; | ||
5108 | + th.setData({def_pick_store:th.data.def_pick_store}) | ||
5109 | + } | ||
5110 | + | ||
5103 | if (!th.data.is_normal) { | 5111 | if (!th.data.is_normal) { |
5104 | th.data.g_buy_num = new Map(); | 5112 | th.data.g_buy_num = new Map(); |
5105 | } | 5113 | } |
@@ -7972,6 +7980,13 @@ Page({ | @@ -7972,6 +7980,13 @@ Page({ | ||
7972 | 7980 | ||
7973 | this.data.g_buy_num = new Map(); | 7981 | this.data.g_buy_num = new Map(); |
7974 | var th = this; | 7982 | var th = this; |
7983 | + | ||
7984 | + //要把不匹配还原 | ||
7985 | + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
7986 | + th.data.def_pick_store.is_no_dis_nor=0; | ||
7987 | + th.setData({def_pick_store:th.data.def_pick_store}) | ||
7988 | + } | ||
7989 | + | ||
7975 | if (th.data.sku_g_pt) { | 7990 | if (th.data.sku_g_pt) { |
7976 | 7991 | ||
7977 | //要同步指定门店 | 7992 | //要同步指定门店 |
@@ -8515,7 +8530,16 @@ Page({ | @@ -8515,7 +8530,16 @@ Page({ | ||
8515 | open_ind_store: 5, | 8530 | open_ind_store: 5, |
8516 | }); //拼团直接给4 | 8531 | }); //拼团直接给4 |
8517 | 8532 | ||
8533 | + //要把不匹配还原 | ||
8534 | + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
8535 | + th.data.def_pick_store.is_no_dis_nor=0; | ||
8536 | + th.setData({def_pick_store:th.data.def_pick_store}) | ||
8537 | + } | ||
8538 | + | ||
8518 | if (th.data.sku_g_pt) { | 8539 | if (th.data.sku_g_pt) { |
8540 | + //要同步指定门店 | ||
8541 | + th.set_sele_g(th.data.sku_g_pt); | ||
8542 | + | ||
8519 | this.get_sto(1) | 8543 | this.get_sto(1) |
8520 | this.setData({ | 8544 | this.setData({ |
8521 | openSpecModal_flash_normal: 1 | 8545 | openSpecModal_flash_normal: 1 |