|
|
@@ -30,7 +30,14 @@
|
|
|
</template>
|
|
|
</view>
|
|
|
|
|
|
- <load-card :progress="progress" v-if="showLoadCard"></load-card>
|
|
|
+ <view class="load-container" v-if="showLoadCard">
|
|
|
+ <view class="video-container">
|
|
|
+ <view class="title">简历解析中</view>
|
|
|
+ <video src="https://bossweb.edccc.cn/video_260307_151616.mp4" :muted="true" :autoplay="true" :controls="false" :loop="true" object-fit="fill"></video>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- <load-card :progress="progress" v-if="showLoadCard"></load-card> -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -58,11 +65,11 @@
|
|
|
this.scene = options.scene
|
|
|
}
|
|
|
},
|
|
|
- onUnload() {
|
|
|
- if (this.timer) {
|
|
|
- clearInterval(this.timer)
|
|
|
- }
|
|
|
- },
|
|
|
+ // onUnload() {
|
|
|
+ // if (this.timer) {
|
|
|
+ // clearInterval(this.timer)
|
|
|
+ // }
|
|
|
+ // },
|
|
|
methods: {
|
|
|
toOnlineResume() {
|
|
|
uni.navigateTo({
|
|
|
@@ -130,30 +137,28 @@
|
|
|
}, (res) => {
|
|
|
if (res && res.code === 0) {
|
|
|
const id = res.data?.id
|
|
|
+ const resumesAttachmentId = res.data?.resumesAttachmentId || null
|
|
|
if (id) {
|
|
|
- this.getAiResumesAnalysis(id)
|
|
|
+ this.getAiResumesAnalysis(id, resumesAttachmentId)
|
|
|
}
|
|
|
- // uni.reLaunch({
|
|
|
- // url: `/pages/my/onlineResume?fileId=${res.data.id}`
|
|
|
- // })
|
|
|
} else {
|
|
|
this.$queue.showToast(res ? res.msg : '文件上传失败')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 获取简历解析数据
|
|
|
- getAiResumesAnalysis(fileId) {
|
|
|
- if (this.timer) {
|
|
|
- clearInterval(this.timer)
|
|
|
- this.progress = 0
|
|
|
- }
|
|
|
+ getAiResumesAnalysis(fileId, resumesAttachmentId) {
|
|
|
+ // if (this.timer) {
|
|
|
+ // clearInterval(this.timer)
|
|
|
+ // this.progress = 0
|
|
|
+ // }
|
|
|
|
|
|
this.showLoadCard = true
|
|
|
- this.timer = setInterval(() => {
|
|
|
- if (this.progress < 99) {
|
|
|
- this.progress++
|
|
|
- }
|
|
|
- }, 900)
|
|
|
+ // this.timer = setInterval(() => {
|
|
|
+ // if (this.progress < 99) {
|
|
|
+ // this.progress++
|
|
|
+ // }
|
|
|
+ // }, 900)
|
|
|
uni.request({
|
|
|
url: config.APIHOST + '/app/resumes/aiResumesAnalysis',
|
|
|
header: {
|
|
|
@@ -163,7 +168,8 @@
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
workflowId: '7594327567932309547',
|
|
|
- fileId
|
|
|
+ fileId,
|
|
|
+ resumesAttachmentId
|
|
|
},
|
|
|
timeout: 180000,
|
|
|
success: (res) => {
|
|
|
@@ -187,8 +193,8 @@
|
|
|
|
|
|
stopLoadStatus() {
|
|
|
this.showLoadCard = false
|
|
|
- this.progress = 0
|
|
|
- clearInterval(this.timer)
|
|
|
+ // this.progress = 0
|
|
|
+ // clearInterval(this.timer)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -257,4 +263,36 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .load-container {
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
+ .video-container {
|
|
|
+ width: 600rpx;
|
|
|
+ // height: 600rpx;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ padding: 40rpx;
|
|
|
+ .title {
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 1;
|
|
|
+ padding-bottom: 40rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ video {
|
|
|
+ display: block;
|
|
|
+ width: 520rpx;
|
|
|
+ height: 320rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|