<template>
  <div @click="handleClick">
    <el-image :src="require('@/assets/images/index/login/banner_preference_simulate@2x.png')" fit="contain"/>
  </div>
</template>

<script>
import loginCheckMixin from '@/views/components/blocks/index-login-interceptor-mixin'
import transferMixin from '@/components/mx-transfer-mixin'

export default {
  mixins: [loginCheckMixin, transferMixin],
  name: 'index-preference-simulate',
  data() {
    return {
      path: '/zhiyuan/SimulatedVolunteer'
    }
  },
  methods: {
    async handleClick() {
      if (this.loginCheck) await this.loginCheck()
      this.transferTo(this.path)
    }
  }
}
</script>

<style scoped>

</style>
