|
|
@ -4,11 +4,13 @@
|
|
|
|
@click-left="onClickLeft"
|
|
|
|
@click-left="onClickLeft"
|
|
|
|
@click-right="onClickRight"
|
|
|
|
@click-right="onClickRight"
|
|
|
|
title="应用导航">
|
|
|
|
title="应用导航">
|
|
|
|
<van-icon name="home-o" slot="left"/>
|
|
|
|
<van-icon name="ellipsis" slot="left"/>
|
|
|
|
<van-icon name="ellipsis" slot="right"/>
|
|
|
|
<van-icon name="home-o" slot="right"/>
|
|
|
|
</van-nav-bar>
|
|
|
|
</van-nav-bar>
|
|
|
|
|
|
|
|
|
|
|
|
<van-swipe class="layout-swipe" :autoplay="3000">
|
|
|
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
|
|
|
|
|
|
|
|
<div class="body">
|
|
|
|
|
|
|
|
<van-swipe class="swipe" :autoplay="3000">
|
|
|
|
<van-swipe-item>
|
|
|
|
<van-swipe-item>
|
|
|
|
<img src="../../assets/bar1.jpg" class="" width="100%"/>
|
|
|
|
<img src="../../assets/bar1.jpg" class="" width="100%"/>
|
|
|
|
</van-swipe-item>
|
|
|
|
</van-swipe-item>
|
|
|
@ -22,9 +24,11 @@
|
|
|
|
v-for="g in grids"
|
|
|
|
v-for="g in grids"
|
|
|
|
:key="g.key"
|
|
|
|
:key="g.key"
|
|
|
|
:icon="g.icon"
|
|
|
|
:icon="g.icon"
|
|
|
|
:text="g.text"
|
|
|
|
:text="g.text"/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
</van-grid>
|
|
|
|
</van-grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</van-pull-refresh>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -38,6 +42,7 @@
|
|
|
|
Toast,
|
|
|
|
Toast,
|
|
|
|
NoticeBar,
|
|
|
|
NoticeBar,
|
|
|
|
Icon,
|
|
|
|
Icon,
|
|
|
|
|
|
|
|
PullRefresh,
|
|
|
|
} from 'vant';
|
|
|
|
} from 'vant';
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -47,8 +52,10 @@
|
|
|
|
[GridItem.name]: GridItem,
|
|
|
|
[GridItem.name]: GridItem,
|
|
|
|
[Swipe.name]: Swipe,
|
|
|
|
[Swipe.name]: Swipe,
|
|
|
|
[SwipeItem.name]: SwipeItem,
|
|
|
|
[SwipeItem.name]: SwipeItem,
|
|
|
|
|
|
|
|
[Toast.name]: Toast,
|
|
|
|
[NoticeBar.name]: NoticeBar,
|
|
|
|
[NoticeBar.name]: NoticeBar,
|
|
|
|
[Icon.name]: Icon,
|
|
|
|
[Icon.name]: Icon,
|
|
|
|
|
|
|
|
[PullRefresh.name]: PullRefresh,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -99,15 +106,20 @@
|
|
|
|
text: "发案回访",
|
|
|
|
text: "发案回访",
|
|
|
|
icon: "photo-o"
|
|
|
|
icon: "photo-o"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
isLoading: false,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onClickLeft() {
|
|
|
|
onClickLeft() {
|
|
|
|
this.$router.push('nav');
|
|
|
|
this.$router.push('set');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClickRight() {
|
|
|
|
onClickRight() {
|
|
|
|
this.$router.push('set');
|
|
|
|
this.$router.push('nav');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onRefresh() {
|
|
|
|
|
|
|
|
Toast("Refresh finish");
|
|
|
|
|
|
|
|
this.isLoading = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -115,21 +127,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
<style lang="less">
|
|
|
|
.layout {
|
|
|
|
.layout {
|
|
|
|
padding-top: 50px;
|
|
|
|
|
|
|
|
padding-bottom: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&-bar {
|
|
|
|
&-bar {
|
|
|
|
position: fixed;
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
top: 0px;
|
|
|
|
top: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&-swipe {
|
|
|
|
.body {
|
|
|
|
|
|
|
|
margin-top: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.swipe {
|
|
|
|
img {
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|