- 小程序发券插件回掉的插入卡包文案可以修改吗?
请问小程序发券插件send-coupon发券成功后的提示可以自定义修改或者隐藏吗
2021-06-24 - 线上小程序突然页面空白?
昨天发布新版本后,有些用户突然打开小程序空白,版本只更新了首页添加一张图片及一个新弹框,这是什么原因,看用户日志也没报错
2021-01-19 - 后台自定义分析用不了?
[图片]从昨天开始自定义分析一直查询失败是为什么呢
2020-12-16 - cleartimeout无法清除定时器?
// pages/common/test.js var counteventtimes = []; Page({ data: { memberimgUrls: [{ "id": 1, "name": "1111", "list": [{ "start_time": "1590064200", "end_time": "1590150600", "status": "going" }] }, { "id": 5, "name": "3332", "desc": "444", "list": [{ "start_time": "1590064200", "end_time": "1590150600", "status": "going" }, { "start_time": "1590060600", "end_time": "1590147000", "status": "going" }, { "start_time": "1590033600", "end_time": "1590638400", "status": "going" }, { "start_time": "1590134400", "end_time": "1590220800", "status": "going" }] } ] }, goToIndex(){ wx.switchTab({ url: '../index/index', }) }, /** * 生命周期函数--监听页面显示 */ onShow: function () { for (var i = 0; i < this.data.memberimgUrls.length; i++) { clearTimeout(counteventtimes[i]); if (this.data.memberimgUrls[i].list.length > 0) { for (var j = 0; j < this.data.memberimgUrls[i].list.length; j++) { this.data.memberimgUrls[i].list[j].counttime = '00:00:00'; if (this.data.memberimgUrls[i].list[j].status == 'going') { this.countEventTime(this.data.memberimgUrls[i].list[j].end_time, i, j, this.data.memberimgUrls[i].list[j].status) } } } } }, countEventTime(endtime, frindex, secindex, status) { console.log(1) var stime = Date.parse(new Date()) / 1000, endtime = endtime, status = status, frindex = frindex, secindex = secindex; var leftTime = endtime - stime; var d, h, m, s; d = Math.floor(leftTime / 60 / 60 / 24); if (leftTime > 0) { h = d * 24 + Math.floor(leftTime / 60 / 60 % 24); m = Math.floor(leftTime / 60 % 60); s = Math.floor(leftTime % 60); this.data.memberimgUrls[frindex].list[secindex].percent = (((Date.parse(new Date()) / 1000 - this.data.memberimgUrls[frindex].list[secindex].start_time) / (this.data.memberimgUrls[frindex].list[secindex].end_time - this.data.memberimgUrls[frindex].list[secindex].start_time)).toFixed(2)) * 100; this.setData({ memberimgUrls: this.data.memberimgUrls }) } else if (leftTime <= 0) { if (status == 'going') { h = 0; m = 0; s = 0; } else { h = 0; m = 0; s = 0; } } h = checkTime(h); m = checkTime(m); s = checkTime(s); function checkTime(i) { if (i < 10) { i = "0" + i; } return i; } if (d <= 0) { this.data.memberimgUrls[frindex].list[secindex].counttime = h + ':' + m + ':' + s; this.setData({ memberimgUrls: this.data.memberimgUrls }) } else { this.data.memberimgUrls[frindex].list[secindex].counttime = d + '天'; this.setData({ memberimgUrls: this.data.memberimgUrls }) } var that = this; counteventtimes[frindex] = setTimeout(function () { that.countEventTime(endtime, frindex, secindex, status); }, 1000); }, onHide: function () { for (var i = 0; i < this.data.memberimgUrls.length; i++) { for (var j = 0; j < this.data.memberimgUrls[i].list.length; j++) { if (this.data.memberimgUrls[i].list[j].status == 'going') { clearTimeout(this.data.memberimgUrls[i].list[j]); } } } } }) 是清除方法不对吗
2020-05-22 - 安卓手机复制短信验证码操作页面会重新进入onshow?
复制短信验证码并没有离开页面为什么会重新进入onshow生命周期呢,这个能解决吗
2020-05-15 - textarea安卓机键盘弹起输入框没有往上推?
[图片]聚焦时输入框被挡住一半,是为什么呢
2020-04-20 - 模拟弱网情况,调接口出现网络请求超时,网络重新恢复,接口请求不会再次进入成功的函数吗?
在点击调接口的时候模拟弱网,直到出现网络请求超时,此时再打开网络,接口请求成功,但是不再走请求成功的函数,这是什么原因呢
2020-04-16 - wx.getlocation 部分手机报错问题,一直fail?
[图片] 微信版本号:7.0.13 基础库:2.10.4 系统类型:Android 10 手机:HUAWEI 设备型号:LIO-AN00 定位都打开了,4g和wifi也都试过了,还是无法定位,还有可能是什么原因吗
2020-04-16 - wx.requestSubscribeMessage最低基础库版本是2.4.4还是2.8.2?
[图片] 上面说2.4.4开始支持,下面是说2.8.2才可以调起
2020-03-31 - 请问开发工具怎么能不展示时间信息?
[图片]
2020-03-03