Commit 9c0ca7e1a6d5c43b1e1a8e64b2de974ffed10fd2
1 parent
7a7bdb5c
OA单普通商品时间限购
Showing
1 changed file
with
6 additions
and
2 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -33,6 +33,8 @@ Page({ |
33 | 33 | iurl: o.imghost, |
34 | 34 | defaultAvatar: o.resourceUrl + "/static/images/user68.jpg", |
35 | 35 | |
36 | + viplimited_timetype: 0, | |
37 | + | |
36 | 38 | data: null, |
37 | 39 | content: "", //商品详情 |
38 | 40 | comments: null, //商品评论 |
... | ... | @@ -740,7 +742,8 @@ Page({ |
740 | 742 | i.get("/api/weshop/goods/get/" + o.stoid + "/" + ee.data.gid, { |
741 | 743 | failRollback: !0, |
742 | 744 | success: function (t) { |
743 | - console.log(t); | |
745 | + | |
746 | + ee.data.viplimited_timetype = t.data.data.viplimited_timetype; | |
744 | 747 | if (t.data.code == 0) { |
745 | 748 | if (t.data.data.is_on_sale != 1) { |
746 | 749 | wx.showModal({ |
... | ... | @@ -3720,7 +3723,8 @@ Page({ |
3720 | 3723 | data: { |
3721 | 3724 | store_id: os.stoid, |
3722 | 3725 | user_id: user_id, |
3723 | - goods_id: gd.goods_id | |
3726 | + goods_id: gd.goods_id, | |
3727 | + timetype: th.data.viplimited_timetype | |
3724 | 3728 | }, |
3725 | 3729 | success: function (t) { |
3726 | 3730 | if (t.data.code == 0) { | ... | ... |