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

--

parent d3969621
......@@ -7,6 +7,8 @@ const { tbcc } = app;
import API from '../../api';
import events from '../../events';
const { commonToast, getAuthUserInfo, navigateToOutside,favorShop} = tbcc.tb;
let ON_SHOW;
Component({
props: {},
data: {
......@@ -209,10 +211,12 @@ Component({
resList: resList,
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({
},
doShare() { my.showSharePanel(); },
onShow() {
console.log("弹窗展示 onShow")
// 页面显示
this.setData({
showWinLists:[]
})
// this.setData({
// showWinLists:[]
// })
events.emit("ON_SHOW")
this.updateData()
},
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