手机端社团UI优化

This commit is contained in:
=
2026-08-30 11:11:29 +08:00
parent 37f874f31d
commit bc8f23a61d
11 changed files with 1085 additions and 695 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 695 KiB

@@ -155,7 +155,9 @@ module.exports = {
{h5SkeletonLoading: !this.show_loading_overlay}
).then((res) => {
if (res.code === 0) {
this.tableData = this.tableData.concat(res.data.list)
// 接口异常返回 null 行时不渲染该行,避免业务插槽读取行字段产生渲染异常。
const responseList = Array.isArray(res.data.list) ? res.data.list.filter((item) => item) : []
this.tableData = this.tableData.concat(responseList)
this.localPageForm.totalCount = res.data.totalCount
if (this.tableData.length >= this.localPageForm.totalCount) {
this.tableFinished = true
@@ -139,6 +139,14 @@ module.exports = {
methods: {
beforeDelete(file) {
this.fileList = this.fileList.filter((f) => f.url !== file.url)
if (this.upload_result_category === "interval") {
const resultIntervalValue = this.fileList
.map((item) => item.response && item.response.data ? item.response.data : item.url)
.filter((item) => item)
.join(",")
this.$emit("update:value", resultIntervalValue)
return
}
this.$emit("update:value", this.fileList)
},
beforeRead(file) {
@@ -174,6 +182,13 @@ module.exports = {
Promise.all(uploadPromises)
.then(() => {
if (this.upload_result_category === "interval") {
// interval 模式用于后端 String 字段,上传完成后回传逗号分隔的文件 URL。
const resultIntervalValue = this.fileList
.filter((data) => data.status !== "fail")
.map((data) => data.response && data.response.data ? data.response.data : data.url)
.filter((data) => data)
.join(",")
this.$emit("update:value", resultIntervalValue)
} else if (this.upload_result_category === "array") {
if (this.complete_result) {
this.$emit("update:value", this.fileList)