|
|
@@ -82,7 +82,7 @@
|
|
|
<view class="detail-item">
|
|
|
<view class="txt-content">
|
|
|
<view class="txt-desc">求职者不错?向他发起录用吧~</view>
|
|
|
- <view class="txt-btn">录用邀约</view>
|
|
|
+ <view @click="showResult = true;resultType=0" class="txt-btn">录用邀约</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="detail-item">
|
|
|
@@ -90,49 +90,53 @@
|
|
|
将面试结果发送给对方
|
|
|
</view>
|
|
|
<view class="txt-content">
|
|
|
- <view class="txt-content-item">
|
|
|
+ <view class="txt-content-item" @click="showResult = true;resultType=0">
|
|
|
<image src="@/static/images/my/mianshitongguo.svg" mode="scaleToFill" />
|
|
|
<view class="txt-mianshi">通过</view>
|
|
|
</view>
|
|
|
- <view class="txt-content-item">
|
|
|
+ <view class="txt-content-item" @click="showResult = true;resultType=1">
|
|
|
<image src="@/static/images/my/kaolvyixia.svg" mode="scaleToFill" />
|
|
|
<view class="txt-mianshi">考虑一下</view>
|
|
|
</view>
|
|
|
- <view class="txt-content-item">
|
|
|
+ <view class="txt-content-item" @click="showResult = true;resultType=2">
|
|
|
<image src="@/static/images/my/butongguo.svg" mode="scaleToFill" />
|
|
|
<view class="txt-mianshi">不通过</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="detail-item" @click="showRecord = true">
|
|
|
+ <view v-if="info.interviewRecordType!=null" class="detail-item">
|
|
|
<view class="user-title-second"> 面试记录 </view>
|
|
|
<view class="tag-box">
|
|
|
- <view class="mianshi-tag">待定</view>
|
|
|
+ <view v-for="item in info.interviewRecordType&&info.interviewRecordType.split(',')||[]" class="mianshi-tag">{{item}}</view>
|
|
|
</view>
|
|
|
<view class="mianshi-result-txt">
|
|
|
- 这是一条文案这是一条文案这是一条文案这是一条文案这是一条文案
|
|
|
- 这是一条文案这是一条文案这是一条文案这是一条文案这是一条文案
|
|
|
+ {{info.interviewRecordMsg}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="detail-item" @click="showResult = true">
|
|
|
+ <view v-if="info.interviewResultType!=null" class="detail-item">
|
|
|
<view class="user-title-second">
|
|
|
<text>面试结果</text>
|
|
|
<view class="user-img-result">
|
|
|
<image
|
|
|
- src="@/static/images/my/mianshitongguo.svg"
|
|
|
+ :src="'@/static/images/my/'+info.interviewResultType==0?'mianshitongguo':(info.interviewResultType==1?'kaolvyixia':'butongguo')+'.svg'"
|
|
|
mode="scaleToFill"
|
|
|
- />面试通过
|
|
|
+ />{{info.interviewResultType==0?'面试通过':(info.interviewResultType==1?'考虑一下':'不通过')}}
|
|
|
</view></view
|
|
|
>
|
|
|
<view class="mianshi-result-txt">
|
|
|
- 这是一条文案这是一条文案这是一条文案这是一条文案这是一条文案
|
|
|
- 这是一条文案这是一条文案这是一条文案这是一条文案这是一条文案
|
|
|
+ {{info.interviewResultMsg}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn-bottom">
|
|
|
+ <block v-if="info.restHour>3">
|
|
|
<view class="btn-item" @click="cancelInterview = true">取消面试</view>
|
|
|
<view class="btn-item" @click="onEdit">修改面试</view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <view class="btn-item" @click="onEdit">重新邀约</view>
|
|
|
+ <view v-if="currentStep==4" class="btn-item" @click="showRecord=true">编辑面试记录</view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
<u-popup v-model="showRecord" mode="bottom" border-radius="40">
|
|
|
<view class="mianshi-record">
|
|
|
@@ -153,7 +157,6 @@
|
|
|
v-model="text"
|
|
|
placeholder="请补充其他说明,不超过500个字"
|
|
|
maxlength="500"
|
|
|
- @input="onInput"
|
|
|
class="textarea"
|
|
|
style="width:100%;height:100%;"
|
|
|
></textarea>
|
|
|
@@ -162,23 +165,23 @@
|
|
|
>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="btn-mianshi">保存</view>
|
|
|
+ <view @click="updateRecord" class="btn-mianshi">保存</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<u-popup v-model="showResult" mode="bottom" border-radius="40">
|
|
|
<view class="mianshi-record">
|
|
|
<view class="mianshi-title"> 面试结果</view>
|
|
|
<view class="mianshi-record-content">
|
|
|
- <view class="txt-content" style="padding: 54rpx;box-sizing:border-box;">
|
|
|
- <view class="txt-content-item">
|
|
|
+ <view class="txt-content" style="padding: 54rpx;box-sizing:border-box;justify-content: space-around;">
|
|
|
+ <view v-if="resultType==0" class="txt-content-item">
|
|
|
<image src="@/static/images/my/mianshitongguo.svg" mode="scaleToFill" />
|
|
|
<view class="txt-mianshi">通过</view>
|
|
|
</view>
|
|
|
- <view class="txt-content-item">
|
|
|
+ <view v-if="resultType==1" class="txt-content-item">
|
|
|
<image src="@/static/images/my/kaolvyixia.svg" mode="scaleToFill" />
|
|
|
<view class="txt-mianshi">考虑一下</view>
|
|
|
</view>
|
|
|
- <view class="txt-content-item">
|
|
|
+ <view v-if="resultType==2" class="txt-content-item">
|
|
|
<image src="@/static/images/my/butongguo.svg" mode="scaleToFill" />
|
|
|
<view class="txt-mianshi">不通过</view>
|
|
|
</view>
|
|
|
@@ -188,7 +191,6 @@
|
|
|
v-model="text"
|
|
|
placeholder="请补充其他说明,不超过500个字"
|
|
|
maxlength="500"
|
|
|
- @input="onInput"
|
|
|
class="textarea"
|
|
|
style="width:100%;height:100%;"
|
|
|
></textarea>
|
|
|
@@ -197,7 +199,7 @@
|
|
|
>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="btn-mianshi">保存</view>
|
|
|
+ <view @click="submitResult()" class="btn-mianshi">保存</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<u-popup v-model="cancelInterview" mode="bottom" border-radius="40">
|
|
|
@@ -231,7 +233,7 @@
|
|
|
>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="btn-mianshi" hover-class="btn-pressed" @click="() => {cancelInterview = false;cancel = true;}">提交</view>
|
|
|
+ <view class="btn-mianshi" hover-class="btn-pressed" @click="quitInterview">提交</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<u-popup v-model="cancel" mode="center" border-radius="40">
|
|
|
@@ -273,6 +275,8 @@ export default {
|
|
|
cancel:false,
|
|
|
info:{},
|
|
|
recordId:'',
|
|
|
+ resultType:0,
|
|
|
+ isWork:false
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
@@ -361,8 +365,8 @@ export default {
|
|
|
},
|
|
|
onEdit(){
|
|
|
uni.navigateTo({
|
|
|
- url: '/my/jilu/editInterview'
|
|
|
- })
|
|
|
+ url:`/pages/msg/interviewInvitation?recordId=${this.info.recordId}&postPushId=${this.info.postPush.postPushId}&resumesId=${this.info.resumesId}&interviewerId=${this.info.userEntity.userId}`
|
|
|
+ })
|
|
|
},
|
|
|
goTo(url){
|
|
|
uni.navigateTo({
|
|
|
@@ -374,6 +378,77 @@ export default {
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: phone, //仅为示例
|
|
|
});
|
|
|
+ },
|
|
|
+ submitResult(){
|
|
|
+ var that=this
|
|
|
+ if(this.isWork)
|
|
|
+ return
|
|
|
+ this.isWork=true
|
|
|
+ that.$Request.postJson("/app/interviewRecord/saveInterview", {
|
|
|
+ recordId:that.recordId,
|
|
|
+ interviewResultType:that.resultType,
|
|
|
+ interviewResultMsg:that.text
|
|
|
+ }).then(res => {
|
|
|
+ that.isWork=false
|
|
|
+ that.showResult=false
|
|
|
+ if (res.code === 0) {
|
|
|
+ that.info.interviewResultMsg=that.text
|
|
|
+ that.info.interviewResultType=that.resultType
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ updateRecord(){
|
|
|
+ var that=this
|
|
|
+ if(this.isWork)
|
|
|
+ return
|
|
|
+ this.isWork=true
|
|
|
+ that.$Request.postJson("/app/interviewRecord/saveInterview", {
|
|
|
+ recordId:that.recordId,
|
|
|
+ interviewRecordType:that.recordList[that.isCheck],
|
|
|
+ interviewRecordMsg:that.text
|
|
|
+ }).then(res => {
|
|
|
+ that.isWork=false
|
|
|
+ that.showRecord=false
|
|
|
+ if (res.code === 0) {
|
|
|
+ that.info.interviewRecordMsg=that.text
|
|
|
+ that.info.interviewRecordType=that.recordList[that.isCheck]
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ quitInterview(){
|
|
|
+ var that=this
|
|
|
+ if(this.isWork)
|
|
|
+ return
|
|
|
+ this.isWork=true
|
|
|
+ that.$Request.postJson("/app/interviewRecord/saveInterview", {
|
|
|
+ recordId:that.recordId,
|
|
|
+ status:3,
|
|
|
+ interviewQuitType:that.cancelList[that.isCheck],
|
|
|
+ interviewQuitMsg:that.text
|
|
|
+ }).then(res => {
|
|
|
+ that.isWork=false
|
|
|
+ that.cancelInterview=false
|
|
|
+ if (res.code === 0) {
|
|
|
+ that.info.status=3
|
|
|
+ that.info.interviewQuitType=that.cancelList[that.isCheck]
|
|
|
+ that.info.interviewQuitMsg=that.text
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
};
|