fix: make phone authorization skippable in registration

getPhoneNumber requires verified enterprise miniprogram account.
Allow users to skip phone auth and complete registration without it.
这个提交包含在:
Guoguo
2026-05-06 06:29:03 -07:00
父节点 52456d850e
当前提交 c065d3fdce
修改 4 个文件,包含 46 行新增8 行删除
+9 -1
查看文件
@@ -26,11 +26,19 @@
<text class="phone-text">{{phone}}</text>
</view>
</block>
<block wx:elif="{{phoneSkipped}}">
<view class="phone-done phone-skipped">
<text class="phone-text">已跳过,可稍后在设置中授权</text>
</view>
</block>
<block wx:else>
<button class="phone-btn" open-type="getPhoneNumber" bindgetphonenumber="onGetPhoneNumber" disabled="{{loading}}">
授权手机号
</button>
<view class="phone-hint">手机号用于接收服务通知,必须授权</view>
<view class="phone-actions">
<view class="phone-hint">手机号用于接收服务通知</view>
<view class="phone-skip" bindtap="onSkipPhone">跳过</view>
</view>
</block>
</view>