step2.js
6.88 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
"use strict";
const common_vendor = require("../../common/vendor.js");
const config = require("../../config.js");
if (!Array) {
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
const _easycom_uni_forms_item2 = common_vendor.resolveComponent("uni-forms-item");
const _easycom_uni_data_checkbox2 = common_vendor.resolveComponent("uni-data-checkbox");
const _easycom_uni_data_select2 = common_vendor.resolveComponent("uni-data-select");
const _easycom_uni_forms2 = common_vendor.resolveComponent("uni-forms");
(_easycom_uni_easyinput2 + _easycom_uni_forms_item2 + _easycom_uni_data_checkbox2 + _easycom_uni_data_select2 + _easycom_uni_forms2)();
}
const _easycom_uni_easyinput = () => "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
const _easycom_uni_forms_item = () => "../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.js";
const _easycom_uni_data_checkbox = () => "../../uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js";
const _easycom_uni_data_select = () => "../../uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js";
const _easycom_uni_forms = () => "../../uni_modules/uni-forms/components/uni-forms/uni-forms.js";
if (!Math) {
(_easycom_uni_easyinput + _easycom_uni_forms_item + _easycom_uni_data_checkbox + _easycom_uni_data_select + _easycom_uni_forms)();
}
const _sfc_main = {
__name: "step2",
props: {
personal: {
type: Object,
default: () => {
}
}
},
emits: ["prev", "next"],
setup(__props, { emit }) {
const props = __props;
const baseFormData = common_vendor.computed(() => props.personal);
const sexs = common_vendor.ref([{
value: "0",
text: "女"
}, {
value: "1",
text: "男"
}]);
const certificates = common_vendor.ref([
{
text: "身份证",
value: "0"
},
{
text: "港澳台通行证 ",
value: "1"
},
{
text: "中国护照",
value: "2"
},
{
text: "外国护照",
value: "3"
},
{
text: "其它",
value: "4"
},
{
text: "户口本",
value: "5"
}
]);
common_vendor.onLoad((options) => {
});
function prev() {
emit("prev");
}
function next() {
emit("next");
}
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(baseFormData).photo
}, common_vendor.unref(baseFormData).photo ? {
b: common_vendor.unref(config.config).baseUrl_api + common_vendor.unref(baseFormData).photo
} : {}, {
c: common_vendor.o(($event) => common_vendor.unref(baseFormData).perCode = $event),
d: common_vendor.p({
disabled: true,
placeholder: "请输入会员编号",
modelValue: common_vendor.unref(baseFormData).perCode
}),
e: common_vendor.p({
label: "会员编号",
required: true,
name: "perCode"
}),
f: common_vendor.o(($event) => common_vendor.unref(baseFormData).validityDate = $event),
g: common_vendor.p({
disabled: true,
placeholder: "请输入会员编号",
modelValue: common_vendor.unref(baseFormData).validityDate
}),
h: common_vendor.p({
label: "有效期",
required: true,
name: "validityDate"
}),
i: common_vendor.o(($event) => common_vendor.unref(baseFormData).name = $event),
j: common_vendor.p({
disabled: true,
placeholder: "请输入姓名",
modelValue: common_vendor.unref(baseFormData).name
}),
k: common_vendor.p({
label: "姓名",
required: true,
name: "name"
}),
l: common_vendor.o(($event) => common_vendor.unref(baseFormData).sex = $event),
m: common_vendor.p({
disabled: true,
localdata: sexs.value,
modelValue: common_vendor.unref(baseFormData).sex
}),
n: common_vendor.p({
label: "性别",
required: true,
name: "sex"
}),
o: common_vendor.o(($event) => common_vendor.unref(baseFormData).idcType = $event),
p: common_vendor.p({
disabled: true,
localdata: certificates.value,
modelValue: common_vendor.unref(baseFormData).idcType
}),
q: common_vendor.p({
label: "证件类型",
required: true,
name: "idcType"
}),
r: common_vendor.o(($event) => common_vendor.unref(baseFormData).idcCode = $event),
s: common_vendor.p({
placeholder: "请输入证件号码",
disabled: true,
modelValue: common_vendor.unref(baseFormData).idcCode
}),
t: common_vendor.p({
label: "证件号码",
required: true,
name: "idcCode"
}),
v: common_vendor.o(($event) => common_vendor.unref(baseFormData).birth = $event),
w: common_vendor.p({
disabled: true,
modelValue: common_vendor.unref(baseFormData).birth
}),
x: common_vendor.p({
label: "出生日期",
required: true,
name: "birth"
}),
y: common_vendor.o(($event) => common_vendor.unref(baseFormData).phone = $event),
z: common_vendor.p({
disabled: true,
placeholder: "请输入联系方式",
modelValue: common_vendor.unref(baseFormData).phone
}),
A: common_vendor.p({
label: "联系方式",
required: true,
name: "phone"
}),
B: common_vendor.o(($event) => common_vendor.unref(baseFormData).cityName = $event),
C: common_vendor.p({
disabled: true,
placeholder: "请输入所在地区",
modelValue: common_vendor.unref(baseFormData).cityName
}),
D: common_vendor.p({
label: "所在地区",
required: true,
name: "cityName"
}),
E: common_vendor.o(($event) => common_vendor.unref(baseFormData).address = $event),
F: common_vendor.p({
disabled: true,
placeholder: "请输入详细地址",
modelValue: common_vendor.unref(baseFormData).address
}),
G: common_vendor.p({
label: "详细地址",
required: true,
name: "address"
}),
H: common_vendor.sr("baseForm", "d4a2c402-0"),
I: common_vendor.p({
modelValue: common_vendor.unref(baseFormData),
["label-width"]: "80"
}),
J: common_vendor.o(prev),
K: common_vendor.o(next)
});
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d4a2c402"], ["__file", "/Users/yangyang/ztx_wx_minapp/training/components/step2.vue"]]);
wx.createComponent(Component);