consumer模块完成度95%,完成部署消费者端(外网可访问consumer.meitizs.com),消费者小程序能正常运行在微信开发者工具上

This commit is contained in:
cyh666666
2026-03-05 16:54:00 +08:00
parent 7f7f723d93
commit 3b0e397714
728 changed files with 1495 additions and 985 deletions

View File

@@ -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)