index.vue 1.12 KB
<template>
  <div>
    <img @click="toHome" class="icon-home" referrerpolicy="no-referrer" :src="icon_home" />
    <img @click="toMe" class="icon-me" referrerpolicy="no-referrer" :src="icon_me" />
  </div>
</template>

<script setup>
import icon_me from '@images/icon-my@2x.png'
import icon_home from '@images/icon-home@2x.png'

import { ref, reactive, onMounted } from 'vue'
const props = defineProps({
  type: String
})
const emit = defineEmits(['on-click']);
const handle = () => {
  emit('on-click', '')
}
  onMounted(() => {
    
  })
</script>

<script>
export default {
  data () {
    return {

    }
  },
  mounted () {

  },
  methods: {
    toHome () {
      // 返回首页
      this.$router.push({
        path: '/client/index'
      });
    },
    toMe () {
      this.$router.push({
        path: '/me/index'
      });
    }
  }
}
</script>

<style lang="less" scoped>
  .icon-home {
    z-index: 169;
    position: fixed;
    right: 2rem;
    bottom: 14rem;
    width: 3rem;
    height: 3rem;
  }
  .icon-me {
    z-index: 169;
    position: fixed;
    right: 2rem;
    bottom: 10rem;
    width: 3rem;
    height: 3rem;
  }
</style>