mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-01 06:29:36 +08:00
公众号微信登录调试
This commit is contained in:
@@ -121,7 +121,10 @@
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "商城",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
"backgroundColor": "#F8F8F8",
|
||||
"h5": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
"easycom": {
|
||||
"custom": {
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user