diff --git a/src/project/fengdu/AppStore/AppStore.vue b/src/project/fengdu/AppStore/AppStore.vue index 553277a..00f4aad 100644 --- a/src/project/fengdu/AppStore/AppStore.vue +++ b/src/project/fengdu/AppStore/AppStore.vue @@ -6,7 +6,7 @@ height="100" :bar-style="barStyle"> - + @@ -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) { diff --git a/src/project/fengdu/AppStore/components/Evaluate.vue b/src/project/fengdu/AppStore/components/Evaluate.vue index 03ff213..e6c398a 100644 --- a/src/project/fengdu/AppStore/components/Evaluate.vue +++ b/src/project/fengdu/AppStore/components/Evaluate.vue @@ -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