Commit bf297a84 by 李嘉林

限时活动倒计时失效问题修改

parent 7a847c25
...@@ -233,18 +233,21 @@ const componentOptions = { ...@@ -233,18 +233,21 @@ const componentOptions = {
type: 1, type: 1,
link: `/order/orderConfirm?productGoodsMixId=${terminalGoodsMixId}&productGoodsId=${terminalGoodsId}&goodsId=${goodsId}&qty=1&goodsString=null` link: `/order/orderConfirm?productGoodsMixId=${terminalGoodsMixId}&productGoodsId=${terminalGoodsId}&goodsId=${goodsId}&qty=1&goodsString=null`
}); });
}
}, },
// 组件生命周期 getData() {
lifetimes: {
created() {},
attached() {
let { dimension } = this.data.datas.componentData; let { dimension } = this.data.datas.componentData;
if (dimension == 0) { if (dimension == 0) {
this.init(); this.init();
} else if (dimension == 1) { } else if (dimension == 1) {
this.initArticityList(); this.initArticityList();
} }
}
},
// 组件生命周期
lifetimes: {
created() {},
attached() {
this.getData();
}, },
ready() {}, ready() {},
moved() {}, moved() {},
...@@ -256,11 +259,11 @@ const componentOptions = { ...@@ -256,11 +259,11 @@ const componentOptions = {
// 页面被展示 // 页面被展示
show() { show() {
const { isPageHidden } = this.data; const { isPageHidden } = this.data;
// show事件发生前,页面不是处于隐藏状态时 // show事件发生前,页面不是处于隐藏状态时
if (!isPageHidden) { if (!isPageHidden) {
return; return;
} }
this.getData();
// 重新执行定时器等操作 // 重新执行定时器等操作
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment