同步代码

This commit is contained in:
2024-03-29 15:13:27 +08:00
parent 7c70de5fe0
commit e520ff11d2
36 changed files with 2797 additions and 1280 deletions

View File

@@ -30,20 +30,21 @@ 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.douhuo.demos.uzchain.tech/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 === ''){