|
@@ -1,5 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
|
|
+ <view :style="statusBarHeight" class="status_bar">
|
|
|
|
+ </view>
|
|
<view class="top-style">
|
|
<view class="top-style">
|
|
<view style='background:#fff;border-bottom:1px solid #EEE;padding-bottom:10px;'>
|
|
<view style='background:#fff;border-bottom:1px solid #EEE;padding-bottom:10px;'>
|
|
<view class="cu-bar search">
|
|
<view class="cu-bar search">
|
|
@@ -120,7 +122,8 @@
|
|
locationType: ['全国', '黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古', '四川', '湖南', '湖北', '辽宁',
|
|
locationType: ['全国', '黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古', '四川', '湖南', '湖北', '辽宁',
|
|
'江西', '云南', '新疆', '山西', '广西', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
|
|
'江西', '云南', '新疆', '山西', '广西', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
|
|
'宁夏', '天津', '海南', '青海', '西藏', '上海', '北京'
|
|
'宁夏', '天津', '海南', '青海', '西藏', '上海', '北京'
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ statusBarHeight:"height:"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -159,9 +162,13 @@
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
console.log("buy onload")
|
|
console.log("buy onload")
|
|
- // #ifdef H5
|
|
|
|
- this.headerTop = document.getElementsByTagName('uni-page-head')[0].offsetHeight + 'px';
|
|
|
|
- // #endif
|
|
|
|
|
|
+ var that = this
|
|
|
|
+ uni.getSystemInfo({
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log("statusBarHeight",res.statusBarHeight)
|
|
|
|
+ that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
|
|
|
|
+ },
|
|
|
|
+ });
|
|
this.cateId = options.tid ? options.tid : 0;
|
|
this.cateId = options.tid ? options.tid : 0;
|
|
this.keywords = options.keywords ? options.keywords : ''
|
|
this.keywords = options.keywords ? options.keywords : ''
|
|
this.loadData();
|
|
this.loadData();
|
|
@@ -848,4 +855,8 @@
|
|
position: fixed;
|
|
position: fixed;
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .status_bar {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|