修改页面
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
</view>
|
||||
<view class="mt-124rpx mx-60rpx box-border">
|
||||
<wd-button custom-class="!bg-[#4C9F44] !rounded-8rpx !text-[#fff] !text-30rpx !leading-42rpx !h-90rpx !w-[100%] box-border" @click="Login.handleLogin">立即登录</wd-button>
|
||||
<wd-button custom-class="!bg-[#4C9F44] !rounded-8rpx !text-[#fff] !text-30rpx !leading-42rpx !h-90rpx !w-[100%] box-border" @click="Login.handleMobileLogin">测试-账号登录</wd-button>
|
||||
<!-- <wd-button custom-class="!bg-[#4C9F44] !rounded-8rpx !text-[#fff] !text-30rpx !leading-42rpx !h-90rpx !w-[100%] box-border" @click="Login.handleMobileLogin">测试-账号登录</wd-button> -->
|
||||
<!-- <wd-button open-type="getUserInfo" @getuserinfo="Login.handleWxLogin" custom-class="!bg-[#4C9F44] !rounded-8rpx !text-[#fff] !text-30rpx !leading-42rpx !h-90rpx !w-[100%] box-border">立即登录</wd-button> -->
|
||||
<!-- <view class="text-30rpx font-400 text-[#303133] leading-42rpx text-center mt-32rpx">其它手机号登录</view> -->
|
||||
</view>
|
||||
@ -134,17 +134,17 @@
|
||||
/**
|
||||
* 测试-账号登录
|
||||
*/
|
||||
handleMobileLogin: async () => {
|
||||
const userStore = useUserStore()
|
||||
console.log("🚀 ~ userStore:", userStore)
|
||||
const res = await userStore.mobileLogin('15005837859', 1, 2)
|
||||
if (res) {
|
||||
uni.setStorageSync('latitude', '30.74744')
|
||||
uni.setStorageSync('longitude', '120.78483')
|
||||
toast.info('登录成功')
|
||||
router.navigateBack(1, 500)
|
||||
}
|
||||
},
|
||||
// handleMobileLogin: async () => {
|
||||
// const userStore = useUserStore()
|
||||
// console.log("🚀 ~ userStore:", userStore)
|
||||
// const res = await userStore.mobileLogin('15005837859', 1, 2)
|
||||
// if (res) {
|
||||
// uni.setStorageSync('latitude', '30.74744')
|
||||
// uni.setStorageSync('longitude', '120.78483')
|
||||
// toast.info('登录成功')
|
||||
// router.navigateBack(1, 500)
|
||||
// }
|
||||
// },
|
||||
|
||||
/**
|
||||
* 登录成功跳转页面
|
||||
|
||||
Reference in New Issue
Block a user