Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
17e31709
Commit
17e31709
authored
Dec 25, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
d3969621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
comtaskpanel.js
taobao_mini/client/components/comtaskpanel/comtaskpanel.js
+9
-5
pageindexpage.js
taobao_mini/client/pages/pageindexpage/pageindexpage.js
+4
-4
No files found.
taobao_mini/client/components/comtaskpanel/comtaskpanel.js
View file @
17e31709
...
@@ -7,6 +7,8 @@ const { tbcc } = app;
...
@@ -7,6 +7,8 @@ const { tbcc } = app;
import
API
from
'../../api'
;
import
API
from
'../../api'
;
import
events
from
'../../events'
;
import
events
from
'../../events'
;
const
{
commonToast
,
getAuthUserInfo
,
navigateToOutside
,
favorShop
}
=
tbcc
.
tb
;
const
{
commonToast
,
getAuthUserInfo
,
navigateToOutside
,
favorShop
}
=
tbcc
.
tb
;
let
ON_SHOW
;
Component
({
Component
({
props
:
{},
props
:
{},
data
:
{
data
:
{
...
@@ -209,10 +211,12 @@ Component({
...
@@ -209,10 +211,12 @@ Component({
resList
:
resList
,
resList
:
resList
,
TaskList
:
DataCenter
.
TaskList
TaskList
:
DataCenter
.
TaskList
});
});
if
(
ON_SHOW
){
events
.
removeListener
(
"ON_SHOW"
,
ON_SHOW
)
}
events
.
on
(
"ON_SHOW"
,
ON_SHOW
=
(
state
)
=>
{
console
.
log
(
"刷新任务列表"
)
this
.
updateData
()
})
},
},
onShow
()
{
console
.
log
(
"弹窗展示 onShow"
)
// 页面显示
},
});
});
\ No newline at end of file
taobao_mini/client/pages/pageindexpage/pageindexpage.js
View file @
17e31709
...
@@ -55,11 +55,11 @@ Page({
...
@@ -55,11 +55,11 @@ Page({
},
},
doShare
()
{
my
.
showSharePanel
();
},
doShare
()
{
my
.
showSharePanel
();
},
onShow
()
{
onShow
()
{
console
.
log
(
"弹窗展示 onShow"
)
// 页面显示
// 页面显示
this
.
setData
({
// this.setData({
showWinLists
:[]
// showWinLists:[]
})
// })
events
.
emit
(
"ON_SHOW"
)
this
.
updateData
()
this
.
updateData
()
},
},
onLoad
(
query
)
{
onLoad
(
query
)
{
...
...
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