|
|
|
@ -1,11 +1,20 @@ |
|
|
|
<template> |
|
|
|
<view class="module" @click="onClick"> |
|
|
|
<image class="module-bg" :src="data.image" mode="scaleToFill"></image> |
|
|
|
<view class="flex module-fg"> |
|
|
|
<button class="flex btn"> |
|
|
|
<view>更多</view> |
|
|
|
<uv-icon name="arrow-down-fill" color="#808080" size="10rpx"></uv-icon> |
|
|
|
</button> |
|
|
|
<view :style="style" @click="onClick"> |
|
|
|
<view class="module"> |
|
|
|
<image class="module-bg" :src="configList.page_serve_module_bg" mode="widthFix"></image> |
|
|
|
<image class="module-bg absolute" :src="configList.page_serve_module_bg_0" mode="widthFix"></image> |
|
|
|
<image class="module-bg absolute" :src="configList.page_serve_module_bg_1" mode="widthFix"></image> |
|
|
|
<image class="module-bg absolute" :src="configList.page_serve_module_bg_2" mode="widthFix"></image> |
|
|
|
<view class="flex module-fg"> |
|
|
|
<view class="flex module-info"> |
|
|
|
<view class="title">{{ data.title }}</view> |
|
|
|
<image class="icon" src="@/static/image/serve-icon.png" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
<button class="flex btn"> |
|
|
|
<view>更多</view> |
|
|
|
<uv-icon name="arrow-down-fill" color="#808080" size="10rpx"></uv-icon> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
@ -50,35 +59,46 @@ export default { |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
$w: calc(100vw - 38rpx*2); |
|
|
|
|
|
|
|
.module { |
|
|
|
font-size: 0; |
|
|
|
width: $w; |
|
|
|
width: 100%; |
|
|
|
height: auto; |
|
|
|
position: relative; |
|
|
|
font-size: 0; |
|
|
|
border-radius: 25rpx; |
|
|
|
overflow: hidden; |
|
|
|
box-shadow: 0rpx 3rpx 6rpx 0rpx rgba(0,0,0,0.16); |
|
|
|
|
|
|
|
&-bg { |
|
|
|
width: $w; |
|
|
|
height: calc(#{$w} * 179 / 714); |
|
|
|
width: 100%; |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
|
|
|
|
&-fg { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
align-items: center; |
|
|
|
justify-content: flex-end; |
|
|
|
justify-content: space-between; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
padding: 0 22rpx; |
|
|
|
padding: 30rpx 30rpx 0 22rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
|
|
|
|
&-info { |
|
|
|
column-gap: 16rpx; |
|
|
|
|
|
|
|
.title { |
|
|
|
font-size: 32rpx; |
|
|
|
font-weight: 700; |
|
|
|
line-height: 1; |
|
|
|
font-family: PingFang SC; |
|
|
|
color: transparent; |
|
|
|
background-image: linear-gradient(to right, #6851A7, #AA87F0); |
|
|
|
background-clip: text; |
|
|
|
display: inline-block; |
|
|
|
} |
|
|
|
|
|
|
|
.icon { |
|
|
|
width: 30rpx; |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.btn { |
|
|
|
column-gap: 10rpx; |
|
|
|
font-size: 22rpx; |
|
|
|
@ -86,4 +106,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.absolute { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
} |
|
|
|
</style> |