做了个小程序 在开发者工具调试可以正常获取用户手机号码 但是真机测试 获取不到 求解
appid:wx0cfede3c8e467732
代码:
</view>
</view>
<view class=“verification border1” wx:if="{{sms==true}}">验证真实性</view>
<view class=“hotel_name” style=“margin-top:-2rpx;” wx:if="{{sms==true}}">
<view class=“total fl”>手机号</view>
<view class=“input fl”>
<input bindblur=“user_name” name=“yz_tel” placeholder=“请输入你现在的手机号” type=“digit”></input>
</view>
</view>
<view class=“hotel_name rel border2” wx:if="{{sms==true}}">
<view class=“total fl”>验证码</view>
<view class=“input fl”>
<input bindblur=“user_code” name=“yz_code” placeholder=“请输入验证码” style=“width:60%” type=“number”></input>
</view>
<view bindtap=“sendmessg” class=“ab code” wx:if="{{getmsg==‘获取验证码’}}">
{{getmsg}}
</view>
<view bindtap=“sendmessg” class=“ab code” wx:if="{{getmsg!=‘获取验证码’}}">
{{getmsg}}
</view>
</view>
<view class=“getPhoneNumber” wx:if="{{sms==false}}">
手机号验证:
<text wx:if="{{num!=null}}">{{num}}</text>
<button bindgetphonenumber=“getPhoneNumber” openType=“getPhoneNumber” wx:if="{{num==null}}">获取手机号</button>
<button style=“background:#ccc;” wx:if="{{num!=null}}">验证成功</button>
</view>
<view class=“weui-cells weui-cells_after-title” wx:if="{{xtxx.is_qgb2==‘1’}}">
<view class=“weui-cell”>
<view class=“weui-cell__hd weui-cell__hd_in-select-after” style=“padding:0rpx;”>
<view class=“weui-label”>入驻地区</view>
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。