Commit d41d9e0f2ae6a2770f340a5f2898c8c78f9a5ebf

Authored by yvan.ni
1 parent dec7e1b6

多活动的优化

Showing 1 changed file with 2 additions and 2 deletions
utils/more_cx.js
... ... @@ -457,7 +457,7 @@ module.exports = {
457 457 }else{
458 458 //-- 获取已经购买了多少件 --
459 459 var url = "/api/weshop/ordergoods/getUserBuyPromNum?store_id="+os.stoid+"&user_id="
460   - +getApp().globalData.user_id+"&prom_type=3&prom_id="+zh_pro0.id;
  460 + +getApp().globalData.user_id+"&prom_type=3&prom_id="+aid;
461 461 await getApp().request.promiseGet(url, {}).then(rh => {
462 462 if(rh.data.code==0){
463 463 item_act_map.buyed=rh.data.data.userbuynum;
... ... @@ -645,7 +645,7 @@ module.exports = {
645 645 }
646 646  
647 647 //-- 如果是要控制数量的时候,也就是全选的时候,或者加减号的时候 --
648   - if(is_need_ck_num){
  648 + if(is_need_ck_num && !ck_prom_type.is_no_ok){
649 649 var t_pid=ck_prom_type.prom_id;
650 650 switch (ck_prom_type.prom_type){
651 651 case 3:
... ...