- picker选项跳跃问题?
[代码]<[代码][代码]picker[代码] [代码]mode[代码][代码]=[代码][代码]"multiSelector"[代码] [代码]range[代码][代码]=[代码][代码]"cityRange"[代码][代码]>[代码][代码]const { column, value } = e.mp.detail[代码] [代码]if[代码] [代码](colum === 1) {[代码][代码]try[代码] [代码]{[代码][代码] [代码][代码]const curCityCode1 = [代码][代码]this[代码][代码].cityRange[1][value].areaCode[代码][代码] [代码][代码]} [代码][代码]catch[代码] [代码](error) {[代码][代码] [代码][代码]error.message = error.message + JSON.stringify({ [代码][代码]'province'[代码][代码]: [代码][代码]this[代码][代码].cityRange[0][cityIndex[0]], value, curCityCode: [代码][代码]this[代码][代码].cityRange[1] })[代码][代码] [代码][代码]throw[代码] [代码]error[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码]}[代码]选择后的代码报错日志 [代码]Cannot [代码][代码]read[代码] [代码]property [代码][代码]'areaCode'[代码] [代码]of undefined{[代码][代码]"province"[代码][代码]:{[代码][代码]"areaCode"[代码][代码]:[代码][代码]"220000"[代码][代码],[代码][代码]"areaName"[代码][代码]:[代码][代码]"重庆"[代码][代码],[代码][代码]"aliV2AreaCode"[代码][代码]:[代码][代码]"500000"[代码][代码],[代码][代码]"parentArea"[代码][代码]:[代码][代码]""[代码][代码]},[代码][代码]"value"[代码][代码]:17,[代码][代码]"curCityCode"[代码][代码]:[{[代码][代码]"areaCode"[代码][代码]:[代码][代码]"222200"[代码][代码],[代码][代码]"areaName"[代码][代码]:[代码][代码]"重庆市"[代码][代码],[代码][代码]"aliV2AreaCode"[代码][代码]:[代码][代码]"500100"[代码][代码],[代码][代码]"parentArea"[代码][代码]:[代码][代码]"220000"[代码][代码]},{[代码][代码]"areaCode"[代码][代码]:[代码][代码]"222300"[代码][代码],[代码][代码]"areaName"[代码][代码]:[代码][代码]"重庆郊县"[代码][代码],[代码][代码]"aliV2AreaCode"[代码][代码]:[代码][代码]"500200"[代码][代码],[代码][代码]"parentArea"[代码][代码]:[代码][代码]"220000"[代码][代码]}]}; [Component] Event Handler Error @ pages[代码][代码]/soleProInfosConfirm/main[代码][代码]#bound handleProxy[代码][代码]{"province":{"areaCode":"220000","areaName":"重庆","aliV2AreaCode":"500000","parentArea":""},"value":17,"curCityCode":[{"areaCode":"222200","areaName":"重庆市","aliV2AreaCode":"500100","parentArea":"220000"},{"areaCode":"222300","areaName":"重庆郊县","aliV2AreaCode":"500200","parentArea":"220000"}]}[代码] 报错打印出来的value竟然是17,我第二个选择是[代码][代码][代码]curCityCode: [代码][代码]this[代码][代码].cityRange[1],[代码] [代码][{"areaCode":"222200","areaName":"重庆市","aliV2AreaCode":"500100","parentArea":"220000"},{"areaCode":"222300","areaName":"重庆郊县","aliV2AreaCode":"500200","parentArea":"220000"}][代码] [代码]只有2个选项,为什么会出现17[代码] [代码]只有部分手机会,测试环境几部手机都没测出问题来,个别用户就报[代码] [代码][图片] [代码]
2019-10-17 - 求微信小程序所需要访问的地址集合
- 需求的场景描述(希望解决的问题) - 希望提供的能力 希望我们公司只能连接内部网络,现在开发小程序需要申请访问外网域名权限? https://apis.map.qq.com https://servicewechat.com https://open.weixin.qq.com 现在添加了这个几个, 现在启动小程序 wx.getLocation({ type: 'gcj02', success:console.log,fail:console.log}) 都报错 希望能提供一下所有开发所需的域名和IP
2019-05-31