52 lines
890 B
Vue
52 lines
890 B
Vue
<template>
|
|
<view>
|
|
<navBar leftText="个股中心" hideNavBg hideBack></navBar>
|
|
<image class="topBg absolute" src="/static/image/index/conceptTopBg.png" mode="widthFix"></image>
|
|
|
|
<scroll-view scroll-y class="stockDetailsC fixed" :style="'top:'+contentTop+'px;'">
|
|
|
|
</scroll-view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
inject
|
|
} from 'vue'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
navH: inject('navHeight'),
|
|
contentTop: '',
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
this.activeIndex = e.index
|
|
this.contentTop = this.navH + 20 / 750 * inject('windowWidth')
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less">
|
|
page {
|
|
background-color: #070707;
|
|
}
|
|
|
|
.topBg {
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.stockDetailsC {
|
|
left: 0;
|
|
right: 0;
|
|
bottom: calc(55px + env(safe-area-inset-bottom));
|
|
}
|
|
</style> |