android 控件高度不变,支付宝小程序中,地图控件的大小设置在Android上有用,在苹果手机上不变,请问怎么解决?...

var personControls = {

id: 10000, //代表个人中心控件

iconPath: '/static/img/icon/tab-personHL.png',

position: {

left: (systemInfo.windowWidth 8) / 10, //距离屏幕左侧9/10

top: (systemInfo.windowHeight 3) / 10,

width: 80,

height: 80

},

clickable: true

}

var scanControls = {

id: 10001, //代表扫描控件

iconPath: '/static/img/icon/scan.png',

position: {

left: (systemInfo.windowWidth - 90) / 2, //位于屏幕中间

top: (systemInfo.windowHeight 7) / 10,

width: 90,

height: 90

},

clickable: true

}

var positionControls = {

id: 10002, //代表定位组件

iconPath: '/static/img/icon/position.png',

position: {

left: (systemInfo.windowWidth 8) / 10, //位于屏幕中间

top: (systemInfo.windowHeight 2) / 10,

width: 40,

height: 40

},

clickable: true

}

var helpControls = {

id: 10003, //代表定位组件

iconPath: '/static/img/icon/help.png',

position: {

left: (systemInfo.windowWidth 8) / 10, //位于屏幕中间

top: (systemInfo.windowHeight 1) / 10,

// width: 40,

// height: 40

},

clickable: true

}

var inputCodeControls = {

id: 10004, //代表定位组件

iconPath: '/static/img/icon/inputcode.png',

position: {

left: (systemInfo.windowWidth 8) / 10, //位于屏幕中间

top: (systemInfo.windowHeight * 4) / 10,

// width: 40,

// height: 40

},

clickable: true

}

this.controls.push(personControls);

this.controls.push(scanControls);

this.controls.push(positionControls);

this.controls.push(helpControls);

this.controls.push(inputCodeControls);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值