Commit 9c0ca7e1a6d5c43b1e1a8e64b2de974ffed10fd2

Authored by 泉州测试
1 parent 7a7bdb5c

OA单普通商品时间限购

pages/goods/goodsInfo/goodsInfo.js
@@ -33,6 +33,8 @@ Page({ @@ -33,6 +33,8 @@ Page({
33 iurl: o.imghost, 33 iurl: o.imghost,
34 defaultAvatar: o.resourceUrl + "/static/images/user68.jpg", 34 defaultAvatar: o.resourceUrl + "/static/images/user68.jpg",
35 35
  36 + viplimited_timetype: 0,
  37 +
36 data: null, 38 data: null,
37 content: "", //商品详情 39 content: "", //商品详情
38 comments: null, //商品评论 40 comments: null, //商品评论
@@ -740,7 +742,8 @@ Page({ @@ -740,7 +742,8 @@ Page({
740 i.get("/api/weshop/goods/get/" + o.stoid + "/" + ee.data.gid, { 742 i.get("/api/weshop/goods/get/" + o.stoid + "/" + ee.data.gid, {
741 failRollback: !0, 743 failRollback: !0,
742 success: function (t) { 744 success: function (t) {
743 - console.log(t); 745 +
  746 + ee.data.viplimited_timetype = t.data.data.viplimited_timetype;
744 if (t.data.code == 0) { 747 if (t.data.code == 0) {
745 if (t.data.data.is_on_sale != 1) { 748 if (t.data.data.is_on_sale != 1) {
746 wx.showModal({ 749 wx.showModal({
@@ -3720,7 +3723,8 @@ Page({ @@ -3720,7 +3723,8 @@ Page({
3720 data: { 3723 data: {
3721 store_id: os.stoid, 3724 store_id: os.stoid,
3722 user_id: user_id, 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 success: function (t) { 3729 success: function (t) {
3726 if (t.data.code == 0) { 3730 if (t.data.code == 0) {