样式问题
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user