"use strict";
|
const common_vendor = require("../../common/vendor.js");
|
const pages_index_assets = require("./assets.js");
|
const _sfc_main = {
|
setup() {
|
common_vendor.useRoute();
|
const scenic = common_vendor.ref({});
|
const loadData = (id) => {
|
const target = pages_index_assets.ASSETS.spots.find((item) => item.id === id);
|
if (target)
|
scenic.value = target;
|
};
|
common_vendor.onMounted(() => {
|
loadData(common_vendor.index.getStorageSync("scenic_id"));
|
});
|
return {
|
scenic
|
};
|
}
|
};
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
return common_vendor.e({
|
a: common_vendor.t($setup.scenic.name),
|
b: $setup.scenic.text
|
}, $setup.scenic.text ? {
|
c: common_vendor.t($setup.scenic.text)
|
} : {}, {
|
d: $setup.scenic.videos && $setup.scenic.videos.length
|
}, $setup.scenic.videos && $setup.scenic.videos.length ? {
|
e: common_vendor.f($setup.scenic.videos, (video, index, i0) => {
|
return {
|
a: index,
|
b: video
|
};
|
})
|
} : {}, {
|
f: $setup.scenic.images && $setup.scenic.images.length
|
}, $setup.scenic.images && $setup.scenic.images.length ? {
|
g: common_vendor.f($setup.scenic.images, (img, index, i0) => {
|
return {
|
a: index,
|
b: img
|
};
|
})
|
} : {});
|
}
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
wx.createPage(MiniProgramPage);
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/scenic-detail.js.map
|