Browse Source

调试页面

master
corala 2 years ago
parent
commit
f3acd0e41b
7 changed files with 40 additions and 30 deletions
  1. +1
    -1
      .env.production
  2. +6
    -6
      src/common/http.interceptor.js
  3. +16
    -7
      src/pages/otherPage/jjrent.vue
  4. +7
    -8
      src/pages/otherPage/jjrentVisit.vue
  5. +2
    -2
      src/pages/otherPage/rent.vue
  6. +5
    -3
      src/pages/tabs/index.vue
  7. +3
    -3
      src/pages/tabs/login.vue

+ 1
- 1
.env.production View File

@@ -1,3 +1,3 @@
VUE_APP_MODE=production
VUE_APP_SERVER=https://xingao.quhouse.com
VUE_APP_SERVER=https://erpx.2weisou.com/sjjy
url1=https://chh.quhouse.com

+ 6
- 6
src/common/http.interceptor.js View File

@@ -39,12 +39,12 @@ const install = (Vue, vm) => {
Vue.prototype.$u.http.interceptor.response = (res) => {
if (res.data.ErrNo == '0000') {
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({
url: '/pages/tabs/login'
});


+ 16
- 7
src/pages/otherPage/jjrent.vue View File

@@ -8,7 +8,7 @@
<view class="list-box">
<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="house-name u-line-1">{{item.address}}</view>
<view class="type">
@@ -24,7 +24,7 @@
</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>
</template>
<script>
@@ -46,11 +46,14 @@
pageNo: 1,
pageSize: 10,
loadDone: false,
isTop: 0
};
},
onLoad(options) {
},
onShow() {
this.loadDone = false;
this.pageNo = 1
this.getList()
},
created(){
@@ -60,10 +63,11 @@
},
methods: {
topfunction(item){
this.currentId = item.mediacyId
this.isTop = item.isTop
this.showModal = true
this.currentId = item.mediacyId
this.isTop = item.isTop
},
console.log(item.isTop)
},
// 置顶接口
confirmFun(){
if(this.isTop ==1){
@@ -124,8 +128,14 @@
ownerMobile:this.keyword,
}
this.$u.api.intermediary({body:params}).then((res)=>{
console.log(res)
// console.log(res)
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){
this.listData = res.result
}else{
@@ -212,7 +222,6 @@
line-height: 44rpx;
background: #FFFFFF;
border-radius: 8rpx;
// padding: 0 18rpx;
font-size: 26rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;


+ 7
- 8
src/pages/otherPage/jjrentVisit.vue View File

@@ -48,18 +48,17 @@
methods: {
upload(lists, name){
console.log(lists)
console.log(name)
},
submit() {
let files = this.$refs.uUpload.lists;
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==''){
uni.showToast({
title: '请输入地址',


+ 2
- 2
src/pages/otherPage/rent.vue View File

@@ -119,7 +119,7 @@
created(){
this.getList()
this.getbaseData()
this.getRoomType()
// this.getRoomType()
},
onReachBottom() {
this.getList();
@@ -130,7 +130,7 @@
this.$u.api.region({body:{}}).then((res)=>{
// console.log(res)
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.houseTypeList = this.houseTypeList.concat(res.result.houseType)
this.addressListRight = this.addressList[0].children


+ 5
- 3
src/pages/tabs/index.vue View File

@@ -2,7 +2,7 @@
<view class="container">
<view class="top-tabs">
<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 class="tab" @click="topage('otherPage/jjrent')">
@@ -112,7 +112,9 @@
},
onShow() {
this.getGonggao()
this.current = 0
this.current1 = 0
this.getGonggao()
this.getRanking('agentRanking') // 经纪人排名
this.getcompanyReport(0)
},
@@ -135,7 +137,7 @@
getcompanyReport(type){
// 今日:0,本周:1,本月:2
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[1].num = res.result.agent||0
this.tongjiList[2].num = res.result.see||0


+ 3
- 3
src/pages/tabs/login.vue View File

@@ -50,9 +50,9 @@
export default {
data() {
return {
account: "zhangzj", //
code: "112233",
password: "123456",
account: "", //
code: "",
password: "",
text: "获取验证码",
timer: null,
isfinished: true,


Loading…
Cancel
Save