diff --git a/components/diy_seckill/diy_seckill.js b/components/diy_seckill/diy_seckill.js
index da941e7..49cea03 100644
--- a/components/diy_seckill/diy_seckill.js
+++ b/components/diy_seckill/diy_seckill.js
@@ -76,9 +76,12 @@ Component({
})
goodsidlist = ut.sub_last(goodsidlist);
+ var user_id=getApp().globalData.user_id;
+ if(!user_id){ user_id=0;}
+
//--调用接口,读取秒杀--
app.request.promiseGet("/api/ms/flash_sale/getGoodsList?store_id="
- + os.stoid + "&goodsidlist=" + goodsidlist, {}).then(res => {
+ + os.stoid + "&goodsidlist=" + goodsidlist+"&user_id"+user_id, {}).then(res => {
console.log(res);
//如果秒杀的数组为空的时候
var goodslist = res.data.data;
@@ -118,6 +121,7 @@ Component({
g_id.forEach(function (val, ind) {
goodslist.forEach(function (vy, indy) {
if (val.goodsid == vy.goods_id) {
+ if(!vy.id) vy.id=vy.prom_id;
all_array.push(vy);
}
})
diff --git a/packageC/pages/presell/goodsInfo/goodsInfo.js b/packageC/pages/presell/goodsInfo/goodsInfo.js
index 76dbd56..8fdfb8f 100644
--- a/packageC/pages/presell/goodsInfo/goodsInfo.js
+++ b/packageC/pages/presell/goodsInfo/goodsInfo.js
@@ -3936,7 +3936,7 @@ Page({
}
var userInfo = getApp().globalData.userInfo;
- var pre_data = {store_id: os.stoid, is_end: 0, timetype: 1, isuse: 1, prom_type: 8, prom_id: presell_id};
+ var pre_data = {store_id: os.stoid, is_end: 0, timetype: 1, isuse: 1, prom_type: 8, prom_id: presell_id,pageSize:1000};
if (userInfo) {
pre_data.user_id = userInfo.user_id;
}
diff --git a/pages/cart/cart2/cart2.wxml b/pages/cart/cart2/cart2.wxml
index f4be337..80fc6f4 100644
--- a/pages/cart/cart2/cart2.wxml
+++ b/pages/cart/cart2/cart2.wxml
@@ -78,8 +78,11 @@
-
+
+ 组合购
+
+
@@ -89,15 +92,9 @@
{{filters.show_gui_ge(items.goods_spec,items.goods_color)}}
-
-
-
-
-
-
¥{{filters.toFix(items.goods_price,2)}}
diff --git a/pages/cart/cart2/cart2.wxss b/pages/cart/cart2/cart2.wxss
index e4fe5ad..fd3dca2 100644
--- a/pages/cart/cart2/cart2.wxss
+++ b/pages/cart/cart2/cart2.wxss
@@ -19,9 +19,6 @@
box-shadow: 16rpx 0px 12px #e7e9eb;
}
-
-
-
page {
/* background-color: #FAFAFA; */
background-color: #F0F0F0;
@@ -995,3 +992,16 @@ margin-left: 20rpx;
top:36rpx
}
+.zuhe {
+ width: 140rpx;
+ text-align: center;
+ height:40rpx;
+ position: absolute;
+ top: 15rpx;
+ left: -37rpx;
+ transform: rotate(-45deg);
+ background-color: rgb(255,0,0);
+ font-size:22rpx;
+ color: #fff;
+ line-height: 37rpx;
+}
diff --git a/pages/cart/cart2/zh_calculate.js b/pages/cart/cart2/zh_calculate.js
index 3b90dd4..f42189f 100644
--- a/pages/cart/cart2/zh_calculate.js
+++ b/pages/cart/cart2/zh_calculate.js
@@ -193,6 +193,11 @@ module.exports = {
new_g.prom_type = 0;
new_g.prom_id = 0;
goods.push(new_g);
+
+ //如果商品的数量已经为空了
+ if(goods[idx].goods_num<=0){
+ goods.splice(idx,1);
+ }
}
}
diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml
index 5aecce7..7bbc713 100644
--- a/pages/goods/goodsInfo/goodsInfo.wxml
+++ b/pages/goods/goodsInfo/goodsInfo.wxml
@@ -289,8 +289,7 @@
- ¥
- {{g_filters.get_card_price(data,card_list,0)}}
+ ¥{{g_filters.get_card_price(data,card_list,0)}}
@@ -308,10 +307,7 @@
成为{{g_filters.get_card_price(data,card_list,1)}}立
-
- 省{{filters.toFix(data.shop_price-g_filters.get_card_price(data,card_list,0),2)}}
-
- 元
+ 省{{filters.toFix(data.shop_price-g_filters.get_card_price(data,card_list,0),2)}}元
开通会员 尽享更多优惠
@@ -355,8 +351,8 @@
- 销量:{{sele_g.sales_sum}}件
- 折扣:{{sele_g.disc}}折
+ 销量:{{data.sales_sum}}件
+ 折扣:{{data.disc}}折
{{categories3[0].num}}人评价
@@ -420,10 +416,7 @@
选择门店
-
- 更多门店
-
-
+ 更多门店
@@ -1113,10 +1106,7 @@
选择门店
-
- 更多门店
-
-
+ 更多门店
(库存不足)
@@ -1384,10 +1374,7 @@
-
- {{choice_sort_store==0?'更多门店':'返回'}}
-
-
+ {{choice_sort_store==0?'更多门店':'返回'}}
diff --git a/pages/goods/goodsInfo/goodsInfo.wxss b/pages/goods/goodsInfo/goodsInfo.wxss
index 8cb1bfc..9b84b77 100644
--- a/pages/goods/goodsInfo/goodsInfo.wxss
+++ b/pages/goods/goodsInfo/goodsInfo.wxss
@@ -2690,7 +2690,7 @@ border-radius: 55rpx;
}
.carde_frame{
height: 50rpx;
- line-height: 18rpx
+ /* line-height: 18rpx */
}
button.custom-service { line-height: normal; border: 0;}
diff --git a/pages/user/order_list/order_list.js b/pages/user/order_list/order_list.js
index 4ade40e..19ec610 100644
--- a/pages/user/order_list/order_list.js
+++ b/pages/user/order_list/order_list.js
@@ -1205,7 +1205,7 @@ Page({
b_item.prom_type = 7;
b_item.prom_id = res.data.data.id;
good.prom_type = 7;
- good.prom_id = prom.b_item.prom_id;
+ good.prom_id = b_item.prom_id;
}
}