遇到一个很奇怪的问题,小程序是uniapp打包的,首页有位置授权,为啥必须要位置授权成功了,并且要重启一些,获取头像,昵称按钮才能起作用呢?
请问哪位大佬知道吗?
登录代码
<view class="user-list u-flex u-b-10 u-row-center head-img">
<view class="avatarUrl ">
<button type="balanced" open-type="chooseAvatar"
@chooseavatar="onChooseavatar">
<image :src="userData.avatar" class="avatar"></image>
</button>
<view>头像</view>
</view>
</view>
<view class="user-list u-flex u-row-center ">
<text class="list-name">昵称:</text>
<input
type="nickname"
class="list-val u-m-l-10 u-m-r-10"
v-model="userData.nickname"
@input="bindinput"
@blur="bindblur"
@confirm="onChangeNickName"
placeholder="请输入昵称~"
maxlength="50"
placeholder-style="color:#c8c9cc;fontSize:28rpx;text-align:left"
/>
</view>
是不是没有完善用户隐私保护协议,和隐私协议弹窗,可以是微信官方的,也可以是自己搭建的:https://developers.weixin.qq.com/miniprogram/dev/framework/user-privacy/PrivacyAuthorize.html#%E5%85%AD%E3%80%81%E5%AE%98%E6%96%B9%E9%9A%90%E7%A7%81%E5%BC%B9%E7%AA%97%E5%8A%9F%E8%83%BD%E8%AF%B4%E6%98%8E
一个是隐私协议
另外一个这个不是自动填名字,而是会提示在下面
隐私协议是否填写了头像昵称
https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-management/setPrivacySetting.html