|
@@ -10,13 +10,13 @@
|
|
|
</swiper>
|
|
|
<graceDrawer :show="cate_drawer.show" :zIndex="cate_drawer.index" padding="cate_drawer.padding" :top="cate_drawer.top" direction="left" width="100%" v-on:closeDrawer="closeCate">
|
|
|
<view slot="links">
|
|
|
- <cate ref="cate" @goIndex="goIndex" :index="index" :info_id="fetch.info_id" :page_id="fetch.page_id" :parent_page_id="fetch.parent_page_id"></cate>
|
|
|
+ <cate ref="cate" @goIndex="goIndex" :index="index" :content_id="content_id" :info_id="fetch.info_id" :page_id="fetch.page_id" :parent_page_id="fetch.parent_page_id"></cate>
|
|
|
</view>
|
|
|
</graceDrawer>
|
|
|
|
|
|
<graceDrawer :show="community_drawer.show" :zIndex="community_drawer.index" padding="community_drawer.padding" :top="community_drawer.top" direction="right" width="100%" v-on:closeDrawer="closeCommunity">
|
|
|
<view slot="links">
|
|
|
- <community ref="community" @goIndex="goIndex" :index="index" :info_id="fetch.info_id" :page_id="fetch.page_id" :parent_page_id="fetch.parent_page_id"></community>
|
|
|
+ <community ref="community" @goIndex="goIndex" :index="index" :content_id="content_id" :info_id="fetch.info_id" :page_id="fetch.page_id" :parent_page_id="fetch.parent_page_id"></community>
|
|
|
</view>
|
|
|
</graceDrawer>
|
|
|
</view>
|
|
@@ -32,7 +32,8 @@ export default{
|
|
|
return {
|
|
|
id : 1,
|
|
|
page_id : 1,
|
|
|
- index : 0,
|
|
|
+ index : 0,
|
|
|
+ content_id : 0,
|
|
|
swiper : {
|
|
|
index : 0,
|
|
|
circular : false,
|
|
@@ -109,17 +110,22 @@ export default{
|
|
|
dream.setShow();
|
|
|
},
|
|
|
cate : function() {
|
|
|
+ this.getContentId();
|
|
|
this.cate_drawer.show = !this.cate_drawer.show;
|
|
|
},
|
|
|
closeCate : function() {
|
|
|
this.cate_drawer.show = false;
|
|
|
},
|
|
|
community : function() {
|
|
|
+ this.getContentId();
|
|
|
this.community_drawer.show = !this.community_drawer.show;
|
|
|
},
|
|
|
closeCommunity : function() {
|
|
|
this.community_drawer.show = false;
|
|
|
},
|
|
|
+ getContentId : function() {
|
|
|
+ this.content_id = this.fetch.items[this.swiper.index].id;
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
components:{
|