- wx.downloadFile 下载网络图片报错 ?
1》所有真机 https://mdapi.zjwist.com/mediainfo3/get/282264 真机返回 tempFilePath: "wxfile://tmp_8a9ac20f2668d82b48eda9157d6dba4fd0c7fd6ff8bef084c593bbce5efca43a.unknown" 模拟器 返回 tempFilePath: "http://tmp/wxda75989e3497bf5e.o6zAJs0l9iSa4k6xu3q9PFnprXy4.wFdvvTfsymXXf91f8a4d204c0c50b1fcc5fb48e7251c" [图片]2》 华为手机所有网络图片返回都是错误的 例子1 : https://mdapi.zjwist.com/mediainfo3/get/282264 返回 tempFilePath: "wxfile://tmp_523ae1f473b90ea45ed60150bd75f8bd27c7df6c128613214c644324d5853d83.unknown" 例子2 : https://mdapi.zjwist.com/mediainfo3/get/415694 返回tempFilePath: "wxfile://tmp_1151ea5596a616803c3cb811d2d79d152fb27ec7081d5e15c4bdcbea0f81f39e.unknown" ondowntap(e) { var url = "https://mdapi.zjwist.com/mediainfo3/get/282264"; var that =this; console.log("------", url); wx.showLoading({ title: "图片下载中", }) wx.downloadFile({ url: url, success: function (res) { console.log("------", res); wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success(result) { console.log("-----success-", result); wx.hideLoading() wx.showToast({ title: "下载完成", icon: 'none', duration: 1000, }); } }) }, fail: function (res) { console.log("------fail", res); wx.hideLoading() } }) } [图片][图片]
2020-06-10 - 小程序在iphone6splus无法使用?
[图片]
2020-03-10 - 小程序更新完成小程序黑屏,微信无响应?
//app.js App({ onLaunch: function () { var that = this; const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { // 请求完新版本信息的回调 console.log(res.hasUpdate) }) updateManager.onUpdateReady(function () { wx.showModal({ title: '更新提示', content: '新版本已经准备好,是否重启应用?', success: function (res) { if (res.confirm) { // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启 updateManager.applyUpdate() } } }) }) updateManager.onUpdateFailed(function () { // 新的版本下载失败 wx.showModal({ title: '更新提示', content: '新版本下载失败', showCancel: false }) }) try { var res = wx.getSystemInfoSync() that.globalData.windowWidth = res.windowWidth; that.globalData.windowHeight = res.windowHeight; var windowWidth = res.windowWidth; var windowHeight = res.windowHeight; var imgheight = windowWidth * 360.0 / 750; wx.setStorageSync("imgheight", imgheight); var imgheight2 = (windowHeight - imgheight) / 2 - 5; wx.setStorageSync("imgheight2", imgheight2); var top = (imgheight2 - 80) / 3; wx.setStorageSync("top", top); } catch (e) { } }, //appid线上 wxda75989e3497bf5e //测试 wx4e627044f8b2ee3c globalData: { }, })
2019-12-11 - console 能不能打印时间 2019-06-13 09:41:20.588
console 日志能不能打印时间 2019-06-13 09:41:20.588 [图片]
2019-06-13 - bottom: 0; position: fixed; 滑动过程中 无效
bottom: 0; position: fixed; 滑动过程中 会出现 上滑滑动,不会固定
2019-06-12 - wx.createSelectorQuery() 滑动速度快的时候 不返回数
/** * 页面滚动监听 */ onPageScroll: function (e) { // console.log("onPageScroll 返回时间" + utils.formatTime(new Date())) // console.log(e) let that = this; let query = wx.createSelectorQuery(); query.selectAll(".view_ls_item").boundingClientRect(); query.exec(function (res) { // console.log(res) //会出现5s 钟不打印日志 (模拟器不会出现) console.log("query 返回时间" + utils.formatTime(new Date())) that.exec(res[0]); }) },
2019-05-23 - 下拉显示上一个界面
[图片] 手机版本 ios 12.2 ,名称 iphone 8 plus 微信版本 7.0.3 开发者工具 版本 1.02.1904090 基础调试库 2.1.1 以前微信版本 不会出现上面问题 ,更新最新版本 就出现了
2019-04-28 - 下拉显示上一个界面
[图片] 手机版本 ios 12.2 ,名称 iphone 8 plus 微信版本 7.0.3 开发者工具 版本 1.02.1904090 基础调试库 2.1.1 以前微信版本 不会出现上面问题 ,更新最新版本 就出现了 https://developers.weixin.qq.com/s/IgEpMXmb7x7m
2019-04-28 - onShow
小程序第一次启动home 页面,数据加载成功 onshow 方法没走 onShow: function() { var that = this; wx.onUserCaptureScreen(function(res) { var screenshotlog = wx.getStorageSync("screenshotlog") console.log("======================onUserCaptureScreen", screenshotlog + "========"); if (screenshotlog) { that.post(); } }); }, 日志没有打印出来
2019-04-19 - 审核问题
修改了登录界面,什么时候能审核通过,急,谢谢 帅哥美女
2019-03-12