日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

93 lines
4.0 KiB

<!-- <view wx:if="{{iniLoaded}}"> -->
<view >
<form class="m-fm">
<view class="row_myreport f-cs" bind:tap="toMyReport" >
<view class="title_myreport f-fl">
我的报事
</view>
<image src="/assets/images/index/arrow.png" />
</view>
<view class="row_content fm-flex" style="height: {{viewHeight}}; overflow-y: scroll;">
<view class="view_org">
<view class="org_title">我要报给</view>
<view class="org_list">
<view class="item {{index>0?'item_left':''}} {{selectOrgIndex!==index ? 'item_focus':''}}"
bind:tap="handleSelectOrg"
data-index="{{index}}"
wx:key="*this"
wx:for="{{orgList}}">{{item.levelName}}</view>
</view>
</view>
<textarea auto-focus="{{blurType==='text'}}" class="topic_text" placeholder="请填写信息内容"
style="{{ showedHint ? 'display: none;' : '' }}"
data-fm="fmData"
data-name="eventContent"
placeholder-class="z-placeholder"
bindinput="inputSync"
maxlength="1000"
bindkeyboardheightchange="handleKeyBoard"
value="{{ fmData.eventContent }}"></textarea>
<view class="input-hint input-hints"><text>{{ fmData.eventContent.length }}</text>/1000</view>
<view class="topic-audio">
<topic-audio wx:if="{{fmData.voiceList.length > 0}}" url="{{fmData.voiceList[0].url}}" duration="{{fmData.voiceList[0].duration}}" bind:audiodel="handleAudioDel" show-del="{{true}}" />
<!-- <topic-audio url="{{fmData.voiceList[0].url}}" duration="{{fmData.voiceList[0].duration}}" bind:audiodel="handleAudioDel" /> -->
</view>
<upload-attachment
showAdd="{{false}}"
max="{{maxLimitImg}}"
selType="{{'image'}}"
showList="{{fmData.attachmentList}}"
bind:hideNativeComponents="hideNativeComponents"
bind:showNativeComponents="showNativeComponents"
id="uploadImg" />
<view wx:if="{{selectedNpc.displayName}}" class="view_npc">
<text>{{selectedNpc.displayName}}</text>
<image bind:tap="delNpc" src="/assets/images/guanbi.png" />
</view>
<view class="position-hints" bind:tap="toughGetLocation">
<view class="position-hints-left">
<image src="/assets/images/common/pos.png" />
<text wx:if="{{fmData.address}}">{{ fmData.address }}</text>
<text wx:else>事件定位</text>
</view>
<image class="position-hints-arrow" src="/assets/images/index/arrow.png" />
</view>
<view class="view_attach_btn">
<image src="/assets/images/topic/img.png" bind:tap="addImg" />
<image wx:if="{{npcList.length>0}}" src="/assets/images/index/at.png" bind:tap="atNpc" />
<image wx:if="{{tabRecord}}" src="/assets/images/topic/record3.png" bind:tap="handleTapRecord" />
<image wx:elif="{{fmData.voiceList.length > 0}}" src="/assets/images/topic/record2.png" />
<image wx:else src="/assets/images/topic/record1.png" bind:tap="handleTapRecord" />
</view>
</view>
<view
class="btn {{ submitBtnIsAllowed ? '' : 'z-disabled'}}"
plain="true" bind:tap="submit">确认提交</view>
<view class="topic-record {{tabRecord&&'topic-record-on'}}">
<sound-record wx:if="{{tabRecord}}" bind:cancle="handleTapRecord" bind:finish="handleRecordFinish" />
<!-- <sound-record bind:cancle="handleTapRecord" bind:finish="handleRecordFinish" /> -->
</view>
</form>
</view>
<!-- <loading showed="{{!iniLoaded}}" /> -->
<selectNpc npcList="{{ npcList }}" selectIndex="{{selectNpcIndex}}" id="selectNpc"></selectNpc>
<!-- <view wx:if="{{dialogVisible}}" class="topic-dialog a-fade-in">
<view class="dialog-mask a-scale-in"></view>
<view class="dialog-wrapper a-scale-in">
<view class="dialog-content"> 提交成功,话题审核通过后会自动发布感谢您的参与。</view>
<view class="dialog-btn" bind:tap="submitComfire">确定</view>
</view>
</view> -->