hldy_xcx/unpackage/dist/dev/mp-weixin/pages/login/threeselectonespec.js

121 lines
3.6 KiB
JavaScript
Raw Normal View History

2025-06-30 17:33:35 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2025-09-19 17:12:59 +08:00
const api_loginApi = require("../../api/loginApi.js");
2025-06-30 17:33:35 +08:00
const _sfc_main = {
__name: "threeselectonespec",
setup(__props) {
common_vendor.ref(0);
2025-09-09 17:45:04 +08:00
const jigouhowtojump = () => {
if (op2.value == `1`) {
2025-09-19 17:12:59 +08:00
api_loginApi.changePerson(3).then((res) => {
if (res.success) {
jumpToindex();
}
});
2025-09-09 17:45:04 +08:00
} else {
gotoadd();
}
};
const yuangonghowtojump = () => {
if (op1.value == `1`) {
2025-09-19 17:12:59 +08:00
api_loginApi.changePerson(2).then((res) => {
if (res.success) {
jumpToYuangongindex();
}
});
2025-09-09 17:45:04 +08:00
} else {
tobestaff();
}
};
2025-06-30 17:33:35 +08:00
const goBack = () => {
common_vendor.index.navigateBack();
};
const ceshi = () => {
common_vendor.index.navigateTo({
2025-07-31 17:23:36 +08:00
url: `/pages/login/index`
2025-06-30 17:33:35 +08:00
});
};
const jumpToindex = () => {
2025-09-09 17:45:04 +08:00
common_vendor.index.reLaunch({
2025-06-30 17:33:35 +08:00
url: `/pages/index/index`
});
};
2025-09-02 16:45:54 +08:00
const jumpToYuangongindex = () => {
2025-09-09 17:45:04 +08:00
common_vendor.index.reLaunch({
2025-09-02 16:45:54 +08:00
url: `/pages/yuangongindex/index`
});
};
2025-09-15 17:23:33 +08:00
const oldmanhowtojump = () => {
if (op0.value == `1`) {
2025-09-19 17:12:59 +08:00
api_loginApi.changePerson(1).then((res) => {
if (res.success) {
common_vendor.index.reLaunch({
url: `/pages/oldmanindex/index`
});
}
2025-09-15 17:23:33 +08:00
});
} else {
tobeold();
}
};
2025-06-30 17:33:35 +08:00
const gotoadd = () => {
common_vendor.index.setStorageSync("specicalid", "");
common_vendor.index.setStorageSync("baddata", "");
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({
url: `/pages/addjigou/name`
});
};
2025-08-21 16:52:59 +08:00
const tobestaff = () => {
common_vendor.index.setStorageSync("specicalid", "");
common_vendor.index.setStorageSync("baddata", "");
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({
url: `/pages/addstaff/information`
});
};
2025-09-15 17:23:33 +08:00
const tobeold = () => {
common_vendor.index.setStorageSync("specicalid", "");
common_vendor.index.setStorageSync("baddata", "");
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({
url: `/pages/addoldman/IDcard`
});
};
2025-06-30 17:33:35 +08:00
const phone = common_vendor.ref("");
2025-09-23 17:15:17 +08:00
const op0 = common_vendor.ref(0);
const op1 = common_vendor.ref(0);
const op2 = common_vendor.ref(0);
2025-06-30 17:33:35 +08:00
common_vendor.onLoad(() => {
phone.value = common_vendor.index.getStorageSync("tel");
2025-09-23 17:15:17 +08:00
op0.value = 1;
op1.value = 1;
op2.value = 1;
2025-06-30 17:33:35 +08:00
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(goBack),
2025-09-15 17:23:33 +08:00
b: op0.value == `1`
}, op0.value == `1` ? {} : {}, {
c: op0.value != `1`
}, op0.value != `1` ? {} : {}, {
d: common_vendor.o(oldmanhowtojump),
e: op1.value == `1`
2025-09-09 17:45:04 +08:00
}, op1.value == `1` ? {} : {}, {
2025-09-15 17:23:33 +08:00
f: op1.value != `1`
2025-09-09 17:45:04 +08:00
}, op1.value != `1` ? {} : {}, {
2025-09-15 17:23:33 +08:00
g: common_vendor.o(yuangonghowtojump),
h: op2.value == `1`
2025-09-09 17:45:04 +08:00
}, op2.value == `1` ? {} : {}, {
2025-09-15 17:23:33 +08:00
i: op2.value != `1`
2025-09-09 17:45:04 +08:00
}, op2.value != `1` ? {} : {}, {
2025-09-15 17:23:33 +08:00
j: common_vendor.o(ceshi),
k: common_vendor.o(jigouhowtojump)
2025-06-30 17:33:35 +08:00
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f4bd7fdd"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/threeselectonespec.js.map