修改
This commit is contained in:
parent
bfd0ec4f94
commit
6f83cdda89
@ -15,10 +15,7 @@ var request = function(config) {
|
||||
},
|
||||
success(res) {
|
||||
if (res.data.code == 9999) {
|
||||
uni.removeStorageSync('token');
|
||||
uni.removeStorageSync('patientId');
|
||||
uni.removeStorageSync('openid');
|
||||
uni.removeStorageSync('phone');
|
||||
uni.clearStorageSync();
|
||||
let pages = getCurrentPages();
|
||||
let path = pages[pages.length - 1].$page.fullPath
|
||||
let paths = path.split('?')
|
||||
|
||||
@ -186,10 +186,7 @@
|
||||
content: '确认要退出此账号吗',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.removeStorageSync('patientId');
|
||||
uni.removeStorageSync('openid');
|
||||
uni.removeStorageSync('phone');
|
||||
uni.removeStorageSync('token');
|
||||
uni.clearStorageSync();
|
||||
that.$refs.uToast.show({
|
||||
title: '退出账号成功',
|
||||
type: 'success',
|
||||
|
||||
@ -26,11 +26,7 @@
|
||||
timer: null,
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
uni.removeStorageSync('openid');
|
||||
uni.removeStorageSync('patientId');
|
||||
uni.removeStorageSync('phone');
|
||||
},
|
||||
onShow() {},
|
||||
//1.分享给朋友
|
||||
onShareAppMessage(res) {
|
||||
let pages = getCurrentPages();
|
||||
@ -93,8 +89,8 @@
|
||||
})
|
||||
},
|
||||
pwdlogin() {
|
||||
uni.removeStorageSync('token');
|
||||
var that = this
|
||||
uni.clearStorageSync();
|
||||
createMobileToken().then(res => {
|
||||
uni.setStorageSync("token", res.data.token)
|
||||
that.login()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user