carDetail.js
12.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_form_item2 = common_vendor.resolveComponent("up-form-item");
const _easycom_up_transition2 = common_vendor.resolveComponent("up-transition");
const _easycom_up_form2 = common_vendor.resolveComponent("up-form");
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
(_easycom_up_input2 + _easycom_up_form_item2 + _easycom_up_transition2 + _easycom_up_form2 + _easycom_up_picker2 + _easycom_up_popup2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_form_item = () => "../../uni_modules/uview-plus/components/u-form-item/u-form-item.js";
const _easycom_up_transition = () => "../../uni_modules/uview-plus/components/u-transition/u-transition.js";
const _easycom_up_form = () => "../../uni_modules/uview-plus/components/u-form/u-form.js";
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(navTop + _easycom_up_input + _easycom_up_form_item + _easycom_up_transition + _easycom_up_form + _easycom_up_picker + _easycom_up_popup)();
}
const navTop = () => "../../components/navTop.js";
const _sfc_main = {
__name: "carDetail",
setup(__props) {
const showPicker = common_vendor.ref(false);
const showTip = common_vendor.ref(true);
const columns = common_vendor.ref([]);
const labelStyle = {
fontSize: "28rpx",
lineHeight: "38rpx",
color: "#3D3D3D"
};
const showList = common_vendor.ref(false);
const icon = common_vendor.ref("arrow-down");
const form = common_vendor.ref({
name: "",
identificationNumber: "",
sysDeptName: "",
licensePlateNumber: "",
lincensePlateType: "",
frameNumber: "",
engineNumber: "",
vehicleType: "",
vehicleNature: "",
passengersNumber: "",
passengerCapacity: "",
emissions: "",
vehicleModel: "",
vehicleBrand: "",
tractionMass: "",
requirements: ""
});
common_vendor.onLoad((options) => {
});
const getSearch = (value) => {
if (common_vendor.index.$u.trim(value)) {
showList.value = true;
} else {
showList.value = false;
}
};
const openSelect = (arr) => {
columns.value = [];
columns.value.push(arr);
showPicker.value = true;
icon.value = "arrow-up";
};
const onCancel = () => {
showPicker.value = false;
icon.value = "arrow-down";
};
const deleteCar = () => {
common_vendor.index.showModal({
title: "删除车辆提示",
content: "删除车辆后将无法及时收到投保方案解答与最新优惠,且无法恢复车辆信息。是否继续删除?",
success: function(res) {
if (res.confirm) {
console.log("用户点击确定");
} else if (res.cancel) {
console.log("用户点击取消");
}
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
carNum: "桂A·66666"
}),
b: common_vendor.o(($event) => form.value.sysDeptName = $event),
c: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入上年承保公司",
border: "none",
inputAlign: "right",
modelValue: form.value.sysDeptName
}),
d: common_vendor.p({
label: "上年承保公司",
prop: "sysDeptName"
}),
e: common_vendor.o(($event) => form.value.name = $event),
f: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入真实姓名",
border: "none",
inputAlign: "right",
modelValue: form.value.name
}),
g: common_vendor.p({
label: "车主姓名",
prop: "name"
}),
h: common_vendor.o(($event) => form.value.identificationNumber = $event),
i: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入身份证号",
border: "none",
inputAlign: "right",
modelValue: form.value.identificationNumber
}),
j: common_vendor.p({
label: "身份证号",
prop: "identificationNumber"
}),
k: common_vendor.o(($event) => form.value.licensePlateNumber = $event),
l: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入车牌号码",
border: "none",
inputAlign: "right",
modelValue: form.value.licensePlateNumber
}),
m: common_vendor.p({
label: "车牌号码",
prop: "licensePlateNumber"
}),
n: common_vendor.o(($event) => openSelect(["黄色车牌", "绿色车牌", "白色车牌", "蓝色车牌"])),
o: common_vendor.o(($event) => form.value.lincensePlateType = $event),
p: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请选择号牌种类",
suffixIcon: icon.value,
suffixIconStyle: "font-size: 28rpx",
border: "none",
inputAlign: "right",
modelValue: form.value.lincensePlateType
}),
q: common_vendor.p({
label: "号牌种类",
prop: "lincensePlateType"
}),
r: common_vendor.o(($event) => form.value.frameNumber = $event),
s: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入车架号",
border: "none",
inputAlign: "right",
modelValue: form.value.frameNumber
}),
t: common_vendor.p({
label: "车架号",
prop: "frameNumber"
}),
v: common_vendor.o(($event) => form.value.engineNumber = $event),
w: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入发动机号",
border: "none",
inputAlign: "right",
modelValue: form.value.engineNumber
}),
x: common_vendor.p({
label: "发动机号",
prop: "engineNumber"
}),
y: common_vendor.o(($event) => openSelect(["小轿车", "大货车", "两厢车"])),
z: common_vendor.o(($event) => form.value.vehicleType = $event),
A: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请选择车辆类型",
suffixIcon: icon.value,
suffixIconStyle: "font-size: 28rpx",
border: "none",
inputAlign: "right",
modelValue: form.value.vehicleType
}),
B: common_vendor.p({
label: "车辆类型",
prop: "vehicleType"
}),
C: common_vendor.o(($event) => openSelect(["运营车辆", "私家车", "公务车"])),
D: common_vendor.o(($event) => form.value.vehicleNature = $event),
E: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请选择车辆使用性质",
suffixIcon: icon.value,
suffixIconStyle: "font-size: 28rpx",
border: "none",
inputAlign: "right",
modelValue: form.value.vehicleNature
}),
F: common_vendor.p({
label: "车辆使用性质",
prop: "vehicleNature"
}),
G: common_vendor.o(($event) => form.value.passengersNumber = $event),
H: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入核载人数",
border: "none",
inputAlign: "right",
modelValue: form.value.passengersNumber
}),
I: common_vendor.p({
label: "核定客载数(人)",
prop: "passengersNumber"
}),
J: common_vendor.o(($event) => form.value.passengerCapacity = $event),
K: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入核载重量",
border: "none",
inputAlign: "right",
modelValue: form.value.passengerCapacity
}),
L: common_vendor.p({
label: "核定载质量(千克)",
prop: "passengerCapacity"
}),
M: common_vendor.o(($event) => form.value.emissions = $event),
N: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请输入排放量",
border: "none",
inputAlign: "right",
modelValue: form.value.emissions
}),
O: common_vendor.p({
label: "排量毫升",
prop: "emissions"
}),
P: common_vendor.o(getSearch),
Q: common_vendor.o(($event) => form.value.vehicleModel = $event),
R: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请填写车辆型号",
border: "none",
inputAlign: "right",
modelValue: form.value.vehicleModel
}),
S: common_vendor.p({
show: showList.value
}),
T: common_vendor.o(($event) => openSelect(["宝马", "奔驰", "劳斯莱斯"])),
U: common_vendor.o(($event) => form.value.vehicleBrand = $event),
V: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请选择车辆品牌",
suffixIcon: icon.value,
suffixIconStyle: "font-size: 28rpx",
border: "none",
inputAlign: "right",
modelValue: form.value.vehicleBrand
}),
W: common_vendor.p({
label: "中文品牌",
prop: "vehicleBrand"
}),
X: common_vendor.o(($event) => form.value.tractionMass = $event),
Y: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请填写准牵引准质量",
border: "none",
inputAlign: "right",
modelValue: form.value.tractionMass
}),
Z: common_vendor.p({
label: "准牵引质量",
prop: "tractionMass"
}),
aa: common_vendor.o(($event) => openSelect(["强险", "商险"])),
ab: common_vendor.o(($event) => form.value.requirements = $event),
ac: common_vendor.p({
fontSize: "28rpx",
color: "#999",
placeholder: "请选择保险需求",
suffixIcon: icon.value,
suffixIconStyle: "font-size: 28rpx",
border: "none",
inputAlign: "right",
modelValue: form.value.requirements
}),
ad: common_vendor.p({
label: "保险需求",
prop: "requirements"
}),
ae: common_vendor.o(deleteCar),
af: common_vendor.sr("uFormRef", "1c0b8627-0"),
ag: common_vendor.p({
model: form.value,
["label-width"]: "130",
labelStyle
}),
ah: common_vendor.o(onCancel),
ai: common_vendor.o(onCancel),
aj: common_vendor.o(($event) => showPicker.value = false),
ak: common_vendor.p({
show: showPicker.value,
columns: columns.value,
closeOnClickOverlay: true
}),
al: common_vendor.o(($event) => showTip.value = false),
am: common_vendor.o(($event) => showTip.value = false),
an: common_vendor.p({
show: showTip.value,
mode: "center",
safeAreaInsetBottom: false,
round: "20"
}),
ao: showPicker.value ? "100vh" : "",
ap: showPicker.value ? "hidden" : ""
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1c0b8627"]]);
wx.createPage(MiniProgramPage);