feat: 调整为使用统一标题组件
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="mk-title">
|
||||
<text class="title"> {{ recommendTheme.themeName }}</text>
|
||||
<image class="wave" src="@/static/wave_icon.png" mode="widthFix"/>
|
||||
</view>
|
||||
<ModuleTitle :title="recommendTheme.themeName" />
|
||||
<view class="container-scroll">
|
||||
<view class="mk-card-item" v-for="(item, index) in recommendTheme.recommendPostsList" :key="index">
|
||||
<image :src="item.coverPhoto" mode="widthFix"></image>
|
||||
@@ -14,6 +11,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import ModuleTitle from '@/components/ModuleTitle/index.vue'
|
||||
|
||||
import { defineProps } from 'vue'
|
||||
const props = defineProps({
|
||||
recommendTheme: {
|
||||
@@ -26,25 +25,6 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.container {
|
||||
.mk-title {
|
||||
padding: 4px 0;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
.title {
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
.wave {
|
||||
position: absolute;
|
||||
bottom: 2px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.container-scroll {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user