<template>
  <div id="user-2">
    <admin-frame :useTop="false" :usePage="false" :useNav="false">
      <template v-slot:info>
        <van-col span="24" class="one">
          <user-top></user-top>
        </van-col>
        <van-col span="24" class="two" :style="{ height: client.height - 140 + 'px' }">
          <answertea-btn></answertea-btn>
        </van-col>
      </template>
    </admin-frame>
  </div>
</template>

<script>
import answerteaBtn from '../answertea/answerteaBtn.vue';
import userTop from '../parts/userTop.vue';
import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'user-2',
  props: {},
  components: {
    adminFrame,
    userTop,
    answerteaBtn,
  },
  data: function () {
    return { client: {} };
  },
  created() {},
  methods: {},
  mounted() {
    let client = {
      height: document.documentElement.clientHeight || document.body.clientHeight,
      width: document.documentElement.clientWidth || document.body.clientWidth,
    };
    this.$set(this, `client`, client);
  },
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.two {
  overflow-y: auto;
}
</style>
