|
@@ -2,7 +2,7 @@
|
|
|
<gracePage :customHeader="false">
|
|
|
<view class="container" slot="gBody">
|
|
|
<drawerPage :show="drawer.show ? 'left' : ''">
|
|
|
- <view class="container_main" slot="links">
|
|
|
+ <view class="container_main" slot="links" @click="closeDrawer()">
|
|
|
<block v-if="login">
|
|
|
<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" >
|
|
@@ -19,7 +19,7 @@
|
|
|
</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)">
|
|
|
+ <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)" v-on:bottomFunc="bottomFunc">
|
|
|
<view slot="links">
|
|
|
<block v-if="k == 'cate'">
|
|
|
<cate ref="cate" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :code="code" :width="v.width" :param="v.param" :page_id="fetch.page_id" @getCate="getCate"></cate>
|
|
@@ -36,6 +36,10 @@
|
|
|
<block v-if="k == 'shop'">
|
|
|
<shop ref="shop" @goIndex="goIndex" :index="fetch.index" :content_id="content_id" :code="code" :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" :code="code" :width="v.width" :param="v.param"></my>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</drawerWindow>
|
|
|
|
|
@@ -49,6 +53,7 @@ import cate from "@/pages/dream/func/cate.vue";
|
|
|
import community from "@/pages/dream/func/community.vue";
|
|
|
import times from "@/pages/dream/func/times.vue";
|
|
|
import shop from "@/pages/dream/func/shop.vue";
|
|
|
+import my from "@/pages/dream/func/my.vue";
|
|
|
import dream from "@/pages/dream/view/dream.vue";
|
|
|
import drawerPage from "@/lib/dever/components/drawerPage.vue";
|
|
|
import drawerWindow from "@/lib/dever/components/drawerWindow.vue";
|
|
@@ -136,6 +141,11 @@ export default{
|
|
|
if (this.bottom && this.bottom[this.swiper.index]) {
|
|
|
this.bottom[this.swiper.index].getData(2);
|
|
|
}
|
|
|
+ },
|
|
|
+ bottomFunc : function() {
|
|
|
+ if (this.drawer.show && this.drawer.item[this.drawer.show].show == true) {
|
|
|
+ this.$refs[this.drawer.show][0].getInfo(2);
|
|
|
+ }
|
|
|
},
|
|
|
record : function() {
|
|
|
var content_id = this.fetch.items[this.swiper.index].id;
|
|
@@ -223,6 +233,12 @@ export default{
|
|
|
}
|
|
|
},
|
|
|
closeDrawer : function(key) {
|
|
|
+ if (!key && this.drawer.show) {
|
|
|
+ key = this.drawer.show;
|
|
|
+ }
|
|
|
+ if (!key) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.drawer.item[key].show = false;
|
|
|
this.drawer.show = '';
|
|
|
},
|
|
@@ -237,7 +253,7 @@ export default{
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
|
- dream,cate,community,times,shop,drawerPage,drawerWindow
|
|
|
+ dream,cate,community,times,shop,my,drawerPage,drawerWindow
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -248,7 +264,8 @@ export default{
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
- -webkit-overflow-scrolling: touch;
|
|
|
+ -webkit-overflow-scrolling: touch;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
.container_main {
|
|
|
width: 750rpx;
|