open-type="getPhoneNumber",授权过程中,点击使用其他手机号,再也无法弹窗
发布于 7 年前 作者 mingwang 13895 次浏览 来自 官方Issues

复现路径:     点击手机号授权按钮—》弹出手机号授权弹窗-》点击‘使用其他手机号’,跳转手机号授权页-》返回按钮页-》ios左滑返回聊天界面-》再进小程序点击授权手机号按钮,就永远出不了手机号授权弹窗。


除非小程序删掉历史记录冷启动

代码片段如下:

<seal-button wx:if="{{true}}" color=“primary” open-type=“getPhoneNumber” bind:getphonenumber=“getPhoneNumber”>

</seal-button>

seal-botton组件里代码:

<button

open-type="{{ openType }}"

bind:click=“handleClick”

bind:getuserinfo=“handleGetUserInfo”

bind:contact=“handleContact”

bind:getphonenumber=“handleGetPhoneNumber”

bind:error=“handleError”

bind:opensetting=“handleOpenSetting”

bind:launchapp=“handleLaunchApp”

>

<slot name=“start”></slot>

<seal-loading wx:if="{{ loading }}" ext-class=“seal-button–loading” type=“spinner”></seal-loading>

<slot></slot>

<slot name=“end”></slot>

</button>

1 回复

有报错信息吗?

回到顶部