html安卓 高度显示异常,app页面 本地浏览器显示高度布局正常 换到真机测试 子页面高度就不能撑满屏幕...

chrome浏览器下测试子页面布局高度正常

520d9ee60b802d4f1ea2081771ee155f.png

真机测试下

77b6c95562636b23861e2eda04baf684.png

//启用双击监听

mui.init({

gestureConfig:{

doubletap:true

},

subpages:[{

url:'student-statistics-echarts.html',

id:'student-statistics-echarts.html',

styles:{

top: '45px',

bottom: '0px',

}

}]

});

var contentWebview = null;

document.querySelector('header').addEventListener('doubletap',function () {

if(contentWebview==null){

contentWebview = plus.webview.currentWebview().children()[0];

}

contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");

});

.chart {

height: 300px;

margin: 0px;

padding: 0px;

}

h5 {

margin-top: 30px;

font-weight: bold;

}

h5:first-child {

margin-top: 15px;

}

.mui-scroll{

height:100%;

}

.mui-table-view{

height:100%

}

mui.init({

pullRefresh: {

container: '#pullrefresh',

down: {

callback: pulldownRefresh

}

}

});

var lineOption = {

legend: {

data: ['今日报名人数', '当月报名人数','上月报名人数']

},

grid: {

x: 35,

x2: 10,

y: 50,

y2: 25

},

calculable: false,

xAxis: [{

type: 'category',

data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']

}],

yAxis: [{

type: 'value',

splitArea: {

show: true

}

}],

series: [{

name: '今日报名人数',

type: 'line',

data: [1.0, 3.9, 7.0, 20.2, 20.6, 50.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]

}, {

name: '当月报名人数',

type: 'line',

data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]

}, {

name: '上月报名人数',

type: 'line',

data: [2.3, 4.9, 8.0, 24.4, 26.7, 66.7, 155.6, 172.2, 40.7, 13.8, 5.0, 2.5]

}]

};

var byId = function(id) {

return document.getElementById(id);

};

var lineChart = echarts.init(byId('lineChart'));

lineChart.setOption(lineOption);

/**

* 下拉刷新具体业务实现

*/

function pulldownRefresh() {

setTimeout(function() {

mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); //refresh completed

}, 1500);

}

// if (mui.os.plus) {

// mui.plusReady(function() {

// setTimeout(function() {

// mui('#pullrefresh').pullRefresh().pullupLoading();

// }, 1000);

//

// });

// } else {

// mui.ready(function() {

// mui('#pullrefresh').pullRefresh().pullupLoading();

// });

// }

有没有大神知道是什么问题

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值