|
@@ -8,9 +8,9 @@
|
|
|
<stack class="stack-wrap">
|
|
|
<div class="index-wrap">
|
|
|
<tabs class="tab-content" onchange="tabbarChange" index="{{current}}">
|
|
|
- <tab-content>
|
|
|
+ <tab-content>
|
|
|
+ <shelf-page @change="pageTohome" tabindex="{{current}}"></shelf-page>
|
|
|
<home-page @change="pageSwitch" tabindex="{{current}}"></home-page>
|
|
|
- <shelf-page @change="pageTohome" tabindex="{{current}}"></shelf-page>
|
|
|
<my-page @customer="openCustomer" tabindex="{{current}}"></my-page>
|
|
|
</tab-content>
|
|
|
</tabs>
|
|
@@ -64,7 +64,7 @@ import router from "@system.router";
|
|
|
let getConfig;
|
|
|
export default {
|
|
|
public: {
|
|
|
- curPage: 0,
|
|
|
+ curPage: 1,
|
|
|
push_id: '',
|
|
|
bid: '',
|
|
|
chapter_id: '',
|
|
@@ -82,14 +82,14 @@ export default {
|
|
|
title: "我的书架",
|
|
|
icon: "../../assets/imgs/shelf.png",
|
|
|
active_icon: "../../assets/imgs/shelf_choose.png",
|
|
|
- index: 1
|
|
|
+ index: 0
|
|
|
},
|
|
|
{
|
|
|
name: "精选",
|
|
|
title: "追书云",
|
|
|
icon: "../../assets/imgs/home.png",
|
|
|
active_icon: "../../assets/imgs/home_choose.png",
|
|
|
- index: 0
|
|
|
+ index: 1
|
|
|
},
|
|
|
|
|
|
{
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
it.getShortCut((value) => {
|
|
|
//this.showShortPop = !value;
|
|
|
this.showShortPop = true;
|
|
|
- if(value){
|
|
|
+ if (value) {
|
|
|
this.$app.$def.data.backClickCount = 1
|
|
|
} else {
|
|
|
this.$app.$def.data.backClickCount = 0
|
|
@@ -232,15 +232,14 @@ export default {
|
|
|
},
|
|
|
tabbarChange(tab) {
|
|
|
this.current = tab.index;
|
|
|
-
|
|
|
//this.$page.setTitleBar({ text: this.tabbar[tab.index].title });
|
|
|
},
|
|
|
pageSwitch() {
|
|
|
- this.current = 1;
|
|
|
- },
|
|
|
- pageTohome(){
|
|
|
this.current = 0;
|
|
|
},
|
|
|
+ pageTohome() {
|
|
|
+ this.current = 1;
|
|
|
+ },
|
|
|
changeSignPop() {
|
|
|
this.showSignPop = !this.showSignPop;
|
|
|
},
|