Commit 477b86f4 by 李伟康

refactor(dailyNewspaper): 优化日报页面表格和车型选择弹窗样式与交互

1.  调整表格表头和内容的字体样式,统一文字排版
2.  重构CarModelList的交互逻辑,拆分选择车型和展开折叠的事件
3.  更新图标颜色和文字配色,优化弹窗的布局对齐
4.  修复部分点击事件的绑定问题,调整交互体验
1 parent 5f0ec40b
......@@ -16,12 +16,14 @@
<view class="series-list">
<template v-for="(k, kindex) in j.childs">
<view class="series-name" :key="kindex">
<view :class="['series-name flex']" @click="getCarTypeList(c,j, k)">
<uni-icons :type="`${checkActive(k) ? 'circle-filled' : 'circle'}`"
size="20" class="series-icon" :color="checkActive(k) ? '#2c66f7' : '#999'"></uni-icons>
{{ k.name }}
<!-- <uni-icons :type="`${k.childs && k.childs.length && k.open ? 'down' : 'right'}`"
size="18"></uni-icons> -->
<view :class="['series-name flex']" >
<view class="left flex" @click="chooseSeries(c, j, k)">
<uni-icons :type="`${checkActive(k) ? 'circle-filled' : 'circle'}`" size="20"
class="series-icon" :color="checkActive(k) ? '#347BFF' : '#292D33'"></uni-icons>
{{ k.name }}
</view>
<uni-icons :type="`${k.childs && k.childs.length && k.open ? 'up' : 'down'}`"
size="18" class="arrow" @click="getCarTypeList(k)" color="#BEC1C7"></uni-icons>
</view>
<view class="brand-list" v-if="k.open">
<template v-for="(s, sindex) in k.childs">
......@@ -158,17 +160,8 @@ export default {
j.childs = data
this.$forceUpdate()
},
async getCarTypeList(c,j, k) {
let chooseItem = {
vehicleBrandId: c.id,
vehicleBrandName: c.name,
vehicleSubBrandId: j.id,
vehicleSubBrandName: j.name,
vehicleSeriesId: k.id,
vehicleSeriesName: k.name
}
this.currentId = k.id
this.$emit('choose', chooseItem)
async getCarTypeList(k) {
if (k.childs && k.childs.length) {
k.open = !k.open
this.$forceUpdate()
......@@ -192,7 +185,19 @@ export default {
})
},
chooseCarType(s, c) {
chooseSeries(c, j, k) {
let chooseItem = {
vehicleBrandId: c.id,
vehicleBrandName: c.name,
vehicleSubBrandId: j.id,
vehicleSubBrandName: j.name,
vehicleSeriesId: k.id,
vehicleSeriesName: k.name
}
this.currentId = k.id
this.$emit('choose', chooseItem)
},
chooseCarType(s, c) {
let chooseItem = {
vehicleBrandId: c.id,
vehicleBrandName: c.name,
......@@ -253,7 +258,7 @@ export default {
margin: 0 toRpx(48);
.brand-name {
color: #000;
color: #333;
font-size: toRpx(40);
line-height: toRpx(40);
margin: toRpx(20) 0;
......@@ -265,7 +270,7 @@ export default {
}
.sub-brand-name {
color: #333;
color: #888;
font-size: toRpx(32);
line-height: toRpx(40);
width: 100%;
......@@ -275,13 +280,19 @@ export default {
}
.series-name {
color: #555;
color: #888;
font-size: toRpx(30);
line-height: toRpx(40);
width: 100%;
flex-shrink: 0;
margin-bottom: toRpx(16);
padding-left: toRpx(20);
.left,.arrow{
width: 50%;
}
.arrow{
text-align: right;
}
.series-icon {
margin-right: toRpx(12);
}
......@@ -310,6 +321,7 @@ export default {
font-size: toRpx(26);
padding: toRpx(6) toRpx(14);
box-sizing: border-box;
.sprite-icon {
display: none;
position: absolute;
......
......@@ -235,6 +235,10 @@ export default {
background-color: #f0f4ff;
border-bottom: toRpx(2) solid #fff;
border-right: toRpx(2) solid #fff;
font-size: 0;
.cell-text {
font-weight: 500;
}
}
.required-text {
......@@ -251,9 +255,9 @@ export default {
.header-cell {
background-color: #f0f4ff;
color: #000;
font-size: toRpx(28);
font-weight: 500;
border-bottom: toRpx(2) solid #fff;
font-size: 0;
}
.fixed-header {
......@@ -313,6 +317,7 @@ export default {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: toRpx(28);
}
.footer-row {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!