lilishop-uniapp/pages/tabbar/home/template/tpl_flex_five.vue

31 lines
670 B
Vue
Raw Permalink Normal View History

2021-05-13 11:03:32 +08:00
<template>
<div class="layout">
2021-05-27 16:24:44 +08:00
<u-image width="140rpx" mode="aspectFit" height="140rpx" @click="modelNavigateTo(item)" class="image-mode" v-for="(item,index) in res.list" :key="index" :src="item.img" alt="">
2021-05-13 11:03:32 +08:00
<u-loading slot="loading"></u-loading>
</u-image>
</div>
</template>
<script>
import { modelNavigateTo } from "./tpl";
2021-05-13 11:03:32 +08:00
export default {
title: "五列单行图片模块",
props: ["res"],
data() {
return {
modelNavigateTo,
2021-05-13 11:03:32 +08:00
};
},
2021-05-24 15:49:22 +08:00
mounted() {},
2021-05-13 11:03:32 +08:00
};
</script>
<style lang="scss" scoped>
@import "./tpl.scss";
.layout {
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
}
</style>