调试接口

This commit is contained in:
wangxiaowei
2025-12-22 19:06:04 +08:00
parent ca0d16cf05
commit 90e9448b68
15 changed files with 220 additions and 152 deletions

View File

@ -49,10 +49,10 @@
const agree = ref<boolean>(false)
const redirectUrl = ref<string>('')
const redirectParams = ref<string>('')
onLoad((args) => {
redirectUrl.value = args.redirect || ''
})
const Login = {
@ -73,8 +73,10 @@
uni.hideLoading()
if (res) {
const decoded = decodeURIComponent(redirectUrl.value)
console.log("🚀 ~ decoded:", decoded)
if (decoded == '/bundle/order/tea-room/order-detail') {
uni.$emit('transferOrder')
const transferOrderParams = uni.getStorageSync('transferOrderParams')
uni.$emit('transferOrder', transferOrderParams)
}
toast.info('登录成功')
@ -83,14 +85,13 @@
} catch(error) {
uni.hideLoading()
}
},
// 手机登录
handleMobileLogin: async () => {
const userStore = useUserStore()
console.log("🚀 ~ userStore:", userStore)
const res = await userStore.mobileLogin('18868040087', 1, 2)
const res = await userStore.mobileLogin('15005837859', 1, 2)
if (res) {
uni.setStorageSync('latitude', '30.74744')
uni.setStorageSync('longitude', '120.78483')