css
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
height="100" :bar-style="barStyle"></u-tabs>
|
||||
</div>
|
||||
<Situation v-if="tabIndex != 1" @toStoreDetail="toStoreDetail"></Situation>
|
||||
<Evaluate v-else @toEvaluateForm="toEvaluateForm" @toStoreDetail="toStoreDetail"></Evaluate>
|
||||
<Evaluate v-else @toEvaluateForm="toEvaluateForm" @toStoreDetail="toStoreDetail" :tabHeight="tabHeight"></Evaluate>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
@@ -33,7 +33,8 @@ export default {
|
||||
},
|
||||
backgroundNavbar: {
|
||||
background: '#fff',
|
||||
}
|
||||
},
|
||||
tabHeight: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -43,7 +44,17 @@ export default {
|
||||
if(e.tabIndex) {
|
||||
this.tabIndex = e.tabIndex
|
||||
}
|
||||
let info = uni.createSelectorQuery().select(".tab");
|
||||
info.boundingClientRect((data)=> { //data - 各种参数
|
||||
this.tabHeight = data.height
|
||||
console.log(this.tabHeight)
|
||||
}).exec()
|
||||
|
||||
},
|
||||
onShow() {
|
||||
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
change(e) {
|
||||
|
||||
@@ -84,10 +84,12 @@ export default {
|
||||
navHeight: ''
|
||||
}
|
||||
},
|
||||
props: {
|
||||
tabHeight: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// var statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
||||
this.navHeight = uni.getSystemInfoSync().statusBarHeight + 94
|
||||
|
||||
this.$dict.load(['operatorType', 'storeLevel']).then(() => {
|
||||
var all = [{dictName: '全部', dictValue: ''}]
|
||||
this.operatorTypeDict = all.concat( this.$dict.getDict('operatorType'))
|
||||
@@ -95,6 +97,11 @@ export default {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
this.navHeight = uni.getSystemInfoSync().statusBarHeight + Number(this.tabHeight) + 44
|
||||
}, 600)
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
if(this.current > this.pages) return
|
||||
|
||||
Reference in New Issue
Block a user