|
@@ -2,16 +2,22 @@
|
|
|
<gracePage :customHeader="false">
|
|
|
<view class="container" slot="gBody">
|
|
|
<drawerPage :show="drawer.show ? 'left' : ''">
|
|
|
- <view class="container_main" slot="links">
|
|
|
- <swiper class="swiper" @change="change" :circular="swiper.circular" :current="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>
|
|
|
+ <view class="container_main" slot="links">
|
|
|
+ <block v-if="login">
|
|
|
+ <swiper class="swiper" @change="change" :circular="swiper.circular" :current="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="!login">
|
|
|
+ <dream ref="dream" @showDrawer="showDrawer" :index="index" :item="fetch.items[index]" :control="control" :bottom="bottom" class="item"></dream>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</drawerPage>
|
|
|
+
|
|
|
|
|
|
<drawerWindow v-for="(v, k) in drawer.item" :key="k" :show="v.show" :zIndex="v.index" padding="v.padding" :top="v.top" direction="v.direction" :width="v.width" v-on:closeDrawer="closeDrawer(k)">
|
|
|
<view slot="links">
|
|
@@ -29,7 +35,8 @@
|
|
|
</view>
|
|
|
</drawerWindow>
|
|
|
|
|
|
- <y-Fab v-if="!drawer.show && fetch.user.avatar" :bottom="20" :right="20" :btnList="drawer.button" @click="clickDrawerButton" :text="`P`+(swiper.index+1)" :icon_o="fetch.user.avatar"></y-Fab>
|
|
|
+ <y-Fab v-if="!drawer.show && fetch.user.avatar && login" :bottom="20" :right="20" :btnList="drawer.button" @click="clickDrawerButton" :text="`P`+(swiper.index+1)" :icon_o="fetch.user.avatar"></y-Fab>
|
|
|
+ <y-Fab v-if="!login" :bottom="20" :right="20" @click="goHome" :text="`P`+(swiper.index+1)"></y-Fab>
|
|
|
</view>
|
|
|
</gracePage>
|
|
|
</template>
|
|
@@ -48,7 +55,8 @@ export default{
|
|
|
page_id : 1,
|
|
|
index : 0,
|
|
|
content_id : 0,
|
|
|
- times : 0,
|
|
|
+ times : 0,
|
|
|
+ login : false,
|
|
|
swiper : {
|
|
|
index : 0,
|
|
|
circular : false,
|
|
@@ -105,7 +113,8 @@ export default{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- onLoad(option) {
|
|
|
+ onLoad(option) {
|
|
|
+ this.login = false;
|
|
|
this.id = option.id;
|
|
|
this.page_id = option.page_id;
|
|
|
this.index = option.index;
|