这个头像是临时文件路径 需要使用wx.uploadFile 上传到服务器使用网络图片进行加载 因为这个临时路径第二次就不一定在本机存在了
一个有关于微信头像获取的问题?用户成功登陆之后跳转设置头像昵称页面,完成后在“我的”页面能正常查看用户头像,但是退出重新登陆之后在“我的”界面,头像加载失败,并且控制台报错 “Failed to load image http://127.0.0.1:59574/__tmp__/QxU8NOpzTvlIab8a06762f5142f34d04c1b699692ebf.jpeg”,但是在我存储数据的时候以及数据库中tmp左右是没有下划线的
2023-09-05可以在data里面加个标识 第一次onHiden 记录一下 第二次onShow 直接判断就可以 直接break应该就可以实现了 不过很想知道为什么需要在新页面进来就跳转打开位置 直接在外面不可以调api吗?
wx.openLocation API调用后,点击左上角返回按钮为什么要点击两次才能到上一个页面?API:wx.openLocation 微信版本号:8.0.40 基础库版本号:2.33.0 问题:从webview页面点击导航,跳转到小程序页面,在小程序页面中调用wx.openLocation打开地图后,再点击左上角返回,需要点击两次才能返回到上一个页面,怎么才能一次点击返回上一个页面呢? onLoad() { wx.openLocation({ latitude: 32.409696853318, longitude: 119.41627380336764, name: "测试", }) }
2023-08-07 const {buffer} = await cloud.openapi.wxacode.getUnlimited(bodyData) const imgBuffer = new Buffer.from(buffer); const imgBase64 = imgBuffer.toString('base64') const dataImagePrefix = `data:image/jpeg;base64,` const qrCodeImg = `${dataImagePrefix}${imgBase64}`
图片二进制转成base64,arrayBufferToBase64这用什么替代?拿到图片二进制,转不成图片,狗日的智障腾讯又把这个函数废弃了,使用就会报错,网上查了好多自己转换的都不能用。
2023-08-04是不是url里面有#号, #会影响微信侧接收参数 且url参数顺序一定要按照要求
微信网站应用白名单已经加过了本体调试不行放到正式上也不行提示redirect_uri 参数错误求解?[图片]
2023-07-28目前所有客户端和开发工具朋友圈"单页模式"在基础库在大于2.17.0之后都会出现这个bug,出现的位置都是在使用websocket的api时出现的
APP-SERVICE-SDK:lanDebug:fail rejected due?Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (https://lib/WASubContext.js:2:2038387) 各位大神,这个是什么错误
2021-08-24请问这个问题已经恢复了吗?
基础库2.17.1打开朋友圈分享的单页模式报错?在开发工具中使用2.17.1打开单页模式时报错, 但用2.17.0及以前的基础库都可以正常打开. 手机信息: [图片] 报错信息: [图片]
2021-08-02我遇到的情况是这样的,我做的是一个商家的宣传页小程序,通过不同id来获取商家信息,当小程序从顶部发现栏直接打开会进入一个默认的商家,同时我们会有一个切换关注的功能,这时候是没有任何问题的,分享小程序卡片到聊天,从聊天进入 我一开始是判断AppShow生命周期里的option的query参数,当每次打开的时候参数不同则切换商家信息,这是为了解决当小程序在后台时从分享打开非当前商家时无法自动切换商家信息,但是这样就有一个新的问题,当我从关注切换商家时如果小程序进入了后台再次回来重新执行了APpShow就会切换到一开始打开的那个商家,
小程序从手机后台调用,怎么清除options的值?通过扫码进入小程序,获取options.q的值,将小程序切到手机后台数小时后,通过手机后台进入小程序,仍然会加载options.q的值,这个值怎么清除呢??
2021-07-222.17.3之后的基础库都会出现这个问题 之前没有这样的问题出现 VM1185:5 app.js错误: Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1 at Array.forEach (<anonymous>) at E (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at D (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Function.use (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.module.exports (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.290 (app.js?t=wechat&s=1625020877563&v=523f8e0fb29dd54b4a17a1ba29af21bf:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0) (anonymous) @ VM1185:5 doWhenAllScriptLoaded @ VM1184:1775 scriptLoaded @ VM1184:1795 (anonymous) @ VM1184:1820 (anonymous) @ VM1038 WAService.js:2 r @ VM1038 WAService.js:2 Promise.then (async) a @ VM1038 WAService.js:2 e.exports @ VM1038 WAService.js:2 X @ VM1038 WAService.js:2 oe @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 Promise.then (async) (anonymous) @ VM1038 WAService.js:2 j @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 (anonymous) @ VM1184:1846 (anonymous) @ VM1184:1850 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM1175:1 t.loadScripts @ VM8 asdebug.js:1 loadAppService @ VM8 asdebug.js:1 messagerCallback @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 f @ VM8 asdebug.js:1 g @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 _ws.onmessage @ VM8 asdebug.js:1 VM1038 WAService.js:2 Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1 at Array.forEach (<anonymous>) at E (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at D (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Function.use (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.module.exports (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.290 (app.js?t=wechat&s=1625020877563&v=523f8e0fb29dd54b4a17a1ba29af21bf:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0) errorReport @ VM1038 WAService.js:2 thirdErrorReport @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 v @ VM1038 WAService.js:2 o @ VM1038 WAService.js:2 c @ VM8 asdebug.js:1 r @ VM8 asdebug.js:1 window.onerror @ VM1029:1 doWhenAllScriptLoaded @ VM1184:1775 scriptLoaded @ VM1184:1795 (anonymous) @ VM1184:1820 (anonymous) @ VM1038 WAService.js:2 r @ VM1038 WAService.js:2 error (async) t.default @ VM1029:1 (anonymous) @ VM1029:1 n @ VM1029:1 (anonymous) @ VM1029:1 (anonymous) @ VM1029:1 VM1038 WAService.js:2 Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1 at Array.forEach (<anonymous>) at E (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at D (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Function.use (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.module.exports (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.290 (app.js?t=wechat&s=1625020877563&v=523f8e0fb29dd54b4a17a1ba29af21bf:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0) errorReport @ VM1038 WAService.js:2 thirdErrorReport @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 v @ VM1038 WAService.js:2 o @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 value @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 doWhenAllScriptLoaded @ VM1184:1775 scriptLoaded @ VM1184:1795 (anonymous) @ VM1184:1820 (anonymous) @ VM1038 WAService.js:2 r @ VM1038 WAService.js:2 error (async) (anonymous) @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 VM8 asdebug.js:1 @appservice-current-context VM1038 WAService.js:2 Page "pages/article-detail/article-detail" has not been registered yet. VM1201 WAService.js:2 Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at apihook.js?t=wechat&s=1625020877563&v=ecf7ef5c71b1d8db71da9b0f3ffd45cc:1 at e.exports (apihook.js?t=wechat&s=1625020877563&v=ecf7ef5c71b1d8db71da9b0f3ffd45cc:1) at window.__passWAServiceGlobal__ (apihook.js?t=wechat&s=1625020877563&v=ecf7ef5c71b1d8db71da9b0f3ffd45cc:1) at n.__passWAServiceGlobal__ (VM8 asdebug.js:1) at __waServiceInit__ (VM1038 WAService.js:2) at __doWAServiceInit__ (VM1038 WAService.js:2) at VM1038 WAService.js:2 at VM1038 WAService.js:2(env: Windows,mp,1.05.2105170; lib: 2.17.0) errorReport @ VM1201 WAService.js:2 thirdErrorReport @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 v @ VM1201 WAService.js:2 o @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 value @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 error (async) (anonymous) @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2
小程序分享到朋友圈进入 APP-SERVICE-SDK报错?测试小程序分享到朋友圈功能 从朋友圈分享的小程序卡片进入小程序报错 VM297:1 MiniProgramError APP-SERVICE-SDK:getExtConfigSync:fail rejected due to no permission currently Error: APP-SERVICE-SDK:getExtConfigSync:fail rejected due to no permission currently at Object.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:1743669) at < at wx.getExtConfigSync> at Object.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:120602) at setExtData (http://127.0.0.1:22159/appservice/utils/appBase/appBase.js:65:44) at Object.appLaunch (http://127.0.0.1:22159/appservice/utils/appBase/appBase.js:18:3) at ve.onLaunch (http://127.0.0.1:22159/appservice/app.js:56:13) at ve.I.t.onLaunch (http://127.0.0.1:22159/appservice/utils/ald-stat.js:134:70) at ve.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:2013540) at new ve (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:2014296) at Function.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:2014608)
2021-06-30提供一个解决这个问题的思路 给每一个列表元素加上唯一id添加scroll-view 的 scroll-into-view 属性在修改列表数组之前 给 scroll-into-view 设置为当前能够被展示的一个元素的id解释: scroll-into-view 的元素 如果出现在画面中是不会出现效果的 这样就可以先让他指定为一个位置再去添加内容就不会跑到其他位置了 在做聊天消息列表使用了这个方法,希望能够帮助到大家
scroll-view 追加数据会自动回到顶部,请问怎样解决?没有把数组值全部替换,是不断将数据追加push进数组。 基础库版本:2.10.3 const updateList = `tabs[${activeTab}].list[${page}]` const updatePage = `tabs[${activeTab}].page` this.setData({ [updateList]: res, [updatePage]: page + 1 }) <!-- 这是自定义组件的内部WXML结构 --> <scroll-view class="tab-content" enable-back-to-top="{{true}}" scroll-y="{{true}}" scroll-anchoring="{{true}}" lower-threshold="100" bindscrolltolower="updateGameList"> <view class="game-card-wrap" wx:for="{{gameListWrap}}" wx:for-item="gameList" wx:for-index="gameListIdx" wx:key="gameListIdx"> <view class="game-card" hover-class="hover-class" hover-start-time="100" wx:for="{{gameList}}" wx:for-item="game" wx:for-index="gameIdx" wx:key="gid"> </view> </view> </scroll-view>
2021-03-29