12345678910111213141516171819202122232425262728293031323334353637 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const _sfc_main = {
- data() {
- return {
- msgList: [
- { title: "课程精选", icon: "/static/msg1.png", bg: "linear-gradient(135deg,#ffbcbc,#ffeded)", path: "/pages/message/selected" },
- { title: "课程上新", icon: "/static/msg2.png", bg: "linear-gradient(135deg,#b6e3ff,#eaf7ff)", path: "" },
- { title: "直播预约", icon: "/static/msg3.png", bg: "linear-gradient(135deg,#d6caff,#f3f0ff)", path: "" },
- { title: "圈子消息", icon: "/static/msg4.png", bg: "linear-gradient(135deg,#b6ffe0,#eafff6)", path: "" }
- ]
- };
- },
- methods: {
- goTo(item) {
- if (item.path) {
- common_vendor.index.navigateTo({ url: item.path });
- }
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return {
- a: common_vendor.f($data.msgList, (item, k0, i0) => {
- return {
- a: item.icon,
- b: item.bg,
- c: common_vendor.t(item.title),
- d: item.title,
- e: common_vendor.o(($event) => $options.goTo(item), item.title)
- };
- })
- };
- }
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/message/index.js.map
|