exhibit-detail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view class="exhibit-detail exhibitor-detail">
  3. <nav-bar title="展品介绍" @init="onInitNavbar"></nav-bar>
  4. <u-scroll-view>
  5. <view class="main-container">
  6. <view class="exhibit-image">
  7. <image src="https://oss.starify.cn/prod/starify/up/0001000075/20241113/67343f1c494de.png?x-oss-process=image/resize,w_800" mode="aspectFit"/>
  8. <view class="exhibit-tag">2025新品</view>
  9. </view>
  10. <view class="exhibit-name">汽车连接器 86W MLK 1,2 SD-HOLDER</view>
  11. <view class="exhibit-desc">适用于连接器、连接器系统的生产加工,汽车零部件、电子元器件、机械设备及其零配件、工具、模具、连接器产品及其生产设备的批发、进出口、佣金代理(拍卖除外),并提供相关配套服务(包括上门安装、保养、维修服务)。</view>
  12. <view class="exhibit-tags exhibitor-tags">
  13. <view class="exhibitor-tags-category">产品分类:</view>
  14. <view class="exhibitor-tags-list">
  15. <view class="exhibitor-tag">柔性与印刷电子</view>
  16. <view class="exhibitor-tag">电子制造服务</view>
  17. <view class="exhibitor-tag">PCB焊接和连接技术</view>
  18. <view class="exhibitor-tag">线束和连接器</view>
  19. <view class="exhibitor-tag">柔性与印刷电子</view>
  20. <view class="exhibitor-tag">电子制造服务</view>
  21. </view>
  22. </view>
  23. <view class="exhibit-tags exhibitor-tags">
  24. <view class="exhibitor-tags-category">应用领域:</view>
  25. <view class="exhibitor-tags-list"></view>
  26. <view class="exhibitor-tag">电脑和周边设备</view>
  27. <view class="exhibitor-tag">新能源</view>
  28. </view>
  29. <view class="exhibit-operation exhibitor-operation">
  30. <view class="exhibitor-views">浏览:30911</view>
  31. <view class="exhibitor-action">
  32. <view>
  33. <view class="iconfont icon-xiaochengxu-renqiicon"></view>
  34. <view>人气:11192</view>
  35. </view>
  36. <view>
  37. <button :plain="true">
  38. <view>
  39. <view class="iconfont icon-zhuanfa"></view>
  40. <view>分享</view>
  41. </view>
  42. </button>
  43. </view>
  44. <view>
  45. <view v-if="exhibitor.favourited" class="iconfont icon-favourites-filled-star-symbol active"></view>
  46. <view v-else class="iconfont icon-Favourites-Add-Large"></view>
  47. <view>收藏</view>
  48. </view>
  49. <view>
  50. <view v-if="exhibitor.liked" class="iconfont icon-aixin active"></view>
  51. <view v-else class="iconfont icon-heart1"></view>
  52. <view>点赞</view>
  53. </view>
  54. <view>
  55. <view v-if="exhibitor.voted" class="iconfont icon-Ticket1 active"></view>
  56. <view v-else class="iconfont icon-xiaochengxu-toupiaoicon"></view>
  57. <view>投票</view>
  58. </view>
  59. </view>
  60. </view>
  61. <u-panel title="展商信息">
  62. <view class="exhibitor-card">
  63. <view class="exhibitor-info">
  64. <view class="exhibitor-logo">
  65. <image src="/static/img/example/kostal_log.png" mode="aspectFit" />
  66. </view>
  67. <view class="exhibitor-name-cn">科世达(上海)连接器有限公司</view>
  68. <view class="exhibitor-name-en">Leopold Kostal GmbH & Co. KG</view>
  69. <view class="exhibitor-detail-link">
  70. <van-button type="primary" @click="onClickDetail">
  71. <template>
  72. <view>点击了解展商更多信息</view> <view class="arrow iconfont icon-right-s"></view>
  73. </template>
  74. </van-button>
  75. </view>
  76. </view>
  77. <view class="exhibitor-number">
  78. <view class="exhibitor-number-label">我们的展位号</view>
  79. <view class="exhibitor-number-text">E1馆 1101</view>
  80. </view>
  81. </view>
  82. </u-panel>
  83. </view>
  84. </u-scroll-view>
  85. <u-share-action-sheet :show.sync="showShare" :show-info="shareInfo" />
  86. </view>
  87. </template>
  88. <script>
  89. import NavBar from '@/components/layout/nav-bar'
  90. import UScrollView from '@/components/common/u-scroll-view'
  91. import UShareActionSheet from '@/components/common/u-share-action-sheet'
  92. import UPanel from '@/components/common/u-panel'
  93. export default {
  94. options: {
  95. styleIsolation: 'shared'
  96. },
  97. components: {
  98. NavBar,
  99. UScrollView,
  100. UShareActionSheet,
  101. UPanel
  102. },
  103. computed: {},
  104. data() {
  105. return {
  106. showShare: false,
  107. shareInfo: null,
  108. exhibit: {
  109. favourited: true,
  110. liked: false,
  111. voted: false
  112. }
  113. }
  114. },
  115. created() {
  116. this.loadFontFace('Poppins')
  117. },
  118. methods: {
  119. onShareAppMessage(ops) {
  120. const item = ops.target.dataset.item || {}
  121. this.shareInfo = null
  122. this.showShare = false
  123. return {
  124. title: item.name || '汽车连接器 86W MLK 1,2 SD-HOLDER',
  125. path: `/pages/exhibitor/exhibit-detail`,
  126. imageUrl: 'https://oss.starify.cn/prod/starify/up/0001000075/20241113/67343f1c494de.png?x-oss-process=image/resize,w_600,h_600,limit_0,m_pad'
  127. }
  128. },
  129. onShare(item) {
  130. this.shareInfo = item
  131. this.showShare = true
  132. },
  133. onClickDetail(e) {
  134. this.navigateTo('/pages/exhibitor/detail')
  135. }
  136. }
  137. }
  138. </script>
  139. <style lang="scss">
  140. @import "@/static/style/pages/exhibitor-detail.scss";
  141. .exhibit-detail{
  142. .exhibit-image{
  143. position: relative;
  144. height: 438rpx;
  145. background-color: #FFFFFF;
  146. border-radius: 5rpx;
  147. border: 1rpx solid #D6D6D6;
  148. .exhibit-tag{
  149. position: absolute;
  150. top: 28rpx;
  151. left: 29rpx;
  152. padding: 12rpx 22rpx;
  153. color: $textActionColor;
  154. font-size: $fontSize0;
  155. background-color: lighten($textActionColor, 43%);
  156. }
  157. }
  158. .exhibitor-detail-link{
  159. @include link-button;
  160. }
  161. .exhibit-name{
  162. margin-top: 28rpx;
  163. font-family: Poppins, Poppins;
  164. font-weight: bold;
  165. font-size: $fontSize6;
  166. color: #000000;
  167. line-height: 42rpx;
  168. }
  169. .exhibit-desc{
  170. margin-top: 18rpx;
  171. font-family: Poppins, Poppins;
  172. font-size: $fontSize2;
  173. color: #555555;
  174. line-height: 35rpx;
  175. }
  176. .exhibitor-card{
  177. display: flex;
  178. background-color: #FFFFFF;
  179. .exhibitor-info{
  180. padding: 36rpx;
  181. }
  182. .exhibitor-logo{
  183. width: 194rpx;
  184. }
  185. .exhibitor-detail-link{
  186. margin-top: 36rpx;
  187. }
  188. .exhibitor-name-cn,.exhibitor-name-en{
  189. font-family: Poppins, Poppins;
  190. font-size: $fontSize3;
  191. color: #000000;
  192. line-height: 28rpx;
  193. }
  194. .exhibitor-name-en{
  195. margin-top: 10rpx;
  196. font-size: $fontSize2;
  197. }
  198. .exhibitor-number{
  199. @include display-flex-center;
  200. flex-direction: column;
  201. width: 267rpx;
  202. background-color: $buttonPrimaryColor;
  203. color: #FFFFFF;
  204. }
  205. .exhibitor-number-text{
  206. width: 161rpx;
  207. text-align: center;
  208. font-family: Poppins, Poppins;
  209. font-weight: bold;
  210. font-size: 55rpx;
  211. line-height: 64rpx;
  212. margin-top: 30rpx;
  213. }
  214. .exhibitor-number-label{
  215. font-family: Poppins, Poppins;
  216. font-size: $fontSize3;
  217. line-height: 28rpx;
  218. color: rgba(255, 255, 255, 0.74);
  219. }
  220. }
  221. .u-panel{
  222. margin-top: 54rpx;
  223. padding: 0;
  224. .u-panel-title{
  225. &:after{
  226. display: none;
  227. }
  228. }
  229. }
  230. }
  231. </style>