wangzhibo
2025-10-23 cad64c1de2c45856b0774933c5801b05b64984e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"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