@@ -1,3 +1,3 @@ | |||||
VUE_APP_MODE=production | VUE_APP_MODE=production | ||||
VUE_APP_SERVER=https://xingao.quhouse.com | |||||
VUE_APP_SERVER=https://erpx.2weisou.com/sjjy | |||||
url1=https://chh.quhouse.com | url1=https://chh.quhouse.com |
@@ -39,12 +39,12 @@ const install = (Vue, vm) => { | |||||
Vue.prototype.$u.http.interceptor.response = (res) => { | Vue.prototype.$u.http.interceptor.response = (res) => { | ||||
if (res.data.ErrNo == '0000') { | if (res.data.ErrNo == '0000') { | ||||
return res.data; | return res.data; | ||||
} else if (res.data.ErrNo == '0005') { | |||||
// uni.showToast({ | |||||
// title: res.data.ErrMsg || '未登录', | |||||
// icon: "none", | |||||
// duration: 3000 | |||||
// }) | |||||
} else if (res.data.ErrNo == '0005'|| res.data.ErrNo == '0002') { | |||||
uni.showToast({ | |||||
title: res.data.ErrMsg || '未登录', | |||||
icon: "none", | |||||
duration: 3000 | |||||
}) | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/tabs/login' | url: '/pages/tabs/login' | ||||
}); | }); | ||||
@@ -8,7 +8,7 @@ | |||||
<view class="list-box"> | <view class="list-box"> | ||||
<view class="list-item" v-for="(item,index) in listData" :key="index"> | <view class="list-item" v-for="(item,index) in listData" :key="index"> | ||||
<image @click="topage(item)" class="house-img" :src="item.pictrues[0].pictureUrl||'/static/kehu/pic1.png'" mode="" /> | |||||
<image @click="topage(item)" class="house-img" :src="item.pic" mode="" /> | |||||
<view class="item-info"> | <view class="item-info"> | ||||
<view class="house-name u-line-1">{{item.address}}</view> | <view class="house-name u-line-1">{{item.address}}</view> | ||||
<view class="type"> | <view class="type"> | ||||
@@ -24,7 +24,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<u-modal v-model="showModal" :show-cancel-button="true" confirm-color="#FF6D25" @confirm="confirmFun" title="确认操作" content="您确认置顶?"></u-modal> | |||||
<u-modal v-model="showModal" :show-cancel-button="true" confirm-color="#FF6D25" @confirm="confirmFun" title="确认操作" :content="'您确认'+(isTop==0?'置顶吗?':'取消置顶吗?')"></u-modal> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
@@ -46,11 +46,14 @@ | |||||
pageNo: 1, | pageNo: 1, | ||||
pageSize: 10, | pageSize: 10, | ||||
loadDone: false, | loadDone: false, | ||||
isTop: 0 | |||||
}; | }; | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
this.loadDone = false; | |||||
this.pageNo = 1 | |||||
this.getList() | this.getList() | ||||
}, | }, | ||||
created(){ | created(){ | ||||
@@ -60,10 +63,11 @@ | |||||
}, | }, | ||||
methods: { | methods: { | ||||
topfunction(item){ | topfunction(item){ | ||||
this.currentId = item.mediacyId | |||||
this.isTop = item.isTop | |||||
this.showModal = true | this.showModal = true | ||||
this.currentId = item.mediacyId | |||||
this.isTop = item.isTop | |||||
}, | |||||
console.log(item.isTop) | |||||
}, | |||||
// 置顶接口 | // 置顶接口 | ||||
confirmFun(){ | confirmFun(){ | ||||
if(this.isTop ==1){ | if(this.isTop ==1){ | ||||
@@ -124,8 +128,14 @@ | |||||
ownerMobile:this.keyword, | ownerMobile:this.keyword, | ||||
} | } | ||||
this.$u.api.intermediary({body:params}).then((res)=>{ | this.$u.api.intermediary({body:params}).then((res)=>{ | ||||
console.log(res) | |||||
// console.log(res) | |||||
if(res.result&&res.result.length){ | if(res.result&&res.result.length){ | ||||
res.result.forEach(item=>{ | |||||
if(item.pictrues&&item.pictrues.length){ | |||||
let obj = item.pictrues[item.pictrues.length-1] | |||||
item.pic = obj.pictureUrl | |||||
} | |||||
}) | |||||
if(this.pageNo==1){ | if(this.pageNo==1){ | ||||
this.listData = res.result | this.listData = res.result | ||||
}else{ | }else{ | ||||
@@ -212,7 +222,6 @@ | |||||
line-height: 44rpx; | line-height: 44rpx; | ||||
background: #FFFFFF; | background: #FFFFFF; | ||||
border-radius: 8rpx; | border-radius: 8rpx; | ||||
// padding: 0 18rpx; | |||||
font-size: 26rpx; | font-size: 26rpx; | ||||
font-family: PingFangSC-Regular, PingFang SC; | font-family: PingFangSC-Regular, PingFang SC; | ||||
font-weight: 400; | font-weight: 400; | ||||
@@ -48,18 +48,17 @@ | |||||
methods: { | methods: { | ||||
upload(lists, name){ | upload(lists, name){ | ||||
console.log(lists) | console.log(lists) | ||||
console.log(name) | |||||
}, | }, | ||||
submit() { | submit() { | ||||
let files = this.$refs.uUpload.lists; | let files = this.$refs.uUpload.lists; | ||||
this.fileList = files.length&&files.map(item=>{ | this.fileList = files.length&&files.map(item=>{ | ||||
return { | |||||
url: item.url, | |||||
webUrl: item.url | |||||
} | |||||
}) | |||||
console.log(this.fileList) | |||||
return { | |||||
url: item.response.result.FilePath, | |||||
webUrl: item.response.result.FilePath, | |||||
} | |||||
}) | |||||
console.log(files) | |||||
console.log(this.fileList ) | |||||
if(this.form.address==''){ | if(this.form.address==''){ | ||||
uni.showToast({ | uni.showToast({ | ||||
title: '请输入地址', | title: '请输入地址', | ||||
@@ -119,7 +119,7 @@ | |||||
created(){ | created(){ | ||||
this.getList() | this.getList() | ||||
this.getbaseData() | this.getbaseData() | ||||
this.getRoomType() | |||||
// this.getRoomType() | |||||
}, | }, | ||||
onReachBottom() { | onReachBottom() { | ||||
this.getList(); | this.getList(); | ||||
@@ -130,7 +130,7 @@ | |||||
this.$u.api.region({body:{}}).then((res)=>{ | this.$u.api.region({body:{}}).then((res)=>{ | ||||
// console.log(res) | // console.log(res) | ||||
this.addressList = this.addressList.concat(res.result.area) | this.addressList = this.addressList.concat(res.result.area) | ||||
// this.buildTypeList = this.buildTypeList.concat(res.result.buildType) | |||||
this.buildTypeList = this.buildTypeList.concat(res.result.buildType) | |||||
this.priceList = this.priceList.concat(res.result.rentMoney) | this.priceList = this.priceList.concat(res.result.rentMoney) | ||||
this.houseTypeList = this.houseTypeList.concat(res.result.houseType) | this.houseTypeList = this.houseTypeList.concat(res.result.houseType) | ||||
this.addressListRight = this.addressList[0].children | this.addressListRight = this.addressList[0].children | ||||
@@ -2,7 +2,7 @@ | |||||
<view class="container"> | <view class="container"> | ||||
<view class="top-tabs"> | <view class="top-tabs"> | ||||
<view class="tab" @click="topage('otherPage/rent')"> | <view class="tab" @click="topage('otherPage/rent')"> | ||||
<image class="img" src="/static/index/czzq.png" mode="" /> | |||||
<image class="img" src="/static/index/czzq.png" mode="" /> | |||||
出租专区 | 出租专区 | ||||
</view> | </view> | ||||
<view class="tab" @click="topage('otherPage/jjrent')"> | <view class="tab" @click="topage('otherPage/jjrent')"> | ||||
@@ -112,7 +112,9 @@ | |||||
}, | }, | ||||
onShow() { | onShow() { | ||||
this.getGonggao() | |||||
this.current = 0 | |||||
this.current1 = 0 | |||||
this.getGonggao() | |||||
this.getRanking('agentRanking') // 经纪人排名 | this.getRanking('agentRanking') // 经纪人排名 | ||||
this.getcompanyReport(0) | this.getcompanyReport(0) | ||||
}, | }, | ||||
@@ -135,7 +137,7 @@ | |||||
getcompanyReport(type){ | getcompanyReport(type){ | ||||
// 今日:0,本周:1,本月:2 | // 今日:0,本周:1,本月:2 | ||||
this.$u.api.companyReport({body:{type: type}}).then((res)=>{ | this.$u.api.companyReport({body:{type: type}}).then((res)=>{ | ||||
console.log(res) | |||||
// console.log(res) | |||||
this.tongjiList[0].num = res.result.deal||0 | this.tongjiList[0].num = res.result.deal||0 | ||||
this.tongjiList[1].num = res.result.agent||0 | this.tongjiList[1].num = res.result.agent||0 | ||||
this.tongjiList[2].num = res.result.see||0 | this.tongjiList[2].num = res.result.see||0 | ||||
@@ -50,9 +50,9 @@ | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
account: "zhangzj", // | |||||
code: "112233", | |||||
password: "123456", | |||||
account: "", // | |||||
code: "", | |||||
password: "", | |||||
text: "获取验证码", | text: "获取验证码", | ||||
timer: null, | timer: null, | ||||
isfinished: true, | isfinished: true, | ||||