| | |
| | | <text>{{item.distanceValue}}km</text> |
| | | </view> |
| | | </view> |
| | | <view class="info-phone" @click="toCall(item.phone)">电话:{{ item.phone}}</view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | |
| | | <text>{{item.distanceValue}}km</text> |
| | | </view> |
| | | </view> |
| | | <view class="info-phone" @click="toCall(item.phone)">电话:{{ item.phone}}</view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | |
| | | scale:18 |
| | | }) |
| | | } |
| | | function toCall(phone){ |
| | | // #ifdef MP-WEIXIN |
| | | wx.makePhoneCall({ |
| | | phoneNumber: phone, |
| | | success: function() { |
| | | console.log("拨打电话成功!") |
| | | }, |
| | | fail: function() { |
| | | console.log("拨打电话失败!") |
| | | } |
| | | }) |
| | | // #endif |
| | | } |
| | | onMounted(async() =>{ |
| | | userLocation.value = JSON.parse(uni.getStorageSync('userLocation')) |
| | | await getSiteList() |
| | |
| | | padding:0 32rpx; |
| | | box-sizing: border-box; |
| | | .item{ |
| | | height:200rpx; |
| | | height:230rpx; |
| | | width:100%; |
| | | background-color: #FFFFFF; |
| | | border-radius: 24rpx; |
| | | padding:0 20rpx; |
| | | padding:36rpx 20rpx; |
| | | margin-bottom:20rpx; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | align-items:center; |
| | | .item-img{ |
| | | image{ |
| | | width:130rpx; |
| | | height: 130rpx; |
| | | width:140rpx; |
| | | height: 140rpx; |
| | | } |
| | | } |
| | | .item-info{ |
| | | height:100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-left:20rpx; |
| | | justify-content: space-between; |
| | | overflow: hidden; |
| | | .info-name{ |
| | | color:#222c35; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | .info-phone{ |
| | | font-size:26rpx; |
| | | color: #778bce; |
| | | } |
| | | } |
| | | } |
| | | } |