diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 4b9a020..95d7fa9 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -28,7 +28,7 @@ Page({ color_type: 0, //线条控制 color_type_one: 0, color_type_two: 1, - + is_no_plus:1, gid: "", stoid: o.stoid, url: o.url, @@ -359,6 +359,22 @@ Page({ th.data.c_guide_id = c_guide_id; } + //调用接口判断商家plus有没有过期 + i.promiseGet("/store/storemoduleendtime/page?store_id=" + os.stoid + "&type=3", {}).then(res => { + if (res.data.code == 0) { + var arr = res.data.data.pageData; + if (arr.length > 0) { + var item = arr[0]; + if (item.is_sy == 0) { + var now = Date.parse(new Date()); now = now / 1000; + if (item.end_time < now) { + th.setData({ is_no_plus: 0 }) + } + } + } + } + }) + getApp().getConfig(function (e) { ee.setData({sto_sele_name_1: e.store_name}) }) @@ -3799,6 +3815,20 @@ Page({ return param < 10 ? '0' + param : param; }, + // 显示拼单规则 + showRules: function() { + this.setData({ + showRules: true, + }); + }, + + // 关闭拼单规则 + closeRules: function() { + this.setData({ + showRules: false, + }); + }, + //----倒计时函数----- countDown(time, prom_st) { if (!this.data.is_timer) return false; diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index e6ac7d3..fa7be93 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -6,6 +6,8 @@ + + 规则 {{item.name}} @@ -324,7 +326,7 @@ - + @@ -336,7 +338,7 @@ - + @@ -1502,6 +1504,7 @@ + @@ -1690,6 +1693,28 @@ + + 规则详情 + + + + 活动时间 + {{filters.format_time(prom_act.start_time,1)}} 至 {{filters.format_time(prom_act.end_time,1)}} + + + + 活动内容 + + {{prom_act.remark}} + + + + + + 我知道了 + + + - +