Commit ce6e93ea36b3b4db1f64110d2535fcbab649728d

Authored by yvan.ni
1 parent 738f3eda

普通商品购买的时候的优化

packageE/pages/cart/cart2/cart2.js
... ... @@ -4067,7 +4067,7 @@ Page({
4067 4067 var mo_num=getApp().get_limit_qty(th.data.bn_goods,act.length);
4068 4068 var steep=getApp().get_limit_qty(th.data.bn_goods,act.length,1);
4069 4069  
4070   - if ([0,3,5,7,10].indexOf(goods.prom_type)>=-1){
  4070 + if ([0,3,5,7,10].indexOf(goods.prom_type)>-1){
4071 4071 if(mo_num>goods.goods_num){
4072 4072 getApp().confirmBox(goods.goods_name + "的未到达起订数量");
4073 4073 th.data.is_summit_ing = 0;
... ... @@ -4450,7 +4450,7 @@ Page({
4450 4450 var mo_num=getApp().get_limit_qty(g_item,act.length);
4451 4451 var steep=getApp().get_limit_qty(g_item,act.length,1);
4452 4452  
4453   - if ([0,3,5,7,10].indexOf(goods.prom_type)>=-1){
  4453 + if ([0,3,5,7,10].indexOf(goods.prom_type)>-1){
4454 4454 if(mo_num>goods.goods_num){
4455 4455 getApp().confirmBox(goods.goods_name + "的未到达起订数量");
4456 4456 th.data.is_summit_ing = 0;
... ... @@ -4465,7 +4465,7 @@ Page({
4465 4465 }
4466 4466  
4467 4467 //如果不立即购买或者秒杀,如果是线下库存购买的时候
4468   - if ([0,3,5,7,10].indexOf(goods.prom_type)>=-1 && th.data.sales_rules >= 2 && !g_item.whsle_id && !getApp().is_virtual(g_item) ) {
  4468 + if ([0,3,5,7,10].indexOf(goods.prom_type)>-1 && th.data.sales_rules >= 2 && !g_item.whsle_id && !getApp().is_virtual(g_item) ) {
4469 4469 var isok = 1;
4470 4470 await th.check_store_num(goods.goods_id, t_item.pickup_id, goods.goods_num, function (res) {
4471 4471 isok = res;
... ...