interview-notice.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. data() {
  5. return {
  6. isAgreed: false
  7. };
  8. },
  9. methods: {
  10. toggleAgreement() {
  11. this.isAgreed = !this.isAgreed;
  12. },
  13. startInterview() {
  14. if (!this.isAgreed) {
  15. common_vendor.index.showToast({
  16. title: "请先同意面试须知",
  17. icon: "none"
  18. });
  19. return;
  20. }
  21. common_vendor.index.navigateTo({
  22. url: "/pages/face-photo/face-photo",
  23. fail: (err) => {
  24. console.error("页面跳转失败:", err);
  25. common_vendor.index.showToast({
  26. title: "页面跳转失败",
  27. icon: "none"
  28. });
  29. }
  30. });
  31. }
  32. }
  33. };
  34. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  35. return {
  36. a: $data.isAgreed,
  37. b: common_vendor.o((...args) => $options.toggleAgreement && $options.toggleAgreement(...args)),
  38. c: !$data.isAgreed,
  39. d: common_vendor.o((...args) => $options.startInterview && $options.startInterview(...args))
  40. };
  41. }
  42. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  43. wx.createPage(MiniProgramPage);