map组件 controls 大小乱了
发布于 6 年前 作者 gang53 9848 次浏览 来自 问答

正常大小  40*40

ios 11.11

代码

controls: [{
           id: 1,
           iconPath: '/assets/images/location.png',
           position: {
               left: 10,
               top: wx.getSystemInfoSync().windowHeight - 70,
               width: 40,
               height: 40
           },
           clickable: true
       }, {
           id: 3,
           iconPath: '/assets/images/engineer.png',
           position: {
               left: 10,
               top: wx.getSystemInfoSync().windowHeight - 120,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }, {
           id: 2,
           iconPath: '/assets/images/my.png',
           position: {
               left: wx.getSystemInfoSync().windowWidth - 50,
               top: wx.getSystemInfoSync().windowHeight - 120,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }, {
           id: 4,
           iconPath: '/assets/images/custom.png',
           position: {
               left: wx.getSystemInfoSync().windowWidth - 50,
               top: wx.getSystemInfoSync().windowHeight - 70,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }]

4 回复

微信版本6.5.2比较老了,麻烦更新一下看看

这api也是醉了只有left,top没有bottom,right。大腾讯技术就是牛叉。

能否给下完整的代码包试试。 另外也请考虑使用cover-view来替代

已更新6.6.5,问题依旧

回到顶部