133 lines
4.7 KiB
JavaScript
133 lines
4.7 KiB
JavaScript
"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 = () => {
|
||
common_vendor.index.__f__("log", "at pages/login/special.vue:117", "???");
|
||
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);
|
||
common_vendor.index.setStorageSync("platId", res.result.platId);
|
||
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`
|
||
});
|
||
}
|
||
}
|
||
});
|
||
};
|
||
const no = common_vendor.ref(false);
|
||
const special = common_vendor.ref(false);
|
||
function maskPhone(phone) {
|
||
return phone.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
|
||
}
|
||
const goBack = () => {
|
||
common_vendor.index.navigateBack();
|
||
};
|
||
common_vendor.onLoad((options) => {
|
||
common_vendor.index.__f__("log", "at pages/login/special.vue:167", "????", options);
|
||
if (!options.type) {
|
||
phonenumber.value = common_vendor.index.getStorageSync("tel");
|
||
}
|
||
if (options.no) {
|
||
no.value = true;
|
||
}
|
||
if (options.special == `true`) {
|
||
special.value = true;
|
||
}
|
||
});
|
||
return (_ctx, _cache) => {
|
||
return common_vendor.e({
|
||
a: no.value
|
||
}, no.value ? {
|
||
b: common_vendor.o(goBack)
|
||
} : {}, {
|
||
c: !no.value
|
||
}, !no.value ? common_vendor.e({
|
||
d: `https://www.focusnu.com/media/directive/login/introduce/selectbgc.png`,
|
||
e: phonenumber.value
|
||
}, phonenumber.value ? {
|
||
f: common_vendor.t(maskPhone(phonenumber.value))
|
||
} : {}, {
|
||
g: !phonenumber.value
|
||
}, !phonenumber.value ? {
|
||
h: common_vendor.t(special.value ? `变更信息申请` : `加盟申请`)
|
||
} : {}, {
|
||
i: common_vendor.t(phonenumber.value ? "进入" : "我的"),
|
||
j: common_vendor.o(jumpto)
|
||
}) : {}, {
|
||
k: phonenumber.value
|
||
}, phonenumber.value ? {
|
||
l: common_vendor.s(no.value ? {
|
||
marginTop: `0rpx`
|
||
} : {})
|
||
} : {}, {
|
||
m: phonenumber.value
|
||
}, phonenumber.value ? {
|
||
n: common_vendor.f(cardarray, (item, index, i0) => {
|
||
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
|
||
};
|
||
})
|
||
} : {}, {
|
||
o: phonenumber.value
|
||
}, phonenumber.value ? {} : {}, {
|
||
p: phonenumber.value
|
||
}, phonenumber.value ? {} : {});
|
||
};
|
||
}
|
||
};
|
||
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
|