exhibit-detail.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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" @click.stop="onShare">
  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="https://oss.starify.cn/prod/starify/up/0001018678/20241108/672da70c02212.png?x-oss-process=image/resize,w_400" mode="widthFix" />
  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() {
  120. return {
  121. title: '汽车连接器 86W MLK 1,2 SD-HOLDER',
  122. path: `/pages/exhibitor/exhibit-detail`,
  123. 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'
  124. }
  125. },
  126. onShare() {
  127. this.shareInfo = {
  128. title: '汽车连接器 86W MLK 1,2 SD-HOLDER',
  129. path: `/pages/exhibitor/exhibit-detail`,
  130. 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'
  131. }
  132. this.showShare = true
  133. },
  134. onClickDetail(e) {
  135. this.navigateTo('/pages/exhibitor/detail')
  136. }
  137. }
  138. }
  139. </script>
  140. <style lang="scss">
  141. @import "@/static/style/pages/exhibitor-detail.scss";
  142. .exhibit-detail{
  143. .exhibit-image{
  144. position: relative;
  145. height: 438rpx;
  146. background-color: #FFFFFF;
  147. border-radius: 5rpx;
  148. border: 1rpx solid #D6D6D6;
  149. .exhibit-tag{
  150. position: absolute;
  151. top: 28rpx;
  152. left: 29rpx;
  153. padding: 12rpx 22rpx;
  154. color: $textActionColor;
  155. font-size: $fontSize0;
  156. background-color: lighten($textActionColor, 43%);
  157. }
  158. }
  159. .exhibitor-detail-link{
  160. @include link-button;
  161. }
  162. .exhibit-name{
  163. margin-top: 28rpx;
  164. font-family: Poppins, Poppins;
  165. font-weight: bold;
  166. font-size: $fontSize6;
  167. color: #000000;
  168. line-height: 42rpx;
  169. }
  170. .exhibit-desc{
  171. margin-top: 18rpx;
  172. font-family: Poppins, Poppins;
  173. font-size: $fontSize2;
  174. color: #555555;
  175. line-height: 35rpx;
  176. }
  177. .exhibitor-card{
  178. display: flex;
  179. background-color: #FFFFFF;
  180. .exhibitor-info{
  181. padding: 36rpx;
  182. flex: 1;
  183. }
  184. .exhibitor-logo{
  185. width: 194rpx;
  186. image{
  187. height: auto;
  188. }
  189. }
  190. .exhibitor-detail-link{
  191. margin-top: 36rpx;
  192. }
  193. .exhibitor-name-cn,.exhibitor-name-en{
  194. font-family: Poppins, Poppins;
  195. font-size: $fontSize3;
  196. color: #000000;
  197. line-height: 28rpx;
  198. }
  199. .exhibitor-name-en{
  200. margin-top: 10rpx;
  201. font-size: $fontSize2;
  202. }
  203. .exhibitor-number{
  204. @include display-flex-center;
  205. flex-direction: column;
  206. width: 267rpx;
  207. background-color: $buttonPrimaryColor;
  208. color: #FFFFFF;
  209. }
  210. .exhibitor-number-text{
  211. width: 161rpx;
  212. text-align: center;
  213. font-family: Poppins, Poppins;
  214. font-weight: bold;
  215. font-size: 55rpx;
  216. line-height: 64rpx;
  217. margin-top: 30rpx;
  218. }
  219. .exhibitor-number-label{
  220. font-family: Poppins, Poppins;
  221. font-size: $fontSize3;
  222. line-height: 28rpx;
  223. color: rgba(255, 255, 255, 0.74);
  224. }
  225. }
  226. .u-panel{
  227. margin-top: 54rpx;
  228. padding: 0;
  229. .u-panel-title{
  230. &:after{
  231. display: none;
  232. }
  233. }
  234. }
  235. }
  236. </style>