lyuis 7 maanden geleden
bovenliggende
commit
29cc16aa32
3 gewijzigde bestanden met toevoegingen van 12 en 1 verwijderingen
  1. 1 1
      components/attachment.vue
  2. 9 0
      pages/msg/im.vue
  3. 2 0
      pages/my/attachment.vue

+ 1 - 1
components/attachment.vue

@@ -80,7 +80,7 @@
 		/* background: #f6f6f6; */
 	}
 	.contain{
-		height: 33vh;
+		height: 40vh;
 		.title{
 			padding: 25rpx 40rpx;
 			color: #666;

+ 9 - 0
pages/msg/im.vue

@@ -1057,6 +1057,7 @@
 		onUnload() {
 			uni.closeSocket()
 			uni.hideLoading()
+			uni.$off('updateAttachmentList')
 			clearInterval(this.recordsInter)
 			this.recordsInter = null
 			clearInterval(this.socketTimer)
@@ -1131,6 +1132,14 @@
 			// #ifdef APP
 				//this.getAudioPermision()
 			// #endif
+			uni.$on('updateAttachmentList',()=>{
+				this.$Request.get("/app/resumes/getAttachment").then(res => {
+					if (res.code == 0) {
+						this.attachmentContent=res.data
+					}
+					uni.hideLoading();
+				});
+			})
 		},
 		onShow() {
 			if (this.chatConversationId) {

+ 2 - 0
pages/my/attachment.vue

@@ -281,6 +281,7 @@ export default {
 							}).then(res => {
 								if (res.code === 0) {
 									that.getUserInfo()
+									uni.$emit('updateAttachmentList')
 								} else {
 									uni.showToast({
 										title: res.msg,
@@ -327,6 +328,7 @@ export default {
 									return item.resumesAttachmentId != id;
 								});
 								that.content = info
+								uni.$emit('updateAttachmentList')
 							} else {
 								uni.showToast({
 									title: res.msg,