|
|
@ -20,12 +20,13 @@ |
|
|
|
</view> |
|
|
|
<view class="view"></view> |
|
|
|
|
|
|
|
<image class="top-img" src="https://supervise.yxtsoft.com/img/newApp/phone.png" mode="aspectFit"></image> |
|
|
|
<image class="top-img" src="https://supervise.yxtsoft.com/img/newApp/phone.png" mode="aspectFit" @click="makeCall"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="top" style="margin-top: 10px;"> |
|
|
|
<image style="width: 20px;height: 40px;" src="https://supervise.yxtsoft.com/img/newApp/location.png" mode="aspectFit"></image> |
|
|
|
<view class="top" style="margin-top: 10px;" @click="getLat"> |
|
|
|
<image style="width: 20px;height: 40px;" src="https://supervise.yxtsoft.com/img/newApp/location.png" |
|
|
|
mode="aspectFit"></image> |
|
|
|
<view style="display: flex; |
|
|
|
flex-direction: column;margin-left: 10px;"> |
|
|
|
<text class="top-name-text3">{{info.address}}</text> |
|
|
@ -41,20 +42,20 @@ |
|
|
|
<view class="bottom-title-view"></view> |
|
|
|
<text class="bottom-title-text">基础信息</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="bottom-item"> |
|
|
|
|
|
|
|
<view class="bottom-item-lay"> |
|
|
|
<view class="bottom-item-lay"> |
|
|
|
<text class="bottom-item-text1">仓库简称</text> |
|
|
|
<text class="bottom-item-text2">{{info.simpleName}}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="bottom-item-lay"> |
|
|
|
<view class="bottom-item-lay"> |
|
|
|
<text class="bottom-item-text1">房源</text> |
|
|
|
<text class="bottom-item-text2">{{info.housingResource}}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="bottom-item-lay" style="border-bottom: none;"> |
|
|
|
<view class="bottom-item-lay" style="border-bottom: none;"> |
|
|
|
<text class="bottom-item-text1">高度</text> |
|
|
|
<text class="bottom-item-text2">{{info.storeyHeight}}</text> |
|
|
|
</view> |
|
|
@ -71,25 +72,25 @@ |
|
|
|
</view> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="bottom" style="margin-top: 10px;padding-bottom: 50px;"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="bottom-title"> |
|
|
|
<view class="bottom-title-view"></view> |
|
|
|
<text class="bottom-title-text">详情信息</text> |
|
|
|
</view> |
|
|
|
<view class="bottom-item"> |
|
|
|
<view class="bottom-item-lay"> |
|
|
|
<view class="bottom-item-lay"> |
|
|
|
<text class="bottom-item-text1">库房面积</text> |
|
|
|
<text class="bottom-item-text2">{{info.acreage}}㎡</text> |
|
|
|
</view> |
|
|
|
<view class="bottom-item-lay" style="border-bottom: none;"> |
|
|
|
<view class="bottom-item-lay" style="border-bottom: none;"> |
|
|
|
<text class="bottom-item-text1">月租金</text> |
|
|
|
<text class="bottom-item-text2">{{info.monthlyPrice}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -139,25 +140,60 @@ |
|
|
|
// if (resp.success) { |
|
|
|
console.log('1111', resp) |
|
|
|
this.info = resp |
|
|
|
this.info.swipers =[] |
|
|
|
|
|
|
|
if(resp.pics.length==0){ |
|
|
|
|
|
|
|
this.info.swipers = [] |
|
|
|
|
|
|
|
if (resp.pics.length == 0) { |
|
|
|
|
|
|
|
this.info.swipers.push( |
|
|
|
resp.picUrl) |
|
|
|
}else{ |
|
|
|
|
|
|
|
for (var i = 0; i <resp.pics.length; i++) { |
|
|
|
resp.picUrl) |
|
|
|
} else { |
|
|
|
|
|
|
|
for (var i = 0; i < resp.pics.length; i++) { |
|
|
|
var url = resp.pics[i].fileUrl |
|
|
|
this.info.swipers.push(url) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(e => { |
|
|
|
console.log('eeeee', e) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getLat() { |
|
|
|
|
|
|
|
|
|
|
|
console.log('lon', this.info.lon) |
|
|
|
console.log('lat', this.info.lat) |
|
|
|
|
|
|
|
if (this.info.lon == '' || this.info.lon == null || this.info.lat == '' || this.info.lat == null) { |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: '当前仓库位置错误,请核实后在进行导航操作。', |
|
|
|
duration: 5000, |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
var longitude = parseFloat(this.info.lon) |
|
|
|
var latitude = parseFloat(this.info.lat) |
|
|
|
var name = this.info.name |
|
|
|
var address = this.info.address |
|
|
|
|
|
|
|
wx.openLocation({ |
|
|
|
latitude: latitude, |
|
|
|
longitude: longitude, |
|
|
|
scale: 15, |
|
|
|
name: name, |
|
|
|
address: address |
|
|
|
}) |
|
|
|
}, |
|
|
|
makeCall(){ |
|
|
|
wx.makePhoneCall({ |
|
|
|
//仅为示例,并非真实的电话号码 |
|
|
|
phoneNumber: this.info.linkerPhone |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -278,30 +314,30 @@ |
|
|
|
padding-left: 30px; |
|
|
|
padding-right: 30px; |
|
|
|
flex-direction: column; |
|
|
|
|
|
|
|
.bottom-item-lay{ |
|
|
|
|
|
|
|
.bottom-item-lay { |
|
|
|
margin-top: 10px; |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
padding: 8px 12px; |
|
|
|
border-bottom: 1px solid #eee; |
|
|
|
|
|
|
|
|
|
|
|
.bottom-item-text1 { |
|
|
|
flex: 1; |
|
|
|
font-size: 14px; |
|
|
|
color: #191919; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.bottom-item-text2 { |
|
|
|
|
|
|
|
|
|
|
|
flex: 1; |
|
|
|
font-size: 14px; |
|
|
|
color: #717171; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|