success.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: "",
  10. endTime: "",
  11. company: ""
  12. }
  13. };
  14. },
  15. onLoad() {
  16. this.completeInterview();
  17. },
  18. methods: {
  19. async completeInterview() {
  20. try {
  21. const completeResult = 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. const analysisResult = await common_vendor.index.request({
  30. url: `${common_config.apiBaseUrl}/api/job/trigger_comprehensive_analysis`,
  31. method: "POST",
  32. data: {
  33. "application_id": JSON.parse(common_vendor.index.getStorageSync("appId")),
  34. "tenant_id": JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id,
  35. "force_trigger": true
  36. }
  37. });
  38. } catch (error) {
  39. }
  40. },
  41. goBack() {
  42. common_vendor.index.switchTab({
  43. url: "/pages/index/index"
  44. });
  45. }
  46. }
  47. };
  48. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  49. return {
  50. a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args))
  51. };
  52. }
  53. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  54. wx.createPage(MiniProgramPage);