2021-05-13 11:03:32 +08:00
< template >
< div class = "layout" >
2021-05-27 16:24:44 +08:00
< u -image height = "175rpx" mode = "aspectFit" width = "175rpx" @click ="modelNavigateTo(item)" class = "image-mode" :src ="item.img" v-for ="(item,index) in res.list" :key ="index" >
2021-05-24 15:49:22 +08:00
< u -loading slot = "loading" > < / u - l o a d i n g >
< / u - i m a g e >
2021-05-13 11:03:32 +08:00
< / div >
< / template >
< script >
2021-05-24 15:49:22 +08:00
import { modelNavigateTo } from "./tpl" ;
2021-05-13 11:03:32 +08:00
export default {
title : "四列单行图片模块" ,
props : [ "res" ] ,
2021-05-24 15:49:22 +08:00
data ( ) {
2021-05-13 11:03:32 +08:00
return {
2021-05-18 16:29:34 +08:00
modelNavigateTo ,
2021-05-24 15:49:22 +08:00
} ;
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 {
2021-05-27 16:24:44 +08:00
2021-05-13 11:03:32 +08:00
display : flex ;
align - items : center ;
justify - content : center ;
background - size : cover ;
}
2021-05-24 15:49:22 +08:00
img {
2021-05-13 11:03:32 +08:00
width : 84 px ;
}
< / style >