92 lines
3.9 KiB
Plaintext
92 lines
3.9 KiB
Plaintext
<scroll-view scroll-y style="height:{{scrollHeight}}px;padding-bottom: 35px;">
|
|
|
|
<view class="page-container">
|
|
<!-- 基础信息 -->
|
|
<view class="form-head">
|
|
<view class="form-head-line"></view>
|
|
<view>基本信息</view>
|
|
</view>
|
|
<view class="box-container">
|
|
|
|
<view class="form-item" bind:tap="onShowStreetPick">
|
|
<view class="form-title must">街道</view>
|
|
<view class="form-content select">{{selStreet==null?'请选择案件所属街道':selStreet.dictName}}</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-title must">社区</view>
|
|
<view class="form-content select" bind:tap="onShowCommunitPicker">{{selCommunity==null?'请选择案件所属社区':selCommunity.communityName}}</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-title must">类别</view>
|
|
<view class="form-content select" bind:tap="onShowType1">{{selType==null?'请选择所属类别':selType.dictName}}</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-title must">详细类型</view>
|
|
<view class="form-content select" bind:tap="onShowType2">{{selType2==null?'请选择详细类别':selType2.dictName}}</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-title must">地址</view>
|
|
<view class="form-content all">{{address==null?'请选择地址':address}}</view>
|
|
</view>
|
|
|
|
</view>
|
|
<view class="form-head">
|
|
<view class="form-head-line"></view>
|
|
<view>详细信息</view>
|
|
</view>
|
|
<view class="box-container">
|
|
|
|
<view class="form-item ver">
|
|
<view class="form-title must">案件描述</view>
|
|
<textarea class="form-textarea" placeholder="请输入案件描述" placeholder-style="font-size:14px;" bindinput="inputCaseDesc" />
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="voice">
|
|
<view class="voice-info" wx:if="{{!recodePath}}">
|
|
<image src="../../images/vioce.png"></image>
|
|
录音
|
|
</view>
|
|
<view class="voice-info" bindtap="playRecord" wx:else>
|
|
<image src="../../images/vioce.png"></image>
|
|
播放录音
|
|
</view>
|
|
<view class="voice-btn" bindlongpress="recordVoice" bindtouchend="recordEnd">长按录音</view>
|
|
</view>
|
|
</view>
|
|
<view class="line"></view>
|
|
<view class="form-item ver">
|
|
<view class="form-title must">现场照片</view>
|
|
<view class="main detail-main photo-main">
|
|
<view class="choose-photo">
|
|
<view class="img-box" wx:for="{{photoList}}" wx:key="index">
|
|
<image src="{{item.path}}"></image>
|
|
<image src="../../images/delete.png" class="delete-btn" data-num="{{index}}" bindtap="deleteImg"></image>
|
|
</view>
|
|
<view class="add" bindtap="chooseImage" wx:if="{{photoList.length < 9}}">
|
|
<image src="../../images/camera.png"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 街道 -->
|
|
<t-picker visible="{{streetPicker}}" value="{{streetList}}" keys="{{streetKeys}}" title="请选择" cancelBtn="取消" confirmBtn="确认" bindchange="onStreetPick" bindcancel="onStreetCancel">
|
|
<t-picker-item options="{{streetList}}" />
|
|
</t-picker>
|
|
<!-- 社区 -->
|
|
<t-picker visible="{{communityPicker}}" value="{{communityList}}" keys="{{communityKeys}}" title="请选择" cancelBtn="取消" confirmBtn="确认" bindchange="onCommunityPick" bindcancel="onCommunityCancel">
|
|
<t-picker-item options="{{communityList}}" />
|
|
</t-picker>
|
|
<!-- 类型 -->
|
|
<t-picker visible="{{typePicker}}" value="{{typeList}}" keys="{{typeKeys}}" title="请选择" cancelBtn="取消" confirmBtn="确认" bindchange="onTypePick" bindcancel="onTypeCancel">
|
|
<t-picker-item options="{{typeList}}" />
|
|
</t-picker>
|
|
<!-- 类型详细 -->
|
|
<t-picker visible="{{type2Picker}}" value="{{type2List}}" keys="{{type2Keys}}" title="请选择" cancelBtn="取消" confirmBtn="确认" bindchange="onType2Pick" bindcancel="onType2Cancel">
|
|
<t-picker-item options="{{type2List}}" />
|
|
</t-picker>
|
|
|
|
</view>
|
|
</scroll-view>
|
|
<view class="btn-submit" bind:tap="submitReport">上报</view> |