修改搜索公寓全局变量的指向问题
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<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="content flex1 flexacenter" @click="handleType(index)">
|
||||
<div class="text">{{ item['name'] }}</div>
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<div class="two-list flexflex" v-else>
|
||||
<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="content flexacenter" :class="{ 'pitch': index == typeValue }"
|
||||
@click="handleType(index)">
|
||||
@@ -63,7 +63,7 @@
|
||||
<div class="right flex1" v-if="typeData[typeValue]">
|
||||
<div class="item flexacenter" :class="{ 'pitch': item.key == info['type'] }"
|
||||
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>
|
||||
<img class="icom" src="@/assets/img/edit/blue-tick.svg" />
|
||||
</div>
|
||||
@@ -127,7 +127,7 @@
|
||||
<div class="right flex1 scrollbar" style="max-height: 360px;overflow: auto;">
|
||||
<div class="item flexacenter" :class="{ 'pitch': item.key == info['rentalduration'] }"
|
||||
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>
|
||||
<img class="icom" src="@/assets/img/edit/blue-tick.svg" />
|
||||
</div>
|
||||
@@ -931,6 +931,8 @@ export default {
|
||||
|
||||
loading: null, // 加载
|
||||
|
||||
uploadData:"", // 上传时 加入的
|
||||
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -941,7 +943,6 @@ export default {
|
||||
this.token = urlParams.get('token');
|
||||
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
||||
// this.verified = urlParams.get('verified') || 0;
|
||||
console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
this.userIntermediary = this.$store.state.user['intermediary']
|
||||
|
||||
this.init();
|
||||
@@ -979,7 +980,6 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
let data = res.data
|
||||
let fieldinfo = data.fieldinfo
|
||||
|
||||
|
||||
let typeData = []
|
||||
let locationData = []
|
||||
let rentaldurationData = []
|
||||
@@ -1089,7 +1089,7 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
this.fieldinfoUpload = fieldinfo.upload
|
||||
this.fieldinfoContact = fieldinfo.contact
|
||||
this.fieldinfoInfo = fieldinfo.info
|
||||
|
||||
this.uploadData = data.uploadData
|
||||
|
||||
this.fieldinfoBasic.forEach(element => {
|
||||
if (element['field'] == "type" && info['type']) {
|
||||
@@ -1181,6 +1181,8 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
this.$message.error("请大小小于10M");
|
||||
return
|
||||
}
|
||||
|
||||
event.target.value = '' // 去除值 使用户可以选中同一个
|
||||
|
||||
const reader = new FileReader();
|
||||
reader.onload = () => {
|
||||
@@ -1221,6 +1223,8 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
this.info['wechatdata'] = res.data
|
||||
this.$message.success("上传成功!!!");
|
||||
|
||||
}).catch(()=>{
|
||||
this.loading.close();
|
||||
})
|
||||
},
|
||||
|
||||
@@ -1230,6 +1234,7 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
this.selectedFiles = files
|
||||
this.mediaUploadIndex = 0
|
||||
this.combingMedia(type)
|
||||
event.target.value = '' // 去除值 使用户可以选中同一个
|
||||
},
|
||||
|
||||
// 梳理媒体的 格式
|
||||
@@ -1281,8 +1286,9 @@ console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||
formData.append('files', target); // 文件数据
|
||||
formData.append('name', target.name); // 文件名
|
||||
formData.append('type', type); // 文件名
|
||||
|
||||
this.$axios.post('/tenement/pc/api/publish/upload', formData).then(res => {
|
||||
formData.append('data', this.uploadData); // 文件名
|
||||
// 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']
|
||||
|
||||
if (res.code != 200) {
|
||||
|
||||
Reference in New Issue
Block a user