|
@@ -8,6 +8,25 @@ var dataBaseShare = {
|
|
|
requireBaseLoginStatus(res) {
|
|
|
const params = JSON.parse(window.sessionStorage.getItem('saveParams'))
|
|
|
if (params.isDataBase && res.code === 0) {
|
|
|
+ const userData = {
|
|
|
+ account: res.data.account,
|
|
|
+ email: res.data.email,
|
|
|
+ phone: res.data.bindMobile,
|
|
|
+ name: res.data.name,
|
|
|
+ userName: res.data.userName,
|
|
|
+ userId: res.data.userId,
|
|
|
+ spId: res.data.serviceProviderId,
|
|
|
+ clubId: res.data.clubId,
|
|
|
+ shopId: res.data.shopId,
|
|
|
+ userIdentity: res.data.userIdentity,
|
|
|
+ permission: res.data.userPermission,
|
|
|
+ token: res.data.token,
|
|
|
+ vipFlag: res.data.vipFlag,
|
|
|
+ firstClubType: res.data.firstClubType,
|
|
|
+ listingFee:res.data.listingFee,
|
|
|
+ shopIsOrder:res.data.shopIsOrder
|
|
|
+ };
|
|
|
+ localStorage.setItem('userInfo', JSON.stringify(userData))
|
|
|
const link = isDev ? 'https://material-b.caimei365.com' : 'https://material.caimei365.com'
|
|
|
setTimeout(() => {
|
|
|
window.location.href = `${link}/preview?t=${params.t}&id=${params.id}&uid=${res.data.userId}&spId=${params.spId}`
|
|
@@ -23,6 +42,12 @@ var dataBaseShare = {
|
|
|
})
|
|
|
}
|
|
|
window.sessionStorage.setItem('saveParams', JSON.stringify(f))
|
|
|
+ },
|
|
|
+ updateStatus() {
|
|
|
+ const params = JSON.parse(window.sessionStorage.getItem('saveParams'))
|
|
|
+ setTimeout(() => {
|
|
|
+ window.location.href = `${link}/preview?t=${params.t}&id=${params.id}&uid=${res.data.userId}&spId=${params.spId}`
|
|
|
+ }, 1000)
|
|
|
}
|
|
|
}
|
|
|
}
|