index.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const utils_system = require("../../utils/system.js");
  4. require("../../utils/http.js");
  5. if (!Array) {
  6. const _easycom_wd_cell2 = common_vendor.resolveComponent("wd-cell");
  7. _easycom_wd_cell2();
  8. }
  9. const _easycom_wd_cell = () => "../../node-modules/wot-design-uni/components/wd-cell/wd-cell.js";
  10. if (!Math) {
  11. _easycom_wd_cell();
  12. }
  13. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  14. __name: "index",
  15. setup(__props) {
  16. const imgObj = {
  17. user: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/user.png",
  18. gift: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/gift.png",
  19. page: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/page.png",
  20. with: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/with.png",
  21. myBg: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/myBg.png"
  22. };
  23. const list = [
  24. {
  25. label: "可用积分",
  26. src: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/int.png",
  27. num: 0
  28. },
  29. {
  30. label: "优惠券",
  31. src: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/coupon.png",
  32. num: 0
  33. }
  34. ];
  35. common_vendor.ref("Hello");
  36. const navTop = common_vendor.ref(0);
  37. common_vendor.onLoad(() => {
  38. navTop.value = utils_system.getNavTop();
  39. });
  40. return (_ctx, _cache) => {
  41. return {
  42. a: imgObj.myBg,
  43. b: navTop.value + "rpx",
  44. c: imgObj.user,
  45. d: navTop.value + 125 + "rpx",
  46. e: common_vendor.f(list, (item, index, i0) => {
  47. return {
  48. a: item.src,
  49. b: index
  50. };
  51. }),
  52. f: navTop.value + 280 + "rpx",
  53. g: imgObj.gift,
  54. h: imgObj.with,
  55. i: common_vendor.p({
  56. ["is-link"]: true,
  57. title: "奖励记录"
  58. }),
  59. j: imgObj.page,
  60. k: common_vendor.p({
  61. border: true,
  62. ["is-link"]: true,
  63. title: "上传记录"
  64. })
  65. };
  66. };
  67. }
  68. });
  69. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-276ac604"]]);
  70. wx.createPage(MiniProgramPage);