This commit is contained in:
luJianJun 2023-07-28 17:43:53 +08:00
commit 319536ed9d
9 changed files with 4375 additions and 4086 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="601px" height="338px" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient gradientUnits="userSpaceOnUse" x1="1392" y1="457" x2="1560" y2="735" id="LinearGradient145">
<stop id="Stop146" stop-color="#ffffff" offset="0" />
<stop id="Stop147" stop-color="#eff7ff" stop-opacity="0.752941176470588" offset="1" />
</linearGradient>
</defs>
<g transform="matrix(1 0 0 1 -959 -397 )">
<path d="M 959 397 L 1560 397 L 1560 719 A 16 16 0 0 1 1544 735 L 959 735 L 959 397 Z " fill-rule="nonzero" fill="url(#LinearGradient145)" stroke="none" />
</g>
</svg>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="19px" height="17px" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1 0 0 1 -21 -9 )">
<path d="M 10.7536191536748 14.2875600961538 C 10.8206198960653 14.2228565705128 10.8541202672606 14.142828525641 10.8541202672606 14.0474759615385 L 10.8541202672606 12.1063701923077 C 10.8541202672606 12.0110176282051 10.8206198960653 11.9309895833333 10.7536191536748 11.8662860576923 C 10.6866184112843 11.8015825320513 10.6072754268745 11.7692307692308 10.5155902004454 11.7692307692308 L 8.48440979955457 11.7692307692308 C 8.39272457312546 11.7692307692308 8.31338158871566 11.8015825320513 8.24638084632517 11.8662860576923 C 8.17938010393467 11.9309895833333 8.14587973273942 12.0110176282051 8.14587973273942 12.1063701923077 L 8.14587973273942 14.0474759615385 C 8.14587973273942 14.142828525641 8.17938010393467 14.2228565705128 8.24638084632517 14.2875600961538 C 8.31338158871566 14.3522636217949 8.39272457312546 14.3846153846154 8.48440979955457 14.3846153846154 L 10.5155902004454 14.3846153846154 C 10.6072754268745 14.3846153846154 10.6866184112843 14.3522636217949 10.7536191536748 14.2875600961538 Z M 10.7218819599109 10.3951322115385 C 10.7888827023014 10.3508613782051 10.8259094283593 10.294671474359 10.8329621380846 10.2265625 L 11.0233853006682 5.53725961538462 C 11.0233853006682 5.45552884615385 10.9881217520416 5.39082532051282 10.9175946547884 5.34314903846154 C 10.8259094283593 5.26822916666667 10.7412769116555 5.23076923076923 10.6636971046771 5.23076923076923 L 8.33630289532294 5.23076923076923 C 8.25872308834447 5.23076923076923 8.17409057164068 5.26822916666667 8.08240534521158 5.34314903846154 C 8.01187824795843 5.39082532051282 7.97661469933185 5.46233974358974 7.97661469933185 5.55769230769231 L 8.15645879732739 10.2265625 C 8.15645879732739 10.294671474359 8.19172234595397 10.3508613782051 8.26224944320713 10.3951322115385 C 8.33277654046028 10.4394030448718 8.41740905716407 10.4615384615385 8.51614699331848 10.4615384615385 L 10.4732739420935 10.4615384615385 C 10.572011878248 10.4615384615385 10.6548812175204 10.4394030448718 10.7218819599109 10.3951322115385 Z M 10.1876391982183 0.183894230769231 C 10.3992204899777 0.306490384615384 10.5649591685226 0.473357371794871 10.684855233853 0.684495192307693 L 18.8095768374165 15.0691105769231 C 19.0564216778025 15.4981971153846 19.0493689680772 15.9272836538462 18.7884187082405 16.3563701923077 C 18.6685226429102 16.5538862179487 18.5045471417966 16.7105368589744 18.2964922048998 16.8263221153846 C 18.088437268003 16.9421073717949 17.8645137342242 17 17.6247216035635 17 L 1.37527839643653 17 C 1.1354862657758 17 0.911562731997031 16.9421073717949 0.703507795100223 16.8263221153846 C 0.495452858203415 16.7105368589744 0.331477357089829 16.5538862179487 0.211581291759465 16.3563701923077 C -0.0493689680772086 15.9272836538462 -0.0564216778025241 15.4981971153846 0.190423162583519 15.0691105769231 L 8.31514476614699 0.684495192307693 C 8.43504083147736 0.473357371794871 8.60077951002227 0.306490384615384 8.81236080178174 0.183894230769231 C 9.0239420935412 0.0612980769230776 9.25315515961396 0 9.5 0 C 9.74684484038604 0 9.9760579064588 0.0612980769230776 10.1876391982183 0.183894230769231 Z " fill-rule="nonzero" fill="#7f7f7f" stroke="none" transform="matrix(1 0 0 1 21 9 )" />
</g>
</svg>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,240 @@
<template>
<div class="btn flexcenter" v-if="!show" @click="show = !show">
<img class="icon" src="@/assets/img/publicImage/report-icon.svg">
<div class="text">举报</div>
</div>
<div class="alert-form" v-else>
<div class="comments reports">
<div class="head">
<span style="display: flex;align-items: center;">
<img style="width:25px;margin-right: 7px;" src="@/assets/img/publicImage/report.png">举报投诉</span>
<div class="close" @click="show = false"></div>
</div>
<form @submit.prevent="submit">
<div class="radio-area">
<el-checkbox-group v-model="checkList">
<el-checkbox v-for="s in reasonList" :label="s">{{ s }}</el-checkbox>
</el-checkbox-group>
</div>
<div class="text-box">
<textarea placeholder="请输入举报原因" v-model="text" maxlength="200"></textarea>
<div class="text-num">{{ 200 - text.length }}</div>
</div>
<div class="footer">
<button type="button" @click="show = false">取消</button>
<button type="submit" :disabled="checkList.length == 0">提交</button>
</div>
</form>
</div>
</div>
</template>
<script setup>
import { ref, getCurrentInstance, defineProps } from 'vue'
import { ElMessage } from 'element-plus'
let show = ref(false)
let text = ref("")
let reasonList = ref(['广告', '辱骂', '重复发送', '不良信息', '其他'])
let checkList = ref([])
const { proxy } = getCurrentInstance()
let props = defineProps({
id: String,
})
const submit = () => {
show.value = false;
var message = [].concat(toConsumableArray(checkList.value));
if (text.value.trim() != '') message.push(text.value);
proxy.$post("/tenement/pc/api/report", {
type: "housing",
id: props['id'],
message
}).then(res => {
console.log("res", res);
if (res.code == 200) {
ElMessage.success(res.message)
checkList.value = []
text.value = ""
show.value = false
} else ElMessage.error(res.message)
})
}
const toConsumableArray = (arr) => {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
arr2[i] = arr[i];
}
return arr2;
} else return Array.from(arr);
}
</script>
<style lang="less" scoped>
.btn {
width: 60px;
height: 60px;
cursor: pointer;
font-size: 14px;
color: #7F7F7F;
position: fixed;
bottom: 98px;
right: calc((100vw - 1200px) / 2 - 75px);
border: 1px solid #d7d7d7;
border-radius: 50%;
background-color: #fff;
flex-direction: column;
.icon {
width: 19px;
height: 17px;
}
.text {
line-height: 24px;
}
}
.alert-form {
display: block;
position: fixed;
z-index: 2100;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.7);
}
.alert-form * {
box-sizing: border-box;
}
.alert-form .reports {
height: 440px;
}
.alert-form .reports .radio-area {
margin-bottom: 40px;
}
.alert-form .el-checkbox-group {
font-size: 0;
}
.alert-form .comments {
display: block;
position: fixed;
z-index: 11;
left: 50%;
top: 50%;
width: 740px;
height: 440px;
max-width: 90vw;
max-height: 90vh;
transform: translate(-50%, -50%);
background-color: #ffffff;
border: none;
border-radius: 8px 8px 6px 6px;
}
.alert-form .comments .text-box {
position: relative;
}
.alert-form .comments .text-num {
position: absolute;
right: 10px;
bottom: 10px;
color: #999;
font-size: 12px;
}
.alert-form .comments form {
display: block;
width: 100%;
padding: 34px 30px 40px;
}
.alert-form .comments form textarea {
height: 172px;
margin-bottom: 30px;
display: block;
width: 100%;
background: #f7f7f7;
padding: 18px;
font-size: 14px;
border: 1px solid #F7F7F7;
border-radius: 5px;
outline: none;
resize: none;
line-height: 22px;
}
.alert-form .head {
padding: 0 18px 0 30px;
display: flex;
height: 56px;
align-items: center;
justify-content: space-between;
background: #333333;
color: #fff;
font-size: 17px;
border-radius: 6px 6px 0 0;
}
.alert-form .head .close {
color: #b3b3b3;
font-size: 14px;
cursor: pointer;
}
.alert-form .footer {
display: flex;
justify-content: center;
align-items: center;
}
.alert-form .footer button[type=button] {
margin-right: 20px;
}
.alert-form .footer button {
border: 1px #999999 solid;
border-radius: 5px;
background-color: #ffffff;
width: 128px;
height: 38px;
color: #333;
font-size: 14px;
outline: none;
cursor: pointer;
}
.alert-form .footer button[type=submit] {
background-color: #50E3C2;
border-color: #50E3C2;
color: #fff;
}
.alert-form /deep/ .el-checkbox__input.is-checked .el-checkbox__inner,
.alert-form /deep/ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: #50E3C2;
border-color: #50E3C2;
}
.alert-form /deep/ .el-checkbox__input.is-focus .el-checkbox__inner,
.alert-form /deep/ .el-checkbox__inner:hover {
border-color: #50E3C2;
}
.alert-form /deep/ .el-checkbox__input.is-checked+.el-checkbox__label {
color: #50E3C2;
}
</style>

View File

@ -74,6 +74,8 @@
</div>
</div>
<div class="header-right flex1">
<img class="header-bj" src="@/assets/img/apartmentDetail/apartmentDetail-header-bj.png">
<img class="header-shade" src="@/assets/img/apartmentDetail/apartmentDetail-header-shade.svg">
<div class="tab-box flexflex" v-if="info['tags'] && info['tags'].length != 0">
<div class="tab-item flexcenter" v-for="item in info['tags']">{{ item }}</div>
</div>
@ -143,12 +145,12 @@
src="@/assets/img/publicImage/gray-arrow.svg" alt="">
</div>
<div class="media-list flexacenter no-scrollbar" :class="`element${index}`">
<div class="media-item flexcenter" v-for="(it,i) in item['videos']"
<div class="media-item flexcenter" v-for="(it, i) in item['videos']"
@click="cloaseImageShow([...item['videos'], ...item['images']], i)">
<img class="media-img" v-lazy="it['thumbnail']">
<img class="media-icon" src="@/assets/img/apartmentDetail/media-icon.svg" />
</div>
<div class="media-item flexcenter" v-for="(it,i) in item['images']"
<div class="media-item flexcenter" v-for="(it, i) in item['images']"
@click="cloaseImageShow([...item['videos'], ...item['images']], i)">
<img class="media-img" v-lazy="it['thumbnail']">
</div>
@ -927,6 +929,18 @@ const publicJump = path => router.push(path)
.header-right {
margin-left: 59px;
position: relative;
z-index: 1;
.header-bj,
.header-shade {
width: 601px;
height: 338px;
position: absolute;
bottom: -25px;
right: -30px;
z-index: -1;
}
.tab-box {
flex-wrap: wrap;
@ -1265,6 +1279,23 @@ const publicJump = path => router.push(path)
font-size: 14px;
margin-bottom: 20px;
&.location .details-header .icon {
width: 20px;
height: 24px;
}
&.apartment-facilities .details-header .icon,
&.special-offer .details-header .icon {
width: 20px;
height: 20px;
}
&.company .details-header .icon,
&.life .details-header .icon {
width: 22px;
height: 22px;
}
.details-header {
height: 82px;
padding: 0 30px;

View File

@ -5,7 +5,7 @@
<div class="body-maxWidth mg-t-35">
<breadcrumb :data="housingInfo['data']" :operation='setOperation'></breadcrumb>
<el-affix :offset="0" @change="changeTitleType" z-index="700">
<div class="top-bar-box dis-f jus-x" v-show="titleType">
<div class="top-bar-box dis-f jus-x" v-if="titleType">
<div class="top-bar dis-f al-item jus-bet">
<div class="dis-f al-item">
<img src="../assets/img/detail/authenticationHousing.png" class="authentication-housing"
@ -985,6 +985,8 @@
</div>
<watchImage :show="imageShow" :index="imageIndex" :close="cloaseImageShow" :list="imgList"></watchImage>
<back-to-top></back-to-top>
<!-- 举报 -->
<report :id="uniqid"></report>
</template>
<script setup>
@ -1004,6 +1006,7 @@ import biserialItem from '../components/biserialListItem/biserialListItem.vue'
import backToTop from '@/components/public/backToTop.vue'
import phoneqrcode from '@/components/public/phoneQRcode.vue';
import groupqrcode from '@/components/public/group-QRcode.vue';
import report from '@/components/public/report.vue'
import store from '@/store';
@ -1253,26 +1256,23 @@ let setOperation = () => {
//
let concatData = reactive({})
let getConcatData = () => {
if (concatData['data']){
if (concatData['data']) {
showConcat.value = true
return
}
}
api.contactData({
token: housingInfo['data'].token
}).then(res => {
console.log(res)
if (res.code === 200) {
showConcat.value = true
concatData['data'] = res.data
let dataCount = 0
Object.keys(concatData['data']).map(res => {
console.log(res === 'wechatdata' && concatData['data'][res].aid != 0)
if ((concatData['data'][res] && res != 'wechatdata') || (res === 'wechatdata' && concatData['data'][res].aid != 0)) {
dataCount++
}
})
concatData['data']['count'] = dataCount
console.log(concatData)
}
})
}

View File

@ -20,7 +20,7 @@
<apartment-item v-for="item in listApartment" :item="item"></apartment-item>
</div>
<div class="dis-f jus-x no-list-box al-item" v-show="dataList.data && dataList.data.length === 0">
<noList></noList>
<noList hintText="暂无搜索结果" hintTextTwo="建议更换搜索关键词,或放宽筛选条件"></noList>
</div>
</div>
</div>

8154
yarn.lock

File diff suppressed because it is too large Load Diff