Commit 17e31709 authored by 任建锋's avatar 任建锋

--

parent d3969621
...@@ -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
...@@ -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) {
......
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