[修改综法下单]

This commit is contained in:
2023-05-16 10:04:46 +08:00
parent d61dde8bd8
commit b84661015a
7 changed files with 50 additions and 24 deletions

View File

@@ -30,20 +30,20 @@ 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 === ''){