<view class="page">
|
<view class="page-header"> </view>
|
<view class="page-container">
|
<t-form
|
editable="{{!uploaded}}"
|
formArr="{{formArray}}"
|
submit-text="{{submitText}}"
|
bind:submit="submit"
|
bind:cancel="cancel"
|
>
|
<t-input
|
label="问题定位"
|
placeholder="请输入问题定位"
|
value="{{locations.address}}"
|
bind:change="handleLocation"
|
>
|
</t-input>
|
<t-input
|
disabled
|
label="问题坐标"
|
placeholder="请输入问题坐标,用逗号分割"
|
value="{{locations.coorTxt}}"
|
>
|
<t-button slot="suffix" theme="primary" size="extra-small" bindtap="chooseLocation">
|
地图定位
|
</t-button>
|
</t-input>
|
<view wx:if="{{validated && locations.address == ''}}" class="tips"> 问题定位不能为空 </view>
|
<t-cell title="问题图片">
|
<t-upload
|
slot="description"
|
media-type="{{['image']}}"
|
files="{{fileList}}"
|
gridConfig="{{gridConfig}}"
|
max="{{3}}"
|
size-limit="{{sizeLimit}}"
|
bind:add="handleAddImg"
|
bind:remove="handleRemoveImg"
|
/>
|
</t-cell>
|
<view wx:if="{{validated && (!fileList || fileList.length == 0)}}" class="tips">
|
问题图片至少选一张
|
</view>
|
</t-form>
|
</view>
|
<view class="page-footer"></view>
|
</view>
|