Commit d2352ab7 authored by 程新智's avatar 程新智 👽

优化

parent df77d25a
...@@ -272,10 +272,11 @@ export default { ...@@ -272,10 +272,11 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
overflow: hidden;
overflow-x: scroll;
.shop__item2 { .shop__item2 {
width: 25%; width: 24%;
margin-right: 1%;
.item2__img { .item2__img {
margin-bottom: 20rpx; margin-bottom: 20rpx;
text-align: center; text-align: center;
......
This diff is collapsed.
...@@ -73,17 +73,17 @@ ...@@ -73,17 +73,17 @@
import CarNumber from "@/common/codecook-carnumber/codecook-carnumber.vue"; import CarNumber from "@/common/codecook-carnumber/codecook-carnumber.vue";
export default { export default {
components: { components: {
CarNumber, CarNumber,
}, },
data() { data() {
return { return {
model1: { model1: {
carInfo: { carInfo: {
carNo: '', carNo: '',
brand: '', brand: '',
carModel: '', carModel: '',
mileage: '', mileage: '',
}, },
}, },
rules: { rules: {
"carInfo.brand": { "carInfo.brand": {
...@@ -98,17 +98,23 @@ export default { ...@@ -98,17 +98,23 @@ export default {
message: "请填写车型", message: "请填写车型",
trigger: ["blur", "change"], trigger: ["blur", "change"],
}, },
"carInfo.carNo": [{ "carInfo.mileage": {
min: 7, type: "number",
max: 8, required: false,
message: '车牌长度在7-8个字符之间' message: "请填写正确的里程数",
},
{
type: "string",
required: true,
message: "请填写车牌号",
trigger: ["blur", "change"], trigger: ["blur", "change"],
}, },
"carInfo.carNo": [{
min: 7,
max: 8,
message: '车牌长度在7-8个字符之间'
},
{
type: "string",
required: true,
message: "请填写车牌号",
trigger: ["blur", "change"],
},
] ]
}, },
carId: '', carId: '',
...@@ -152,13 +158,13 @@ export default { ...@@ -152,13 +158,13 @@ export default {
method: 'get' method: 'get'
}; };
that.http.httpTokenRequest(opts, {}).then(res => { that.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
that.$nextTick(() => { that.$nextTick(() => {
that.model1.carInfo = res.data.data; that.model1.carInfo = res.data.data;
that.model1.carInfo.carNo = res.data.data.carNo; that.model1.carInfo.carNo = res.data.data.carNo;
that.$set(that.model1.carInfo, 'carNo', res.data.data.carNo); that.$set(that.model1.carInfo, 'carNo', res.data.data.carNo);
}) })
} }
}) })
} }
...@@ -180,11 +186,10 @@ export default { ...@@ -180,11 +186,10 @@ export default {
this.$refs.form1.setRules(this.rules) this.$refs.form1.setRules(this.rules)
}, },
onShow() { onShow() {
this.$nextTick(() => { this.$nextTick(() => {
this.getCarInfo() this.getCarInfo()
this.getMoveCode() this.getMoveCode()
}) })
}, },
onLoad(e) { onLoad(e) {
......
...@@ -71,6 +71,12 @@ export default { ...@@ -71,6 +71,12 @@ export default {
message: "请填写车型", message: "请填写车型",
trigger: ["blur", "change"], trigger: ["blur", "change"],
}, },
"carInfo.mileage": {
type: "number",
required: false,
message: "请填写正确的里程数",
trigger: ["blur", "change"],
},
"carInfo.carNo": [{ "carInfo.carNo": [{
min: 7, min: 7,
max: 8, max: 8,
......
This diff is collapsed.
This diff is collapsed.
No preview for this file type
...@@ -32,7 +32,7 @@ const store = new Vuex.Store({ ...@@ -32,7 +32,7 @@ const store = new Vuex.Store({
{ {
pagePath: '/pagesC/pages/releaseBtn/releaseBtn', pagePath: '/pagesC/pages/releaseBtn/releaseBtn',
iconPath: '', iconPath: '',
selectedIconPath: '/static/tarbar/index31.png' selectedIconPath: ''
}, },
{ {
pagePath: '/pagesC/pages/shop/index', pagePath: '/pagesC/pages/shop/index',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment