success.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_config = require("../../common/config.js");
  4. const _sfc_main = {
  5. data() {
  6. return {
  7. interviewInfo: {
  8. position: "前端岗位",
  9. startTime: "2024/06/28 14:48",
  10. endTime: "2024/06/28 16:47",
  11. company: "敏龙科技集团有限公司"
  12. }
  13. };
  14. },
  15. onLoad() {
  16. this.completeInterview();
  17. },
  18. methods: {
  19. async completeInterview() {
  20. try {
  21. const result = await common_vendor.index.request({
  22. url: `${common_config.apiBaseUrl}/api/job/complete_interview`,
  23. method: "POST",
  24. data: {
  25. "application_id": JSON.parse(common_vendor.index.getStorageSync("appId")),
  26. "tenant_id": JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id
  27. }
  28. });
  29. } catch (error) {
  30. }
  31. },
  32. goBack() {
  33. common_vendor.index.switchTab({
  34. url: "/pages/index/index"
  35. });
  36. }
  37. }
  38. };
  39. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  40. return {
  41. a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args))
  42. };
  43. }
  44. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  45. wx.createPage(MiniProgramPage);