- 如何做小程序的登录拦截?
小程序是否有类似于路由拦截的功能,我做登录的时候发现很费力
2020-06-02 - 微信h5支付重定向唤起微信时跨域问题
[图片]
2019-10-15 - 微信公众号网页授权 跨域问题?
流程: 前端请求后台接口,后台重定向到https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc7290663e60b3a23&redirect_uri=http%3A%2F%2Fantare.fun%2Fweixin%2Fauth&response_type=code&scope=snsapi_userinfo&connect_redirect=1&state=STATE#wechat_redirect 之后前端会报跨域问题: Access to XMLHttpRequest at 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc7290663e60b3a23&redirect_uri=http%3A%2F%2Fantare.fun%2Fweixin%2Fauth&response_type=code&scope=snsapi_userinfo&connect_redirect=1&state=STATE#wechat_redirect' (redirected from 'http://antare.fun/weixin/login') from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
2020-07-08 - 微信公众号ip白名单的bug
https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_access_token.html 设置了ip白名单但是仍然报错[图片]
2021-01-08 - 页面onTabItemTap与onShow的触发顺序
期望: onTabItemTap内执行A操作 onShow内执行B操作 期望执行的顺序是 A -> B 问题:发现onTabItemTap的触发是在onShow之后,会变成 B -> A 尝试解决: 不过这样是否能保证 A -> B 的执行顺序呢? [代码]Page({[代码][代码] [代码][代码]onTabItemTap() {[代码][代码] [代码][代码]// 执行A操作[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onShow() {[代码][代码] [代码][代码]setTimeout(() => {[代码][代码] [代码][代码]// 执行B操作 [代码][代码] [代码][代码]}, 10) [代码][代码] [代码][代码]}[代码][代码]})[代码]
2018-06-14