123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <view class="exhibitor-card-container">
- <u-panel title="展商信息" :second="true">
- <view class="exhibitor-card">
- <view class="exhibitor-info">
- <view class="exhibitor-logo">
- <image v-if="exhibit && exhibit.exhibitors_logo" :src="exhibit.exhibitors_logo + '?x-oss-process=image/resize,w_400'" mode="widthFix" />
- <image v-else src="https://onlinecatelogue.productronicachina.com.cn/assets/image/normal-logo.jpg" mode="widthFix" />
- </view>
- <view class="exhibitor-name-cn">{{ exhibit.exhibitors_name_zh_cn }}</view>
- <view class="exhibitor-name-en">{{ exhibit.exhibitors_name_en_us }}</view>
- <view class="exhibitor-detail-link">
- <van-button type="primary" @click="onClickDetail">
- <template>
- <view>点击了解展商更多信息</view> <view class="arrow iconfont icon-right-s"></view>
- </template>
- </van-button>
- </view>
- </view>
- <view class="exhibitor-number">
- <view class="exhibitor-number-label">我们的展位号</view>
- <view class="exhibitor-number-text">{{ exhibit.exhibitors_hall }}馆 {{ exhibit.exhibitors_booth_no }}</view>
- </view>
- </view>
- </u-panel>
- </view>
- </template>
- <script>
- import UPanel from '@/components/common/u-panel'
- export default {
- components: {
- UPanel
- },
- props: {
- exhibit: Object
- },
- data() {
- return {};
- },
- methods: {
- onClickDetail(e) {
- this.navigateTo('/pages/exhibitor/detail?id=' + this.exhibit.exhibitors_id)
- }
- },
- mounted() {
- console.log(this.exhibit)
- },
- }
- </script>
- <style lang="scss">
- .exhibitor-card-container {
- margin-top: 30px;
- }
- .exhibitor-card{
- display: flex;
- background-color: #FFFFFF;
- .exhibitor-info{
- padding: 36rpx;
- flex: 1;
- }
- .exhibitor-logo{
- width: 194rpx;
- //height: 120rpx;
- padding: 20rpx;
- image {
- display: block;
- }
- }
- .exhibitor-detail-link{
- margin-top: 36rpx;
- }
- .exhibitor-name-cn,.exhibitor-name-en{
- font-size: $fontSize3;
- color: #000000;
- line-height: 28rpx;
- }
- .exhibitor-name-en{
- margin-top: 10rpx;
- font-size: $fontSize2;
- }
- .exhibitor-number{
- @include display-flex-center;
- flex-direction: column;
- width: 267rpx;
- background-color: $buttonPrimaryColor;
- color: #FFFFFF;
- }
- .exhibitor-number-text{
- width: 161rpx;
- text-align: center;
- font-weight: bold;
- font-size: 55rpx;
- line-height: 64rpx;
- margin-top: 30rpx;
- }
- .exhibitor-number-label{
- font-size: $fontSize3;
- line-height: 28rpx;
- color: rgba(255, 255, 255, 0.74);
- }
- }
- </style>
|