feat: 调整为使用统一标题组件
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="mk-title">
|
||||
<text class="title"> {{ commodityDTO.title }}</text>
|
||||
<image class="wave" src="@/static/wave_icon.png" mode="widthFix"/>
|
||||
</view>
|
||||
<ModuleTitle :title="commodityDTO.title" />
|
||||
<view class="container-scroll">
|
||||
<view class="mk-card-item" v-for="(item, index) in commodityDTO.commodityList" :key="item.commodityName">
|
||||
<view class="mk-card-item" v-for="(item) in commodityDTO.commodityList" :key="item.commodityName">
|
||||
<view class="card-badge">超值推荐</view>
|
||||
<image class="card-img" :src="item.commodityIcon" mode="widthFix" />
|
||||
<view class="card-content">
|
||||
@@ -34,6 +31,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import ModuleTitle from '@/components/ModuleTitle/index.vue'
|
||||
import { defineProps } from 'vue'
|
||||
const props = defineProps({
|
||||
commodityDTO: {
|
||||
@@ -46,26 +44,7 @@
|
||||
|
||||
<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;
|
||||
flex-direction: row;
|
||||
|
||||
Reference in New Issue
Block a user