微信小程序中使用web-view,开发工具可以加载出页面,但真机加载不出?
发布于 6 年前 作者 itao 4449 次浏览 来自 官方Issues
<!--index.wxml-->
<view>
 <web-view wx:if="{{webUrl}}" bindload="on_ready" binderror="on_error" src="{{webUrl}}"></web-view>
</view>

 webUrl: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdea2a2cf82be8563&redirect_uri=https%3a%2f%2fteststore.scjshop.com%2f%23%2flogin&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect',    

3 回复

你是怎么把 open.weixin.qq.com 这个域名添加到业务域名里面的

模拟器可以加载出来,手机则加载不出页面,是什么原因导致的呢?

加了业务域名了?

回到顶部