diff --git a/pages/house/house.vue b/pages/house/house.vue
index de380b5..b3f76aa 100644
--- a/pages/house/house.vue
+++ b/pages/house/house.vue
@@ -127,7 +127,9 @@
loadMore: true,
status: '加载更多',
page: 1,
- where: {},
+ where: {
+ status: 0
+ },
dict: null,
cityList: [],
// 控制onShow事件是否刷新订单列表
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 229b887..31cdd7d 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -126,7 +126,8 @@
status: '加载更多',
page: 1,
where: {
- recommend: 1
+ recommend: 1,
+ status: 0
},
region: [],
// 控制onShow事件是否刷新订单列表
@@ -223,9 +224,11 @@
this.where = {}
if(index == 0){
this.where.recommend = 1
+ this.where.status = 0
}
if(index == 1){
this.where.mustSee = 1
+ this.where.status = 0
}
this.onSearch()
},
diff --git a/sub_pages/house/detail.vue b/sub_pages/house/detail.vue
index 14d8c32..3b90478 100644
--- a/sub_pages/house/detail.vue
+++ b/sub_pages/house/detail.vue
@@ -93,8 +93,8 @@
-
-
+
+
办公室配套
@@ -155,7 +155,7 @@
-
+
@@ -167,6 +167,7 @@
import store from '@/store'
import storage from '@/utils/storage'
import * as HouseInfoApi from '@/api/house-info.js'
+ import * as DictApi from '@/api/dict.js'
import {
getAgentUser,
getUser
@@ -310,7 +311,8 @@
iconPath: 'https://oss.wsdns.cn/20230803/49fe9c001370488caf29c3decb34f6c7.png?x-oss-process=image/resize,w_750/quality,Q_90'
}],
agentUser: {},
- isManager: false
+ isManager: false,
+ phone: ''
};
},
@@ -322,12 +324,20 @@
getAgentUser(options.user_id).then(res => {
this.agentUser = res.data
})
+ }else {
+ DictApi.getDictionaryOptions({
+ dictCode: 'service'
+ }).then(res => {
+ this.phone = res.data[0].dictDataCode
+ })
}
getUser().then(res=>{
this.isManager = res.data.gradeId == 16
}).catch((err)=>{
console.log(err);
})
+
+
},
onShow() {},
onBackPress() {},
@@ -376,14 +386,14 @@
app.form.liked = res.data
})
},
- onCall(phone) {
+ onCall() {
if (this.agentUser && this.agentUser.phone) {
uni.makePhoneCall({
phoneNumber: this.agentUser.phone
})
- }else if(phone) {
+ }else if(this.phone) {
uni.makePhoneCall({
- phoneNumber: phone
+ phoneNumber: this.phone
})
}