修改搜索公寓全局变量的指向问题
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -1,4 +1,4 @@
|
|||||||
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"/><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.6d96b969.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.88c12724.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.82cd2e20.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display: none;"><script src="//v1.cnzz.com/z_stat.php?id=1281224882&web_id=1281224882"></script><script>var _hmt = _hmt || []
|
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"/><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.6d96b969.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.c3dff062.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.dafb6d11.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display: none;"><script src="//v1.cnzz.com/z_stat.php?id=1281224882&web_id=1281224882"></script><script>var _hmt = _hmt || []
|
||||||
;(function () {
|
;(function () {
|
||||||
var hm = document.createElement("script")
|
var hm = document.createElement("script")
|
||||||
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746"
|
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746"
|
||||||
|
|||||||
1
dist/js/150.aa5ddd95.js
vendored
1
dist/js/150.aa5ddd95.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/517.bb20defe.js
vendored
Normal file
1
dist/js/517.bb20defe.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/js/edit.2b3a4402.js
vendored
1
dist/js/edit.2b3a4402.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/edit.5857ee65.js
vendored
Normal file
1
dist/js/edit.5857ee65.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -71,9 +71,9 @@
|
|||||||
<div class="option-box flexflex flex1">
|
<div class="option-box flexflex flex1">
|
||||||
<div class="item flexcenter" :class="{ 'pitch': 0 == pitchValue['school'] }"
|
<div class="item flexcenter" :class="{ 'pitch': 0 == pitchValue['school'] }"
|
||||||
@click="selectOption('nearSchool', 0)">不限</div>
|
@click="selectOption('nearSchool', 0)">不限</div>
|
||||||
<div class="item flexcenter" v-for="item in nearSchoolList"
|
<div class="item flexcenter" v-for="(item,index) in nearSchoolList"
|
||||||
:class="{ 'pitch': item['id'] == pitchValue['school'] }"
|
:class="{ 'pitch': item['id'] == pitchValue['school'] }"
|
||||||
@click="selectOption('nearSchool', item.id)">{{ item['name']
|
@click="selectOption('nearSchool', item.id)" :key="index">{{ item['name']
|
||||||
}}</div>
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<div class="option-item flexflex" style="padding-bottom: 10px;">
|
<div class="option-item flexflex" style="padding-bottom: 10px;">
|
||||||
<div class="option-title">学校附近</div>
|
<div class="option-title">学校附近</div>
|
||||||
<div class="option-box flexflex flex1">
|
<div class="option-box flexflex flex1">
|
||||||
<div class="item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div>
|
<!-- <div class="item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div> -->
|
||||||
<div class="item flexcenter" v-for="(item, index) in nearSchoolList" :key="index" :class="{ pitch: item['id'] == pitchValue['school'] }" @click="selectOption('nearSchool', item.id)">{{ item["name"] }}</div>
|
<div class="item flexcenter" v-for="(item, index) in nearSchoolList" :key="index" :class="{ pitch: item['id'] == pitchValue['school'] }" @click="selectOption('nearSchool', item.id)">{{ item["name"] }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -290,6 +290,7 @@ let pitchValue = ref({
|
|||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
// nearSchoolList = store.state.apartment.school || []
|
// nearSchoolList = store.state.apartment.school || []
|
||||||
nearSchoolList = store.state.schoolList || []
|
nearSchoolList = store.state.schoolList || []
|
||||||
|
console.log("nearSchoolList",nearSchoolList);
|
||||||
roomTypeList = store.state.apartment.roomtype || []
|
roomTypeList = store.state.apartment.roomtype || []
|
||||||
roomTypeKey = store.state.roomTypeKey || {}
|
roomTypeKey = store.state.roomTypeKey || {}
|
||||||
roomlistingsList = store.state.apartment.roomlistings || []
|
roomlistingsList = store.state.apartment.roomlistings || []
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<div class="location flexacenter" v-if="item['address']">
|
<div class="location flexacenter" v-if="item['address']">
|
||||||
<img class="location-icon" src="@/assets/img/publicImage/location-icon.png" />
|
<img class="location-icon" src="@/assets/img/publicImage/location-icon.png" />
|
||||||
<div class="ellipsis">{{ item["address"] }}</div>
|
<div class="ellipsis">{{ item["address"] }}</div>
|
||||||
<span class="area-distance" v-if="pitchValue['school'] && item['distance']">{{ Math.round(item["distance"] * 10) / 10 }}km</span>
|
<span class="area-distance" v-if="pitchValue?.school && item['distance']">{{ Math.round(item["distance"] * 10) / 10 }}km</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="type-list" v-if="item['roomlist']">
|
<div class="type-list" v-if="item['roomlist']">
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ let schoolSelectObj = reactive({ id: '', title: '不限', page: '' })
|
|||||||
let schoolPages = ref(0) //页数
|
let schoolPages = ref(0) //页数
|
||||||
let shcoolData = shallowReactive([])
|
let shcoolData = shallowReactive([])
|
||||||
let setSchoolData = () => {
|
let setSchoolData = () => {
|
||||||
let arr = routePath.value === '/' ? store.state.seachTypeData[0] && store.state.seachTypeData[0].where : store.state.schoolList
|
let arr = routePath.value === '/' ? store.state.seachTypeData[0] && store.state.seachTypeData[0].where : JSON.parse(JSON.stringify(store.state.schoolList))
|
||||||
if (arr[0] && arr[0].id) arr.unshift({ name: '不限', id: '' })
|
if (arr[0] && arr[0].id) arr.unshift({ name: '不限', id: '' })
|
||||||
|
|
||||||
let num = 0
|
let num = 0
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { showFullScreenLoading, tryHideFullScreenLoading } from "./loading"
|
|||||||
import store from "@/store/index"
|
import store from "@/store/index"
|
||||||
|
|
||||||
axios.defaults.baseURL = "https://app.gter.net"
|
axios.defaults.baseURL = "https://app.gter.net"
|
||||||
// axios.defaults.baseURL = '/index'
|
|
||||||
axios.defaults.emulateJSON = true
|
axios.defaults.emulateJSON = true
|
||||||
axios.defaults.withCredentials = true
|
axios.defaults.withCredentials = true
|
||||||
|
|
||||||
@@ -21,7 +20,7 @@ axios.interceptors.request.use(
|
|||||||
if (config.url != "/tenement/pc/api/user/operation" && !noMask) showFullScreenLoading()
|
if (config.url != "/tenement/pc/api/user/operation" && !noMask) showFullScreenLoading()
|
||||||
// 开发时登录用的,可以直接替换小程序的 authorization
|
// 开发时登录用的,可以直接替换小程序的 authorization
|
||||||
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "x2mmnl9grt51bpplj2k6ioiuummzhnw3"
|
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "x2mmnl9grt51bpplj2k6ioiuummzhnw3"
|
||||||
if (process.env.NODE_ENV == "development") config["headers"]["authorization"] = "mx25rp0q99x3sis8hidugttty80c5qum"
|
if (process.env.NODE_ENV == "development") config["headers"]["authorization"] = "b56e234d748d4203e3ce4caa0aedf70a"
|
||||||
|
|
||||||
// 当 noMask == true 和 confing.method == 'get' 时,删除 config.params['noMask']
|
// 当 noMask == true 和 confing.method == 'get' 时,删除 config.params['noMask']
|
||||||
if (noMask && config.method == "get") delete config.params["noMask"]
|
if (noMask && config.method == "get") delete config.params["noMask"]
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="one-list" v-if="!typeValue">
|
<div class="one-list" v-if="!typeValue">
|
||||||
<div class="item flexacenter" v-for="(item, index) in typeData">
|
<div class="item flexacenter" v-for="(item, index) in typeData" :key="index">
|
||||||
<div class="dot"></div>
|
<div class="dot"></div>
|
||||||
<div class="content flex1 flexacenter" @click="handleType(index)">
|
<div class="content flex1 flexacenter" @click="handleType(index)">
|
||||||
<div class="text">{{ item['name'] }}</div>
|
<div class="text">{{ item['name'] }}</div>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<div class="two-list flexflex" v-else>
|
<div class="two-list flexflex" v-else>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="item flexacenter" v-for="(item, index) in typeData">
|
<div class="item flexacenter" v-for="(item, index) in typeData" :key="index">
|
||||||
<div class="dot"></div>
|
<div class="dot"></div>
|
||||||
<div class="content flexacenter" :class="{ 'pitch': index == typeValue }"
|
<div class="content flexacenter" :class="{ 'pitch': index == typeValue }"
|
||||||
@click="handleType(index)">
|
@click="handleType(index)">
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<div class="right flex1" v-if="typeData[typeValue]">
|
<div class="right flex1" v-if="typeData[typeValue]">
|
||||||
<div class="item flexacenter" :class="{ 'pitch': item.key == info['type'] }"
|
<div class="item flexacenter" :class="{ 'pitch': item.key == info['type'] }"
|
||||||
v-for="(item, index) in typeData[typeValue].data"
|
v-for="(item, index) in typeData[typeValue].data"
|
||||||
@click="handleType(item.key, item.value), typePopState = false">
|
@click="handleType(item.key, item.value), typePopState = false" :key="index">
|
||||||
<div class="value">{{ item['value'] }}</div>
|
<div class="value">{{ item['value'] }}</div>
|
||||||
<img class="icom" src="@/assets/img/edit/blue-tick.svg" />
|
<img class="icom" src="@/assets/img/edit/blue-tick.svg" />
|
||||||
</div>
|
</div>
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
<div class="right flex1 scrollbar" style="max-height: 360px;overflow: auto;">
|
<div class="right flex1 scrollbar" style="max-height: 360px;overflow: auto;">
|
||||||
<div class="item flexacenter" :class="{ 'pitch': item.key == info['rentalduration'] }"
|
<div class="item flexacenter" :class="{ 'pitch': item.key == info['rentalduration'] }"
|
||||||
v-for="(item, index) in item.choices"
|
v-for="(item, index) in item.choices"
|
||||||
@click="setValue('rentalduration', item['key']), rentaldurationPopState = false">
|
@click="setValue('rentalduration', item['key']), rentaldurationPopState = false" :key="index">
|
||||||
<div class="value">{{ item['value'] }}</div>
|
<div class="value">{{ item['value'] }}</div>
|
||||||
<img class="icom" src="@/assets/img/edit/blue-tick.svg" />
|
<img class="icom" src="@/assets/img/edit/blue-tick.svg" />
|
||||||
</div>
|
</div>
|
||||||
@@ -931,6 +931,8 @@ export default {
|
|||||||
|
|
||||||
loading: null, // 加载
|
loading: null, // 加载
|
||||||
|
|
||||||
|
uploadData:"", // 上传时 加入的
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -941,7 +943,6 @@ export default {
|
|||||||
this.token = urlParams.get('token');
|
this.token = urlParams.get('token');
|
||||||
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
||||||
// this.verified = urlParams.get('verified') || 0;
|
// this.verified = urlParams.get('verified') || 0;
|
||||||
console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|
||||||
this.userIntermediary = this.$store.state.user['intermediary']
|
this.userIntermediary = this.$store.state.user['intermediary']
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
@@ -979,7 +980,6 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|||||||
let data = res.data
|
let data = res.data
|
||||||
let fieldinfo = data.fieldinfo
|
let fieldinfo = data.fieldinfo
|
||||||
|
|
||||||
|
|
||||||
let typeData = []
|
let typeData = []
|
||||||
let locationData = []
|
let locationData = []
|
||||||
let rentaldurationData = []
|
let rentaldurationData = []
|
||||||
@@ -1089,7 +1089,7 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|||||||
this.fieldinfoUpload = fieldinfo.upload
|
this.fieldinfoUpload = fieldinfo.upload
|
||||||
this.fieldinfoContact = fieldinfo.contact
|
this.fieldinfoContact = fieldinfo.contact
|
||||||
this.fieldinfoInfo = fieldinfo.info
|
this.fieldinfoInfo = fieldinfo.info
|
||||||
|
this.uploadData = data.uploadData
|
||||||
|
|
||||||
this.fieldinfoBasic.forEach(element => {
|
this.fieldinfoBasic.forEach(element => {
|
||||||
if (element['field'] == "type" && info['type']) {
|
if (element['field'] == "type" && info['type']) {
|
||||||
@@ -1182,6 +1182,8 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event.target.value = '' // 去除值 使用户可以选中同一个
|
||||||
|
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.onload = () => {
|
reader.onload = () => {
|
||||||
this.myImage = reader.result;
|
this.myImage = reader.result;
|
||||||
@@ -1221,6 +1223,8 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|||||||
this.info['wechatdata'] = res.data
|
this.info['wechatdata'] = res.data
|
||||||
this.$message.success("上传成功!!!");
|
this.$message.success("上传成功!!!");
|
||||||
|
|
||||||
|
}).catch(()=>{
|
||||||
|
this.loading.close();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1230,6 +1234,7 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|||||||
this.selectedFiles = files
|
this.selectedFiles = files
|
||||||
this.mediaUploadIndex = 0
|
this.mediaUploadIndex = 0
|
||||||
this.combingMedia(type)
|
this.combingMedia(type)
|
||||||
|
event.target.value = '' // 去除值 使用户可以选中同一个
|
||||||
},
|
},
|
||||||
|
|
||||||
// 梳理媒体的 格式
|
// 梳理媒体的 格式
|
||||||
@@ -1281,8 +1286,9 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
|||||||
formData.append('files', target); // 文件数据
|
formData.append('files', target); // 文件数据
|
||||||
formData.append('name', target.name); // 文件名
|
formData.append('name', target.name); // 文件名
|
||||||
formData.append('type', type); // 文件名
|
formData.append('type', type); // 文件名
|
||||||
|
formData.append('data', this.uploadData); // 文件名
|
||||||
this.$axios.post('/tenement/pc/api/publish/upload', formData).then(res => {
|
// this.$axios.post('/tenement/pc/api/publish/upload', formData).then(res => {
|
||||||
|
this.$axios.post('https://oss.gter.net/upload', formData).then(res => {
|
||||||
res = res['data']
|
res = res['data']
|
||||||
|
|
||||||
if (res.code != 200) {
|
if (res.code != 200) {
|
||||||
|
|||||||
@@ -77,7 +77,9 @@ let setInitial = () => {
|
|||||||
|
|
||||||
//获取搜索数据
|
//获取搜索数据
|
||||||
let getDataList = (data, type = true) => {
|
let getDataList = (data, type = true) => {
|
||||||
|
console.log("11414");
|
||||||
// console.log(data,type)
|
// console.log(data,type)
|
||||||
|
console.log(type);
|
||||||
if (!type) {
|
if (!type) {
|
||||||
//是否继续搜索
|
//是否继续搜索
|
||||||
seachSelectData.data.tabType !== "apartment" ? (pageList.value = []) : (listApartment.value = [])
|
seachSelectData.data.tabType !== "apartment" ? (pageList.value = []) : (listApartment.value = [])
|
||||||
@@ -100,6 +102,7 @@ let getDataList = (data, type = true) => {
|
|||||||
} else {
|
} else {
|
||||||
seachApi = api.apartment(postData)
|
seachApi = api.apartment(postData)
|
||||||
}
|
}
|
||||||
|
console.log("555");
|
||||||
seachApi.then(res => {
|
seachApi.then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
// console.log(res.data)
|
// console.log(res.data)
|
||||||
|
|||||||
Reference in New Issue
Block a user