样式问题
This commit is contained in:
@@ -127,7 +127,9 @@
|
|||||||
loadMore: true,
|
loadMore: true,
|
||||||
status: '加载更多',
|
status: '加载更多',
|
||||||
page: 1,
|
page: 1,
|
||||||
where: {},
|
where: {
|
||||||
|
status: 0
|
||||||
|
},
|
||||||
dict: null,
|
dict: null,
|
||||||
cityList: [],
|
cityList: [],
|
||||||
// 控制onShow事件是否刷新订单列表
|
// 控制onShow事件是否刷新订单列表
|
||||||
|
|||||||
@@ -126,7 +126,8 @@
|
|||||||
status: '加载更多',
|
status: '加载更多',
|
||||||
page: 1,
|
page: 1,
|
||||||
where: {
|
where: {
|
||||||
recommend: 1
|
recommend: 1,
|
||||||
|
status: 0
|
||||||
},
|
},
|
||||||
region: [],
|
region: [],
|
||||||
// 控制onShow事件是否刷新订单列表
|
// 控制onShow事件是否刷新订单列表
|
||||||
@@ -223,9 +224,11 @@
|
|||||||
this.where = {}
|
this.where = {}
|
||||||
if(index == 0){
|
if(index == 0){
|
||||||
this.where.recommend = 1
|
this.where.recommend = 1
|
||||||
|
this.where.status = 0
|
||||||
}
|
}
|
||||||
if(index == 1){
|
if(index == 1){
|
||||||
this.where.mustSee = 1
|
this.where.mustSee = 1
|
||||||
|
this.where.status = 0
|
||||||
}
|
}
|
||||||
this.onSearch()
|
this.onSearch()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -93,8 +93,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 办公室配套 -->
|
<!-- 办公室配套 -->
|
||||||
<u-gap></u-gap>
|
<u-gap v-if="form.supporting"></u-gap>
|
||||||
<view class="house-card">
|
<view v-if="form.supporting" class="house-card">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
办公室配套
|
办公室配套
|
||||||
</view>
|
</view>
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
<view class="item" @click="$push('sub_pages/checkout/checkout?id=' + form.houseId)">
|
<view class="item" @click="$push('sub_pages/checkout/checkout?id=' + form.houseId)">
|
||||||
<u-button icon="map" type="error" text="预约看房"></u-button>
|
<u-button icon="map" type="error" text="预约看房"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @click="onCall(form.phone)">
|
<view class="item" @click="onCall()">
|
||||||
<u-button icon="phone" type="primary" text="电话咨询"></u-button>
|
<u-button icon="phone" type="primary" text="电话咨询"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -167,6 +167,7 @@
|
|||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import storage from '@/utils/storage'
|
import storage from '@/utils/storage'
|
||||||
import * as HouseInfoApi from '@/api/house-info.js'
|
import * as HouseInfoApi from '@/api/house-info.js'
|
||||||
|
import * as DictApi from '@/api/dict.js'
|
||||||
import {
|
import {
|
||||||
getAgentUser,
|
getAgentUser,
|
||||||
getUser
|
getUser
|
||||||
@@ -310,7 +311,8 @@
|
|||||||
iconPath: 'https://oss.wsdns.cn/20230803/49fe9c001370488caf29c3decb34f6c7.png?x-oss-process=image/resize,w_750/quality,Q_90'
|
iconPath: 'https://oss.wsdns.cn/20230803/49fe9c001370488caf29c3decb34f6c7.png?x-oss-process=image/resize,w_750/quality,Q_90'
|
||||||
}],
|
}],
|
||||||
agentUser: {},
|
agentUser: {},
|
||||||
isManager: false
|
isManager: false,
|
||||||
|
phone: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -322,12 +324,20 @@
|
|||||||
getAgentUser(options.user_id).then(res => {
|
getAgentUser(options.user_id).then(res => {
|
||||||
this.agentUser = res.data
|
this.agentUser = res.data
|
||||||
})
|
})
|
||||||
|
}else {
|
||||||
|
DictApi.getDictionaryOptions({
|
||||||
|
dictCode: 'service'
|
||||||
|
}).then(res => {
|
||||||
|
this.phone = res.data[0].dictDataCode
|
||||||
|
})
|
||||||
}
|
}
|
||||||
getUser().then(res=>{
|
getUser().then(res=>{
|
||||||
this.isManager = res.data.gradeId == 16
|
this.isManager = res.data.gradeId == 16
|
||||||
}).catch((err)=>{
|
}).catch((err)=>{
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
onBackPress() {},
|
onBackPress() {},
|
||||||
@@ -376,14 +386,14 @@
|
|||||||
app.form.liked = res.data
|
app.form.liked = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onCall(phone) {
|
onCall() {
|
||||||
if (this.agentUser && this.agentUser.phone) {
|
if (this.agentUser && this.agentUser.phone) {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: this.agentUser.phone
|
phoneNumber: this.agentUser.phone
|
||||||
})
|
})
|
||||||
}else if(phone) {
|
}else if(this.phone) {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: phone
|
phoneNumber: this.phone
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user