interview-notice.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/preview/preview",
  23. ///pages/face-photo/face-photo
  24. fail: (err) => {
  25. console.error("页面跳转失败:", err);
  26. common_vendor.index.showToast({
  27. title: "页面跳转失败",
  28. icon: "none"
  29. });
  30. }
  31. });
  32. }
  33. }
  34. };
  35. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  36. return {
  37. a: $data.isAgreed,
  38. b: common_vendor.o((...args) => $options.toggleAgreement && $options.toggleAgreement(...args)),
  39. c: !$data.isAgreed,
  40. d: common_vendor.o((...args) => $options.startInterview && $options.startInterview(...args))
  41. };
  42. }
  43. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  44. wx.createPage(MiniProgramPage);