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 = {
type
:
1
,
link
:
`/order/orderConfirm?productGoodsMixId=
${
terminalGoodsMixId
}
&productGoodsId=
${
terminalGoodsId
}
&goodsId=
${
goodsId
}
&qty=1&goodsString=null`
});
}
},
// 组件生命周期
lifetimes
:
{
created
()
{},
attached
()
{
},
getData
()
{
let
{
dimension
}
=
this
.
data
.
datas
.
componentData
;
if
(
dimension
==
0
)
{
this
.
init
();
}
else
if
(
dimension
==
1
)
{
this
.
initArticityList
();
}
}
},
// 组件生命周期
lifetimes
:
{
created
()
{},
attached
()
{
this
.
getData
();
},
ready
()
{},
moved
()
{},
...
...
@@ -256,11 +259,11 @@ const componentOptions = {
// 页面被展示
show
()
{
const
{
isPageHidden
}
=
this
.
data
;
// show事件发生前,页面不是处于隐藏状态时
if
(
!
isPageHidden
)
{
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