mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-06-24 02:40:13 +08:00
38 lines
753 B
Vue
38 lines
753 B
Vue
<template>
|
|
<div class="layout">
|
|
<div class="box">
|
|
<u-swiper @click="clickSwiper" interval="5000" duration="500" height="350" v-if="res" name="img" :list="res.list">
|
|
<template #loading><u-loading></u-loading></template>
|
|
</u-swiper>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { modelNavigateTo } from "./tpl";
|
|
export default {
|
|
title: "导航栏",
|
|
props: ["res"],
|
|
watch: {
|
|
res: {
|
|
handler(newValue, oldValue) {
|
|
this["res"] = newValue;
|
|
},
|
|
deep: true,
|
|
},
|
|
},
|
|
|
|
mounted() {
|
|
|
|
},
|
|
methods: {
|
|
clickSwiper(index) {
|
|
modelNavigateTo(this.res.list[index]);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
@import "./tpl.scss";
|
|
</style>
|