"use strict"; const common_vendor = require("../../common/vendor.js"); const api_loginApi = require("../../api/loginApi.js"); const _sfc_main = { __name: "threeselectone", setup(__props) { common_vendor.ref(0); const jigouhowtojump = () => { api_loginApi.changePerson(3).then((res) => { if (res.success) { jumpToindex(); } }); }; const yuangonghowtojump = () => { api_loginApi.changePerson(2).then((res) => { if (res.success) { jumpToYuangongindex(); } }); }; const supplierhowtojump = () => { api_loginApi.changePerson(4).then((res) => { if (res.success) { jumpTosupplierindex(); } }); }; const jumpTosupplierindex = () => { common_vendor.index.reLaunch({ url: `/pages/supplierindex/index` }); }; const goBack = () => { common_vendor.index.navigateBack(); }; const ceshi = () => { }; const jumpToindex = () => { common_vendor.index.reLaunch({ url: `/pages/index/index` }); }; const jumpToYuangongindex = () => { common_vendor.index.reLaunch({ url: `/pages/yuangongindex/index` }); }; const oldmanhowtojump = () => { api_loginApi.changePerson(1).then((res) => { if (res.success) { common_vendor.index.reLaunch({ url: `/pages/oldmanindex/index` }); } }); }; const phone = common_vendor.ref(""); const back = common_vendor.ref(false); common_vendor.onLoad((param) => { if (param == null ? void 0 : param.back) { back.value = true; } phone.value = common_vendor.index.getStorageSync("tel"); }); return (_ctx, _cache) => { return common_vendor.e({ 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), i: common_vendor.o(ceshi), j: common_vendor.o(jigouhowtojump), k: common_vendor.o(supplierhowtojump) }); }; } }; 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