收藏
回答

open-type="chooseAvatar" type="nickname"为啥点击无反应?

遇到一个很奇怪的问题,小程序是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>
回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容