对接接口

This commit is contained in:
wangxiaowei
2025-10-16 16:26:57 +08:00
parent 76da09be91
commit 2f59d0e8ba
21 changed files with 405 additions and 197 deletions

View File

@ -1,6 +1,5 @@
<route lang="jsonc" type="page">
{
"needLogin": true,
"layout": "tabbar",
"style": {
"navigationStyle": "custom"
@ -182,6 +181,7 @@
import {OrderStatus} from '@/utils/order'
import {toast} from '@/utils/toast'
import { useUserStore } from '@/store'
import {snsapiBaseAuthorize} from '@/hooks/useWeiXin'
const OSS = inject('OSS')
const navbarHeight = inject('navbarHeight')
@ -254,15 +254,23 @@
},
// 跳转到个人信息
handleToProfile: () => {
handleToProfile: async () => {
if (isLogin.value) {
uni.navigateTo({
url: '/bundle/profile/profile'
})
} else {
uni.navigateTo({
url: '/pages/login/mobile'
})
// 登录操作
await snsapiBaseAuthorize()
const userStore = useUserStore()
if (!userStore.userInfo.mobile) {
uni.navigateTo({
url: '/pages/login/mobile'
})
} else {
userInfo.value = userStore.userInfo
isLogin.value = true
}
}
},