本次修改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

@@ -24,7 +24,8 @@ Page( {
longitude:"",
distance:"",
address:"",
fwbody:""
fwbody:"",
phone:""
},
onLoad: function(options) {
@@ -101,6 +102,7 @@ Page( {
longitude:res.data.lon,
latitude:res.data.lat,
fwbody:res.data.fwbody,
phone:res.data.phone
})
if(res.data.productlist.length==0){
that.setData({
@@ -130,14 +132,25 @@ Page( {
url: "../map/index?lat=" + lon + "&lon=" + lat + "&address=" + address
})
},oncopy0:function(e) {
var address = that.data.address
wx.setClipboardData({
data: address,
success: function (res) {
wx.showToast({
title: "复制成功"
})
}
})
}
var address = that.data.address
wx.setClipboardData({
data: address,
success: function (res) {
wx.showToast({
title: "复制成功"
})
}
})
},
oncopy1:function(e) {
var phone = that.data.phone
wx.setClipboardData({
data: phone,
success: function (res) {
wx.showToast({
title: "复制成功"
})
}
})
}
})

View File

@@ -31,8 +31,16 @@
</view>
</view>
<view class="view_fwbody">
服务内容:<view id="fwbody_box">{{fwbody}}</view>
</view>
服务内容:<view id="fwbody_box">{{fwbody}}</view>
</view>
<view class="ub view_phone">
<view class="ub-f1">
联系电话:<span id="phone_box">{{phone || '-'}}</span>
</view>
<view class="ub ico" catchtap="inserver">
<image src="../../images/copy.png" bindtap="oncopy1" />
</view>
</view>
</view>
<view class="choice_box" wx-if='{{Products.length>0}}'>

View File

@@ -91,6 +91,23 @@ swiper-item image {
height: 100%;
}
.view_phone {
display: flex;
flex-direction: row;
width: 100%;
}
.view_phone .ico {
margin-top: 0.3em;
width: 1.4em;
height: 1.4em;
}
.view_phone .ico image {
width: 100%;
height: 100%;
}
.view_fwbody {
width: 100%;
}