样式问题

This commit is contained in:
weicw
2023-09-23 20:43:33 +08:00
parent 4cec8b47d8
commit 9510d3534b
3 changed files with 24 additions and 9 deletions

View File

@@ -127,7 +127,9 @@
loadMore: true,
status: '加载更多',
page: 1,
where: {},
where: {
status: 0
},
dict: null,
cityList: [],
// 控制onShow事件是否刷新订单列表

View File

@@ -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()
},

View File

@@ -93,8 +93,8 @@
</view>
<!-- 办公室配套 -->
<u-gap></u-gap>
<view class="house-card">
<u-gap v-if="form.supporting"></u-gap>
<view v-if="form.supporting" class="house-card">
<view class="title">
办公室配套
</view>
@@ -155,7 +155,7 @@
<view class="item" @click="$push('sub_pages/checkout/checkout?id=' + form.houseId)">
<u-button icon="map" type="error" text="预约看房"></u-button>
</view>
<view class="item" @click="onCall(form.phone)">
<view class="item" @click="onCall()">
<u-button icon="phone" type="primary" text="电话咨询"></u-button>
</view>
</view>
@@ -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
})
}