"use strict";
|
const common_vendor = require("../../common/vendor.js");
|
const _sfc_main = {
|
__name: "index",
|
setup(__props) {
|
common_vendor.useI18n();
|
const { proxy } = common_vendor.getCurrentInstance();
|
const error = common_vendor.ref("");
|
common_vendor.ref([
|
{
|
image: "/static/banner/banner1.png",
|
titleKey: "index.banner.smartMedical",
|
subtitleKey: "index.banner.convenientService"
|
},
|
{
|
image: "/static/banner/banner2.png",
|
titleKey: "index.banner.specializedMedical",
|
subtitleKey: "index.banner.crossBorder"
|
}
|
]);
|
const quickEntries = common_vendor.ref([
|
{
|
titleKey: "index.quickEntry.CaseDetails",
|
icon: "/static/icons/appointment.png",
|
path: "/pages/case/CaseDetails",
|
bgColor: "linear-gradient(135deg, #0f95b0, #89C4C1)"
|
},
|
{
|
titleKey: "index.quickEntry.caseindex",
|
icon: "/static/icons/record.png",
|
path: "/pages/case/index",
|
bgColor: "linear-gradient(135deg, #4DCEA5, #2FB4AE)"
|
},
|
{
|
titleKey: "index.quickEntry.transfer",
|
icon: "/static/icons/record.png",
|
path: "/pages/case/transfer",
|
bgColor: "linear-gradient(135deg, #FF9B6A, #FF6B8B)"
|
},
|
// {
|
// titleKey: "index.quickEntry.CaseProgress",
|
// icon: "/static/icons/department.png",
|
// path: "/pages/records/medical",
|
// bgColor: "linear-gradient(135deg, #747CF9, #9B7CF9)",
|
// },
|
{
|
titleKey: "index.quickEntry.investigate",
|
icon: "/static/icons/record.png",
|
path: "/pages/ethicalReview/index",
|
bgColor: "linear-gradient(135deg, #747CF9, #9B7CF9)"
|
}
|
]);
|
common_vendor.ref([
|
{
|
titleKey: "index.quickEntry.appointment",
|
icon: "/static/icons/appointment.png",
|
path: "/pages/appointment/index",
|
type: "tab",
|
bgColor: "linear-gradient(135deg, #0f95b0, #89C4C1)"
|
},
|
{
|
titleKey: "index.quickEntry.vaccine",
|
icon: "/static/icons/vaccine.png",
|
path: "/pages/vaccine/index",
|
bgColor: "linear-gradient(135deg, #FF9B6A, #FF6B8B)"
|
},
|
{
|
titleKey: "index.quickEntry.records",
|
icon: "/static/icons/record.png",
|
path: "/pages/records/medical",
|
bgColor: "linear-gradient(135deg, #4DCEA5, #2FB4AE)"
|
},
|
{
|
titleKey: "index.quickEntry.department",
|
icon: "/static/icons/department.png",
|
path: "/pages/department/guide",
|
bgColor: "linear-gradient(135deg, #747CF9, #9B7CF9)"
|
}
|
]);
|
const news = common_vendor.ref([
|
{
|
titleKey: "index.news.vaccine",
|
date: "2025-11-20",
|
image: "/static/news/news1.png",
|
tagKey: "common.tag.new"
|
},
|
{
|
titleKey: "index.news.cooperation",
|
date: "2024-03-19",
|
image: "/static/news/news2.png"
|
}
|
]);
|
common_vendor.ref([
|
{
|
titleKey: "index.featured.tcm",
|
descKey: "index.featured.tcmDesc",
|
image: "/static/featured/tcm.png",
|
path: "/pages/featured/tcm"
|
},
|
{
|
titleKey: "index.featured.crossBorder",
|
descKey: "index.featured.crossBorderDesc",
|
image: "/static/featured/cross-border.png",
|
path: "/pages/featured/cross-border"
|
},
|
{
|
titleKey: "index.featured.expert",
|
descKey: "index.featured.expertDesc",
|
image: "/static/featured/expert.png",
|
path: "/pages/featured/expert"
|
}
|
]);
|
const navigateTo = (path, type) => {
|
if (type === "tab") {
|
common_vendor.index.reLaunch({
|
url: path,
|
fail: (err) => {
|
common_vendor.index.__f__("error", "at pages/index/index.vue:248", "reLaunch fail:", err);
|
common_vendor.index.switchTab({
|
url: path,
|
fail: (err2) => {
|
common_vendor.index.__f__("error", "at pages/index/index.vue:252", "switchTab fail:", err2);
|
common_vendor.index.navigateTo({
|
url: path,
|
fail: (err3) => {
|
common_vendor.index.__f__("error", "at pages/index/index.vue:256", "navigateTo fail:", err3);
|
}
|
});
|
}
|
});
|
}
|
});
|
} else {
|
common_vendor.index.navigateTo({
|
url: path,
|
fail: (err) => {
|
common_vendor.index.__f__("error", "at pages/index/index.vue:267", "navigateTo fail:", err);
|
}
|
});
|
}
|
};
|
const viewNews = (news2) => {
|
common_vendor.index.navigateTo({
|
url: `/pages/news/detail?id=${news2.id}`
|
});
|
};
|
common_vendor.onMounted(() => {
|
try {
|
common_vendor.index.__f__("log", "at pages/index/index.vue:309", "页面加载");
|
common_vendor.index.__f__("log", "at pages/index/index.vue:310", "当前语言:", proxy.$i18n.locale);
|
common_vendor.index.__f__("log", "at pages/index/index.vue:311", "语言包:", proxy.$i18n.messages);
|
} catch (err) {
|
error.value = err.message;
|
common_vendor.index.__f__("error", "at pages/index/index.vue:314", "页面加载错误:", err);
|
}
|
});
|
return (_ctx, _cache) => {
|
return common_vendor.e({
|
a: error.value
|
}, error.value ? {
|
b: common_vendor.t(error.value)
|
} : {}, {
|
c: common_vendor.f(quickEntries.value, (item, index, i0) => {
|
return {
|
a: item.icon,
|
b: item.bgColor,
|
c: common_vendor.t(_ctx.$t(item.titleKey)),
|
d: index,
|
e: common_vendor.o(($event) => navigateTo(item.path, item.type), index)
|
};
|
}),
|
d: common_vendor.t(_ctx.$t("index.news.title")),
|
e: common_vendor.t(_ctx.$t("common.more")),
|
f: common_vendor.o(($event) => navigateTo("/pages/news/list")),
|
g: common_vendor.f(news.value, (item, index, i0) => {
|
return common_vendor.e({
|
a: item.image,
|
b: common_vendor.t(_ctx.$t(item.titleKey)),
|
c: item.tagKey
|
}, item.tagKey ? {
|
d: common_vendor.t(_ctx.$t(item.tagKey))
|
} : {}, {
|
e: common_vendor.t(item.date),
|
f: index,
|
g: common_vendor.o(($event) => viewNews(item), index)
|
});
|
}),
|
h: common_vendor.gei(_ctx, "")
|
});
|
};
|
}
|
};
|
wx.createPage(_sfc_main);
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|