Commit 0b062eeb by wangzhihui

一轮bug修复

1 parent 32014122
...@@ -30,6 +30,13 @@ Page({ ...@@ -30,6 +30,13 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
async onLoad(options) { 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'); let userInfo = wx.p.storage.get('userInfo');
this.setData({ this.setData({
userInfo userInfo
...@@ -39,7 +46,12 @@ Page({ ...@@ -39,7 +46,12 @@ Page({
this.searchScoreSummaryData() this.searchScoreSummaryData()
this.getScoreProfitListData() 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() { getPointsWalletData() {
const { const {
phone, phone,
...@@ -122,7 +134,7 @@ Page({ ...@@ -122,7 +134,7 @@ Page({
total, total,
pageSize, pageSize,
scoreList, scoreList,
userInfo:{ userInfo: {
phone, phone,
channelSource, channelSource,
merchantId merchantId
...@@ -232,8 +244,8 @@ Page({ ...@@ -232,8 +244,8 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow(){ onShow() {
if (this.refresh){ if (this.refresh) {
this.searchScoreSummaryData() this.searchScoreSummaryData()
this.getScoreProfitListData() this.getScoreProfitListData()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!