riku
2025-04-25 b515fae43490ab20977d559e19d4e5f63a4fd96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<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>