2025-06-27 08:56:14 +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-27 08:56:14 +08:00
|
|
|
const _sfc_main = {
|
|
|
|
|
__name: "threeselectone",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
common_vendor.ref(0);
|
2025-12-24 17:18:42 +08:00
|
|
|
const jigouhowtojump = () => {
|
|
|
|
|
api_loginApi.changePerson(3).then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
jumpToindex();
|
|
|
|
|
}
|
2025-09-02 16:45:54 +08:00
|
|
|
});
|
|
|
|
|
};
|
2025-12-24 17:18:42 +08:00
|
|
|
const yuangonghowtojump = () => {
|
|
|
|
|
api_loginApi.changePerson(2).then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
jumpToYuangongindex();
|
|
|
|
|
}
|
2025-09-15 17:23:33 +08:00
|
|
|
});
|
|
|
|
|
};
|
2025-12-24 17:18:42 +08:00
|
|
|
const supplierhowtojump = () => {
|
|
|
|
|
api_loginApi.changePerson(4).then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
jumpTosupplierindex();
|
|
|
|
|
}
|
|
|
|
|
});
|
2025-09-09 17:45:04 +08:00
|
|
|
};
|
2025-12-24 17:18:42 +08:00
|
|
|
const jumpTosupplierindex = () => {
|
2025-09-09 17:45:04 +08:00
|
|
|
common_vendor.index.reLaunch({
|
2025-12-24 17:18:42 +08:00
|
|
|
url: `/pages/supplierindex/index`
|
2025-09-09 17:45:04 +08:00
|
|
|
});
|
|
|
|
|
};
|
2025-12-24 17:18:42 +08:00
|
|
|
const goBack = () => {
|
|
|
|
|
common_vendor.index.navigateBack();
|
|
|
|
|
};
|
|
|
|
|
const ceshi = () => {
|
2025-09-09 17:45:04 +08:00
|
|
|
};
|
2025-06-27 08:56:14 +08:00
|
|
|
const jumpToindex = () => {
|
2025-12-24 17:18:42 +08:00
|
|
|
common_vendor.index.reLaunch({
|
2025-06-27 08:56:14 +08:00
|
|
|
url: `/pages/index/index`
|
|
|
|
|
});
|
|
|
|
|
};
|
2025-12-24 17:18:42 +08:00
|
|
|
const jumpToYuangongindex = () => {
|
|
|
|
|
common_vendor.index.reLaunch({
|
|
|
|
|
url: `/pages/yuangongindex/index`
|
2025-06-27 08:56:14 +08:00
|
|
|
});
|
|
|
|
|
};
|
2025-12-24 17:18:42 +08:00
|
|
|
const oldmanhowtojump = () => {
|
|
|
|
|
api_loginApi.changePerson(1).then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
common_vendor.index.reLaunch({
|
|
|
|
|
url: `/pages/oldmanindex/index`
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
2025-06-27 08:56:14 +08:00
|
|
|
};
|
|
|
|
|
const phone = common_vendor.ref("");
|
2025-12-24 17:18:42 +08:00
|
|
|
const back = common_vendor.ref(false);
|
|
|
|
|
common_vendor.onLoad((param) => {
|
|
|
|
|
if (param == null ? void 0 : param.back) {
|
|
|
|
|
back.value = true;
|
|
|
|
|
}
|
2025-06-27 08:56:14 +08:00
|
|
|
phone.value = common_vendor.index.getStorageSync("tel");
|
|
|
|
|
});
|
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
|
return common_vendor.e({
|
2025-12-24 17:18:42 +08:00
|
|
|
a: back.value
|
|
|
|
|
}, back.value ? {
|
|
|
|
|
b: common_vendor.o(goBack),
|
|
|
|
|
c: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`
|
|
|
|
|
} : {}, {
|
|
|
|
|
d: back.value
|
|
|
|
|
}, back.value ? {
|
|
|
|
|
e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`
|
|
|
|
|
} : {}, {
|
|
|
|
|
f: common_vendor.s(back.value ? {
|
|
|
|
|
marginTop: `100rpx`
|
|
|
|
|
} : {
|
|
|
|
|
marginTop: `400rpx`
|
|
|
|
|
}),
|
|
|
|
|
g: common_vendor.o(oldmanhowtojump),
|
|
|
|
|
h: common_vendor.o(yuangonghowtojump),
|
2025-09-15 17:23:33 +08:00
|
|
|
i: common_vendor.o(ceshi),
|
|
|
|
|
j: common_vendor.o(jigouhowtojump),
|
2025-12-24 17:18:42 +08:00
|
|
|
k: common_vendor.o(supplierhowtojump)
|
2025-06-27 08:56:14 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-83beea56"]]);
|
|
|
|
|
wx.createPage(MiniProgramPage);
|
|
|
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/threeselectone.js.map
|