home.js 997 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. methods: {
  5. getList() {
  6. common_vendor.index.request({
  7. url: "https://m.douban.com/rexxar/api/v2/subject_collection/tv_domestic/items?start=0&count=8",
  8. //仅为示例,并非真实接口地址。
  9. header: {
  10. "custom-header": "hello"
  11. //自定义请求头信息
  12. },
  13. method: "GET",
  14. success: (res) => {
  15. common_vendor.index.__f__("log", "at pages/home/home.vue:29", res.data);
  16. }
  17. });
  18. }
  19. }
  20. };
  21. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  22. return {
  23. a: common_vendor.o((...args) => $options.getList && $options.getList(...args))
  24. };
  25. }
  26. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-07e72d3c"]]);
  27. wx.createPage(MiniProgramPage);
  28. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map