Commit 2fa87c95 by 张立顺

切换门店的配置修复

1 parent 44014e3c
...@@ -153,6 +153,7 @@ Page({ ...@@ -153,6 +153,7 @@ Page({
return return
} }
wx.$util.showLoading() wx.$util.showLoading()
api api
.selectAccountLogin({ .selectAccountLogin({
id id
...@@ -161,6 +162,7 @@ Page({ ...@@ -161,6 +162,7 @@ Page({
let { data, message } = res let { data, message } = res
if (data) { if (data) {
wx.$util.setUserInfo(data.loginUserInfoList[0]) wx.$util.setUserInfo(data.loginUserInfoList[0])
app.globalData.YQorderSetting = null
// console.log(data.loginUserInfoList[0]) // console.log(data.loginUserInfoList[0])
checkYqdSuper(app, data.loginUserInfoList[0]) checkYqdSuper(app, data.loginUserInfoList[0])
const SCENE = wx.$SCENE const SCENE = wx.$SCENE
...@@ -177,6 +179,7 @@ Page({ ...@@ -177,6 +179,7 @@ Page({
wx.$router.reLaunch(`${target}.${name}`, query) wx.$router.reLaunch(`${target}.${name}`, query)
wx.$SCENE = null wx.$SCENE = null
} else { } else {
// 超管默认开通所有场景 // 超管默认开通所有场景
if (isSuper) { if (isSuper) {
// 0 会员权益/升级 1 精品升级 // 0 会员权益/升级 1 精品升级
...@@ -210,7 +213,6 @@ Page({ ...@@ -210,7 +213,6 @@ Page({
} }
}) })
} }
// app.
getYQorderInfo() getYQorderInfo()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!