1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <template>
- <view class="user-vote user-like">
- <nav-bar title="我的投票" @init="onInitNavbar"></nav-bar>
- <u-scroll-view>
- <view class="user-vote-tabs-wrapper user-like-tabs-wrapper">
- <view class="user-vote-tabs user-like-tabs">
- <u-tabs :active.sync="tabActive" :tabs="tabs" @change="tabChange" />
- </view>
- </view>
- <view class="main-container">
- <view class="user-vote-list user-like-list">
- <template v-for="(item, index) in favoritesList">
- <template v-if="tabActive === 'exhibitor'">
- <exhibitor-item :item="item" :footer-hidden="true" :key="index" />
- </template>
- <template v-else-if="tabActive === 'exhibit'">
- <exhibit-item :item="item" :footer-hidden="true" :key="index" />
- </template>
- </template>
- </view>
- </view>
- </u-scroll-view>
- </view>
- </template>
- <script>
- import NavBar from '@/components/layout/nav-bar'
- import UTabs from '@/components/common/u-tabs'
- import UScrollView from '@/components/common/u-scroll-view'
- import ExhibitItem from '@/pages/exhibitor/components/exhibit-item.vue'
- import ExhibitorItem from '@/pages/exhibitor/components/exhibitor-item.vue'
-
- export default {
- options: {
- styleIsolation: 'shared'
- },
- components: {
- NavBar,
- UTabs,
- ExhibitItem,
- ExhibitorItem
- },
- computed: {
- },
- data() {
- return {
- tabActive: 'exhibitor',
- tabs: [{
- label: '展商',
- value: 'exhibitor'
- }, {
- label: '展品',
- value: 'exhibit'
- }],
- favoritesList: [{}, {}, {}, {}, {}, {}],
- }
- },
- created() {
- this.checkAuth('/pages/user/vote')
- this.loadFontFace('Poppins')
- },
- onShow() {
- },
- methods: {
- tabChange() {
-
- }
- }
- }
- </script>
- <style lang="scss">
- @import "@/static/style/pages/user-like.scss";
- </style>
|