登录信息获取
This commit is contained in:
parent
c0af0fe9e2
commit
2ca6b119d8
8
README.MD
Normal file
8
README.MD
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
### 官方文档
|
||||||
|
https://uniapp.dcloud.net.cn/api/
|
||||||
|
|
||||||
|
|
||||||
|
### 通过命令行创建 uni-app 项目
|
||||||
|
```shell
|
||||||
|
npx degit dcloudio/uni-preset-vue#vite <项目名称>
|
||||||
|
```
|
@ -64,7 +64,7 @@
|
|||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"pinia": "^2.2.4",
|
"pinia": "^2.2.4",
|
||||||
"pinia-plugin-persistedstate": "^3.2.1",
|
"pinia-plugin-persistedstate": "^3.2.1",
|
||||||
"qs": "^6.7.0",
|
"qs": "6.7.0",
|
||||||
"vue": "^3.4.21",
|
"vue": "^3.4.21",
|
||||||
"vue-i18n": "^9.1.9",
|
"vue-i18n": "^9.1.9",
|
||||||
"yup": "^1.4.0"
|
"yup": "^1.4.0"
|
||||||
|
11246
pnpm-lock.yaml
11246
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,15 @@
|
|||||||
export default {
|
export default {
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
|
|
||||||
|
//#ifdef MP-WEIXIN
|
||||||
|
uni.login({
|
||||||
|
provider: 'weixin', //使用微信登录
|
||||||
|
onlyAuthorize: true, //只授权,不弹出授权页面
|
||||||
|
success(loginRes){
|
||||||
|
console.log("登录信息", loginRes)
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
console.log('App Show')
|
console.log('App Show')
|
||||||
|
Loading…
Reference in New Issue
Block a user