|
@@ -1454,31 +1454,56 @@ const _sfc_main = {
|
|
|
console.log("所有视频已播放完毕");
|
|
|
this.stopUserCamera();
|
|
|
this.clearCountdown();
|
|
|
+ const currentJobDetail = JSON.parse(common_vendor.index.getStorageSync("selectedJob"));
|
|
|
+ console.log("当前职位ID:", currentJobDetail);
|
|
|
+ const jobId = currentJobDetail ? currentJobDetail.id : null;
|
|
|
+ console.log("当前职位ID:", jobId);
|
|
|
setTimeout(() => {
|
|
|
- common_vendor.index.navigateTo({
|
|
|
- url: "/pages/camera/camera",
|
|
|
- success: () => {
|
|
|
- console.log("成功跳转到camera页面");
|
|
|
- },
|
|
|
- fail: (err) => {
|
|
|
- console.error("跳转到camera页面失败:", err);
|
|
|
- common_vendor.index.redirectTo({
|
|
|
- url: "/pages/camera/camera",
|
|
|
- fail: (redirectErr) => {
|
|
|
- console.error("重定向到camera页面也失败:", redirectErr);
|
|
|
- common_vendor.index.switchTab({
|
|
|
- url: "/pages/camera/camera",
|
|
|
- fail: (switchErr) => {
|
|
|
- console.error("所有跳转方式都失败:", switchErr);
|
|
|
- common_vendor.index.navigateBack({
|
|
|
- delta: 1
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (jobId === 9) {
|
|
|
+ common_vendor.index.navigateTo({
|
|
|
+ url: "/pages/interview-question/interview-question",
|
|
|
+ success: () => {
|
|
|
+ console.log("成功跳转到interview-question页面");
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ console.error("跳转到interview-question页面失败:", err);
|
|
|
+ common_vendor.index.redirectTo({
|
|
|
+ url: "/pages/interview-question/interview-question",
|
|
|
+ fail: (redirectErr) => {
|
|
|
+ console.error("重定向到interview-question页面也失败:", redirectErr);
|
|
|
+ common_vendor.index.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ common_vendor.index.navigateTo({
|
|
|
+ url: "/pages/camera/camera",
|
|
|
+ success: () => {
|
|
|
+ console.log("成功跳转到camera页面");
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ console.error("跳转到camera页面失败:", err);
|
|
|
+ common_vendor.index.redirectTo({
|
|
|
+ url: "/pages/camera/camera",
|
|
|
+ fail: (redirectErr) => {
|
|
|
+ console.error("重定向到camera页面也失败:", redirectErr);
|
|
|
+ common_vendor.index.switchTab({
|
|
|
+ url: "/pages/camera/camera",
|
|
|
+ fail: (switchErr) => {
|
|
|
+ console.error("所有跳转方式都失败:", switchErr);
|
|
|
+ common_vendor.index.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}, 2e3);
|
|
|
}
|
|
|
},
|