exhibitor-card.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="exhibitor-card-container">
  3. <u-panel title="展商信息" :second="true">
  4. <view class="exhibitor-card">
  5. <view class="exhibitor-info">
  6. <view class="exhibitor-logo">
  7. <image v-if="exhibit && exhibit.exhibitors_logo" :src="exhibit.exhibitors_logo + '?x-oss-process=image/resize,w_400'" mode="widthFix" />
  8. <image v-else src="https://onlinecatelogue.productronicachina.com.cn/assets/image/normal-logo.jpg" mode="widthFix" />
  9. </view>
  10. <view class="exhibitor-name-cn">{{ exhibit.exhibitors_name_zh_cn }}</view>
  11. <view class="exhibitor-name-en">{{ exhibit.exhibitors_name_en_us }}</view>
  12. <view class="exhibitor-detail-link">
  13. <van-button type="primary" @click="onClickDetail">
  14. <template>
  15. <view>点击了解展商更多信息</view> <view class="arrow iconfont icon-right-s"></view>
  16. </template>
  17. </van-button>
  18. </view>
  19. </view>
  20. <view class="exhibitor-number">
  21. <view class="exhibitor-number-label">我们的展位号</view>
  22. <view class="exhibitor-number-text">{{ exhibit.exhibitors_hall }}馆 {{ exhibit.exhibitors_booth_no }}</view>
  23. </view>
  24. </view>
  25. </u-panel>
  26. </view>
  27. </template>
  28. <script>
  29. import UPanel from '@/components/common/u-panel'
  30. export default {
  31. components: {
  32. UPanel
  33. },
  34. props: {
  35. exhibit: Object
  36. },
  37. data() {
  38. return {};
  39. },
  40. methods: {
  41. onClickDetail(e) {
  42. this.navigateTo('/pages/exhibitor/detail?id=' + this.exhibit.exhibitors_id)
  43. }
  44. },
  45. mounted() {
  46. console.log(this.exhibit)
  47. },
  48. }
  49. </script>
  50. <style lang="scss">
  51. .exhibitor-card-container {
  52. margin-top: 30px;
  53. }
  54. .exhibitor-card{
  55. display: flex;
  56. background-color: #FFFFFF;
  57. .exhibitor-info{
  58. padding: 36rpx;
  59. flex: 1;
  60. }
  61. .exhibitor-logo{
  62. width: 194rpx;
  63. //height: 120rpx;
  64. padding: 20rpx;
  65. image {
  66. display: block;
  67. }
  68. }
  69. .exhibitor-detail-link{
  70. margin-top: 36rpx;
  71. }
  72. .exhibitor-name-cn,.exhibitor-name-en{
  73. font-size: $fontSize3;
  74. color: #000000;
  75. line-height: 28rpx;
  76. }
  77. .exhibitor-name-en{
  78. margin-top: 10rpx;
  79. font-size: $fontSize2;
  80. }
  81. .exhibitor-number{
  82. @include display-flex-center;
  83. flex-direction: column;
  84. width: 267rpx;
  85. background-color: $buttonPrimaryColor;
  86. color: #FFFFFF;
  87. }
  88. .exhibitor-number-text{
  89. width: 161rpx;
  90. text-align: center;
  91. font-weight: bold;
  92. font-size: 55rpx;
  93. line-height: 64rpx;
  94. margin-top: 30rpx;
  95. }
  96. .exhibitor-number-label{
  97. font-size: $fontSize3;
  98. line-height: 28rpx;
  99. color: rgba(255, 255, 255, 0.74);
  100. }
  101. }
  102. </style>