Commit 2dbb9868fb92ed8c655e1a2061f37f4baf0e9996

Authored by yvan.ni
1 parent 705201a2

cart2的优化

packageE/pages/cart/cart2/cart2.js
... ... @@ -1823,7 +1823,7 @@ Page({
1823 1823 for (var ii in ob) {
1824 1824 var item_map = ob[ii];
1825 1825 //if (item_map.bs == undefined || item_map.bs == null) {
1826   - if (item_map.hasOwnProperty('cy_cx')) {
  1826 + if (!item_map.hasOwnProperty('cy_cx')) {
1827 1827 //等待,获取一下优惠活动的信息
1828 1828 await getApp().request.promiseGet("/api/weshop/goods/getDiscount", {
1829 1829 data: {
... ... @@ -5958,6 +5958,8 @@ Page({
5958 5958 ob.goods_num = item.goods_num;
5959 5959 ob.is_bz = prom.is_bz;
5960 5960 ob.is_xz_yh = prom.is_xz_yh;
  5961 + ob.is_order_yh = prom.is_order_yh;
  5962 + ob.is_post_temp = prom.is_post_temp;
5961 5963 ob.goods = new Array();
5962 5964 ob.goods.push({ goods_id: item.goods_id, goods_price: item.goods_price, goods_num: item.goods_num });
5963 5965 var obj = {};
... ...