地图页

This commit is contained in:
何嘉峣 2022-10-21 10:22:56 +08:00
parent 15f610e9ee
commit 33fa0e8f8b
5 changed files with 10 additions and 11 deletions

View File

@ -5,9 +5,6 @@
"pages/list/list", "pages/list/list",
"pages/item/item", "pages/item/item",
"pages/index/index" "pages/index/index"
], ],
"plugins": { "plugins": {
"routePlan": { "routePlan": {

View File

@ -31,6 +31,10 @@ Page({
// canIUseGetUserProfile: true // canIUseGetUserProfile: true
// }) // })
} }
console.log(options,'options');
this.setData({
url: options.weburl //获取H5页面传递过来的weburl
});
}, },
getUserProfile(e) { getUserProfile(e) {
// 推荐使用wx.getUserProfile获取用户信息开发者每次通过该接口获取用户个人信息均需用户确认开发者妥善保管用户快速填写的头像昵称避免重复弹窗 // 推荐使用wx.getUserProfile获取用户信息开发者每次通过该接口获取用户个人信息均需用户确认开发者妥善保管用户快速填写的头像昵称避免重复弹窗

View File

@ -52,11 +52,9 @@ Page({
}, },
// 跳转列表 // 跳转列表
handleRouter(){ handleRouter(){
console.log('aaaa'); wx.navigateTo({
wx.redirectTo({
url:'/pages/list/list' url:'/pages/list/list'
}) })
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载

View File

@ -24,17 +24,17 @@
<van-icon name="arrow" style="font-size:14px;color:rgb(105, 131, 255);margin: 8rpx 0 0 5rpx;"/> <van-icon name="arrow" style="font-size:14px;color:rgb(105, 131, 255);margin: 8rpx 0 0 5rpx;"/>
</view> </view>
</view> </view>
<view class="middle" style="font-size:12px;margin: 18rpx 0;"> <view class="middle" style="font-size:13px;margin: 18rpx 0; width: 100%;overflow: hidden;">
(14+9*20)+(20+2*30+20)+(6*20+14) <span style="word-break: keep-all;white-space:nowrap; width: 100%; ">(14+9*20)+(20+2*30+20)+(6*20+14)</span>
</view> </view>
<view class="bottom"> <view class="bottom">
<span class="btn" style="width: 70rpx;">g15</span> <span class="btn" style="width: 70rpx;">g15</span>
<span class="btn" style="width: 120rpx;">kd+212</span> <span class="btn" style="width: 120rpx;">kd+212</span>
<span class="btn" style="width: 150rpx;">预制空心板</span> <span class="btn" style="width: 160rpx;">预制空心板</span>
</view> </view>
</view> </view>
</view> </view>
<view style="font-size: 12.5px;line-height: 20px;margin-top: 10rpx;"> <view style="font-size: 12.5px;line-height: 18px;margin-top: 20rpx;">
最近一天桥梁结构监测统计信息:过车总量<span style="color: rgb(105, 131, 255);">12542</span>; 49吨以上车辆总数<span style="color: rgb(105, 131, 255);">289</span>; 最近一天桥梁结构监测统计信息:过车总量<span style="color: rgb(105, 131, 255);">12542</span>; 49吨以上车辆总数<span style="color: rgb(105, 131, 255);">289</span>;
100吨以上车辆总数<span style="color: rgb(105, 131, 255);">214</span>;车辆效应与设计值最大比值<span style="color: rgb(105, 131, 255);">24/100</span>;监测预警数量<span>12</span>条; 100吨以上车辆总数<span style="color: rgb(105, 131, 255);">214</span>;车辆效应与设计值最大比值<span style="color: rgb(105, 131, 255);">24/100</span>;监测预警数量<span>12</span>条;
最大预警级别:红色预警。 最大预警级别:红色预警。

View File

@ -51,7 +51,7 @@
justify-content: space-between; justify-content: space-between;
} }
.mapContent .info .top .image{ .mapContent .info .top .image{
width: 260rpx; width: 280rpx;
height: 100%; height: 100%;
background-color: blue; background-color: blue;
} }