reservation.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. data() {
  5. return {
  6. teacherList: ["王老师", "崔老师", "王老师", "崔老师"],
  7. days: ["周一", "周二", "周三", "周四", "周五"]
  8. };
  9. },
  10. methods: {
  11. reservationPopup() {
  12. this.$refs.popup.open("bottom");
  13. },
  14. outcomePopup() {
  15. this.$refs.outcomePopup.open("center");
  16. }
  17. }
  18. };
  19. if (!Array) {
  20. const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
  21. _easycom_uni_popup2();
  22. }
  23. const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
  24. if (!Math) {
  25. _easycom_uni_popup();
  26. }
  27. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  28. return {
  29. a: common_vendor.f($data.teacherList, (item, index, i0) => {
  30. return {
  31. a: common_vendor.t(item),
  32. b: index
  33. };
  34. }),
  35. b: common_vendor.f($data.days, (day, index, i0) => {
  36. return {
  37. a: common_vendor.t(day),
  38. b: index
  39. };
  40. }),
  41. c: common_vendor.f($data.days, (day, index, i0) => {
  42. return {
  43. a: index
  44. };
  45. }),
  46. d: common_vendor.f($data.days, (day, index, i0) => {
  47. return {
  48. a: index
  49. };
  50. }),
  51. e: common_vendor.f($data.days, (day, index, i0) => {
  52. return {
  53. a: index
  54. };
  55. }),
  56. f: common_vendor.f($data.days, (day, index, i0) => {
  57. return {
  58. a: index
  59. };
  60. }),
  61. g: common_vendor.o(($event) => $options.outcomePopup()),
  62. h: common_vendor.sr("popup", "46f39ab6-0"),
  63. i: common_vendor.p({
  64. ["safe-area"]: false
  65. }),
  66. j: common_vendor.sr("outcomePopup", "46f39ab6-1"),
  67. k: common_vendor.o(($event) => $options.reservationPopup())
  68. };
  69. }
  70. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  71. wx.createPage(MiniProgramPage);