uploadReceptPopop.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const pagesOne_winner_utils_source = require("../utils/source.js");
  4. const hooks_useDraw = require("../../../hooks/useDraw.js");
  5. if (!Array) {
  6. const _easycom_wd_gap2 = common_vendor.resolveComponent("wd-gap");
  7. const _easycom_wd_popup2 = common_vendor.resolveComponent("wd-popup");
  8. (_easycom_wd_gap2 + _easycom_wd_popup2)();
  9. }
  10. const _easycom_wd_gap = () => "../../../node-modules/wot-design-uni/components/wd-gap/wd-gap.js";
  11. const _easycom_wd_popup = () => "../../../node-modules/wot-design-uni/components/wd-popup/wd-popup.js";
  12. if (!Math) {
  13. (_easycom_wd_gap + _easycom_wd_popup)();
  14. }
  15. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  16. __name: "uploadReceptPopop",
  17. props: {
  18. show: {
  19. type: Boolean,
  20. default: false
  21. }
  22. },
  23. emits: ["update:show"],
  24. setup(__props, { emit: __emit }) {
  25. const props = __props;
  26. const emit = __emit;
  27. common_vendor.ref("1");
  28. const list = [
  29. { name: "满25返8", id: "1", checked: false },
  30. { name: "满25返8", id: "2", checked: false },
  31. { name: "满25返8", id: "3", checked: true },
  32. { name: "满25返8", id: "1", checked: false },
  33. { name: "满25返8", id: "2", checked: false }
  34. ];
  35. const { handleClose } = hooks_useDraw.useDraw(props, emit);
  36. return (_ctx, _cache) => {
  37. return {
  38. a: common_vendor.f(list, (item, k0, i0) => {
  39. return {
  40. a: item.id,
  41. b: item.checked,
  42. c: item.id,
  43. d: common_vendor.n(item.checked ? "active" : "static")
  44. };
  45. }),
  46. b: common_vendor.unref(pagesOne_winner_utils_source.imgObj).icon1,
  47. c: common_vendor.p({
  48. height: "16rpx",
  49. ["bg-color"]: "#F7F8F9"
  50. }),
  51. d: common_vendor.o(
  52. //@ts-ignore
  53. (...args) => common_vendor.unref(handleClose) && common_vendor.unref(handleClose)(...args)
  54. ),
  55. e: common_vendor.o(common_vendor.unref(handleClose)),
  56. f: common_vendor.o(($event) => props.show = $event),
  57. g: common_vendor.p({
  58. position: "bottom",
  59. ["safe-area-inset-bottom"]: true,
  60. ["custom-style"]: "height: 922rpx;border-radius: 40rpx 40rpx 0 0;",
  61. modelValue: props.show
  62. })
  63. };
  64. };
  65. }
  66. });
  67. wx.createComponent(_sfc_main);