index.js 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. if (!Array) {
  5. const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
  6. const _component_uni_icons = common_vendor.resolveComponent("uni-icons");
  7. const _easycom_custom_layout2 = common_vendor.resolveComponent("custom-layout");
  8. (_easycom_up_avatar2 + _component_uni_icons + _easycom_custom_layout2)();
  9. }
  10. const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
  11. const _easycom_custom_layout = () => "../../components/custom-layout/custom-layout.js";
  12. if (!Math) {
  13. (_easycom_up_avatar + _easycom_custom_layout)();
  14. }
  15. const userImage = "https://img.js.design/assets/img/65b211c3cdb6ea326421fd30.png";
  16. const _sfc_main = {
  17. __name: "index",
  18. setup(__props) {
  19. const orderList = common_vendor.reactive([
  20. { id: "1", name: "待支付", icon: common_assets.order1 },
  21. { id: "2", name: "待打印", icon: common_assets.order2 },
  22. { id: "3", name: "待配送", icon: common_assets.order3 },
  23. { id: "4", name: "已完成", icon: common_assets.order4 }
  24. ]);
  25. const toolList = common_vendor.reactive([
  26. { id: "1", name: "我的设计", icon: common_assets.order1 },
  27. { id: "2", name: "我的贴纸", icon: common_assets.order2 },
  28. { id: "3", name: "我的分享", icon: common_assets.order3 },
  29. { id: "4", name: "邀请好友", icon: common_assets.order4 }
  30. ]);
  31. const onRecharge = () => {
  32. common_vendor.index.navigateTo({
  33. url: "/pages/recharge/index"
  34. });
  35. };
  36. common_vendor.onMounted(() => {
  37. console.log("onMounted生命周期");
  38. });
  39. return (_ctx, _cache) => {
  40. return {
  41. a: common_vendor.p({
  42. src: userImage,
  43. size: "120rpx"
  44. }),
  45. b: common_vendor.o(onRecharge),
  46. c: common_vendor.p({
  47. type: "right",
  48. size: "20"
  49. }),
  50. d: common_vendor.f(orderList, (item, index, i0) => {
  51. return {
  52. a: common_vendor.s(`background-image:url(${item.icon})`),
  53. b: common_vendor.t(item.name),
  54. c: index
  55. };
  56. }),
  57. e: _ctx.nvueWidth,
  58. f: common_vendor.f(toolList, (item, index, i0) => {
  59. return {
  60. a: common_vendor.t(item.name),
  61. b: "569e925a-3-" + i0 + ",569e925a-0",
  62. c: common_vendor.n(index < toolList.length - 1 ? "border_bottom" : ""),
  63. d: index
  64. };
  65. }),
  66. g: common_vendor.p({
  67. type: "right",
  68. size: "20"
  69. }),
  70. h: common_vendor.sr("layout", "569e925a-0"),
  71. i: common_vendor.o(_ctx.onQueryList),
  72. j: common_vendor.o(($event) => _ctx.dataList = $event),
  73. k: common_vendor.p({
  74. showBottom: true,
  75. back: {
  76. show: false
  77. },
  78. title: "我的",
  79. modelValue: _ctx.dataList
  80. })
  81. };
  82. };
  83. }
  84. };
  85. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-569e925a"]]);
  86. wx.createPage(MiniProgramPage);