调试接口
This commit is contained in:
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user