Commit 0b062eeb by wangzhihui

一轮bug修复

1 parent 32014122
......@@ -30,6 +30,13 @@ Page({
* 生命周期函数--监听页面加载
*/
async onLoad(options) {
if (options.scene === 1047) { // 1047 表示从另一个小程序跳转过来的场景值
console.log('extraData:', options.referrerInfo.extraData);
if (options.referrerInfo.extraData && options.referrerInfo.extraData.external) {
this.loginOut()
}
}
let userInfo = wx.p.storage.get('userInfo');
this.setData({
userInfo
......@@ -39,7 +46,12 @@ Page({
this.searchScoreSummaryData()
this.getScoreProfitListData()
},
loginOut() {
wx.p.storage.rm('sessionId')
wx.p.isLogin = false
wx.p.storage.rm('userInfo')
wx.p.router.reLaunch('/pages/Login/Login')
},
getPointsWalletData() {
const {
phone,
......@@ -122,7 +134,7 @@ Page({
total,
pageSize,
scoreList,
userInfo:{
userInfo: {
phone,
channelSource,
merchantId
......@@ -232,8 +244,8 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
onShow(){
if (this.refresh){
onShow() {
if (this.refresh) {
this.searchScoreSummaryData()
this.getScoreProfitListData()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!