index-preference-simulate.vue 673 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div @click="handleClick">
  3. <el-image :src="require('@/assets/images/index/login/banner_preference_simulate@2x.png')" fit="contain"/>
  4. </div>
  5. </template>
  6. <script>
  7. import loginCheckMixin from '@/views/components/blocks/index-login-interceptor-mixin'
  8. import transferMixin from '@/components/mx-transfer-mixin'
  9. export default {
  10. mixins: [loginCheckMixin, transferMixin],
  11. name: 'index-preference-simulate',
  12. data() {
  13. return {
  14. path: '/zhiyuan/SimulatedVolunteer'
  15. }
  16. },
  17. methods: {
  18. async handleClick() {
  19. if (this.loginCheck) await this.loginCheck()
  20. this.transferTo(this.path)
  21. }
  22. }
  23. }
  24. </script>
  25. <style scoped>
  26. </style>