exhibit-item.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="exhibit-item exhibitor-item" hover-class="active" @click="onClickExhibit(item)">
  3. <view class="exhibit-body">
  4. <view class="exhibitor-body">
  5. <view class="exhibitor-logo"><image src="https://oss.starify.cn/prod/starify/up/0001000075/20241113/67343f1c494de.png?x-oss-process=image/resize,w_400" mode="aspectFit" /></view>
  6. <view class="exhibitor-name">汽车连接器 86W MLK 1,2 SD-HOLDER</view>
  7. <view class="exhibitor-number">
  8. <view class="exhibitor-number-label">展位号:</view>
  9. <view class="exhibitor-number-text">E1.1101</view>
  10. </view>
  11. </view>
  12. <view class="exhibitor-name">
  13. <view class="exhibitor-name-cn">科世达(上海)连接器有限公司</view>
  14. <view class="exhibitor-name-en">Leopold Kostal GmbH & Co. KG</view>
  15. </view>
  16. </view>
  17. <view v-if="!footerHidden" class="exhibitor-footer">
  18. <view class="exhibitor-views">浏览:30911</view>
  19. <view class="exhibitor-action">
  20. <view>
  21. <button @click.stop="onShare(item)" :plain="true">
  22. <view>
  23. <view class="iconfont icon-zhuanfa"></view>
  24. <view>分享</view>
  25. </view>
  26. </button>
  27. </view>
  28. <view>
  29. <view v-if="item.favourited" class="iconfont icon-favourites-filled-star-symbol active"></view>
  30. <view v-else class="iconfont icon-Favourites-Add-Large"></view>
  31. <view>收藏</view>
  32. </view>
  33. <view>
  34. <view v-if="item.liked" class="iconfont icon-aixin active"></view>
  35. <view v-else class="iconfont icon-heart1"></view>
  36. <view>点赞</view>
  37. </view>
  38. <view>
  39. <view v-if="item.voted" class="iconfont icon-Ticket1 active"></view>
  40. <view v-else class="iconfont icon-xiaochengxu-toupiaoicon"></view>
  41. <view>投票</view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. options: {
  50. styleIsolation: 'shared'
  51. },
  52. components: {
  53. },
  54. props: {
  55. // 数据
  56. item: Object,
  57. footerHidden: Boolean
  58. },
  59. data() {
  60. return {
  61. }
  62. },
  63. created() {
  64. },
  65. methods: {
  66. onShare(item) {
  67. const shareInfo = {
  68. title: item.name || '汽车连接器 86W MLK 1,2 SD-HOLDER',
  69. path: `/pages/exhibitor/exhibit-detail`,
  70. imageUrl: 'https://oss.starify.cn/prod/starify/up/0001000075/20241113/67343f1c494de.png?x-oss-process=image/resize,w_400'
  71. }
  72. this.$emit('share', {
  73. detail: shareInfo
  74. })
  75. },
  76. onClickExhibit(item) {
  77. this.navigateTo('/pages/exhibitor/exhibit-detail')
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss">
  83. </style>