<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>
