|
|
@@ -34,7 +34,7 @@
|
|
|
@getphonenumber="getPhoneNumber"
|
|
|
>
|
|
|
<text>手机号快捷登录</text>
|
|
|
- </button>
|
|
|
+ </button>
|
|
|
</view>
|
|
|
|
|
|
<!-- 暂不登录 -->
|
|
|
@@ -68,9 +68,9 @@ export default {
|
|
|
nickname: '',
|
|
|
avatar: '',
|
|
|
redirectUrl: ''
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
- onLoad(options) {
|
|
|
+ onLoad(options) {
|
|
|
// 处理邀请码
|
|
|
if (options.inviteCode) {
|
|
|
uni.setStorageSync('inviteCode', options.inviteCode)
|
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
// 注意:不在 onLoad 预取 login code —— 微信 code 一次性有效(5分钟且用过即废),
|
|
|
// 预取后如果用户隔几分钟再点击授权,code 已失效会报 invalid code (40029)。
|
|
|
// 正确做法:getPhoneNumber 中用户点击授权时实时获取。
|
|
|
- },
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleImageError(e) {
|
|
|
console.log('Logo 加载失败,使用默认显示')
|