- 微信小程序在安卓端input框获取焦点时,出现重影并马上消失
微信小程序在安卓端input框获取焦点时,出现重影并马上消失,这是什么原因
2018-06-05 - 请问在在开发工具中调试速度正常,后面用真机调试速度较慢是什么问题?
请技术高手帮忙看看。使用的组件数量接近三四十个,几乎都需要事件响应。输入框离开时触发,下拉选择也触发。使用真机调试下拉框弹出来的数据的比较慢 [图片] js部分代码: p_width: function (event) { this.data.p_width = event.detail let ab = ((this.data.p_long + this.data.p_width) * 2) / 1000 / 13 * 9 this.setData({ pv_width: event.detail, pv_silica_gel: ab.toPrecision(1) }) }, p_long: function (event) { this.data.p_long = event.detail this.setData({ pv_long: event.detail }) }, p_height: function (event) { this.setData({ pv_height: event.detail }) }, p_pailei_a: function (event) { this.data.p_pailei_a = event.detail this.setData({ pv_pailei_a: event.detail }) }, p_pailei_b: function (event) { this.data.p_pailei_b = event.detail this.setData({ pv_pailei_b: event.detail }) }, p_battery_long: function (event) { this.data.p_battery_long = event.detail this.setData({ pv_battery_long: event.detail }) }, p_battery_width: function (event) { this.data.p_b_width = event.detail let a = event.detail / this.data.p_battery_long * this.data.p_pailei_a * this.data.p_pailei_b let ab = a * 0.01 * 4.5 this.data.aa = a this.setData({ pv_battery_width: event.detail, pv_djzp_waat: a.toPrecision(2), pv_other: ab.toPrecision(2) }) }, 。。。。。。 。。。略部分代码。。。 。。。。。 p_welding_price: function (event) { let jj = (this.data.p_b_width) * 1.8 * (this.data.p_pailei_a) * (this.data.p_pailei_b + 1) * 5 / 1000 * 0.0022 * event.detail // console.log(jj) this.setData({ pv_welding_price: event.detail, pv_welding: jj.toPrecision(2) }) }, p_welding_p: function (event) { let kk = (this.data.p_b_width) * 1.8 * (this.data.p_pailei_a) * (this.data.p_pailei_b + 1) * 5 / 1000 * 0.0022 * event.detail.value this.setData({ pv_welding: kk.toPrecision(2) }) }, p_bus_price: function (event) { this.setData({ pv_bus_price: event.detail }) }, p_border_price: function (event) { let ll = ((this.data.p_long + this.data.p_width) * 2 * event.detail)/1000 // console.log(jj) this.setData({ pv_border_price: event.detail, pv_border: ll.toPrecision(2) }) }, p_border_p: function (event) { let mm = ((this.data.p_long + this.data.p_width) * 2 * event.detail.value)/1000 this.setData({ pv_border: mm.toPrecision(2) }) }, 在开发工具中调试速度还算正常,只要上真机调试速度就慢了,,, wxml部分代码
2020-02-15