Files
lilishop-uniapp/pages/tabbar/home/template/tpl_banner.vue
lifenlong f4337fd030 refactor:项目升级Vue3+uView Plus
- 改造入口文件、全量替换组件引入
- 过滤器迁移混入,更新忽略配置,新增迁移文档
2026-06-06 22:51:10 +08:00

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>