不好意思用错了,tabbar页面用wx.switchTab就可以了
bindgetuserinfo里面 wx.navigateTo不起作用?怎么跳转授权按钮点击事件里面怎么切换页面啊?点击获取授权、然后允许,啥反应也没有,wx.navigateTo不起作用啊? <button wx:if="{{canIUse}}" class="vBtn_ok" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">授权登录</button> <view wx:else>请升级微信版本</view> bindGetUserInfo: function (e) { var userInfo = e.detail.userInfo; wx.request({ url: config.requestUrl + 'userCheck' + '/' + that.data.openid, data: userInfo, method: 'POST', success: function (e) { wx.showToast({ title: '验证通过', icon: 'loading', duration: 1000 }); console.log(that.data.prepageurl); //setTimeout(function () { wx.navigateTo({ url: that.data.prepageurl }) //}, 1200); } })
2018-05-30