- 页面获取不到动态设置的data数据
获取接口数据后,循环添加某属性,触发时consol.log()数据是正常的,但是在页面渲染时会偶尔出现添加的数据没有渲染在页面上(想要的效果是:设置一个默认选择的效果) [代码]let spuAttr = that.data.spuAttr;[代码][代码] [代码][代码]let attrOption=spuAttr.attrOption;[代码][代码] [代码][代码]let optionArr=[];[代码][代码] [代码][代码]for[代码] [代码](let i = 0, len = attrOption.length;i<len;i++){[代码][代码] [代码][代码]for[代码] [代码](let j = 0, jLen = attrOption[i].attrOption.length; j < jLen; j++) {[代码][代码] [代码][代码]if[代码] [代码](j == 0) {[代码][代码] [代码][代码]attrOption[i].attrOption[j].class = [代码][代码]"attr-selected"[代码][代码];[代码][代码] [代码][代码]optionArr.push(attrOption[i].attrOption[j].attr_option_id);[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]attrOption[i].attrOption[j].class = [代码][代码]''[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]spuAttr: spuAttr[代码][代码] [代码][代码]});[代码]
2018-05-04 - canvas引用手机相册图片无法显示
canvas通过添加手机相册的图片,在手机上可以预览,但是无法显示,在开发者工具上是没问题的,通过 wx.chooseImage({});然后再通过wx.downloadFile({});下载了还是无法显示,请问大家有什么解决办法。
2018-02-27 - 有客户反映说表单没法提交
有客户反映在绑定手机时,提交不了,下面是代码,帮忙看一下[代码]<[代码][代码]form[代码] [代码]class[代码][代码]=[代码][代码]"gzhForm box-size"[代码] [代码]bindsubmit[代码][代码]=[代码][代码]"formBindsubmit"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"gzh_form box-size"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"form_input box-size"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]class[代码][代码]=[代码][代码]"ico-uc"[代码] [代码]src[代码][代码]=[代码][代码]"images/phone.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]bindinput[代码][代码]=[代码][代码]"inputPhone"[代码] [代码]name[代码][代码]=[代码][代码]"phone"[代码] [代码]type[代码][代码]=[代码][代码]"number"[代码] [代码]placeholder[代码][代码]=[代码][代码]"请输入会员手机"[代码] [代码]/>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"form_input box-size"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]class[代码][代码]=[代码][代码]"ico-yzm"[代码] [代码]src[代码][代码]=[代码][代码]"images/yzm.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]class[代码][代码]=[代码][代码]"yzm-input"[代码] [代码]type[代码][代码]=[代码][代码]"number"[代码] [代码]name[代码][代码]=[代码][代码]"yzm"[代码] [代码]placeholder[代码][代码]=[代码][代码]"请输入验证码"[代码] [代码]/>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"yzm-btn"[代码] [代码]bindtap[代码][代码]=[代码][代码]"reSendPhoneNum"[代码] [代码]disabled[代码][代码]=[代码][代码]"{{isdisable}}"[代码][代码]>{{verifyInfo}}</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"but_submit box-size"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"submit"[代码] [代码]formType[代码][代码]=[代码][代码]"submit"[代码][代码]>下一步</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]form[代码][代码]>[代码][代码]// 提交[代码] [代码] [代码][代码]formBindsubmit: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;[代码][代码] [代码][代码]var[代码] [代码]NUMBER = /^[0-9]*$/i;[代码][代码] [代码][代码]var[代码] [代码]phone = e.detail.value.phone;[代码][代码] [代码][代码]var[代码] [代码]yzm = e.detail.value.yzm;[代码][代码] [代码][代码]if[代码] [代码](phone.length == 0) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]tip: [代码][代码]'请输入会员手机号'[代码][代码],[代码][代码] [代码][代码]modShow: !that.data.modShow[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](!myreg.test(phone) || phone.length !== 11) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]tip: [代码][代码]'手机号有误'[代码][代码],[代码][代码] [代码][代码]modShow: !that.data.modShow[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](yzm.length == 0) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]tip: [代码][代码]'请输入验证码'[代码][代码],[代码][代码] [代码][代码]modShow: !that.data.modShow[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](!NUMBER.test(yzm) || yzm.length !== 4) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]tip: [代码][代码]'验证码有误'[代码][代码],[代码][代码] [代码][代码]modShow: !that.data.modShow[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: that.data.url + [代码][代码]'/api/syr/memberSyr!memBindByXcx.do?ajax=yes'[代码][代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]"mobile"[代码][代码]: e.detail.value.phone,[代码][代码] [代码][代码]"phoneCode"[代码][代码]: e.detail.value.yzm,[代码][代码] [代码][代码]"unionid"[代码][代码]: that.data.storage.unionid,[代码][代码] [代码][代码]"openid"[代码][代码]: that.data.storage.openid,[代码][代码] [代码][代码]"nickname"[代码][代码]: that.data.storage.nickname,[代码][代码] [代码][代码]"face"[代码][代码]: that.data.storage.face,[代码][代码] [代码][代码]"sex"[代码][代码]: that.data.storage.sex[代码][代码] [代码][代码]},[代码][代码] [代码][代码]method: [代码][代码]'POST'[代码][代码],[代码][代码] [代码][代码]header: { [代码][代码]'content-type'[代码][代码]: [代码][代码]'application/x-www-form-urlencoded'[代码] [代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]if[代码] [代码](res.data.result == 1) {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]"绑定成功"[代码][代码] [代码][代码]});[代码][代码] [代码][代码]setTimeout(() => {[代码][代码] [代码][代码]wx.redirectTo({[代码][代码] [代码][代码]url: [代码][代码]'../chongzhi/chongzhi'[代码][代码],[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}, 1000)[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]tip: res.data.message,[代码][代码] [代码][代码]modShow: !that.data.modShow[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]},[代码]
2017-10-09 - 苹果手机扫小程序码识别不到小程序
有部分苹果手机客户 反应 ,扫小程序码识别不到小程序
2017-09-14 - ios下拉刷新后页面卡死,(非scroll-view)
ios在非scroll-view页面,上拉可以加载,但执行下拉刷新后整个页面就卡死了,页面滚动不了啦 [图片]
2017-09-13 - 点击将获取到了textarea的值通过post跟get两种提交并传递到服务器异常
点击提交按钮时,将获取到了textarea的值通过post跟get两种方式提交并传递到服务器 ,有时参数会传递不到 服务器,不知道是有中文的原因还是? [图片]
2017-08-21