From 35a41d83581f3711c02f7df1473cf37698165d12 Mon Sep 17 00:00:00 2001 From: cansnow Date: Tue, 20 Jan 2026 21:14:57 +0800 Subject: [PATCH] 23 --- manifest.json | 4 ++-- pages/conversation/groupAlbum/groupAlbum.vue | 24 +++++++++++++++----- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index 08a25b4..ecef15d 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "瞬聊", "appid" : "__UNI__E41111F", "description" : "一款即时聊天软件", - "versionName" : "3.4.3", - "versionCode" : 343, + "versionName" : "3.4.6", + "versionCode" : 346, "transformPx" : false, "app-plus" : { "bounce" : "none", diff --git a/pages/conversation/groupAlbum/groupAlbum.vue b/pages/conversation/groupAlbum/groupAlbum.vue index d1533bf..820f798 100644 --- a/pages/conversation/groupAlbum/groupAlbum.vue +++ b/pages/conversation/groupAlbum/groupAlbum.vue @@ -19,11 +19,13 @@ > - + @@ -147,7 +149,7 @@ } return ; } - const urls = this.list.map(item=>item.url); + const urls = this.list.map(item=>util.cdn(item.url)); uni.previewImage({ urls:urls, current:index, @@ -243,17 +245,27 @@ } const _this = this; const lists = [].concat(this.fileList); + let result = {}; for (let i = 0; i < lists.length; i++) { - const result = await upload(lists[i].url,{ + result = await upload(lists[i].url,{ savePath: "album" , url:"/group/album_create", groupID:_this.param.groupID },(res)=>{ - _this.fileList[i].progress = res.progress; + try{ + _this.fileList[i].progress = res.progress; + }catch(e){ + + } }); - _this.fileList.splice(i,1); - _this.list.unshift(result.data); + if(data.code == 0){ + _this.fileList[i].status = 1; + _this.list.unshift(result.data); + }else{ + uni.$u.toast(data.msg); + } } + _this.fileList = []; } },