exhibit-item.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. uni.navigateTo({
  78. url: '/pages/exhibitor/exhibit-detail'
  79. })
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss">
  85. </style>