|
@@ -96,58 +96,52 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
onLoad(e) { |
|
|
onLoad(e) { |
|
|
|
|
|
|
|
|
// this.setData({ |
|
|
|
|
|
// current_scroll: e.id |
|
|
|
|
|
// }); |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
// tt.getStorageSync('mallIndex') || |
|
|
|
|
|
index: 0, |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
onShow() { |
|
|
|
|
|
Http.get({ |
|
|
Http.get({ |
|
|
url: '/mall/subMall?isAll=1', |
|
|
url: '/mall/subMall?isAll=1', |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
shopList: res.data, |
|
|
shopList: res.data, |
|
|
mallTenantId: tt.getStorageSync('mallTenantId') || res.data[0].tenantId |
|
|
|
|
|
|
|
|
// tt.getStorageSync('mallTenantId') || |
|
|
|
|
|
mallTenantId: res.data[0].tenantId |
|
|
}); |
|
|
}); |
|
|
this.getList(this.data.boatFlag, 1); |
|
|
|
|
|
Http.get({ |
|
|
|
|
|
url: config.api.checkUserStatus, |
|
|
|
|
|
data: { |
|
|
|
|
|
token: app.globalData.token |
|
|
|
|
|
} |
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
Http.get({ |
|
|
|
|
|
url: config.api.checkPhoneStatus |
|
|
|
|
|
}).then(res => {}).catch(err => { |
|
|
|
|
|
if (app.globalData.ifCongPh == 1) { |
|
|
|
|
|
app.globalData.skip = 'navigateBack' |
|
|
|
|
|
tt.navigateTo({ |
|
|
|
|
|
url: `/pages/getPhone/getPhone?skipUrl=1`, |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
showBox: true |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
|
|
|
console.log(this.data.shopList, 'list'); |
|
|
|
|
|
|
|
|
if (err.code == 11004) { //未授权抖音 |
|
|
|
|
|
app.globalData.type = 'mo' |
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err, 'err'); |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
onShow() { |
|
|
|
|
|
this.getList(this.data.boatFlag, 1); |
|
|
|
|
|
Http.get({ |
|
|
|
|
|
url: config.api.checkUserStatus, |
|
|
|
|
|
data: { |
|
|
|
|
|
token: app.globalData.token |
|
|
|
|
|
} |
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
Http.get({ |
|
|
|
|
|
url: config.api.checkPhoneStatus |
|
|
|
|
|
}).then(res => {}).catch(err => { |
|
|
|
|
|
if (app.globalData.ifCongPh == 1) { |
|
|
|
|
|
app.globalData.skip = 'navigateBack' |
|
|
tt.navigateTo({ |
|
|
tt.navigateTo({ |
|
|
url: '/pages/getuserinfo/getuserinfo', |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
url: `/pages/getPhone/getPhone?skipUrl=1`, |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
showBox: true |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
if (err.code == 11004) { //未授权抖音 |
|
|
|
|
|
app.globalData.type = 'mo' |
|
|
|
|
|
tt.navigateTo({ |
|
|
|
|
|
url: '/pages/getuserinfo/getuserinfo', |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
ifshowtab: app.globalData.ifshowtab, |
|
|
ifshowtab: app.globalData.ifshowtab, |
|
|
allow_load: true |
|
|
allow_load: true |
|
|