Commit ba82736d by cen

fix: 样式修改

1 parent 523a85c2
......@@ -207,6 +207,9 @@
.px-20 {
padding: 0 toRpx(20);
}
.px-32 {
padding: 0 toRpx(32);
}
.px-50 {
padding: 0 toRpx(50);
}
......

2.79 MB | W: | H:

2.79 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -187,7 +187,7 @@ export default {
carProvinceName: '',
carCityId: '',
carCityName: '',
mileage: 0,
mileage: '',
usageType: '',
ownerType: '',
sunroof: '',
......@@ -196,10 +196,10 @@ export default {
interiorColor: '',
exteriorColor: '',
productionDate: '',
guidePrice: 0,
guidePrice: '',
buyNewCar: 0,
hasAccident: 0,
overallRating: 0,
overallRating: 1,
conditionDescription: ''
},
carLicenseReqDTO: {
......@@ -228,7 +228,7 @@ export default {
{ key: 'registrationCity', label: '上牌城市', required: true, fullWidth: false, targetNameKey: 'cityName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'registrationCityName', targetObj: 'carBaseReqDTO', type: 'select', showText: 'shopMerchantName', isCity: true },
{ key: 'registrationDate', label: '上牌时间', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'registrationDate', targetObj: 'carBaseReqDTO', type: 'calendar', showText: 'shopMerchantName' },
{ key: 'carCity', label: '车辆所在地', required: true, fullWidth: false, targetNameKey: 'carCityName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'carCityName', targetObj: 'carBaseReqDTO', type: 'select', isCarCity: true },
{ key: 'mileage', label: '表显里程', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'mileage', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$' },
{ key: 'mileage', label: '表显里程', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'mileage', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '公里', isCell: true },
{
key: 'usageType',
label: '使用性质',
......@@ -377,7 +377,7 @@ export default {
]
},
{ key: 'productionDate', label: '生产日期', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'productionDate', targetObj: 'carBaseReqDTO', type: 'calendar' },
{ key: 'guidePrice', label: '指导价', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'guidePrice', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$' },
{ key: 'guidePrice', label: '指导价', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'guidePrice', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '元', isCell: true },
{
key: 'buyNewCar',
label: '是否购买新车',
......@@ -1388,6 +1388,31 @@ export default {
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
padding: 0 toRpx(48);
box-sizing: border-box;
position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
z-index: -2;
width: 100%;
height: toRpx(120);
background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%);
opacity: 0.15;
}
&::before {
content: '';
position: absolute;
left: toMinusRpx(20);
top: toMinusRpx(28);
z-index: -1;
width: toRpx(136);
height: toRpx(136);
opacity: 0.6;
background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%);
filter: blur(toRpx(24));
}
.stepper-container {
display: flex;
align-items: center;
......
......@@ -5,12 +5,13 @@
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<template v-if="field.type === 'input'">
<template v-if="field.type === 'input'" class="flex align-center">
<input class="formInput" :min="field.min" :max="field.max" v-if="field.targetObj" :type="field.inputType || 'text'" :disabled="field.disabled" type="text" :placeholder="'请输入'" :maxlength="field.maxlength || 100" v-model="formData[field.targetObj][field.targetKey]" :pattern="field.pattern || ''" @input="e => handleInput(e, field)" @blur="e => handleBlur(e, field)" />
<input class="formInput" :min="field.min" :max="field.max" v-else type="text" :type="field.inputType || 'text'" :disabled="field.disabled" :placeholder="'请输入'" v-model="formData[field.targetKey]" :maxlength="field.maxlength || 100" :pattern="field.pattern || ''" @input="e => handleInput(e, field)" @blur="e => handleBlur(e, field)" />
<view v-if="field.isScan" class="flex align-center scanBtn justify-center" @click.stop="scan('vinOcr')">
<view class="sprite-icon icon-scanIconX"></view>
</view>
<text v-if="field.isCell" class="ml-12 cellLabel">{{ field.cell }}</text>
</template>
<template v-if="field.type === 'select'">
<view class="flex align-center from-value">
......@@ -72,8 +73,8 @@
</picker>
</template>
<template v-if="field.type === 'textarea'">
<textarea v-if="field.targetObj" placeholder="请输入 (1000字以内)" v-model="formData[field.targetObj][field.targetKey]" maxlength="1000" />
<textarea v-else placeholder="请输入 (1000字以内)" v-model="formData[field.targetKey]" maxlength="1000" />
<textarea v-if="field.targetObj" :placeholder="'请输入 (' + (field.maxlength || 100) + '字以内)'" v-model="formData[field.targetObj][field.targetKey]" :maxlength="field.maxlength || 100" />
<textarea v-else :placeholder="'请输入 (' + (field.maxlength || 100) + '字以内)'" v-model="formData[field.targetKey]" :maxlength="field.maxlength || 100" />
</template>
<template v-if="field.type === 'pdf'">
<view class="flex-1">
......@@ -271,6 +272,10 @@ export default {
text-align: right;
outline: none;
}
.cellLabel {
color: #333333;
font-size: toRpx(28);
}
.form-item-textarea {
flex-direction: column;
align-items: start;
......@@ -281,6 +286,9 @@ export default {
background: #f4f5f7;
padding: toRpx(24);
width: 100%;
color: #333333;
font-size: toRpx(28);
line-height: toRpx(44);
.textarea-placeholder {
color: #999999;
font-size: toRpx(28);
......
......@@ -117,11 +117,11 @@ export default {
.status {
border-radius: toRpx(4);
background: #fef4e8;
padding: toRpx(4) toRpx(20);
padding: 0 toRpx(20);
font-size: toRpx(24);
font-weight: 500;
height: toRpx(44);
// line-height: toRpx(44);
line-height: toRpx(44);
}
// 状态颜色
.status-10 {
......
......@@ -16,11 +16,11 @@
<image :src="media.url + videoProcess" mode="aspectFill" @click.stop="previewMedia(media, 1)"></image>
<view class="video-play-icon">
<view class="sprite-icon icon-play"></view>
<view class="sprite-icon icon-upload-play"></view>
</view>
</view>
<view class="delete-icon" @click.stop="deleteMedia(field.key, index)">
<uni-icons type="clear" size="16" color="#fff"></uni-icons>
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
......@@ -370,6 +370,10 @@ export default {
.upload-item-container {
align-items: flex-start;
margin-bottom: toRpx(32);
uni-image {
width: 100%;
height: 100%;
}
.upload-label {
color: #666666;
font-size: toRpx(26);
......@@ -449,12 +453,12 @@ export default {
/* 视频播放图标 */
.video-play-icon {
position: absolute;
top: 50%;
left: 50%;
bottom: 0;
left: toRpx(36);
transform: translate(-50%, -50%);
width: toRpx(60);
height: toRpx(60);
background-color: rgba(0, 0, 0, 0.5);
width: toRpx(40);
height: toRpx(40);
background-color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
......@@ -469,10 +473,7 @@ export default {
position: absolute;
top: toRpx(8);
right: toRpx(8);
width: toRpx(32);
height: toRpx(32);
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
......
......@@ -157,7 +157,7 @@ export default {
maxlength: 100
},
{
key: 'sellerUserId',
key: 'buyerAgreementUrl',
label: '补充协议条款',
required: false,
fullWidth: false,
......@@ -382,6 +382,14 @@ export default {
}
})
},
deletePdf() {
this.formFields.forEach(item => {
if (item.key === 'buyerAgreementUrl') {
item.isShowPreview = false
}
})
formData.supplementaryClauseText = ''
},
takePhoto(field) {
uni.chooseImage({
......
......@@ -643,10 +643,10 @@ export default {
background-color: #fff;
height: calc(100% - #{toRpx(96)});
box-sizing: border-box;
border-radius: toRpx(64);
border-radius: toRpx(32);
}
.no-br {
border-radius: 0 toRpx(64) toRpx(64) toRpx(64);
border-radius: 0 toRpx(32) toRpx(32) toRpx(32);
}
.mask-box {
height: calc(100% - #{toRpx(96)});
......
......@@ -43,7 +43,7 @@
<image :src="formData.idCardFrontUrl" mode="aspectFit"></image>
<view class="delete-icon" @click.stop="removeMedia('idCardFrontUrl')">
<uni-icons type="clear" size="16" color="#fff"></uni-icons>
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<view v-else class="upload-item" @click.stop="handleImageUpload('idCardFrontUrl')">
......@@ -62,7 +62,10 @@
<template>
<view v-if="formData.idCardBackUrl" class="uploaded-item">
<image :src="formData.idCardBackUrl" mode="aspectFit"></image>
<view class="remove-icon" @click.stop="removeMedia('idCardBackUrl')"></view>
<!-- <view class="remove-icon" @click.stop="removeMedia('idCardBackUrl')"></view> -->
<view class="delete-icon" @click.stop="removeMedia('idCardBackUrl')">
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<view v-else class="upload-item" @click.stop="handleImageUpload('idCardBackUrl')">
<view class="upload-placeholder">
......@@ -80,7 +83,9 @@
<template>
<view v-if="formData.payerIdCardFrontUrl" class="uploaded-item">
<image :src="formData.payerIdCardFrontUrl" mode="aspectFit"></image>
<view class="remove-icon" @click.stop="removeMedia('payerIdCardFrontUrl')"></view>
<view class="delete-icon" @click.stop="removeMedia('payerIdCardFrontUrl')">
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<view v-else class="upload-item" @click.stop="handleImageUpload('payerIdCardFrontUrl')">
<view class="upload-placeholder">
......@@ -95,7 +100,9 @@
<template>
<view v-if="formData.payerIdCardBackUrl" class="uploaded-item">
<image :src="formData.payerIdCardBackUrl" mode="aspectFit"></image>
<view class="remove-icon" @click.stop="removeMedia('payerIdCardBackUrl')"></view>
<view class="delete-icon" @click.stop="removeMedia('payerIdCardBackUrl')">
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<view v-else class="upload-item" @click.stop="handleImageUpload('payerIdCardBackUrl')">
<view class="upload-placeholder">
......@@ -112,7 +119,9 @@
<template>
<view v-if="formData.payerBankCardUrl" class="uploaded-item">
<image :src="formData.payerBankCardUrl" mode="aspectFit"></image>
<view class="remove-icon" @click.stop="removeMedia('payerBankCardUrl')"></view>
<view class="delete-icon" @click.stop="removeMedia('payerBankCardUrl')">
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<view v-else class="upload-item" @click.stop="handleImageUpload('payerBankCardUrl')">
<view class="upload-placeholder">
......@@ -150,7 +159,7 @@
<view>请先选择合同,签约个人信息自动带出</view>
</view>
</view>
<view class="footerBtn">
<view class="footerBtn" v-if="formData.paymentType">
<view class="btn cancle" @click.stop="backPage">取消</view>
<view class="btn next" @click.stop="nextPage">下一步</view>
</view>
......@@ -222,7 +231,7 @@
<image :src="formData.payerBankCardUrl" @click.stop="previewMedia(formData.payerBankCardUrl, 1)"></image>
</view>
</view>
<view class="flex align-center gridBox">
<view class="flex align-center gridBox mb-32">
<view class="flex align-center full-width">
<view class="title-label-see mr-16">随车资料</view>
<view>{{ selectedItemsText }}</view>
......@@ -577,6 +586,8 @@ export default {
targetKey: 'depositPrice',
targetObj: '',
type: 'input',
cell: '元',
isCell: true,
pattern: '^\\d*$' // 只允许数字输入
},
{
......@@ -591,6 +602,8 @@ export default {
targetObj: '',
disabled: true,
type: 'input',
cell: '元',
isCell: true,
pattern: '^\\d*$' // 只允许数字输入
},
......@@ -1043,7 +1056,7 @@ export default {
box-sizing: border-box;
overflow: auto;
.box-class {
height: calc(100% - #{toRpx(110)});
height: 100%;
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
......@@ -1051,6 +1064,31 @@ export default {
overflow: auto;
padding: toRpx(32) toRpx(48) toRpx(42);
box-sizing: border-box;
position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
z-index: -2;
width: 100%;
height: toRpx(120);
background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%);
opacity: 0.15;
}
&::before {
content: '';
position: absolute;
left: toMinusRpx(20);
top: toMinusRpx(28);
z-index: -1;
width: toRpx(136);
height: toRpx(136);
opacity: 0.6;
background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%);
filter: blur(toRpx(24));
}
.h2-title {
color: #333333;
font-size: toRpx(32);
......@@ -1086,7 +1124,8 @@ export default {
border-radius: toRpx(16);
box-sizing: border-box;
width: 100%;
height: calc(100% - #{toRpx(334)});
height: calc(100% - #{toRpx(254)});
overflow: hidden;
.no-data {
background: #ffffff;
.no-data-bg {
......@@ -1123,7 +1162,7 @@ export default {
.from-label {
color: #333333;
font-size: toRpx(32);
font-size: toRpx(28);
font-weight: 400;
display: flex;
align-items: flex-start;
......@@ -1166,7 +1205,7 @@ export default {
}
.upload-text {
margin-top: toRpx(20);
margin-top: toRpx(28);
font-size: toRpx(24);
}
.requiredLabel {
......@@ -1218,9 +1257,7 @@ export default {
position: absolute;
top: toRpx(8);
right: toRpx(8);
width: toRpx(32);
height: toRpx(32);
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
......@@ -1266,6 +1303,32 @@ export default {
border-radius: toRpx(48);
padding: toRpx(32) toRpx(48) toRpx(42);
box-sizing: border-box;
overflow: hidden;
position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
z-index: -2;
width: 100%;
height: toRpx(120);
background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%);
opacity: 0.15;
}
&::before {
content: '';
position: absolute;
left: toMinusRpx(20);
top: toMinusRpx(28);
z-index: -1;
width: toRpx(136);
height: toRpx(136);
opacity: 0.6;
background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%);
filter: blur(toRpx(24));
}
//确认签约信息样式
.gridBox {
display: grid;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!