success.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  36. });
  37. } catch (error) {
  38. }
  39. },
  40. goBack() {
  41. common_vendor.index.switchTab({
  42. url: "/pages/index/index"
  43. });
  44. }
  45. }
  46. };
  47. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  48. return {
  49. a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args))
  50. };
  51. }
  52. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  53. wx.createPage(MiniProgramPage);