Commit 738f3edaa244003e9ce067280dc336c439c7171e
1 parent
ce921db4
虚拟商品,在购买的时候的优化
Showing
2 changed files
with
8 additions
and
2 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
@@ -3200,8 +3200,12 @@ Page({ | @@ -3200,8 +3200,12 @@ Page({ | ||
3200 | for (let i in e.data.data.pageData) { | 3200 | for (let i in e.data.data.pageData) { |
3201 | let item = e.data.data.pageData[i]; | 3201 | let item = e.data.data.pageData[i]; |
3202 | if (item.category_id > 0) { | 3202 | if (item.category_id > 0) { |
3203 | - his_cate_num = 1; break; | 3203 | + his_cate_num = 1; |
3204 | } | 3204 | } |
3205 | + if(getApp().is_virtual(th.data.sele_g) && th.data.sales_rules >= 2){ | ||
3206 | + e.data.data.pageData[i].CanOutQty=100000; | ||
3207 | + } | ||
3208 | + | ||
3205 | } | 3209 | } |
3206 | e.his_cate_num = his_cate_num; | 3210 | e.his_cate_num = his_cate_num; |
3207 | 3211 |
pages/goods/goodsInfo/goodsInfo.js
@@ -3666,7 +3666,9 @@ Page({ | @@ -3666,7 +3666,9 @@ Page({ | ||
3666 | let item = e.data.data.pageData[i]; | 3666 | let item = e.data.data.pageData[i]; |
3667 | if (item.category_id > 0) { | 3667 | if (item.category_id > 0) { |
3668 | his_cate_num = 1; | 3668 | his_cate_num = 1; |
3669 | - break; | 3669 | + } |
3670 | + if (getApp().is_virtual(th.data.sele_g) && th.data.sales_rules >= 2){ | ||
3671 | + e.data.data.pageData[i].CanOutQty=100000; | ||
3670 | } | 3672 | } |
3671 | } | 3673 | } |
3672 | e.his_cate_num = his_cate_num; | 3674 | e.his_cate_num = his_cate_num; |