调整
This commit is contained in:
parent
b4d20cd3fe
commit
fe5faf2cdc
@ -10,12 +10,14 @@ const props = defineProps({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view style="text-align:center;padding:5px">
|
||||
<image :src="props.src" mode="widthFix" style="width: 100%; height: 100%"/>
|
||||
<view style="text-align:center;padding:5px" class="h-18">
|
||||
<image :src="props.src" mode="widthFix" class="w-full h-full"/>
|
||||
<view>
|
||||
<text>
|
||||
{{ props.title }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
@ -11,7 +11,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<swiper indicator-dots circular :autoplay="false" class="banner">
|
||||
<swiper indicator-dots circular :autoplay="false" class="banner w-full">
|
||||
<swiper-item>
|
||||
<view style="display: grid;grid-template-columns: repeat(5, 1fr);">
|
||||
<category-item src="https://www.httpbin.org/image/png" title="美食"></category-item>
|
||||
@ -29,7 +29,7 @@
|
||||
</swiper-item>
|
||||
|
||||
<swiper-item v-for="item in pic.list" :key="item.id">
|
||||
<image @tap="previewImage(item)" :src="item.url"></image>
|
||||
<image @tap="previewImage(item)" :src="item.url" class="w-full h-full"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
||||
@ -122,10 +122,9 @@ export default {
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.banner,
|
||||
.banner image {
|
||||
.banner {
|
||||
width: 750rpx;
|
||||
height: 450rpx;
|
||||
height: 420rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
|
Loading…
Reference in New Issue
Block a user