授权button[getPhoneNumber]组件,正式版无法弹出授权框。用体验版可以正常弹出。?

发布于 8 年前作者 xiuying056326 次浏览最后编辑 8 年前来自 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 回复
ktang
ktang1 楼5 年前

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