212 lines
7.3 KiB
JavaScript
212 lines
7.3 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.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_icon2 = common_vendor.resolveComponent("up-icon");
|
|
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
|
|
const _easycom_up_form2 = common_vendor.resolveComponent("up-form");
|
|
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
|
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
|
|
(_easycom_up_input2 + _easycom_up_form_item2 + _easycom_up_icon2 + _easycom_up_upload2 + _easycom_up_form2 + _easycom_up_button2 + _easycom_up_picker2)();
|
|
}
|
|
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
|
|
const _easycom_up_form_item = () => "../../node-modules/uview-plus/components/u-form-item/u-form-item.js";
|
|
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
|
const _easycom_up_upload = () => "../../node-modules/uview-plus/components/u-upload/u-upload.js";
|
|
const _easycom_up_form = () => "../../node-modules/uview-plus/components/u-form/u-form.js";
|
|
const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js";
|
|
const _easycom_up_picker = () => "../../node-modules/uview-plus/components/u-picker/u-picker.js";
|
|
if (!Math) {
|
|
(_easycom_up_input + _easycom_up_form_item + _easycom_up_icon + _easycom_up_upload + _easycom_up_form + _easycom_up_button + QfImageCropper + _easycom_up_picker)();
|
|
}
|
|
const QfImageCropper = () => "../../uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.js";
|
|
const _sfc_main = {
|
|
__name: "apply",
|
|
setup(__props) {
|
|
const imgCropper = common_vendor.ref(null);
|
|
const model = common_vendor.reactive({
|
|
name: ""
|
|
});
|
|
const showCroper = common_vendor.ref(false);
|
|
const coperImg = common_vendor.ref("");
|
|
const customStyle = common_vendor.reactive({
|
|
height: "90rpx",
|
|
fontSize: "36rpx"
|
|
});
|
|
const areacolumns = common_vendor.ref([]);
|
|
const showArea = common_vendor.ref(false);
|
|
const departcolumns = common_vendor.ref([]);
|
|
const showDepart = common_vendor.ref(false);
|
|
const titlecolumns = common_vendor.ref([]);
|
|
const showTitle = common_vendor.ref(false);
|
|
const closeArea = () => {
|
|
showArea.value = false;
|
|
};
|
|
const confirmArea = (e) => {
|
|
showArea.value = false;
|
|
};
|
|
const closeDepart = () => {
|
|
showDepart.value = false;
|
|
};
|
|
const confirmDepart = (e) => {
|
|
common_vendor.index.__f__("log", "at pages/apply/apply.vue:122", e);
|
|
showDepart.value = false;
|
|
};
|
|
const closeTitle = () => {
|
|
showTitle.value = false;
|
|
};
|
|
const confirmTitle = (e) => {
|
|
showTitle.value = false;
|
|
};
|
|
const afterRead = (event) => {
|
|
coperImg.value = event.file.url;
|
|
showCroper.value = true;
|
|
};
|
|
const handleCrop = (e) => {
|
|
common_vendor.index.__f__("log", "at pages/apply/apply.vue:139", e.tempFilePath);
|
|
};
|
|
const handleCancel = () => {
|
|
showCroper.value = false;
|
|
};
|
|
common_vendor.onShow(() => {
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.o(($event) => model.name = $event),
|
|
b: common_vendor.p({
|
|
placeholder: "请输入真实姓名",
|
|
modelValue: model.name
|
|
}),
|
|
c: common_vendor.p({
|
|
label: "姓名",
|
|
prop: "userInfo.name",
|
|
borderBottom: true
|
|
}),
|
|
d: common_vendor.o(($event) => model.name = $event),
|
|
e: common_vendor.p({
|
|
placeholder: "请选择医院",
|
|
modelValue: model.name
|
|
}),
|
|
f: common_vendor.p({
|
|
name: "arrow-right"
|
|
}),
|
|
g: common_vendor.o(($event) => showArea.value = true),
|
|
h: common_vendor.p({
|
|
label: "医院",
|
|
prop: "userInfo.name",
|
|
borderBottom: true
|
|
}),
|
|
i: common_vendor.o(($event) => model.name = $event),
|
|
j: common_vendor.p({
|
|
placeholder: "请选择科室",
|
|
modelValue: model.name
|
|
}),
|
|
k: common_vendor.p({
|
|
name: "arrow-right"
|
|
}),
|
|
l: common_vendor.o(($event) => showDepart.value = true),
|
|
m: common_vendor.p({
|
|
label: "科室",
|
|
prop: "userInfo.name",
|
|
borderBottom: true
|
|
}),
|
|
n: common_vendor.o(($event) => model.name = $event),
|
|
o: common_vendor.p({
|
|
placeholder: "请选择职称",
|
|
modelValue: model.name
|
|
}),
|
|
p: common_vendor.p({
|
|
name: "arrow-right"
|
|
}),
|
|
q: common_vendor.o(($event) => showTitle.value = true),
|
|
r: common_vendor.p({
|
|
label: "职称",
|
|
prop: "userInfo.name",
|
|
borderBottom: true
|
|
}),
|
|
s: common_vendor.o(($event) => model.name = $event),
|
|
t: common_vendor.p({
|
|
placeholder: "请输入执业证号",
|
|
modelValue: model.name
|
|
}),
|
|
v: common_vendor.p({
|
|
label: "执业证号(选填)",
|
|
prop: "userInfo.name",
|
|
borderBottom: true
|
|
}),
|
|
w: common_vendor.o(($event) => model.name = $event),
|
|
x: common_vendor.p({
|
|
placeholder: "",
|
|
modelValue: model.name
|
|
}),
|
|
y: common_vendor.o(afterRead),
|
|
z: common_vendor.p({
|
|
maxCount: 1
|
|
}),
|
|
A: common_vendor.unref(common_assets.img),
|
|
B: common_vendor.p({
|
|
name: "arrow-right"
|
|
}),
|
|
C: common_vendor.p({
|
|
label: "执业医师资格证或工作胸牌",
|
|
prop: "userInfo.name",
|
|
borderBottom: true
|
|
}),
|
|
D: common_vendor.sr("form", "426a9ebe-0"),
|
|
E: common_vendor.p({
|
|
labelPosition: "left",
|
|
model,
|
|
labelWidth: "115rpx"
|
|
}),
|
|
F: common_vendor.p({
|
|
customStyle,
|
|
type: "success",
|
|
text: "提交",
|
|
color: "#3cc7c0",
|
|
size: "large"
|
|
}),
|
|
G: showCroper.value
|
|
}, showCroper.value ? {
|
|
H: common_vendor.sr(imgCropper, "426a9ebe-19", {
|
|
"k": "imgCropper"
|
|
}),
|
|
I: common_vendor.o(handleCancel),
|
|
J: common_vendor.o(handleCrop),
|
|
K: common_vendor.p({
|
|
width: 500,
|
|
height: 500,
|
|
radius: 0,
|
|
backgroundColor: "#000",
|
|
src: coperImg.value,
|
|
zIndex: "999",
|
|
delay: "1500"
|
|
})
|
|
} : {}, {
|
|
L: common_vendor.o(closeArea),
|
|
M: common_vendor.o(confirmArea),
|
|
N: common_vendor.p({
|
|
show: showArea.value,
|
|
columns: areacolumns.value
|
|
}),
|
|
O: common_vendor.o(closeDepart),
|
|
P: common_vendor.o(confirmDepart),
|
|
Q: common_vendor.p({
|
|
show: showDepart.value,
|
|
columns: departcolumns.value
|
|
}),
|
|
R: common_vendor.o(closeTitle),
|
|
S: common_vendor.o(confirmTitle),
|
|
T: common_vendor.p({
|
|
show: showTitle.value,
|
|
columns: titlecolumns.value
|
|
})
|
|
});
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-426a9ebe"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/apply/apply.js.map
|