address.js
3.26 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
"use strict";
const common_vendor = require("../../common/vendor.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_picker2 = common_vendor.resolveComponent("uni-data-picker");
const _easycom_uni_forms2 = common_vendor.resolveComponent("uni-forms");
(_easycom_uni_easyinput2 + _easycom_uni_forms_item2 + _easycom_uni_data_picker2 + _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_picker = () => "../../uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.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_picker + _easycom_uni_forms)();
}
const _sfc_main = {
__name: "address",
setup(__props) {
const dataTree = common_vendor.ref([{
text: "江苏",
value: "00",
children: [{
text: "无锡",
value: "001"
}, {
text: "苏州",
value: "002"
}]
}]);
const baseFormData = common_vendor.ref({});
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => baseFormData.value.name = $event),
b: common_vendor.p({
placeholder: "请输入姓名",
modelValue: baseFormData.value.name
}),
c: common_vendor.p({
label: "收件人",
required: true
}),
d: common_vendor.o(($event) => baseFormData.value.phone = $event),
e: common_vendor.p({
placeholder: "请输入联系电话",
modelValue: baseFormData.value.phone
}),
f: common_vendor.p({
label: "联系电话",
required: true
}),
g: common_vendor.o(_ctx.onchange),
h: common_vendor.o(_ctx.onnodeclick),
i: common_vendor.o(_ctx.onpopupopened),
j: common_vendor.o(_ctx.onpopupclosed),
k: common_vendor.o(($event) => baseFormData.value.areaInfo = $event),
l: common_vendor.p({
placeholder: "请选择 省/市/区/县",
["popup-title"]: "请选择所在地区",
localdata: dataTree.value,
modelValue: baseFormData.value.areaInfo
}),
m: common_vendor.p({
label: "省/市/区/县",
required: true
}),
n: common_vendor.o(($event) => baseFormData.value.address = $event),
o: common_vendor.p({
placeholder: "请输入详细地址",
modelValue: baseFormData.value.address
}),
p: common_vendor.p({
label: "详细地址",
required: true
}),
q: common_vendor.sr("baseForm", "b68edc4c-0"),
r: common_vendor.p({
modelValue: baseFormData.value
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/yangyang/project/j-mini/Venue/pages/usercenter/address.vue"]]);
wx.createPage(MiniProgramPage);