detail.vue 6.7 KB

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