授权button[getPhoneNumber]组件,正式版无法弹出授权框。用体验版可以正常弹出。?
发布于 6 年前 作者 xiuying05 6100 次浏览 来自 官方Issues

button组件,IOS和安卓手机都有这个问题

小程序名称:植物名人堂

 <view wx:elif="{{item.authPhone}}">
        <button
          class="phone-button"
          wx:if="{{ !isActivated }}"
          data-index="{{ index }}"
          open-type="getPhoneNumber"
          bindgetphonenumber="onGetPhoneNumber"
        >
          <image
            class="share-images-wrap"
            src="{{ item.picture }}"
            mode="widthFix"
          />
        </button>
        <image
          wx:else
          data-index="{{ index }}"
          bind:tap="onViewDetail"
          class="share-images-wrap"
          src="{{ item.picture }}"
          mode="widthFix"
        />
      </view>
1 回复

查看下是否报错了啊。先在开发版 打开调试。然后再访问线上版本。打开vconsole查看 线上版本报错

回到顶部