巴林闲侠
2 years ago
19 changed files with 223 additions and 187 deletions
@ -0,0 +1,4 @@ |
|||||
|
ALTER TABLE "public"."patrol_record" |
||||
|
ADD COLUMN "project_id" int4; |
||||
|
|
||||
|
COMMENT ON COLUMN "public"."patrol_record"."project_id" IS '结构物id'; |
@ -0,0 +1,4 @@ |
|||||
|
ALTER TABLE "public"."patrol_record_issue_handle" |
||||
|
ADD COLUMN "cost" decimal(11,2); |
||||
|
|
||||
|
COMMENT ON COLUMN "public"."patrol_record_issue_handle"."cost" IS '成本'; |
After Width: | Height: | Size: 293 B |
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,66 @@ |
|||||
|
// package/pointsStatus/pointsStatus.js
|
||||
|
Page({ |
||||
|
|
||||
|
/** |
||||
|
* 页面的初始数据 |
||||
|
*/ |
||||
|
data: { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 生命周期函数--监听页面加载 |
||||
|
*/ |
||||
|
onLoad(options) { |
||||
|
console.log(options, 'options') |
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 生命周期函数--监听页面初次渲染完成 |
||||
|
*/ |
||||
|
onReady() { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 生命周期函数--监听页面显示 |
||||
|
*/ |
||||
|
onShow() { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 生命周期函数--监听页面隐藏 |
||||
|
*/ |
||||
|
onHide() { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 生命周期函数--监听页面卸载 |
||||
|
*/ |
||||
|
onUnload() { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 页面相关事件处理函数--监听用户下拉动作 |
||||
|
*/ |
||||
|
onPullDownRefresh() { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 页面上拉触底事件的处理函数 |
||||
|
*/ |
||||
|
onReachBottom() { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 用户点击右上角分享 |
||||
|
*/ |
||||
|
onShareAppMessage() { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,3 @@ |
|||||
|
{ |
||||
|
"usingComponents": {} |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
<!--package/pointsStatus/pointsStatus.wxml--> |
||||
|
<text>package/pointsStatus/pointsStatus.wxml</text> |
@ -0,0 +1 @@ |
|||||
|
/* package/pointsStatus/pointsStatus.wxss */ |
@ -1,32 +1,14 @@ |
|||||
<!--pages/index/index.wxml--> |
<!--pages/index/index.wxml--> |
||||
<view> |
<map |
||||
<view class="searchFixed"> |
id="mapDom" |
||||
<view class="searchBoxs"> |
class="map" |
||||
<input class="searchInps" bindinput="formInp" bindconfirm="bindconfirm" value='{{keyName}}' type="text" placeholder="请输入结构物名称" /> |
markers="{{markers}}" |
||||
<button class="btnSearch" bindtap="goSearch">搜索</button> |
bindmarkertap="onMarkerTap" |
||||
|
> |
||||
|
<view class="action-box"> |
||||
|
<view class="text flex-center" bind:tap="showCallout">数据</view> |
||||
|
<view class="img flex-center" bind:tap="onRefresh"> |
||||
|
<image src="/images/refresh.svg"></image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
</map> |
||||
<view style="margin-top: 140rpx;"> |
|
||||
<block wx:for="{{dataList}}" wx:key='*this'> |
|
||||
<view style="padding-bottom: 60rpx;"> |
|
||||
<image wx:if="{{item.img != null && item.img.length > 0}}" style="width: 100%;height: 372rpx;display: block;" src="{{imgUrl + item.img[0]}}"></image> |
|
||||
<view wx:if="{{item.img == null || item.img.length == 0}}" style="width: 100%;height: 372rpx;line-height: 372rpx;text-align: center;background: #fff;border-bottom: 2rpx solid #ccc;">暂无图片</view> |
|
||||
<view class="box"> |
|
||||
<view style="font-weight:bold;font-size:32rpx;">{{item.name}}</view> |
|
||||
<view style="font-size:28rpx;color: rgb(166,166,166);"> |
|
||||
<view style=" margin-top:6rpx;">今日问题:<text>12</text></view> |
|
||||
<view style="float:left;width:360rpx;">未处理问题:<text>12</text></view> |
|
||||
<view style="float:left;width:350rpx;">已处理问题:<text>12</text></view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</block> |
|
||||
</view> |
|
||||
|
|
||||
<!-- 暂无数据 --> |
|
||||
<view hidden="{{hidden}}"> |
|
||||
<image class="noData" src="../../images/noData.png"></image> |
|
||||
<view class="noTxt">暂无数据~</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
|
@ -1,70 +1,36 @@ |
|||||
/* pages/index/index.wxss */ |
/* pages/index/index.wxss */ |
||||
page { |
.flex-center { |
||||
background: #F7F7FA; |
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
} |
} |
||||
|
|
||||
.searchBoxs { |
.map { |
||||
position: relative; |
width: 100vw; |
||||
margin: 20rpx 0rpx; |
height: 100vh; |
||||
height: 76rpx; |
|
||||
} |
} |
||||
|
|
||||
.searchInps { |
.action-box { |
||||
background-color: #fff; |
position: absolute; |
||||
width: 542rpx; |
bottom: 30px; |
||||
height: 76rpx; |
right: 10px; |
||||
border-radius: 8rpx; |
width: 46px; |
||||
padding-left: 32rpx; |
height: 80px; |
||||
padding-right: 144rpx; |
display: flex; |
||||
border: 1px solid rgba(225, 225, 225, 0.44); |
flex-direction: column; |
||||
position: absolute; |
justify-content: space-evenly; |
||||
top: -2rpx; |
|
||||
left: 16rpx; |
|
||||
font-size: 28rpx; |
|
||||
} |
} |
||||
|
|
||||
.btnSearch { |
.action-box .text { |
||||
width: 128rpx; |
background-color: white; |
||||
height: 68rpx; |
height: 30px; |
||||
line-height: 68rpx; |
|
||||
border-radius: 8rpx; |
|
||||
color: #fff; |
|
||||
font-size: 28rpx; |
|
||||
background: linear-gradient(180deg, #1979ff 0%, #1979ff 100%); |
|
||||
position: absolute; |
|
||||
top: 6rpx; |
|
||||
right: 28rpx; |
|
||||
z-index: 10; |
|
||||
} |
} |
||||
|
|
||||
.searchFixed { |
.action-box .img { |
||||
position: fixed; |
background-color: white; |
||||
top: 0; |
|
||||
width: 100%; |
|
||||
background-color: #fff; |
|
||||
box-shadow: 0rpx -4rpx 20rpx #c2c2c2; |
|
||||
z-index: 10; |
|
||||
} |
} |
||||
|
|
||||
.box { |
.action-box .img image { |
||||
padding: 20rpx; |
width: 30px; |
||||
box-shadow: 0rpx 10rpx 10rpx #ccc; |
height: 30px; |
||||
overflow: hidden; |
|
||||
line-height: 50rpx; |
|
||||
background: #fff; |
|
||||
} |
|
||||
|
|
||||
/* 暂无数据 */ |
|
||||
.noData { |
|
||||
width: 254rpx; |
|
||||
height: 298rpx; |
|
||||
display: block; |
|
||||
margin: 450rpx auto 16rpx; |
|
||||
} |
|
||||
|
|
||||
.noTxt { |
|
||||
font-size: 30rpx; |
|
||||
color: #999; |
|
||||
font-weight: bold; |
|
||||
text-align: center; |
|
||||
} |
} |
Loading…
Reference in new issue