1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <view class="exhibit-item exhibitor-item" hover-class="active" @click="onClickExhibit(item)">
- <view class="exhibit-body">
- <view class="exhibitor-body">
- <view class="exhibitor-logo"><image :src="item.pic + '?x-oss-process=image/resize,w_400'" mode="aspectFit" /></view>
- <view class="exhibitor-name">{{ item.name }}</view>
- <view class="exhibitor-number">
- <view class="exhibitor-number-label">展位号:</view>
- <view class="exhibitor-number-text">{{ item.hall_booth_no }}</view>
- </view>
- </view>
- <view class="exhibitor-name">
- <view class="exhibitor-name-cn">{{ item.exhibitors_name_zh_cn }}</view>
- <view class="exhibitor-name-en">{{ item.exhibitors_name_en_us }}</view>
- </view>
- </view>
- <view v-if="!footerHidden" class="exhibitor-footer">
- <view class="exhibitor-views">浏览:{{ item.pv }}</view>
- <view class="exhibitor-action">
- <view>
- <button @click.stop="onShare(item)" :plain="true">
- <view>
- <view class="iconfont icon-zhuanfa"></view>
- <view>分享</view>
- </view>
- </button>
- </view>
- <view>
- <view v-if="item.is_collect" class="iconfont icon-favourites-filled-star-symbol active"></view>
- <view v-else class="iconfont icon-Favourites-Add-Large"></view>
- <view>收藏</view>
- </view>
- <view>
- <view v-if="item.is_like" class="iconfont icon-aixin active"></view>
- <view v-else class="iconfont icon-heart1"></view>
- <view>点赞</view>
- </view>
- <view v-if="pollShow">
- <view v-if="item.is_poll" class="iconfont icon-Ticket1 active"></view>
- <view v-else class="iconfont icon-xiaochengxu-toupiaoicon"></view>
- <view>投票</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
-
- export default {
- options: {
- styleIsolation: 'shared'
- },
- components: {
- },
- props: {
- // 数据
- item: Object,
- footerHidden: Boolean,
- pollShow: Number
- },
- data() {
- return {
- }
- },
- created() {
- },
- methods: {
- onShare(item) {
- const shareInfo = {
- title: item.name,
- path: `/pages/exhibitor/exhibit-detail` + item.id,
- imageUrl: item.pic + '?x-oss-process=image/resize,w_400'
- }
- this.$emit('share', {
- detail: shareInfo
- })
- },
- onClickExhibit(item) {
- this.navigateTo('/pages/exhibitor/exhibit-detail?id=' + item.id)
- }
- }
- }
- </script>
- <style lang="scss">
- </style>
|