Commit e290a6e5 by 张立顺

fix bug

1 parent 6eaf3002
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 1;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -44,8 +44,8 @@ Page({
// 未选择4s店 非超管
if ((userInfo?.shopMerchantId ?? '') === '' && !userInfo?.isSuper && userInfo?.loginRole != 3 && userInfo?.loginRole != 6) return wx.$router.reLaunch('pages.accountItems')
// 未选择场景
if ((userInfo?.sceneType ?? '') === '') return wx.$router.reLaunch('pages.sceneIndex')
// 未选择场景 或者二手场景
if ((userInfo?.sceneType ?? '') === '' || (userInfo?.sceneType == 7)) return wx.$router.reLaunch('pages.sceneIndex')
userInfo?.sceneType == 0 && wx.$track.setTrackData(0, 'user_login', {
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
......@@ -63,7 +63,7 @@ Page({
}, 'loading')
if (navigateParams && navigateParams.url) {
if (navigateParams.sceneType != null && navigateParams.shopMerchantId && (navigateParams.sceneType != userInfo.sceneType || navigateParams.shopMerchantId != userInfo.shopMerchantId)) {
return app.login(false, '请重新登录')
return app.login(false, '请重新登录')
}
wx.$router._to(navigateParams.url, navigateParams, 'reLaunch')
return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!