本次修改ui完成
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user