140 lines
4.5 KiB
Plaintext
140 lines
4.5 KiB
Plaintext
<view class="report">
|
|
<view class="title">
|
|
基本信息
|
|
</view>
|
|
<view class="row">
|
|
<view class="row-name">
|
|
<text>*</text>
|
|
事件类型
|
|
</view>
|
|
<view class="row-main">
|
|
<picker bindchange="bindPickerChange" value="{{typeIdx}}" range="{{typeArray}}">
|
|
<view class="picker">
|
|
{{typeArray[typeIdx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row-name">
|
|
<text>*</text>
|
|
事件类型
|
|
</view>
|
|
<view class="row-main">
|
|
<picker bindchange="bindCaseTypeChange" value="{{type2Idx}}" range="{{type2Array}}">
|
|
<view class="picker">
|
|
{{type2Array[type2Idx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="row">
|
|
<view class="row-name">
|
|
<text>*</text>
|
|
事发区县
|
|
</view>
|
|
<view class="row-main">
|
|
<picker bindchange="bindAreaPickerChange" value="{{areaIdx}}" range="{{areaArray}}">
|
|
<view class="picker">
|
|
{{areaArray[areaIdx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="row" wx:if="{{villageAll.length > 0}}">
|
|
<view class="row-name">
|
|
事发乡镇
|
|
</view>
|
|
<view class="row-main">
|
|
<picker bindchange="bindVillagePickerChange" value="{{villageIdx}}" range="{{villageArray}}">
|
|
<view class="picker">
|
|
{{villageArray[villageIdx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="row" wx:if="{{committeeAll.length > 0}}">
|
|
<view class="row-name">
|
|
事发委员会
|
|
</view>
|
|
<view class="row-main">
|
|
<picker bindchange="bindCommitteePickerChange" value="{{committeeIdx}}" range="{{committeeArray}}">
|
|
<view class="picker">
|
|
{{committeeArray[committeeIdx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view> -->
|
|
<view class="row">
|
|
<view class="row-name">
|
|
<text>*</text>
|
|
事发位置
|
|
</view>
|
|
<view class="row-main">
|
|
<input type="text" placeholder="请输入事发详细地址" bindinput="editInfo" data-type="location"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row-name">
|
|
<text>*</text>
|
|
事发坐标
|
|
</view>
|
|
<view class="row-main">
|
|
<text bindtap="chooseLocation" wx:if="{{!longitude && !latitude}}">点击选择事发位置坐标</text>
|
|
<text bindtap="chooseLocation" wx:else>{{longitude}},{{latitude}}</text>
|
|
</view>
|
|
<!-- <view class="map-box">
|
|
<map id="map" class="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" bindcontroltap="controltap" polygons="{{polygons}}" bindregionchange="regionchange" markers="{{markers}}" bindmarkertap="markertap" show-location></map>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
<view class="file">
|
|
<view class="title">
|
|
详细信息
|
|
</view>
|
|
<view class="file-box">
|
|
<view class="file-title">
|
|
<text>*</text>
|
|
事件说明
|
|
</view>
|
|
<view class="file-content">
|
|
<textarea placeholder="请输入事件说明" bindinput="editInfo" data-type="content"></textarea>
|
|
</view>
|
|
</view>
|
|
<view class="file-box">
|
|
<view class="file-title">
|
|
事件图片
|
|
</view>
|
|
<view class="file-content">
|
|
<view class="img-box" wx:for="{{imageList}}" wx:key="index">
|
|
<image src="{{caseUrl + baseImgUrl + item}}" mode="heightFix"></image>
|
|
<image class="delete" src="{{sourceUrl}}delete.png" bindtap="deleteSource" data-type="img" data-cur="{{index}}"></image>
|
|
<!-- <image src="../../images/delete.png" class="delete-btn" data-num="{{index}}" bindtap="deleteImg"></image> -->
|
|
</view>
|
|
<view class="upload-btn" bindtap="uploadImage" wx:if="{{imageList.length < 9}}">+</view>
|
|
</view>
|
|
</view>
|
|
<view class="file-box">
|
|
<view class="file-title">
|
|
视频
|
|
</view>
|
|
<view class="file-content">
|
|
<view class="video-box" wx:if="{{videoId}}">
|
|
<video src="{{caseUrl + baseImgUrl + videoId}}"></video>
|
|
<image class="delete" src="{{sourceUrl}}delete.png" data-type="video"></image>
|
|
</view>
|
|
<view class="upload-btn" bindtap="uploadVideo" wx:else>+</view>
|
|
</view>
|
|
</view>
|
|
<view class="file-box voice-box">
|
|
<view class="file-title voice-title">
|
|
<image src="{{sourceUrl}}voice.png" mode="widthFix"></image>
|
|
录音
|
|
</view>
|
|
<view class="record-btn" bindlongpress="recordVoice" bindtouchend="recordEnd" wx:if="{{!audioId}}">长按录音</view>
|
|
<view class="record-btn" wx:if="{{audioId}}" bindtap="playRecord">播放录音</view>
|
|
</view>
|
|
</view>
|
|
<view class="submit">
|
|
<view class="submit-btn" bindtap="submitReport">上报</view>
|
|
</view> |