Commit 3e4df72a by yancanhua

fix:前端自测问题优化

1 parent 50abe46a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="log-title"> <div class="log-title">
<div v-if="item.title || item.content" class="logBox-content"> <div v-if="item.title || item.content" class="logBox-content">
{{ item.title }}: {{ item.title }}:
<span>{{ item.content }}</span> <span :title="item.content || ''">{{ item.content || '-' }}</span>
</div> </div>
<div class="logBox-time"> <div class="logBox-time">
<div class="logBox-point">{{ item.updateNameCnFirst }}</div> <div class="logBox-point">{{ item.updateNameCnFirst }}</div>
...@@ -39,7 +39,7 @@ export default class OperationLog extends Vue { ...@@ -39,7 +39,7 @@ export default class OperationLog extends Vue {
watchOperationLogData(newValue: any, oldValue: any): void { watchOperationLogData(newValue: any, oldValue: any): void {
const list = (newValue.logList || []).map((item: any) => { const list = (newValue.logList || []).map((item: any) => {
const values = (item.opContent || '').split(':').filter(Boolean); const values = (item.opContent || '').split(':').filter(Boolean);
return { ...item, title: values[0] || '', content: values[1] || '' }; return { ...item, title: values[0] || '', content: ((values || []).slice(1) || []).join('') };
}); });
if (list.length > 5) { if (list.length > 5) {
this.isAllData = false; this.isAllData = false;
...@@ -115,6 +115,9 @@ export default class OperationLog extends Vue { ...@@ -115,6 +115,9 @@ export default class OperationLog extends Vue {
color: #777c85; color: #777c85;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.logBox-content span { .logBox-content span {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<a-table :columns="columns" :data-source="pagination.content" :loading="loading" :bordered="false" <a-table :columns="columns" :data-source="pagination.content" :loading="loading" :bordered="false"
@change="pageRefresh" @resizeColumn="this.$filters.tableResizeColumn" size="small" :pagination="pageState" @change="pageRefresh" @resizeColumn="this.$filters.tableResizeColumn" size="small" :pagination="pageState"
:row-key="record => record.id" :scroll="{ y: 'calc(100vh - 400px)' }" :row-key="record => record.id" :scroll="{ y: 'calc(100vh - 288px)' }"
:row-selection="{ selectedRowKeys: selectIds, onChange: onSelectChange, type: 'checkbox', preserveSelectedRowKeys: true, }"> :row-selection="{ selectedRowKeys: selectIds, onChange: onSelectChange, type: 'checkbox', preserveSelectedRowKeys: true, }">
<template #customFilterDropdown="{ setSelectedKeys, selectedKeys, confirm, clearFilters, column }"> <template #customFilterDropdown="{ setSelectedKeys, selectedKeys, confirm, clearFilters, column }">
......
...@@ -109,10 +109,12 @@ export default class stepOne extends Vue { ...@@ -109,10 +109,12 @@ export default class stepOne extends Vue {
.content-title { .content-title {
width: 100%; width: 100%;
height: 50px; height: 50px;
color: #141e34;
font-size: 16px;
line-height: 50px; line-height: 50px;
float: left; float: left;
color: #141e34;
font-size: 16px;
font-weight: 中黑体;
font-family: "苹方-简";
} }
.validate { .validate {
......
...@@ -92,6 +92,8 @@ export default class stepThree extends Vue { ...@@ -92,6 +92,8 @@ export default class stepThree extends Vue {
height: 24px; height: 24px;
color: #141e34; color: #141e34;
font-size: 16px; font-size: 16px;
font-weight: 中黑体;
font-family: "苹方-简";
line-height: 24px; line-height: 24px;
float: left; float: left;
margin-top: 16px; margin-top: 16px;
......
...@@ -128,6 +128,8 @@ export default class stepTwo extends Vue { ...@@ -128,6 +128,8 @@ export default class stepTwo extends Vue {
height: 24px; height: 24px;
color: #141e34; color: #141e34;
font-size: 16px; font-size: 16px;
font-weight: 中黑体;
font-family: "苹方-简";
line-height: 24px; line-height: 24px;
float: left; float: left;
margin-top: 16px; margin-top: 16px;
......
<template> <template>
<van-index-bar :index-list="indexList"> <div>
<template v-for="(letter) in indexList" :key="letter"> <van-index-bar :index-list="indexList">
<van-index-anchor :index="letter">{{ letter }}</van-index-anchor> <template v-for="(letter) in indexList" :key="letter">
<van-cell v-for="(brand, index) in getBrandsByLetter(letter)" :key="brand.id"> <van-index-anchor class="index-anchor" :index="letter">{{ letter }}</van-index-anchor>
<template slot="title"> <div v-for="(brand, index) in getBrandsByLetter(letter)" :key="brand.id">
<div class="brand-cell" @click="bindClick(brand)"> <van-cell>
<image class="brand-image" :src="brand.logoUrl" mode="aspectFill" /> <template slot="title">
{{ brand.name }} <div class="brand-cell" @click="bindClick(brand)">
<div class="check-icon"> <image class="brand-image" :src="brand.logoUrl" mode="aspectFill" />
<image v-if="!brand.selected" src="https://img02.glsx.com.cn/aus/images/preference/selectFalse.png" {{ brand.name }}
class="check-icon-image" /> <div class="check-icon">
<image v-else src="https://img02.glsx.com.cn/aus/images/preference/selectTrue.png" class="check-icon-image" /> <image v-if="!brand.selected"
</div> src="https://img02.glsx.com.cn/aus/images/preference/selectFalse.png"
</div> class="check-icon-image" />
</template> <image v-else src="https://img02.glsx.com.cn/aus/images/preference/selectTrue.png"
</van-cell> class="check-icon-image" />
</template> </div>
</div>
<!--底部提交按钮--> </template>
</van-cell>
</div>
</template>
</van-index-bar>
<div class="bottom-height-100"></div> <div class="bottom-height-100"></div>
<div class="bottom-fixed"> <div class="bottom-fixed">
<div class="width-calc-36"> <div class="width-calc-36">
...@@ -27,8 +31,7 @@ ...@@ -27,8 +31,7 @@
</div> </div>
</div> </div>
</div> </div>
</van-index-bar> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Component, Ref, Vue } from "vue-facing-decorator"; import { Component, Ref, Vue } from "vue-facing-decorator";
...@@ -74,7 +77,7 @@ export default class selectVehicleBrand extends Vue { ...@@ -74,7 +77,7 @@ export default class selectVehicleBrand extends Vue {
//获取品牌列表数据 //获取品牌列表数据
loadData(): void { loadData(): void {
uni.showLoading({title: '正在加载中...', mask: true}); uni.showLoading({ title: '正在加载中...', mask: true });
const cacheBrands = uni.getStorageSync('cacheBrands'); const cacheBrands = uni.getStorageSync('cacheBrands');
if (cacheBrands && cacheBrands.length > 0) { if (cacheBrands && cacheBrands.length > 0) {
this.brands = cacheBrands; this.brands = cacheBrands;
...@@ -111,7 +114,7 @@ export default class selectVehicleBrand extends Vue { ...@@ -111,7 +114,7 @@ export default class selectVehicleBrand extends Vue {
this.brands[brandIndex].selected = false; this.brands[brandIndex].selected = false;
} else { } else {
// 检查是否超过最大选择数量 // 检查是否超过最大选择数量
if(this.selectedBrand.length >= 10) { if (this.selectedBrand.length >= 10) {
uni.showToast({ uni.showToast({
title: '最多可选10个品牌', title: '最多可选10个品牌',
icon: 'none' icon: 'none'
...@@ -207,11 +210,15 @@ export default class selectVehicleBrand extends Vue { ...@@ -207,11 +210,15 @@ export default class selectVehicleBrand extends Vue {
align-items: center; align-items: center;
gap: 8px; gap: 8px;
position: relative; position: relative;
color: #292d33;
font-size: 16px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
} }
.check-icon { .check-icon {
position: absolute; position: absolute;
right: 16px; right: 40px;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 16px; width: 16px;
...@@ -255,3 +262,23 @@ page { ...@@ -255,3 +262,23 @@ page {
height: 100px; height: 100px;
} }
</style> </style>
<style>
.van-index-anchor {
background: #F7F8FA !important;
}
.van-index-bar__index--active,
.van-index-bar__index:active {
color: #ffffff !important;
background-color: #000000 !important;
border-radius: 4px;
}
.van-index-anchor--active {
color: #757b85 !important;
font-size: 12px;
font-weight: 常规体;
font-family: "苹方-简";
}
</style>
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
</view> </view>
<view class="dialog-footer"> <view class="dialog-footer">
<van-button type="primary" hairline round block @click="goCertification">立即认证</van-button> <van-button type="primary" hairline round block @click="goCertification">立即认证</van-button>
<view @click="closeDialog" class="popup-button-text">稍后认证</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -27,6 +28,9 @@ export default class CertificationDialog extends Vue { ...@@ -27,6 +28,9 @@ export default class CertificationDialog extends Vue {
this.$emit('close'); this.$emit('close');
uni.navigateTo({url: '/module/account/PersonCertificationPage'}); uni.navigateTo({url: '/module/account/PersonCertificationPage'});
} }
closeDialog(): void {
this.$emit('close');
}
} }
</script> </script>
...@@ -82,4 +86,19 @@ export default class CertificationDialog extends Vue { ...@@ -82,4 +86,19 @@ export default class CertificationDialog extends Vue {
flex-direction: column; flex-direction: column;
gap: 3px;; gap: 3px;;
} }
.popup-button-text {
width: 100%;
height: 20px;
float: left;
line-height: 20px;
color: #666666;
font-size: 14px;
font-weight: 常规体;
font-family: "苹方-简";
text-align: center;
cursor: pointer;
margin-top: 16px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!