- 代公众号发起网页授权,Scope 参数错误或没有 Scope 权限?
[图片] https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd81b41433af20127&redirect_uri=http%3A%2F%2Fwx.qqdai.com%2Fwebapp%2F&response_type=code&scope=snsapi_userinfo&component_appid=wxc59223c9a5cf1393&uin=MjQwOTUxNDE2NA%3D%3D&key=751f8194a546ebfa753883490a449f8d8ea63970e5822076c8fec8585978d0efa79c468fc5a6a645874d47a59678e307&pass_ticket=2KdldEZQMDWM7kFjD9VRma4wThlt+bL1zma0M6QQtur7uMFWrFpT6sgJ7pR3jVbbRW2IwAJlfy5LqmHdDbDObg==
2022-08-20 - 为什么request之后可以console出数据,但是无法传回wxml页面?
onLoad: function(t) { var e = this; wx.request({ url: "http://www.xlczg.cn/api/index.php?m=jk&c=new", header: { 'content-type': 'application/x-www-form-urlencoded' }, success:function(t) { console.log(t.data); e.setData({ news: t.data }); } }) } <view class="li" wx:for="{{news}}" wx:key="key"> <navigator url="../article-detail/article-detail?id={{item.id}}"> <image src="http://www.xlczg.cn{{item.litpic}}"></image> <text class="p">{{item.title}}</text> </navigator> </view> console没有报错
2020-02-14