Commit 34405dea by 李伟康

commit 修改告知书样式

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