|
|
@@ -26,28 +26,28 @@
|
|
|
<view class="display-between-column items-center width-30 margin-bottom-20">
|
|
|
<view class="display-flex-start">
|
|
|
<image src="/static/park/detail/mu.png" mode="aspectFill" class="park-footer-img"></image>
|
|
|
- {{detailObj.cover_area || '-'}}<text style="font-size: 12rpx;">万亩</text>
|
|
|
+ {{detailObj.cover_area || '-'}}<text style="font-size: 16rpx;">亩</text>
|
|
|
</view>
|
|
|
<view class="park-footer-font">占地亩数</view>
|
|
|
</view>
|
|
|
<view class="display-between-column items-center width-30 margin-bottom-20">
|
|
|
<view class="display-flex-start">
|
|
|
<image src="/static/park/detail/rent.png" mode="aspectFill" class="park-footer-img"></image>
|
|
|
- {{detailObj.price || '-'}}<text style="font-size: 12rpx;">元/㎡/月</text>
|
|
|
+ {{detailObj.price || '-'}}<text style="font-size: 16rpx;">元/㎡/月</text>
|
|
|
</view>
|
|
|
<view class="park-footer-font">租赁价格</view>
|
|
|
</view>
|
|
|
<view class="display-between-column items-center width-30 margin-bottom-20">
|
|
|
<view class="display-flex-start">
|
|
|
<image src="/static/park/detail/area.png" mode="aspectFill" class="park-footer-img"></image>
|
|
|
- {{detailObj.building_area || '-'}}<text style="font-size: 12rpx;">万㎡</text>
|
|
|
+ {{detailObj.building_area || '-'}}<text style="font-size: 16rpx;">万㎡</text>
|
|
|
</view>
|
|
|
<view class="park-footer-font">建设面积</view>
|
|
|
</view>
|
|
|
<view class="display-between-column items-center width-30 margin-bottom-20">
|
|
|
<view class="display-flex-start">
|
|
|
<image src="/static/park/detail/area1.png" mode="aspectFill" class="park-footer-img"></image>
|
|
|
- {{detailObj.area_left_industry || '-'}}<text style="font-size: 12rpx;">万㎡</text>
|
|
|
+ {{detailObj.area_left_industry || '-'}}<text style="font-size: 16rpx;">万㎡</text>
|
|
|
</view>
|
|
|
<view class="park-footer-font">出租面积</view>
|
|
|
</view>
|
|
|
@@ -81,27 +81,27 @@
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center margin-bottom-20">
|
|
|
<view class="width-30 margin-left-60 color-cf">物业费</view>
|
|
|
- <view class="width-70">{{detailObj.service_price || '-'}}<text style="font-size: 16rpx;">元/㎡/月</text></view>
|
|
|
+ <view class="width-70">{{detailObj.service_price || '-'}}<text style="font-size: 20rpx;">元/㎡/月</text></view>
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center margin-bottom-20">
|
|
|
<view class="width-30 margin-left-60 color-cf">电费</view>
|
|
|
- <view class="width-70">{{detailObj.power_price || '-'}}<text style="font-size: 16rpx;">KW·h</text></view>
|
|
|
+ <view class="width-70">{{detailObj.power_price || '-'}}<text style="font-size:20rpx;">KW·h</text></view>
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center margin-bottom-20">
|
|
|
<view class="width-30 margin-left-60 color-cf">水费</view>
|
|
|
- <view class="width-70">{{detailObj.water_price || '-'}}<text style="font-size: 16rpx;">m³</text></view>
|
|
|
+ <view class="width-70">{{detailObj.water_price || '-'}}<text style="font-size: 20rpx;">元/m³</text></view>
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center margin-bottom-20">
|
|
|
<view class="width-30 margin-left-60 color-cf">一层楼高</view>
|
|
|
- <view class="width-70">{{detailObj.max_height || '-'}}<text style="font-size: 16rpx;">m</text></view>
|
|
|
+ <view class="width-70">{{detailObj.max_height || '-'}}<text style="font-size: 20rpx;">m</text></view>
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center margin-bottom-20">
|
|
|
<view class="width-30 margin-left-60 color-cf">最大承重</view>
|
|
|
- <view class="width-70">{{detailObj.max_weight || '-'}}<text style="font-size: 16rpx;">kg</text></view>
|
|
|
+ <view class="width-70">{{detailObj.max_weight || '-'}}<text style="font-size: 20rpx;">kg</text></view>
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center margin-bottom-20">
|
|
|
<view class="width-30 margin-left-60 color-cf">联系电话</view>
|
|
|
- <view class="width-70" @click="makeCall(detailObj.tel)" style="color: #007AFF;">{{detailObj.phone}}</view>
|
|
|
+ <view class="width-70" @click="makeCall(detailObj.phone)" style="color: #007AFF;">{{detailObj.phone}}</view>
|
|
|
</view>
|
|
|
<view class="display-flex-start items-center">
|
|
|
<view class="width-30 margin-left-60 color-cf">详细地址</view>
|
|
|
@@ -196,14 +196,21 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- console.log(option)
|
|
|
+ console.log(option)
|
|
|
// this.nowId = option.id;
|
|
|
this.getDetailInfo(option.id)
|
|
|
},
|
|
|
methods: {
|
|
|
makeCall(tel){
|
|
|
+ let telStr = tel;
|
|
|
+ if(telStr.indexOf(';') !== -1){
|
|
|
+ tel = telStr.split(';')
|
|
|
+ }else {
|
|
|
+ tel = telStr.split(';')
|
|
|
+ }
|
|
|
+ console.log(tel)
|
|
|
uni.makePhoneCall({
|
|
|
- phoneNumber:tel
|
|
|
+ phoneNumber:tel[1]
|
|
|
})
|
|
|
},
|
|
|
goTxMap(la,lo){
|
|
|
@@ -231,6 +238,17 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ showFacilities(room,restaurant,traffic){
|
|
|
+ if(room && restaurant){
|
|
|
+ this.detailObj.facilities = room + ',' + restaurant + ',' + traffic;
|
|
|
+ }else if (room && !restaurant){
|
|
|
+ this.detailObj.facilities = room + ',' + traffic;
|
|
|
+ } else if(!room && restaurant){
|
|
|
+ this.detailObj.facilities = restaurant + ',' + traffic;
|
|
|
+ }else if (!room && !restaurant){
|
|
|
+ this.detailObj.facilities = traffic;
|
|
|
+ }
|
|
|
+ },
|
|
|
getDetailInfo(parkId){
|
|
|
let md5Sign = md5("method="+'park'+"×tamp="+getApp().globalData.globalTimestamp+"&secret="+getApp().globalData.secret)
|
|
|
let url = getApp().globalData.shareUrl+'api/api.php'+'?method=park&source=park&action=info_by_id×tamp='+getApp().globalData.globalTimestamp +'&sign='+md5Sign
|
|
|
@@ -262,7 +280,7 @@
|
|
|
let room = this.detailObj.room == '1' ? '宿舍':'';
|
|
|
let restaurant = this.detailObj.restaurant == '1' ? '餐厅':'';
|
|
|
let traffic = this.trafficList[this.detailObj.traffic];
|
|
|
- this.detailObj.facilities = room + ',' + restaurant + ',' + traffic;
|
|
|
+ this.showFacilities(room,restaurant,traffic);
|
|
|
}else {
|
|
|
uni.showToast({
|
|
|
title:res.data.msg,
|
|
|
@@ -306,7 +324,7 @@
|
|
|
color: #8f8f94;
|
|
|
}
|
|
|
.header-title {
|
|
|
- font-size: 28rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
font-weight: 600;
|
|
|
line-height: 36rpx;
|
|
|
letter-spacing: 0.02em;
|
|
|
@@ -314,7 +332,7 @@
|
|
|
margin: 20rpx 0 25rpx 10rpx;
|
|
|
}
|
|
|
.header-content-box {
|
|
|
- font-size: 24rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
}
|
|
|
.header-detail-box {
|
|
|
width: 90%;
|
|
|
@@ -330,7 +348,7 @@
|
|
|
}
|
|
|
.park-footer-font {
|
|
|
color: #CFCFCF;
|
|
|
- font-size: 19rpx;
|
|
|
+ font-size: 22rpx;
|
|
|
margin-top: 10rpx;
|
|
|
}
|
|
|
.width-30 {
|
|
|
@@ -340,7 +358,7 @@
|
|
|
width: 70%;
|
|
|
}
|
|
|
.content-font {
|
|
|
- font-size: 20rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
}
|
|
|
.margin-left-60 {
|
|
|
margin-left: 60rpx;
|