consumer模块完成度95%,完成部署消费者端(外网可访问consumer.meitizs.com),消费者小程序能正常运行在微信开发者工具上
This commit is contained in:
@@ -182,12 +182,12 @@ const checkLoginStatus = (): void => {
|
||||
const opts = currentPage.options as UTSJSONObject
|
||||
const redirect = opts.getString('redirect')
|
||||
if (redirect != null && redirect != '') {
|
||||
uni.reLaunch({ url: `/pages/mall/consumer/index` })
|
||||
uni.reLaunch({ url: `/pages/main/index` })
|
||||
} else {
|
||||
uni.reLaunch({ url: '/pages/mall/consumer/index' })
|
||||
uni.reLaunch({ url: '/pages/main/index' })
|
||||
}
|
||||
} else {
|
||||
uni.reLaunch({ url: '/pages/mall/consumer/index' })
|
||||
uni.reLaunch({ url: '/pages/main/index' })
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -291,7 +291,7 @@ const handleLogin = async () => {
|
||||
|
||||
uni.showToast({ title: '管理员登录成功', icon: 'success' })
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({ url: '/pages/mall/consumer/index' })
|
||||
uni.reLaunch({ url: '/pages/main/index' })
|
||||
}, 500)
|
||||
return
|
||||
}
|
||||
@@ -360,7 +360,7 @@ const handleLogin = async () => {
|
||||
|
||||
uni.showToast({ title: '登录成功', icon: 'success' })
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({ url: '/pages/mall/consumer/index' })
|
||||
uni.reLaunch({ url: '/pages/main/index' })
|
||||
}, 500)
|
||||
} catch (err) {
|
||||
console.error('登录错误:', err)
|
||||
|
||||
Reference in New Issue
Block a user