"use strict"; const common_vendor = require("../../common/vendor.js"); const common_assets = require("../../common/assets.js"); if (!Array) { const _easycom_uni_load_more2 = common_vendor.resolveComponent("uni-load-more"); _easycom_uni_load_more2(); } const _easycom_uni_load_more = () => "../../node-modules/@dcloudio/uni-ui/lib/uni-load-more/uni-load-more.js"; if (!Math) { _easycom_uni_load_more(); } const _sfc_main = { __name: "bay-area", setup(__props) { const currentRegion = common_vendor.ref(0); const regions = common_vendor.ref([ { id: 0, name: "全部", icon: "/static/region/all.png" }, { id: 1, name: "香港", icon: "/static/region/hk.png" }, { id: 2, name: "青岛", icon: "/static/region/mo.png" }, { id: 3, name: "广州", icon: "/static/region/gz.png" }, { id: 4, name: "深圳", icon: "/static/region/sz.png" } ]); const projects = common_vendor.ref([ { id: 1, name: "肿瘤精准治疗", hospital: "香港养和医院", region: "香港", desc: "采用全球领先的精准医疗技术,为癌症患者提供个性化治疗方案", image: "/static/featured/project1.jpg", tags: ["精准医疗", "个性化方案", "全程陪诊"], price: 5e4, rating: 4.9, cases: 1280 }, { id: 2, name: "心血管介入手术", hospital: "青岛镜湖医院", region: "青岛", desc: "引进国际先进的心血管介入技术,微创手术快速康复", image: "/static/featured/project2.jpg", tags: ["微创手术", "快速康复", "专家团队"], price: 3e4, rating: 4.8, cases: 2360 }, { id: 3, name: "特需生育服务", hospital: "广州妇儿医院", region: "广州", desc: "提供高端孕产服务,配备国际化医疗团队全程守护", image: "/static/featured/project3.jpg", tags: ["高端孕产", "国际团队", "一对一服务"], price: 88e3, rating: 4.9, cases: 3600 } ]); const refreshing = common_vendor.ref(false); const loadMoreStatus = common_vendor.ref("more"); const selectRegion = (region) => { currentRegion.value = region.id; }; const viewProject = (project) => { common_vendor.index.navigateTo({ url: `/pages/featured/project?id=${project.id}` }); }; const showConsult = () => { common_vendor.index.showModal({ title: "在线咨询", content: "专业顾问将为您提供一对一咨询服务", confirmText: "立即咨询", success: (res) => { if (res.confirm) { common_vendor.index.makePhoneCall({ phoneNumber: "+853 2837 1333" }); } } }); }; const onRefresh = () => { setTimeout(() => { refreshing.value = false; }, 1e3); }; const loadMore = () => { if (loadMoreStatus.value !== "more") return; loadMoreStatus.value = "loading"; setTimeout(() => { loadMoreStatus.value = "noMore"; }, 1e3); }; return (_ctx, _cache) => { return { a: common_assets._imports_0$12, b: common_vendor.f(regions.value, (item, index, i0) => { return { a: item.icon, b: common_vendor.t(item.name), c: index, d: currentRegion.value === item.id ? 1 : "", e: common_vendor.o(($event) => selectRegion(item), index) }; }), c: common_vendor.f(projects.value, (item, index, i0) => { return { a: item.image, b: common_vendor.t(item.name), c: common_vendor.t(item.hospital), d: common_vendor.t(item.region), e: common_vendor.t(item.desc), f: common_vendor.f(item.tags, (tag, idx, i1) => { return { a: common_vendor.t(tag), b: idx }; }), g: common_vendor.t(item.price), h: common_vendor.t(item.rating), i: common_vendor.t(item.cases), j: index, k: common_vendor.o(($event) => viewProject(item), index) }; }), d: common_vendor.p({ status: loadMoreStatus.value, ["content-text"]: { contentdown: "上拉加载更多", contentrefresh: "加载中...", contentnomore: "没有更多了" } }), e: refreshing.value, f: common_vendor.o(onRefresh), g: common_vendor.o(loadMore), h: common_vendor.o(showConsult), i: common_vendor.gei(_ctx, "") }; }; } }; wx.createPage(_sfc_main); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/featured/bay-area.js.map