Commit 34405dea by 李伟康

commit 修改告知书样式

1 parent 00d065a0
......@@ -26,6 +26,7 @@
title="请选择车型"
:maxHeight="1000"
back
@close="closeCarBoxVisible"
>
<view class="select-box">
<view
......@@ -50,7 +51,8 @@ export default {
return {
carlist: [],
selectItem: {},
clickFlga: false
clickFlga: false,
carBrandListOff: false
}
},
watch: {
......@@ -104,10 +106,14 @@ export default {
const { carBrandList } = this,
item = carBrandList.find(e => e.name == carBrand)
if (item && carBrandList.length == 1) this.selectCar(item)
else this.$refs.carBrandListVisible.open()
else {
this.$refs.carBrandListVisible.open()
this.carBrandListOff = true
}
return
}
this.$refs.carBrandListVisible.open()
this.carBrandListOff = true
},
selectCar (e, auto = false) {
let { clickFlga } = this
......@@ -161,6 +167,11 @@ export default {
close () {
this.$refs?.carBoxVisible?.close();
this.$refs?.carBrandListVisible?.close()
this.carBrandListOff = false
},
closeCarBoxVisible () {
if (this.carBrandListOff) return
else this.$emit('close')
}
}
}
......
......@@ -225,7 +225,7 @@ export default {
gap: 0 28rpx;
height: 100%;
&-item {
width: 336rpx;
width: 368rpx;
height: 100%;
position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!