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.
92 lines
3.9 KiB
92 lines
3.9 KiB
<view class="active-apply" wx:if="{{type == 'edit' || type == ''}}">
|
|
<view class="apply-list" bindtap="toApplyList" wx:if="{{!type}}">
|
|
<image src="../../images/jianyijilu.png" />
|
|
</view>
|
|
<view class="data-form" >
|
|
<view class="data-form-item">
|
|
<text class="must">*</text>
|
|
<view class="item-label">建议类别</view>
|
|
<view class="item-value" bind:tap="onOpenCascader">
|
|
<view class="value-text {{adviceType ? '' : 'placeholder'}}">{{adviceType || '请选择'}}</view>
|
|
</view>
|
|
<view class="item-select" bind:tap="onOpenCascader">
|
|
<!-- <image src="../../images/right-sword.png" class="arrow" /> -->
|
|
</view>
|
|
<block wx:if="{{visibleCascader}}">
|
|
<wux-cascader visible="{{ visibleCascader }}" controlled value="{{ value }}" options="{{ options1 }}" bind:close="onClose1" bind:change="onChange1" />
|
|
</block>
|
|
</view>
|
|
<view class="data-form-item">
|
|
<text class="must">*</text>
|
|
<view class="item-label">建议标题</view>
|
|
<view class="item-value">
|
|
<input type="text" placeholder-class="placeholder" placeholder="请输入" value="{{title}}" bindinput="onInputValue" data-code="title" />
|
|
</view>
|
|
</view>
|
|
<view class="data-form">
|
|
<view class="textarea-item">
|
|
<view class="item-label">
|
|
<text class="must">*</text>
|
|
<view class="">建议内容</view>
|
|
</view>
|
|
<textarea class="textarea" placeholder-class="placeholder" placeholder="请输入详细的建议内容" maxlength="100" value="{{actContent}}" bindinput="onInputValue" data-code="actContent"></textarea>
|
|
</view>
|
|
</view>
|
|
<view class="data-form-item upload-image">
|
|
<view class="item-label">
|
|
<view class="">添加照片</view>
|
|
</view>
|
|
<view class="image-list">
|
|
<view class="image-item" wx:for="{{uploadImageList}}" wx:for-index="index" wx:for-item="item" wx:key="imageId">
|
|
<image class="issue-image" src="{{item.imgUrl}}" bindtap="onPreview" data-url="{{item.imgUrl}}" />
|
|
<image wx:if="{{!item.uploaded}}" class="loading" src="../../images/loading.gif" />
|
|
<image bindtap="deleteImage" data-imageid="{{item.imageId}}" class="close" wx:else src="../../images/icon_close.png" />
|
|
</view>
|
|
<image wx:if="{{uploadImageList.length < 3}}" src="../../images/ig_tianjiatupian@2x.png" bindtap="chooseImage" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="data-form">
|
|
<view class="footer-item" wx:if="{{type!=='edit'}}">
|
|
<view class="submit" bindtap="onSubmitApply">提交</view>
|
|
</view>
|
|
<view class="footer-item" wx:if="{{type=='edit'}}">
|
|
<view class="submit" bindtap="onEditApply">修改</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="active-apply" wx:elif="{{type == 'look'}}">
|
|
<view class="data-form">
|
|
<view class="data-form-item">
|
|
<view class="item-label">建议类别</view>
|
|
<view class="item-value">{{adviceType}}</view>
|
|
</view>
|
|
<view class="data-form-item">
|
|
<view class="item-label">建议标题</view>
|
|
<view class="item-value">{{title}}</view>
|
|
</view>
|
|
<view class="data-form-item upload-image" wx:if="{{headPic.length>0}}">
|
|
<view class="item-label">
|
|
<text class="must"></text>
|
|
<view class="">图片</view>
|
|
</view>
|
|
<view class="image-list">
|
|
<!-- <image src="{{headPic}}" bindtap="onPreview" data-url="{{headPic}}" /> -->
|
|
<image src="{{item}}" bindtap="onPreview" data-url="{{item}}" wx:for="{{headPic}}" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="data-form">
|
|
<view class="textarea-item">
|
|
<view class="item-label">建议内容</view>
|
|
<view class="textarea">{{actContent}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="data-form" wx:if="{{isFeedback==='1'}}">
|
|
<view class="textarea-item">
|
|
<view class="item-label">回复意见</view>
|
|
<view class="textarea">{{reply}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<wux-actionsheet id="wux-actionsheet" />
|