Commit 1352d7dc1aced5a059ae98ccda73c7660901fa68

Authored by vking
1 parent 4ff18758

taocan

Showing 2 changed files with 10 additions and 1 deletions
... ... @@ -23,6 +23,7 @@ App({
shareTicket:"",
isAdmin:false,//是否运营人员
location:null,//人的位置信息
meListType:'',//订单页面标识
onLaunch: async function (opt) {
if(wx.getLogManager){
const logger =wx.getLogManager()
... ...
... ... @@ -50,6 +50,8 @@ Page({
*/
onShow: function () {
PubSub.emit('custom-tab-bar')
console.log('getApp().meListType',getApp().meListType)
if(!getApp().meListType) getApp().meListType=defTabType
if(this.data.list[this.tabType].length<1 || getApp().meListType!=this.tabType){
if(getApp().meListType!=this.tabType) {
if (getApp().meListType) {
... ... @@ -60,7 +62,7 @@ Page({
}
}
})
getApp().meListType = '';
//getApp().meListType = '';
} else {
this.getListData();
}
... ... @@ -132,13 +134,17 @@ Page({
})
return dlist;
},
/*
switchTab(e) {
this.tabType=util.attr(e, 'index')
getApp().meListType=this.tabType
this.setData({
tabType: this.tabType,
})
this.getListData();
console.log('getApp().meListType',getApp().meListType)
},
*/
userinfo(e) {
let id = e.target.dataset.id;
let type = e.target.dataset.type;
... ... @@ -178,6 +184,8 @@ Page({
hasMore:false
})
this.getListData()
getApp().meListType=this.tabType
console.log('getApp().meListType',getApp().meListType)
},
/**
* 页面上拉触底事件的处理函数
... ...