1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <view class="div ui-detail" ref="content">
- <view class="div">
- <desc-item
- v-if="detailInfo"
- ></desc-item>
- </view>
- <v-back-top v-if="isshowBacktop" :target="target"></v-back-top>
- </view>
- </template>
- <script>
- import { mapState } from 'vuex'
- import DescItem from './DescItem'
- import BackTop from './DetailBackTop'
- export default {
- data () {
- return {
- isshowBacktop: false
- }
- },
- mounted () {
- // 计算内容高度
- this.$nextTick(() => {
- this.target = this.$refs.content
- })
- },
- components: {
- 'desc-item': DescItem,
- 'v-back-top': BackTop
- },
- computed: mapState({
- detailInfo: state => state.pointsgoods.detailInfo,
- }),
- methods: {}
- }
- </script>
- <style lang="scss" scoped>
- .ui-detail {
- height: 100%;
- overflow: auto;
- }
- </style>
|