- if (res.authSetting['scope.userInfo'])?
onLoad: function () { var that = this; // 查看是否授权 wx.getSetting({ success: function (res) { if (res.authSetting['scope.userInfo']) { wx.getUserInfo({ success: function (res) { //从数据库获取用户信息 that.queryUsreInfo(); //用户已经授权过 wx.switchTab({ url: '../bandan/bandan' }) } }); } } }) }, 我想知道if (res.authSetting['scope.userInfo']) 是什么意思?为什么我的数据库里没有用户信息它依然会执行跳转 wx.switchTab({ url: '../bandan/bandan' })
2020-02-24 - 为什么<navigator></navigator>无法跳转?
以下是.js data: { d: [], imgUrls: [ { link:'pages/inSchool/inSchool', url:'../images/boss.png' }, { link:'pages/outSchool/outSchool', url:'../images/fabu.png' }, { link:'pages/personal/personal', url:'../images/boss.png' } ], 以下是.wxml <swiper indicator-dots="true" autoplay="true" interval="5000" duration="1000"> <block wx:for="{{imgUrls}}" wx:key="index"> <swiper-item> <navigator url="{{item.link}}"> <image wx:if='{{item}}' mode="widthFix" src="{{item.url}}" class="pic"/> </navigator> </swiper-item> </block> </swiper> <view>
2020-02-19 - 怎么解决轮播图跳转不同tab页面?
wx.switchTab无法解决for循环下的轮播图跳转不同的tab页面
2020-02-19 - radio的值怎么传给云数据库?
通过radio获取的值怎么传给云数据库
2020-02-19