公众号微信登录调试

This commit is contained in:
Jason
2022-09-15 14:15:12 +08:00
parent 2316105322
commit eea37ebba2
53 changed files with 58 additions and 53 deletions

View File

@@ -121,7 +121,10 @@
"navigationBarTextStyle": "black",
"navigationBarTitleText": "商城",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#F8F8F8"
"backgroundColor": "#F8F8F8",
"h5": {
"navigationStyle": "custom"
}
},
"easycom": {
"custom": {

View File

@@ -6,7 +6,7 @@
<u-image :src="appStore.config.website.logo" mode="widthFix" height="160" width="160" />
</view>
<view class="mt-4">{{ appStore.config.website.name }}</view>
<view class="w-full mt-[60rpx]">
<view class="w-full mt-[60rpx] pb-[60rpx]">
<u-form borderBottom>
<template
v-if="loginWay == LoginWayEnum.ACCOUNT && includeLoginWay(LoginWayEnum.ACCOUNT)"

View File

@@ -19,15 +19,17 @@ const wechatOa = {
return new Promise((resolve, reject) => {
OALogin({
code
}).then((res) => {
const userStore = useUserStore()
userStore.login(res.token)
resolve(res)
})
.then((res) => {
resolve(res)
})
.catch((err) => {
reject(err)
})
})
},
ready() {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
weixin.ready(() => {
resolve('success')
})