Commit 90a2c2e3 by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 4f31d228 15785f69
......@@ -243,6 +243,6 @@ module.exports = {
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.add',
projectName: 'boutique',
...data
})
}, true)
},
}
......@@ -29,9 +29,15 @@
:class="['sub-brand-name']"
>
<view
class="subtitle subtitle-one"
class="subtitle subtitle-one flex"
@click.stop="chooseSubBrand(j, c , jindex, cindex, index)"
> {{j.name}}</view>
>
{{j.name}}
<uni-icons
:type="`${j.children && j.children.length?'down':'right'}`"
size="18"
></uni-icons>
</view>
</view>
<template v-for="(k,kindex) in j.children">
......@@ -40,9 +46,15 @@
:key="`${k.id}_${kindex}`"
>
<view
class="subtitle subtitle-two"
class="subtitle subtitle-two flex"
@click.stop="chooseSeries(k,jindex, cindex, index ,kindex)"
>{{k.name}}</view>
>
{{k.name}}
<uni-icons
:type="`${k.children && k.children.length?'down':'right'}`"
size="18"
></uni-icons>
</view>
<template v-for="(s,sindex) in k.children">
<view
:class="['item flex',{active: checkActive(s)}]"
......@@ -172,6 +184,7 @@ export default {
}
},
async chooseSubBrand (that, item, jindex, cindex, index) {
if(that.children && that.children.length) return
uni.showLoading({
mask: true
})
......@@ -184,6 +197,7 @@ export default {
this.viewKey = Date.now()
},
async chooseSeries (k, jindex, cindex, index, kindex) {
if (k.children && k.children.length) return
uni.showLoading({
mask: true
})
......@@ -260,6 +274,7 @@ export default {
line-height: toRpx(40);
width: 100%;
flex-shrink: 0;
border-bottom: toRpx(2) solid #888;
}
}
}
......@@ -275,11 +290,11 @@ export default {
flex-shrink: 0;
}
.subtitle-one {
margin-bottom: 10rpx;
margin: toRpx(10) 0;
}
.subtitle-two {
color: #000;
font-size: 36rpx;
font-size: toRpx(36);
font-weight: 500;
}
.sub-item {
......@@ -291,7 +306,7 @@ export default {
display: flex;
flex-wrap: wrap;
gap: toRpx(32);
margin-bottom: 20rpx;
margin-top: toRpx(20);
align-items: stretch;
}
.item {
......@@ -304,7 +319,7 @@ export default {
position: relative;
color: #333333;
font-size: toRpx(32);
padding: 10rpx;
padding: toRpx(10);
.sprite-icon {
display: none;
position: absolute;
......@@ -324,6 +339,6 @@ export default {
}
.block {
width: 100%;
height: 24rpx;
height: toRpx(24);
}
</style>
\ No newline at end of file
......@@ -282,17 +282,17 @@ export default {
.step-box {
height: toRpx(64);
justify-content: center;
gap: 0 96rpx;
gap: 0 toRpx(96);
position: relative;
margin-bottom: 16rpx;
margin-bottom: toRpx(16);
.step {
height: 64rpx;
border-radius: 12rpx;
height: toRpx(64);
border-radius: toRpx(12);
background: #f2f2f2;
justify-content: center;
padding: 0 32rpx;
padding: 0 toRpx(32);
color: #666666;
font-size: 28rpx;
font-size: toRpx(28);
}
.step-active {
background: #dee7ff;
......@@ -304,8 +304,8 @@ export default {
left: 50%;
transform: translate(-50%, -50%);
content: '';
width: 16rpx;
height: 2rpx;
width: toRpx(16);
height: toRpx(2);
background: #cccccc;
}
}
......
......@@ -86,6 +86,7 @@ export default {
externalData: {
handler (val) {
let { imgObj } = val
if (Object.keys(this.imgObj).length) return
this.imgObj = {
retrofitInvoice: imgObj.retrofitInvoice || '',
retrofit: imgObj.retrofit || ''
......@@ -159,30 +160,30 @@ export default {
<style scoped lang='scss'>
.upload-content {
padding: 32rpx 32rpx 0;
padding: toRpx(32) toRpx(32) 0;
.upload-box {
display: flex;
margin-bottom: 32rpx;
margin-bottom: toRpx(32);
.label {
width: 168rpx;
width: toRpx(168);
flex-shrink: 0;
margin-right: 32rpx;
margin-right: toRpx(32);
}
.value {
gap: 16rpx;
gap: toRpx(16);
flex-wrap: wrap;
}
.upload-item {
width: 192rpx;
height: 192rpx;
border-radius: 12rpx;
width: toRpx(192);
height: toRpx(192);
border-radius: toRpx(12);
background: #f5f8ff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #999999;
font-size: 20rpx;
font-size: toRpx(20);
position: relative;
.del {
position: absolute;
......
......@@ -280,44 +280,44 @@ export default {
<style scoped lang='scss'>
.equity-goods-box {
padding: 0 32rpx;
padding: 0 toRpx(32);
.goods-item {
margin-bottom: 8rpx;
margin-bottom: toRpx(8);
.goods-head {
padding: 16rpx 0;
padding: toRpx(16) 0;
.goods-name {
color: #333333;
font-size: 28rpx;
line-height: 40rpx;
font-size: toRpx(28);
line-height: toRpx(40);
}
.goods-pervice {
color: #999999;
font-size: 26rpx;
line-height: 36rpx;
font-size: toRpx(26);
line-height: toRpx(36);
}
}
.goods-list {
background: #f5f7fa;
border-radius: 16rpx;
border-radius: toRpx(16);
}
}
.displacement-power {
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
padding: 0 toRpx(32);
.switch-box {
width: 208rpx;
height: 52rpx;
border-radius: 64rpx;
width: toRpx(208);
height: toRpx(52);
border-radius: toRpx(64);
background: #ffffff;
box-sizing: border-box;
padding: 0 4rpx;
padding: 0 toRpx(4);
.switch-item {
width: 50%;
height: 44rpx;
border-radius: 40rpx;
height: toRpx(44);
border-radius: toRpx(40);
color: #333333;
font-size: 26rpx;
font-size: toRpx(26);
justify-content: center;
transition: all 0.15s;
}
......@@ -330,12 +330,12 @@ export default {
.warranty {
margin-left: auto;
&-input {
width: 84rpx;
font-size: 28rpx;
margin-left: 16rpx;
width: toRpx(84);
font-size: toRpx(28);
margin-left: toRpx(16);
}
&-suffix {
margin-left: 16rpx;
margin-left: toRpx(16);
}
.placeholder {
color: #999999;
......
......@@ -96,21 +96,21 @@ export default {
.tire-box {
display: grid;
grid-template-columns: repeat(2, 1fr);
padding: 0 32rpx;
gap: 16rpx 32rpx;
padding: 0 toRpx(32);
gap: toRpx(16) toRpx(32);
.tire-item {
.label {
height: 68rpx;
height: toRpx(68);
color: #999999;
font-size: 26rpx;
font-size: toRpx(26);
.tips {
color: #4673ff;
font-size: 24rpx;
margin-left: 8rpx;
font-size: toRpx(24);
margin-left: toRpx(8);
}
}
.content {
border-radius: 16rpx;
border-radius: toRpx(16);
}
}
}
......
......@@ -195,6 +195,7 @@ export default {
externalData: {
handler (val) {
let { imgObj } = val
if(Object.keys(this.imgObj).length) return
this.imgObj = {
invoice: imgObj.invoice || '',
driveFront: imgObj.driveFront || '',
......@@ -273,30 +274,30 @@ export default {
<style scoped lang='scss'>
.upload-content {
padding: 0 32rpx;
padding: 0 toRpx(32);
.upload-box {
display: flex;
margin-bottom: 32rpx;
margin-bottom: toRpx(32);
.label {
width: 168rpx;
width: toRpx(168);
flex-shrink: 0;
margin-right: 32rpx;
margin-right: toRpx(32);
}
.value {
gap: 16rpx;
gap: toRpx(16);
flex-wrap: wrap;
}
.upload-item {
width: 192rpx;
height: 192rpx;
border-radius: 12rpx;
width: toRpx(192);
height: toRpx(192);
border-radius: toRpx(12);
background: #f5f8ff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #999999;
font-size: 20rpx;
font-size: toRpx(20);
position: relative;
.del {
position: absolute;
......
<template>
<uni-popup
ref="centerPopupRef"
type="center"
:is-mask-click="false"
animation
class="center-popup"
>
<view class="box">
<view class="title flex">
<view class="text">车架号复核</view>
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="20"
color="#1A1A1A"
></uni-icons>
</view>
</view>
<view class="content flex">
<view class="tips">请核对车架号是否正确,如信息有误后期将无法申请补偿服务!</view>
<view class="input-box flex">
<view class="input">
<view class="label">车架号</view>
<input type="text" maxlength="17" v-model="obj.vin" />
</view>
<view class="edit"></view>
</view>
<view class="footer-box">
</view>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CenterPopup',
props: {
list: Array,
title: String,
tag: String,
id: [Number, String],
isLine: Boolean
},
data () {
return {
}
},
mounted () {
},
methods: {
open () {
this.$refs.centerPopupRef.open();
},
close () {
this.$refs.centerPopupRef.close();
this.$emit('cancel')
},
choose: uni.$throttle(function (index) {
this.$emit('choose', index)
this.$refs.centerPopupRef.close();
}, 200)
}
}
</script>
<style scoped lang='scss'>
.center-popup {
z-index: 99 !important;
}
.box {
width: 848rpx;
height: 608rpx;
border-radius: 32rpx;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
.title {
width: 100%;
height: toRpx(160);
// background: url('@/assets/images/boutique/customer-type-bg.webp') no-repeat;
background-size: 100% 100%;
position: relative;
.text {
font-weight: 500;
font-size: toRpx(40);
color: #1a1a1a;
position: absolute;
left: 64rpx;
top: 50%;
transform: translateY(-50%);
}
.icon-close-box {
height: 100%;
margin-left: auto;
padding: 0 toRpx(48);
font-weight: 700;
}
}
.content {
padding: 0 toRpx(64);
width: 100%;
.tips {
color: #666666;
font-size: 32rpx;
line-height: 48rpx;
}
.input-box {
margin: 48rpx 0 16rpx;
}
}
}
</style>
\ No newline at end of file
......@@ -465,7 +465,7 @@ const EQUITY_FORM_LIST = [
},
{
label: '座位数',
value: 'seatesNum',
value: 'seat',
type: 'select',
key: 'seat',
},
......@@ -619,7 +619,7 @@ const EQUITY_FORM_TITLE_LIST = [
]
const EQUITY_POPUP_ENUM = {
18: {
value: 'seatesNum',
value: 'seat',
key: 'seat'
},
21: {
......@@ -709,7 +709,7 @@ const EQUITY_FORM_RULE = {
}
}
],
seatesNum: [{ required: true, message: '座位数不能为空' }],
seat: [{ required: true, message: '座位数不能为空' }],
engineNo: [
{ required: true, message: '发动机号不能为空' },
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!