Liuyi
2024-10-21 15a55f79a84e5dab670d54a9dc0c6b9133a18441
pages/station/index.vue
@@ -23,6 +23,7 @@
                           <text>{{item.distanceValue}}km</text>
                        </view>
                     </view>
                     <view class="info-phone" @click="toCall(item.phone)">电话:{{ item.phone}}</view>
                  </view>
               </view>
            </block>
@@ -43,6 +44,7 @@
                           <text>{{item.distanceValue}}km</text>
                        </view>
                     </view>
                     <view class="info-phone" @click="toCall(item.phone)">电话:{{ item.phone}}</view>
                  </view>
               </view>
            </block>
@@ -95,6 +97,19 @@
         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()
@@ -143,26 +158,28 @@
            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;
                  }
@@ -190,6 +207,10 @@
                        }
                     }
                  }
               .info-phone{
                  font-size:26rpx;
                  color: #778bce;
               }
               }
            }
         }