Commit 3e4df72a by yancanhua

fix:前端自测问题优化

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