2021-05-13 11:03:32 +08:00
|
|
|
<template>
|
|
|
|
<div class="layout">
|
|
|
|
<div class="box">
|
2022-08-10 18:28:06 +08:00
|
|
|
<u-swiper @click="clickSwiper" interval="5000" duration="500" height="350" v-if="res" name="img" :list="res.list">
|
2021-05-13 11:03:32 +08:00
|
|
|
<u-loading slot="loading"></u-loading>
|
|
|
|
</u-swiper>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-05-18 16:29:34 +08:00
|
|
|
import { modelNavigateTo } from "./tpl";
|
2021-05-13 11:03:32 +08:00
|
|
|
export default {
|
|
|
|
title: "导航栏",
|
|
|
|
props: ["res"],
|
|
|
|
watch: {
|
|
|
|
res: {
|
|
|
|
handler(newValue, oldValue) {
|
|
|
|
this.$set(this, "res", newValue);
|
|
|
|
},
|
|
|
|
deep: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
clickSwiper(index) {
|
2021-05-18 16:29:34 +08:00
|
|
|
modelNavigateTo(this.res.list[index]);
|
2021-05-13 11:03:32 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "./tpl.scss";
|
|
|
|
</style>
|