4.6测试和视频上传限制25M

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-05-21 18:58:07 +08:00
parent 173e05c13a
commit 4f3989f756
9 changed files with 90 additions and 65 deletions

View File

@@ -223,7 +223,7 @@
<div class="number">{{ item.discountprice || item.price }}</div>
<div class="month">/</div>
<div class="original" v-if="!item.discountprice">HK$ {{ item.price }}/</div>
<div class="original" v-if="item.discountprice">HK$ {{ item.price }}/</div>
</div>
</div>
<div class="btn flexacenter">
@@ -445,8 +445,8 @@
</div>
</div>
<div class="img-box flexflex" v-if="item.images.length > 0">
<div class="img-item" v-for="(item, index) in item.images" :key="index" @click="openFacilitiesImg(item.img[0].imageurl)">
<img class="icon" :src="item.img[0].thumbnail" />
<div class="img-item" v-for="(item, index) in item.images" :key="index" @click="openFacilitiesImg(item.imageurl)">
<img class="icon" :src="item.thumbnail" />
<div class="name">{{ item.name }}</div>
</div>
</div>
@@ -617,10 +617,6 @@
</el-dialog>
<el-dialog v-model="isInspectPop" width="600" class="inspectPop" :show-close="false">
<!-- <div class="title-box dis-f al-item jus-x">
点评
<img src="@/assets/img/detail/close.png" class="close-icon" @click="isSelectSchool = false" />
</div> -->
<div class="type flexacenter">
<div class="item" :class="{ pitch: remarkTypeid == 0 }" @click="cutRemarkType(0)">全部 {{ spotSum + returnSum }}</div>
<div class="item" :class="{ pitch: remarkTypeid == 1 }" @click="cutRemarkType(1)">寄托实地考察 {{ spotSum }}</div>
@@ -643,7 +639,7 @@
<div class="username flexacenter">
{{ item.nickname }}
<div class="checked-in" v-if="item.typeid == 2">已入住</div>
<img class="image" v-if="item.groupimage" :src="item.groupimage" />
<img class="image" v-else-if="item.groupimage" :src="item.groupimage" />
</div>
<div class="date">{{ item.date }}</div>
<div class="text">{{ item.content }}</div>
@@ -796,7 +792,7 @@ const facilityKeyName = {
room: "房间设施",
};
const facilityArr = ["public", "service", "sport", "outdoor", "security", "room"]; // 公寓设施 顺序
const facilityArr = ["public", "room", "service", "sport", "outdoor", "security"]; // 公寓设施 顺序
let facilitylist = ref([]);
let costList = ref([]);
@@ -864,12 +860,25 @@ const init = () => {
if (Array.isArray(target)) {
target.forEach((element) => {
label.push(element.name);
if (element.images.length > 0)
images.push({
name: element.name,
img: element.images,
if (element.images.length > 0) {
element.images.forEach((e) => {
images.push({
name: element.name,
imageurl: e.imageurl,
thumbnail: e.thumbnail,
});
});
}
});
// target.forEach((element) => {
// label.push(element.name);
// if (element.images.length > 0)
// images.push({
// name: element.name,
// img: element.images,
// });
// });
}
if (label.length > 0) {
@@ -966,19 +975,12 @@ const openFacilities = () => {
const openFacilitiesImg = (current) => {
const list = facilitylist.value || [];
let urls = [];
// element.images.forEach((ele) => {
// ele.img.forEach((e) => {
// urls.push(e.imageurl);
// });
// });
list.forEach((element) => {
element.images.forEach((ele) => {
ele.img.forEach((e) => {
urls.push({
imageurl: e.imageurl,
thumbnail: e.thumbnail,
type: "attachment",
});
urls.push({
imageurl: ele.imageurl,
thumbnail: ele.thumbnail,
type: "attachment",
});
});
});
@@ -1381,9 +1383,9 @@ const getMapDistance = () => {
distance.forEach((element) => {
let obj = {};
element.distance = calculateDistance(element.distance);
if (element.walking) obj["walking"] = calculateDuration(element.walking.duration);
if (element.transit) obj["transit"] = calculateDuration(element.transit.duration);
if (element.driving) obj["driving"] = calculateDuration(element.driving.duration);
if (element.walking && element.walking.duration) obj["walking"] = calculateDuration(element.walking.duration);
if (element.transit && element.transit.duration) obj["transit"] = calculateDuration(element.transit.duration);
if (element.driving && element.driving.duration) obj["driving"] = calculateDuration(element.driving.duration);
const target = {
name: element.name,
distance: element.distance,
@@ -2060,31 +2062,13 @@ const cutRemarkType = (value) => (remarkTypeid.value = value);
.inspectPop {
border-radius: 16px;
overflow: hidden;
word-break: break-word;
.el-dialog__header {
display: none;
}
.el-dialog__body {
padding: 0;
.title-box {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 25px;
line-height: 26px;
color: #000000;
text-align: center;
padding-top: 25px;
padding-bottom: 16px;
.close-icon {
width: 20px;
height: 20px;
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
}
.type {
padding: 20px 20px;
border-bottom: 1px dotted #d7d7d7;
@@ -2163,7 +2147,7 @@ const cutRemarkType = (value) => (remarkTypeid.value = value);
// cursor: pointer;
margin-bottom: 4px;
.image {
height: 20px;
width: 72px;
margin-left: 12px;
}

View File

@@ -730,7 +730,7 @@ export default {
videoConfig: {
// 上传的文件配置
maxcount: 3, // 最大的文件数量
maxFileSize: 5 * 1024 * 1024, // 单位是字节
maxFileSize: 25 * 1024 * 1024, // 单位是字节
},
isformat: false, // 是否有格式问题

View File

@@ -184,6 +184,11 @@ const handleTransfer = (data) => {
moreList.value = [];
getData();
nextTick(() => {
masonryInstanceMore.reloadItems();
masonryInstanceMore.layout();
});
break;
}
}