- 1.50 基础库 wx.navigateTo 后 this.setData 无效
wx.navigateTo({ url: '../../pages/good/order/index?merchantid=' + that.data.Merchant.id, success: function (res) { }, fail: function () { }, complete: function () { } }) 打开新页面 onLoad: function (options) { console.log(options) this.setData(options) }, 可以输出结果 但是 setData 是 无效的 1.4.3 版本正常 BUG出现步骤 第一次正常跳转页面 是正常的,可以看到 merchantid 已经设置到 data 属性里面 之后 后退 在 执行上述 代码 就 无效了 ,但是输出options 是有数据的,
2017-08-20 - Canvas与map 兼容问题
[图片] 描述1,在IDE 下设计时候 点击 黑色透明区域 时候 map 组件是获得不到点击事件的 描述2,在 真机调试的时候 点击 黑色透明区域 又获得了 点击事件, 问题: 在真机环境下 如何能让 Canvas 获得点击事件 而 map 不收到点击事件 代码: <map id="myMap" class="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="12" style="width: 100%; height:91.6vh; position: absolute; top: 8.4vh;z-index:97;" show-location controls="{{controls}}" bindregionchange="regionchange" bindcontroltap="mygps" markers="{{markers}}" bindmarkertap="click_business" > </map> <canvas class="" style="width: 100%; height: 40vh;position:absolute;top:8.4vh;z-index:999;" canvas-id="firstCanvas"> </canvas>
2017-07-15