- wx.showLoading是不是不支持mask传参?传了false没效果
wx.showLoading({ title: outData.mask || '加载中', mask: outData.ismask||true }) 发起请求 http({ 'ismask':false, 'url':'deviceMeasure/queryLatelyUse', }) ismask已经设置为false了,但是还是没有穿透效果,就像是mask设置false没生效一样
2021-07-21 - 开发工具更新到最新的版本1.03.2010240,原有的小程序一直编译不成功?
如题,但是回退到上一版本代码可以正常编译
2020-11-02 - swiper轮播图展示异常?
<swiper style='border-radius:20rpx;overflow:hidden' indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}"> <block wx:for="{{imgUrls}}" wx:key="idx" wx:for-item="itemName"> <swiper-item> <image src="{{companyurl}}{{itemName}}&token={{token}}" mode="aspectFill"></image> </swiper-item> </block> </swiper> 第一次请求接口随机有图不展示,但是图的地址是https开头的有效地址,图片有的2M,有的很小,随机不展示,等很久也不展示。 必须再请求一次接口才能全部正常展示,不晓得有没有大佬能帮忙解答下 [图片] swiper {height: 308rpx;width: 100%;overflow: hidden;} image{width:100%} data设置: indicatorDots: true,autoplay: true, interval: 4000, duration: 500, circular: true,
2020-09-29 - canvas画饼图颜色问题?
https://developers.weixin.qq.com/s/KofS6Nmv74jt 这是网上找的代码,改动了一点点,看着起点不在标准的1.5pi位置上,50%的很明显倾斜了,怎么改动呢?求指教,应该是画笔宽度问题造成的,但是不知道怎么改,求大佬指导
2020-08-22 - rich-text长文本不会自动换行?
需要解析的P标签内部文字很多,全部堆在了一行,多余的自动隐藏了,rich-text上给style加word-break: break-all;white-space: pre-warp;都不起作用
2020-08-12 - OCR识别身份证照片?
拒了,说是采集敏感信息,要求用官方的人脸识别方法,但是小程序主体不在开放范围内,如果改用使用OCR识别身份证照片收集身份信息还属于采集敏感信息吗?用过的大佬请帮忙给个答复,谢谢
2020-08-05 - 视频压缩失败?
wx.compressVideo 这个接口,真机测试,上传MP4格式或者调用摄像头微信内拍摄的视频,都不走success,走fail "compressVideo:fail:compress failed, video type not be supported"。 请问到底是支持哪种格式,保存视频API是支支持MP4格式,压缩难道不支持mp4格式?
2020-05-25 - 小程序怎么直接选择本地文件?不是wx.chooseMessageFile这种
wx.chooseMessageFile是通过聊天界面选择,有没有wx.choosFile这种的,直接能调起手机文件存储
2020-04-28 - 自定义组件内部的值怎么反馈到外部
功能需要,写了一个自定义的倒计时组件,但是组件内部的值外部怎么获知(外面怎么知道倒计时到0了) 首先是自定义组件代码: html [代码]<view [代码][代码]class[代码][代码]=[代码][代码]"inner"[代码][代码]>[代码][代码] [代码][代码]{{cuttonTime}}[代码][代码]</view>[代码]css [代码].inner {[代码][代码] [代码][代码]color: #fff;[代码][代码] [代码][代码]font-size: 28rpx;[代码][代码] [代码][代码]line-height: 54rpx;[代码][代码]}[代码]js [代码]Component({[代码][代码] [代码][代码]properties: {[代码][代码] [代码][代码]innerText: {[代码][代码] [代码][代码]type: [代码][代码]null[代码][代码],[代码][代码] [代码][代码]value: [代码][代码]''[代码][代码] [代码][代码]},[代码][代码] [代码][代码]timeText: {[代码][代码] [代码][代码]type: [代码][代码]null[代码][代码],[代码][代码] [代码][代码]value: [代码][代码]''[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]cuttonTime: [代码][代码]''[代码][代码],[代码][代码] [代码][代码]durTime: [代码][代码]''[代码][代码],[代码][代码] [代码][代码]cuttonTimeOr:[代码][代码]''[代码][代码] [代码][代码]},[代码][代码] [代码][代码]attached: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码] [代码][代码]that.properties.timeText = that.data.durTime[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]durTime: [代码][代码]parseInt[代码][代码](that.properties.innerText / [代码][代码]1000[代码][代码])[代码][代码] [代码][代码]})[代码][代码] [代码][代码]if[代码] [代码](that.data.durTime <= [代码][代码]0[代码][代码]) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]cuttonTime: [代码][代码]'超时'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]that.sktime()[代码][代码] [代码][代码]that.data.cuttonTimeOr = setInterval([代码][代码]function[代码] [代码]() { that.sktime() }, [代码][代码]1000[代码][代码]);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]detached:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]clearInterval([代码][代码]this[代码][代码].data.cuttonTimeOr)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]methods: {[代码][代码] [代码][代码]sktime: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码] [代码][代码]var[代码] [代码]sdurTime = that.data.durTime[代码][代码] [代码][代码]if[代码] [代码](!sdurTime) {[代码][代码] [代码][代码]return[代码] [代码]false[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]that.data.durTime--[代码][代码] [代码][代码]var[代码] [代码]h = [代码][代码]parseInt[代码][代码](sdurTime / [代码][代码]3600[代码][代码]);[代码][代码] [代码][代码]sdurTime %= [代码][代码]3600[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]min = [代码][代码]parseInt[代码][代码](sdurTime / [代码][代码]60[代码][代码]);[代码][代码] [代码][代码]var[代码] [代码]sec = sdurTime % [代码][代码]60[代码][代码];[代码][代码] [代码][代码]min = min < [代码][代码]10[代码] [代码]? [代码][代码]"0"[代码] [代码]+ min : min;[代码][代码] [代码][代码]sec = sec < [代码][代码]10[代码] [代码]? [代码][代码]"0"[代码] [代码]+ sec : sec;[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]cuttonTime: min + [代码][代码]":"[代码] [代码]+ sec[代码][代码] [代码][代码]})[代码][代码] [代码][代码]if[代码] [代码](that.data.durTime <= [代码][代码]0[代码][代码]) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]cuttonTime: [代码][代码]'超时'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]clearInterval(that.data.cuttonTimeOr)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码]})[代码]引入页html [代码]<view [代码][代码]class[代码][代码]=[代码][代码]"paying"[代码] [代码]bindtap=[代码][代码]'goplay'[代码] [代码]data-index=[代码][代码]"{{index}}"[代码][代码]>[代码][代码] [代码][代码]<span>付款</span>[代码][代码] [代码][代码]<time-compent inner-text=[代码][代码]"{{itemName.order.leftTime}}"[代码][代码]></time-compent>[代码][代码]</view>[代码]外部js怎么能获取到内部的这个不断变化的inner-text,谢谢
2018-03-14 - 模板消息失效
模板消息6.6.1版本微信下无效,之前微信使用的是6.5.几版本,模板消息无论是否开调试模式都可以正常接收,但是将微信版本升级到最新的6.6.1版本后,模板消息功能失效了,调试模式下是正常的,苹果端和安卓端一样的问题,求大佬解惑,谢谢 [代码]wx.request({[代码][代码] [代码][代码]url: util.Apis + [代码][代码]'/h5/**/****'[代码][代码],[代码][代码] [代码][代码]method: [代码][代码]'POST'[代码][代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]'userId'[代码][代码]: that.data.uid,[代码][代码] [代码][代码]//个人-地址信息[代码][代码] [代码][代码]'addrId'[代码][代码]: that.data.addrId,[代码][代码] [代码][代码]'receiveName'[代码][代码]: that.data.address.name,[代码][代码] [代码][代码]'receivePhone'[代码][代码]: that.data.address.phone,[代码][代码] [代码][代码]'receiveAddress'[代码][代码]: that.data.address.address,[代码][代码] [代码][代码]//商品信息[代码][代码] [代码][代码]'totalPriceNow'[代码][代码]: that.data.orderinfo.totalPriceNow, [代码][代码]// 现在的总价[代码][代码] [代码][代码]'freight'[代码][代码]: that.data.orderinfo.freight,[代码][代码]//运费[代码][代码] [代码][代码]'needPay'[代码][代码]: that.data.needpay, [代码][代码]// 应付金额[代码][代码] [代码][代码]'skuid'[代码][代码]: sid, [代码][代码]// 类型id[代码][代码] [代码][代码]'num'[代码][代码]: num, [代码][代码]// 购买数量[代码][代码] [代码][代码]'cartid'[代码][代码]: cid,[代码][代码] [代码][代码]'saleorderid'[代码][代码]: that.data.orderStateID,[代码][代码]// 满减id[代码][代码] [代码][代码]'remarkText'[代码][代码]: that.data.leaveMessage, [代码][代码]// 买家留言[代码][代码] [代码][代码]'couponId'[代码][代码]: that.data.couponID, [代码][代码]// 优惠券ID[代码][代码] [代码][代码]},[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'content-type'[代码][代码]: [代码][代码]'application/x-www-form-urlencoded'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]var[代码] [代码]oidS = res.data.data.orderBean.order.orderid[代码][代码] [代码][代码]var[代码] [代码]goodNames=[代码][代码]""[代码] [代码]//商品名字[代码][代码] [代码][代码]var[代码] [代码]orderItem = res.data.data.orderBean.orderItem[代码][代码] [代码][代码]for[代码] [代码](let i = 0; i < orderItem.length;i++){[代码][代码] [代码][代码]goodNames+=orderItem[i].name[代码][代码] [代码][代码]}[代码][代码] [代码][代码]var[代码] [代码]orderMes = res.data.data.orderBean.order[代码][代码] [代码][代码]var[代码] [代码]ordercode = orderMes.ordercode[代码][代码]//订单号[代码][代码] [代码][代码]var[代码] [代码]createTime = util.newDate(orderMes.createTime, [代码][代码]'Y-M'[代码][代码])[代码][代码]//下单时间[代码][代码] [代码][代码]var[代码] [代码]needPay = orderMes.needPay/100[代码][代码]//金额[代码][代码] [代码][代码]var[代码] [代码]toastMes = [代码][代码]'请在'[代码] [代码]+ util.newDate((orderMes.createTime - 1800000), [代码][代码]'HM'[代码][代码])+[代码][代码]'之前完成支付'[代码][代码]//截至时间[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: [代码][代码]'https://api.weixin.qq.com/cgi-bin/token'[代码][代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]grant_type: [代码][代码]'client_credential'[代码][代码],[代码][代码] [代码][代码]appid: [代码][代码]"****"[代码][代码],[代码][代码] [代码][代码]secret: [代码][代码]'****'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'content-type'[代码][代码]: [代码][代码]'application/x-www-form-urlencoded'[代码] [代码]// 默认值[代码][代码] [代码][代码]},[代码][代码] [代码][代码]method: [代码][代码]'GET'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]var[代码] [代码]accessToken = res.data.access_token[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]access_token: accessToken[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: [代码][代码]'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token='[代码] [代码]+ that.data.access_token,[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]"touser"[代码][代码]: that.data.openidLocal,[代码][代码] [代码][代码]"template_id"[代码][代码]: [代码][代码]"z-EL5eCPRPwFgIe6IjGZj9bAAzX3qKRxgoQ*****"[代码][代码],[代码][代码] [代码][代码]"page"[代码][代码]: [代码][代码]'pages/payment/payment?orid='[代码] [代码]+ oidS,[代码][代码] [代码][代码]"form_id"[代码][代码]: that.data.formId,[代码][代码] [代码][代码]"data"[代码][代码]: {[代码][代码] [代码][代码]"keyword1"[代码][代码]: {[代码][代码] [代码][代码]"value"[代码][代码]: ordercode,[代码][代码] [代码][代码]"color"[代码][代码]: [代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword2"[代码][代码]: {[代码][代码] [代码][代码]"value"[代码][代码]: createTime,[代码][代码] [代码][代码]"color"[代码][代码]: [代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword3"[代码][代码]: {[代码][代码] [代码][代码]"value"[代码][代码]: [代码][代码]'¥'[代码][代码]+needPay,[代码][代码] [代码][代码]"color"[代码][代码]: [代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword4"[代码][代码]: {[代码][代码] [代码][代码]"value"[代码][代码]: toastMes,[代码][代码] [代码][代码]"color"[代码][代码]: [代码][代码]"#173177"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]"keyword5"[代码][代码]: {[代码][代码] [代码][代码]"value"[代码][代码]: goodNames,[代码][代码] [代码][代码]"color"[代码][代码]: [代码][代码]"#173177"[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]},[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'content-type'[代码][代码]: [代码][代码]'application/json'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]method: [代码][代码]'POST'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.navigateTo({[代码][代码] [代码][代码]url: [代码][代码]'../payment/payment?orid='[代码] [代码]+ oidS[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.removeStorageSync([代码][代码]'skuids'[代码][代码])[代码][代码] [代码][代码]wx.removeStorageSync([代码][代码]'sid'[代码][代码])[代码][代码] [代码][代码]wx.removeStorageSync([代码][代码]'num'[代码][代码])[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]})[代码][代码] [代码]
2018-01-05