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

110 lines
3.9 KiB
JavaScript
Raw Normal View History

2025-06-27 08:56:14 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_loginApi = require("../../api/loginApi.js");
const _sfc_main = {
__name: "special",
setup(__props) {
const cardarray = [
{
title: "日常照料:专业规范,细致周全",
content: "提供专业日常、饮食、清洁、睡眠、排泄等照料服务,长者舒适安心。"
},
{
title: " 健康监测:实时监测、精准应对",
content: "7*24小时生命体征监测专业方案提前防控健康风险提早化解。"
},
{
title: " 医护照料:多专联合,专业护航",
content: "医疗、护理团队协同合作,守护长者身体安康。"
},
{
title: "康复护理:科学规划,有效复健",
content: "量身定制护理流程,科学手段实施精准干预,为长者健康保驾护航。"
},
{
title: "贴心关怀:温暖陪伴、心灵慰藉",
content: "护理员床前陪伴、耐心疏导,让长者感受家的温暖与关怀。"
}
];
const phonenumber = common_vendor.ref("");
const jumpto = () => {
api_loginApi.getMessage(common_vendor.index.getStorageSync("openid")).then((res) => {
if (!res.result.tel) {
common_vendor.index.redirectTo({
url: `/pages/login/index`
});
} else {
common_vendor.index.setStorageSync("tel", res.result.tel);
common_vendor.index.setStorageSync("token", res.result.token);
common_vendor.index.setStorageSync("serverUrl", res.result.serverUrl);
2025-06-30 17:33:35 +08:00
common_vendor.index.setStorageSync("platId", res.result.platId);
2025-06-27 08:56:14 +08:00
common_vendor.index.setStorageSync("izJg", res.result.izJg);
common_vendor.index.setStorageSync("izJs", res.result.izJs);
common_vendor.index.setStorageSync("izYg", res.result.izYg);
switch (res.result.advisoryType) {
case `1`:
common_vendor.index.redirectTo({
url: `/pages/login/threeselectone`
});
break;
case `2`:
break;
case `3`:
common_vendor.index.redirectTo({
url: `/pages/index/index`
});
break;
default:
common_vendor.index.redirectTo({
url: `/pages/login/threeselectone`
});
}
}
});
};
2025-06-30 17:33:35 +08:00
const no = common_vendor.ref(false);
2025-06-27 08:56:14 +08:00
function maskPhone(phone) {
return phone.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
}
2025-06-30 17:33:35 +08:00
const goBack = () => {
common_vendor.index.navigateBack();
};
2025-06-27 08:56:14 +08:00
common_vendor.onLoad((options) => {
if (!options.type) {
phonenumber.value = common_vendor.index.getStorageSync("tel");
}
2025-06-30 17:33:35 +08:00
if (options.no) {
no.value = true;
}
2025-06-27 08:56:14 +08:00
});
return (_ctx, _cache) => {
return common_vendor.e({
2025-06-30 17:33:35 +08:00
a: no.value
}, no.value ? {
b: common_vendor.o(goBack)
} : {}, {
c: !no.value
2025-07-03 17:27:42 +08:00
}, !no.value ? {
2025-06-30 17:33:35 +08:00
d: `https://www.focusnu.com/media/directive/login/introduce/selectbgc.png`,
2025-07-03 17:27:42 +08:00
e: common_vendor.t(maskPhone(phonenumber.value)),
f: common_vendor.o(jumpto)
2025-06-30 17:33:35 +08:00
} : {}, {
2025-07-03 17:27:42 +08:00
g: common_vendor.s(no.value ? {
2025-06-30 17:33:35 +08:00
marginTop: `0rpx`
2025-07-03 17:27:42 +08:00
} : {}),
h: common_vendor.f(cardarray, (item, index, i0) => {
2025-06-27 08:56:14 +08:00
return {
a: common_vendor.t(item.title),
b: common_vendor.t(item.content),
c: `https://www.focusnu.com/media/directive/login/introduce/${index}.png`,
d: index
};
})
2025-07-03 17:27:42 +08:00
});
2025-06-27 08:56:14 +08:00
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-aaa5af2f"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/special.js.map