weilai.vue 692 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div id="weilai">
  3. <el-row>
  4. <el-col :span="24" class="image" v-if="info">
  5. <el-link :underline="false" @click="turnTo">
  6. <el-image style="width:100%;height:200px;" :src="info.pic || ''"></el-image>
  7. </el-link>
  8. </el-col>
  9. </el-row>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. name: 'weilai',
  15. props: {
  16. info: null,
  17. },
  18. components: {},
  19. data: () => ({
  20. url: require('@/assets/weilai.jpg'),
  21. }),
  22. created() {},
  23. computed: {},
  24. methods: {
  25. turnTo() {
  26. if (this.info.type == '0') window.open(`.${this.info.url}`);
  27. else window.open(this.info.url);
  28. },
  29. },
  30. };
  31. </script>
  32. <style lang="less" scoped></style>