index.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. data() {
  5. return {
  6. msgList: [
  7. { title: "课程精选", icon: "/static/msg1.png", bg: "linear-gradient(135deg,#ffbcbc,#ffeded)", path: "/pages/message/selected" },
  8. { title: "课程上新", icon: "/static/msg2.png", bg: "linear-gradient(135deg,#b6e3ff,#eaf7ff)", path: "" },
  9. { title: "直播预约", icon: "/static/msg3.png", bg: "linear-gradient(135deg,#d6caff,#f3f0ff)", path: "" },
  10. { title: "圈子消息", icon: "/static/msg4.png", bg: "linear-gradient(135deg,#b6ffe0,#eafff6)", path: "" }
  11. ]
  12. };
  13. },
  14. methods: {
  15. goTo(item) {
  16. if (item.path) {
  17. common_vendor.index.navigateTo({ url: item.path });
  18. }
  19. }
  20. }
  21. };
  22. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  23. return {
  24. a: common_vendor.f($data.msgList, (item, k0, i0) => {
  25. return {
  26. a: item.icon,
  27. b: item.bg,
  28. c: common_vendor.t(item.title),
  29. d: item.title,
  30. e: common_vendor.o(($event) => $options.goTo(item), item.title)
  31. };
  32. })
  33. };
  34. }
  35. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  36. wx.createPage(MiniProgramPage);
  37. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/message/index.js.map