登录信息获取

This commit is contained in:
shikong 2024-11-06 22:51:36 +08:00
parent c0af0fe9e2
commit 2ca6b119d8
Signed by: Shikong
GPG Key ID: BD85FF18B373C341
4 changed files with 5067 additions and 6392 deletions

8
README.MD Normal file
View File

@ -0,0 +1,8 @@
### 官方文档
https://uniapp.dcloud.net.cn/api/
### 通过命令行创建 uni-app 项目
```shell
npx degit dcloudio/uni-preset-vue#vite <项目名称>
```

View File

@ -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"

File diff suppressed because it is too large Load Diff

View File

@ -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')