7 changed files with 173 additions and 5 deletions
			
			
		| After Width: | Height: | Size: 916 B | 
| @ -1,3 +1,15 @@ | |||||
| { | { | ||||
|   "usingComponents": {} |   "navigationBarBackgroundColor": "#1979ff", | ||||
|  |   "navigationBarTextStyle": "white", | ||||
|  |   "navigationBarTitleText": "巡检报告", | ||||
|  |   "usingComponents": { | ||||
|  |     "van-cell": "@vant/weapp/cell/index", | ||||
|  |     "van-cell-group": "@vant/weapp/cell-group/index", | ||||
|  |     "van-popup": "@vant/weapp/popup/index", | ||||
|  |     "van-picker": "@vant/weapp/picker/index", | ||||
|  |     "van-datetime-picker": "@vant/weapp/datetime-picker/index", | ||||
|  |     "van-button": "@vant/weapp/button/index", | ||||
|  |     "van-divider": "@vant/weapp/divider/index", | ||||
|  |     "van-empty": "@vant/weapp/empty/index" | ||||
|  |   } | ||||
| } | } | ||||
| @ -1,2 +1,29 @@ | |||||
| <!--package/inspectionReport/inspectionReport.wxml--> | <!-- package/inspectionReport/inspectionReport.wxml --> | ||||
| <text>package/inspectionReport/inspectionReport.wxml</text> | <view> | ||||
|  |   <van-cell-group> | ||||
|  |     <van-cell title="结构物" value="{{structures[curStru]}}" is-link arrow-direction="down" data-item="stru" bind:click="showPopup" /> | ||||
|  |     <van-popup show="{{ struVisible }}" data-item="stru" bind:close="onClose" round position="bottom" custom-style="height: 40%"> | ||||
|  |       <van-picker columns="{{ structures }}" bind:change="onStruChange" default-index="{{ curStru }}" loading="{{struLoading}}" /> | ||||
|  |     </van-popup> | ||||
|  |     <van-cell title="时间" title-width="80rpx" value="{{formatStartTime + ' - ' + formatEndTime}}" is-link arrow-direction="down" data-item="date" bind:click="showPopup" /> | ||||
|  |     <van-popup show="{{ dateVisible }}" data-item="date" bind:close="onClose" round position="bottom" custom-style="height: 40%"> | ||||
|  |       <view style="max-height:100%; display:flex" class="time-option"> | ||||
|  |         <van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ startTime }}" bind:input="onStartTimeChange" /> | ||||
|  |         <view style="display:flex; align-items:center">至</view> | ||||
|  |         <van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ endTime }}" bind:input="onEndTimeChange" /> | ||||
|  |       </view> | ||||
|  |     </van-popup> | ||||
|  |   </van-cell-group> | ||||
|  |   <view wx:if="{{report.length}}"> | ||||
|  |     <view class="file-box" wx:for="{{report}}"> | ||||
|  |       <view class="file"> | ||||
|  |         <image class="logo" src="/images/word.svg"></image> | ||||
|  |         <view>2143654.docx</view> | ||||
|  |       </view> | ||||
|  |       <van-button type="primary" size="small" color="#169bd5" bind:click="download">下载</van-button> | ||||
|  |     </view> | ||||
|  |   </view> | ||||
|  |   <view wx:else> | ||||
|  |     <van-empty description="暂无数据" /> | ||||
|  |   </view> | ||||
|  | </view> | ||||
| @ -1 +1,31 @@ | |||||
| /* package/inspectionReport/inspectionReport.wxss */ | /* package/inspectionReport/inspectionReport.wxss */ | ||||
|  | .time-option { | ||||
|  |     display: flex; | ||||
|  |     justify-content: space-evenly; | ||||
|  | } | ||||
|  | 
 | ||||
|  | .time-option .van-picker { | ||||
|  |     width: 45vw; | ||||
|  | } | ||||
|  | 
 | ||||
|  | .file-box { | ||||
|  |     width: 94%; | ||||
|  |     height: 100rpx; | ||||
|  |     padding: 0 20rpx; | ||||
|  |     display: flex; | ||||
|  |     justify-content: space-between; | ||||
|  |     align-items: center; | ||||
|  |     border-bottom: 1px solid rgb(240, 239, 239); | ||||
|  | } | ||||
|  | 
 | ||||
|  | .file-box .file .logo { | ||||
|  |     width: 80rpx; | ||||
|  |     height: 80rpx; | ||||
|  |     float: left; | ||||
|  |     margin-right: 20rpx; | ||||
|  | } | ||||
|  | 
 | ||||
|  | .file-box .file { | ||||
|  |     display: flex; | ||||
|  |     align-items: center; | ||||
|  | } | ||||
					Loading…
					
					
				
		Reference in new issue