xxdezh 7 месяцев назад
Родитель
Сommit
dd4fb0c67b
1 измененных файлов с 21 добавлено и 4 удалено
  1. 21 4
      pages/talentSearch/resumeDetail.vue

+ 21 - 4
pages/talentSearch/resumeDetail.vue

@@ -285,10 +285,27 @@
 			},
 
 			contactCandidate() {
-				uni.showToast({
-					title: '功能开发中',
-					icon: 'none'
-				});
+				//去联系
+								this.getDetail()
+								this.$Request.postJson('/app/chat/insertChatConversation', {
+									userId: this.order.userId,
+									focusedUserId: uni.getStorageSync('userId'),
+									postPushId: this.postPushId,
+									resumesId: this.resumesId,
+									// type:2,
+								}).then(ret => {
+									if (ret.code == 0) {
+										uni.navigateTo({
+											url: '/pages/msg/im?byUserId=' + this.order
+												.userId + '&chatConversationId=' + ret.data
+												.chatConversationId + '&resumesId=' + ret
+												.data
+												.resumesId + '&postPushId=' +
+												ret.data.postPushId
+										})
+									}
+								})
+							
 			},
 			getDetail() {
 				uni.showLoading({