Feat(时令尝鲜):接口对接
This commit is contained in:
+4
-4
@@ -590,7 +590,8 @@ export async function routerPermissions(url, type) {
|
||||
if (!path) {
|
||||
path = '/' + getCurrentPageUrlWithArgs()
|
||||
}
|
||||
if (Vue.prototype.$deviceType == 'routine') {
|
||||
|
||||
if (Vue.prototype.$deviceType === 'routine') {
|
||||
// 如果是微信小程序,跳转到授权页
|
||||
// 先校验用户是否授权,如果授权了,进行自动登录
|
||||
//authorize('userInfo')因为小程序登录和授权接口的修改基本废了
|
||||
@@ -601,7 +602,6 @@ export async function routerPermissions(url, type) {
|
||||
//检查授权信息
|
||||
let authUserInfo = await checkAuth().catch(err => {
|
||||
});
|
||||
|
||||
if (authUserInfo) {
|
||||
var loginInfo = {
|
||||
userInfo: authUserInfo,
|
||||
@@ -646,7 +646,8 @@ export async function routerPermissions(url, type) {
|
||||
})
|
||||
} else {
|
||||
// 跳转到登录页面或者授权页面
|
||||
if (path == '/pages/shop/ShoppingCart/index' || path == '/pages/user/User/index') {
|
||||
// path == '/pages/shop/ShoppingCart/index' ||
|
||||
if ( path == '/pages/user/User/index') {
|
||||
switchTab({
|
||||
path,
|
||||
})
|
||||
@@ -893,7 +894,6 @@ export const handleLoginFailure = () => {
|
||||
let path = '/' + getCurrentPageUrlWithArgs()
|
||||
|
||||
let qrCode = handleQrCode()
|
||||
|
||||
if (qrCode) {
|
||||
// 当前是通过海报扫描进入的
|
||||
|
||||
|
||||
Reference in New Issue
Block a user