This commit is contained in:
2023-06-09 17:59:05 +08:00
parent 59b15f321d
commit 47a057b35b
237 changed files with 669 additions and 216 deletions

View File

@@ -30,27 +30,27 @@ router.beforeEach((to, from, next) => {
return
}
// 检查用户是否授权了微信
// if(to.name != 'webWechatIndex' && openId === ''){
// authFollow({
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
// // url: 'https://web.douhuofalv.com/webWechat/index'
// }).then(res => {
// window.location.href = res
// }).catch(err => {
// uni.showToast({
// title: err.message,
// icon: "none"
// })
// })
// return
// }
if(to.name != 'webWechatIndex' && openId === ''){
authFollow({
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
url: 'https://web.douhuofalv.com/webWechat/index'
}).then(res => {
window.location.href = res
}).catch(err => {
uni.showToast({
title: err.message,
icon: "none"
})
})
return
}
// 检查是否需要登录
if(to.auth && token === ''){
next({
name: 'Login',
NAVTYPE: 'push',
params: {
params: {
toName: to.name
}
})