|
@@ -1,67 +1,65 @@
|
|
|
<template>
|
|
|
- <gracePage :customHeader="false">
|
|
|
- <view class="container" slot="gBody">
|
|
|
- <ourLoading isFullScreen :active="pageLoading" :text="pageLoadingText" />
|
|
|
- <view v-if="fetch.items.length > 0">
|
|
|
- <dever-drawer-page :show="drawer.show ? 'left' : ''">
|
|
|
- <view class="container_main" slot="links" @click="closeDrawer()">
|
|
|
- <block v-if="show">
|
|
|
- <view class='cover' v-if="guide" @touchstart="closeGuide()">
|
|
|
- <view class='journal-guide'>
|
|
|
- <view class='guide-center'></view>
|
|
|
- <view class='guide-bottom'></view>
|
|
|
- </view>
|
|
|
+ <view class="container" slot="gBody">
|
|
|
+ <ourLoading isFullScreen :active="pageLoading" :text="pageLoadingText" />
|
|
|
+ <view v-if="fetch.items.length > 0">
|
|
|
+ <dever-drawer-page :show="drawer.show ? 'left' : ''">
|
|
|
+ <view class="container_main" slot="links" @click="closeDrawer()">
|
|
|
+ <block v-if="show">
|
|
|
+ <view class='cover' v-if="guide" @touchstart="closeGuide()">
|
|
|
+ <view class='journal-guide'>
|
|
|
+ <view class='guide-center'></view>
|
|
|
+ <view class='guide-bottom'></view>
|
|
|
</view>
|
|
|
- <swiper class="swiper" @change="change" :circular="swiper.circular" :current="fetch.index">
|
|
|
- <swiper-item v-for="(v, k) in fetch.items" v-if="v.data" :key="k" >
|
|
|
- <scroll-view scroll-y="true" scroll-x="true" class="scroll-height" @scrolltolower="bottomCall">
|
|
|
- <dream ref="dream" @showDrawer="showDrawer" :index="k" :item="v" :control="control" :bottom="bottom" class="item"></dream>
|
|
|
- </scroll-view>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- </block>
|
|
|
- <block v-if="!show">
|
|
|
- <dream ref="dream" @showDrawer="showDrawer" :index="fetch.index" :item="fetch.items[fetch.index]" :control="control" :bottom="bottom" class="item"></dream>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- </dever-drawer-page>
|
|
|
-
|
|
|
-
|
|
|
- <dever-drawer-window v-for="(v, k) in drawer.item" :key="k" :type="k" :show="v.show" :zIndex="v.index" padding="v.padding" :top="v.top" :direction="v.direction" :width="v.width" v-on:closeDrawer="closeDrawer(k)" v-on:bottomFunc="bottomFunc">
|
|
|
- <view slot="links">
|
|
|
- <block v-if="k == 'cate'">
|
|
|
- <cate ref="cate" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param" :page_id="fetch.page_id" @getCate="getCate"></cate>
|
|
|
- </block>
|
|
|
-
|
|
|
- <block v-if="k == 'community'">
|
|
|
- <community ref="community" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param"></community>
|
|
|
- </block>
|
|
|
-
|
|
|
- <block v-if="k == 'times'">
|
|
|
- <times ref="times" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param" :set="v.set" :times="fetch.times_id" @getTimes="getTimes"></times>
|
|
|
- </block>
|
|
|
-
|
|
|
- <block v-if="k == 'shop'">
|
|
|
- <shop ref="shop" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param"></shop>
|
|
|
- </block>
|
|
|
-
|
|
|
- <block v-if="k == 'my'">
|
|
|
- <my ref="my" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param"></my>
|
|
|
- </block>
|
|
|
-
|
|
|
- <block v-if="k == 'share'">
|
|
|
- <share ref="share" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param" :type="type"></share>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- </dever-drawer-window>
|
|
|
-
|
|
|
- <y-Fab v-if="!drawer.show && fetch.user.avatar && show" :bottom="20" :right="20" :btnList="drawer.button" :bgmPlay="bgm.playing" @click="clickDrawerButton" :text="`P`+(swiper.index+1)" :icon_o="fetch.user.avatar"></y-Fab>
|
|
|
- <y-Fab v-if="!show" :bottom="20" :right="20" @click="goHome" :text="`更多`"></y-Fab>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <swiper class="swiper" @change="change" :circular="swiper.circular" :current="fetch.index">
|
|
|
+ <swiper-item v-for="(v, k) in fetch.items" v-if="v.data" :key="k" >
|
|
|
+ <scroll-view scroll-y="true" scroll-x="true" class="scroll-height" @scrolltolower="bottomCall">
|
|
|
+ <dream ref="dream" @showDrawer="showDrawer" :index="k" :item="v" :control="control" :bottom="bottom" class="item"></dream>
|
|
|
+ </scroll-view>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ </block>
|
|
|
+ <block v-if="!show">
|
|
|
+ <dream ref="dream" @showDrawer="showDrawer" :index="fetch.index" :item="fetch.items[fetch.index]" :control="control" :bottom="bottom" class="item"></dream>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ </dever-drawer-page>
|
|
|
+
|
|
|
+
|
|
|
+ <dever-drawer-window v-for="(v, k) in drawer.item" :key="k" :type="k" :show="v.show" :zIndex="v.index" padding="v.padding" :top="v.top" :direction="v.direction" :width="v.width" v-on:closeDrawer="closeDrawer(k)" v-on:bottomFunc="bottomFunc">
|
|
|
+ <view slot="links">
|
|
|
+ <block v-if="k == 'cate'">
|
|
|
+ <cate ref="cate" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param" :page_id="fetch.page_id" @getCate="getCate"></cate>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <block v-if="k == 'community'">
|
|
|
+ <community ref="community" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param"></community>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <block v-if="k == 'times'">
|
|
|
+ <times ref="times" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param" :set="v.set" :times="fetch.times_id" @getTimes="getTimes"></times>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <block v-if="k == 'shop'">
|
|
|
+ <shop ref="shop" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param"></shop>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <block v-if="k == 'my'">
|
|
|
+ <my ref="my" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param"></my>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <block v-if="k == 'share'">
|
|
|
+ <share ref="share" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :width="v.width" :param="v.param" :type="type"></share>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ </dever-drawer-window>
|
|
|
|
|
|
- <dever-share ref="share" :data="fetch.share" v-if="fetch.share"></dever-share>
|
|
|
- </view>
|
|
|
- </gracePage>
|
|
|
+ <y-Fab v-if="!drawer.show && fetch.user.avatar && show" :bottom="20" :right="20" :btnList="drawer.button" :bgmPlay="bgm.playing" @click="clickDrawerButton" :text="`P`+(swiper.index+1)" :icon_o="fetch.user.avatar"></y-Fab>
|
|
|
+ <y-Fab v-if="!show" :bottom="20" :right="20" @click="goHome" :text="`更多`"></y-Fab>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <dever-share ref="share" :data="fetch.share" v-if="fetch.share"></dever-share>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import cate from "@/pages/dream/func/cate.vue";
|