no message
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<img class="icon" src="@/assets/img/apartmentDetail/yellow-diamond.png" />
|
||||
<div class="name">{{ company.title }}</div>
|
||||
<div class="full-name flex1">{{ info.propaganda }}</div>
|
||||
<div class="more flexacenter" @click="handleClickNav('eleseEle')">
|
||||
<div class="more flexacenter" v-if="withsameapartments" @click="handleClickNav('eleseEle')">
|
||||
同品牌
|
||||
<img class="icon" src="@/assets/img/publicImage/black-arrow.svg" />
|
||||
</div>
|
||||
@@ -225,7 +225,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn flexacenter">
|
||||
<div class="collect flexcenter">
|
||||
<div v-if="item.iscollection" class="collect flexcenter red" @click="roomCollect(item.id, index)">
|
||||
<img class="icon" src="@/assets/img/apartmentDetail/collect-red.svg" />
|
||||
已收藏
|
||||
</div>
|
||||
<div v-else class="collect flexcenter" @click="roomCollect(item.id, index)">
|
||||
<img class="icon" src="@/assets/img/apartmentDetail/collect-hollow-black.svg" />
|
||||
收藏
|
||||
</div>
|
||||
@@ -439,8 +443,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])">
|
||||
<img class="icon" :src="item.img[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="name">{{ item.name }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -765,7 +769,7 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
const init = () => {
|
||||
proxy.$get("/tenement/pc/api/apartment/details", { uniqid }).then((res) => {
|
||||
proxy.$get("https://api.gter.net/v1/apartment/details", { uniqid }).then((res) => {
|
||||
if (res.code != 200) {
|
||||
ElMessage.error(res["message"]);
|
||||
return;
|
||||
@@ -804,8 +808,8 @@ const init = () => {
|
||||
const facility = data.info.facility;
|
||||
|
||||
if (facility) {
|
||||
facility["public"][0].images = ["https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skdX7qqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MtZCjvF5wr_-kU8uRQ0NDI5", "https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skfHvqqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MsIAzvG5Ar_-kU8uRQ0NDI5"];
|
||||
facility["public"][1].images = ["https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skdXfqqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MtdDG6W5Q7_-kU8uRQ0NDI5", "https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skfXnqqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MtcA2vF5A7_-kU8uRQ0NDI5"];
|
||||
// facility["public"][0].images = ["https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skdX7qqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MtZCjvF5wr_-kU8uRQ0NDI5", "https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skfHvqqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MsIAzvG5Ar_-kU8uRQ0NDI5"];
|
||||
// facility["public"][1].images = ["https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skdXfqqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MtdDG6W5Q7_-kU8uRQ0NDI5", "https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-5skfXnqqsgFptxhXa6QWi2uePJ5Bg8WFLPIqoYV7MtcA2vF5A7_-kU8uRQ0NDI5"];
|
||||
|
||||
let list = [];
|
||||
facilityArr.forEach((key) => {
|
||||
@@ -919,13 +923,17 @@ 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((imageurl) => {
|
||||
ele.img.forEach((e) => {
|
||||
urls.push({
|
||||
imageurl,
|
||||
thumbnail: imageurl,
|
||||
imageurl: e.imageurl,
|
||||
thumbnail: e.thumbnail,
|
||||
type: "attachment",
|
||||
});
|
||||
});
|
||||
@@ -1050,7 +1058,8 @@ const handleClickNav = (value) => {
|
||||
let dualBrandList = ref([]); // 同品牌数据
|
||||
// 同品牌请求数据
|
||||
const dualBrandData = () => {
|
||||
proxy.$get("/tenement/pc/api/apartment", { token }).then((res) => {
|
||||
// proxy.$get("/tenement/pc/api/apartment", { token }).then((res) => {
|
||||
proxy.$get("https://api.gter.net/v1/apartment/lists", { token }).then((res) => {
|
||||
if (res.code != 200) return;
|
||||
let data = res.data;
|
||||
dualBrandList.value = data.data;
|
||||
@@ -1369,6 +1378,17 @@ const openMap = () => {
|
||||
viewMapRef.value.showPop();
|
||||
isSelectSchool.value = false;
|
||||
};
|
||||
|
||||
const roomCollect = (id, index) => {
|
||||
console.log(id, index);
|
||||
|
||||
proxy.$post("https://api.gter.net/v1/apartment/roomCollection", { id }).then((res) => {
|
||||
if (res.code != 200) return;
|
||||
const data = res.data;
|
||||
ElMessage.success(res.message);
|
||||
roomList.value[index].iscollection = data.status || 0;
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user