本次修改ui完成

This commit is contained in:
lym
2026-03-18 20:11:05 +08:00
parent c076cf32b0
commit 31fda700cf
19 changed files with 128 additions and 46 deletions

View File

@@ -217,6 +217,7 @@ Page( {
var address = e.currentTarget.dataset.id
var lat = e.currentTarget.dataset.lat
var lon = e.currentTarget.dataset.lon
var phone = e.currentTarget.dataset.phone
wx.navigateTo({
url: "../map/index?lat=" + lon + "&lon=" + lat + "&address=" + address
})
@@ -230,6 +231,17 @@ Page( {
})
}
})
},
oncopy1:function(e) {
var phone = e.currentTarget.dataset.id
wx.setClipboardData({
data: phone,
success: function (res) {
wx.showToast({
title: "复制成功"
})
}
})
},onview:function(e) {
var id = e.currentTarget.dataset.id
wx.navigateTo({

View File

@@ -51,6 +51,14 @@
</view>
</view>
</view>
<view class="item_phone">
<view class="ub-f1">联系电话:{{item.phone || '-'}}</view>
<view class="ub ico" catchtap="inserver">
<view class="ico_box" bindtap="oncopy1" data-id="{{item.phone}}">
<image src="../../images/copy.png" />
</view>
</view>
</view>
</view>
</view>
<view class="ub business_item_bottom">

View File

@@ -128,8 +128,8 @@ swiper-item image {
}
.business_item .business_item_top .item_image {
width: 5em;
height: 5em;
width: 6.5em;
height: 6.5em;
margin-right: 0.6em;
border: 1px solid #f1f1f1;
}
@@ -197,6 +197,30 @@ swiper-item image {
height: 100%;
}
.business_item .business_item_top .item_info view.item_phone {
display: flex;
flex-direction: row;
margin-top: 0.5em;
font-size: 1em;
color: #939393;
width: 100%;
}
.business_item .business_item_top .item_info view.item_phone .ico {
width: 1.4em;
height: 1.4em;
}
.business_item .business_item_top .item_info view.item_phone .ico .ico_box {
width: 100%;
height: 100%;
}
.business_item .business_item_top .item_info view.item_phone .ico image {
width: 100%;
height: 100%;
}
.business_item .business_item_bottom {
margin-top: 0.6em;
padding-top: 0.6em;