Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
bf297a84
Commit
bf297a84
authored
Feb 01, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时活动倒计时失效问题修改
parent
7a847c25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
static/nativeComponents/TimeLimitedDiscount/index.js
+10
-7
No files found.
static/nativeComponents/TimeLimitedDiscount/index.js
View file @
bf297a84
...
@@ -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
();
// 重新执行定时器等操作
// 重新执行定时器等操作
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment