extraction-apply.swan 4.3 KB
Newer Older
D
devil 已提交
1
<form bindsubmit="form_submit" class="form-container oh">
D
Devil 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14
  <view class="form-gorup bg-white form-container-upload oh">
    <view class="form-gorup-title">logo图片<text class="form-group-tips">选传,建议300x300px</text></view>
    <view class="form-upload-data fl">
      <block s-if="(extraction_data.logo || null) != null">
        <view class="item fl">
          <text class="delete-icon" bindtap="upload_delete_event">x</text>
          <image src="{{extraction_data.logo}}" bindtap="upload_show_event" mode="aspectFill" />
        </view>
      </block>
    </view>
    <image class="upload-icon" src="/images/default-upload-icon.png" mode="aspectFill" bindtap="file_upload_event" />
  </view>

D
devil 已提交
15 16
  <view class="form-gorup bg-white">
    <view class="form-gorup-title">别名<text class="form-group-tips">选填</text></view>
D
Devil 已提交
17
    <input type="text" name="alias" value="{{extraction_data.alias || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="别名格式最多 16 个字符" />
D
devil 已提交
18 19 20 21
  </view>

  <view class="form-gorup bg-white">
    <view class="form-gorup-title">联系人<text class="form-group-tips-must">必填</text></view>
D
Devil 已提交
22
    <input type="text" name="name" value="{{extraction_data.name || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="联系人格式 2~16 个字符之间" />
D
devil 已提交
23 24 25 26
  </view>

  <view class="form-gorup bg-white">
    <view class="form-gorup-title">联系电话<text class="form-group-tips-must">必填</text></view>
D
Devil 已提交
27
    <input type="text" name="tel" value="{{extraction_data.tel || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="座机 或 手机" />
D
devil 已提交
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
  </view>

  <view class="form-gorup bg-white">
    <view class="form-gorup-title">省市区<text class="form-group-tips-must">必选</text></view>
    <view class="select-address oh">
      <view class="section fl">
          <picker name="province" bindchange="select_province_event" value="{{province_value}}" range="{{province_list}}" range-key="name">
              <view class="name {{(province_value == null) ? 'cr-ccc' : 'cr-666' }}">{{province_list[province_value].name || default_province}}</view>
          </picker>
      </view>
      <view class="section fl">
          <picker s-if="(province_id || null) != null" name="city" bindchange="select_city_event" value="{{city_value}}" range="{{city_list}}" range-key="name">
              <view class="name {{(city_value == null) ? 'cr-ccc' : 'cr-666' }}">{{city_list[city_value].name || default_city}}</view>
          </picker>
          <text s-else class="cr-ccc" bindtap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
      </view>
      <view class="section fl">
          <picker s-if="(city_id || null) != null" name="county" bindchange="select_county_event" value="{{county_value}}" range="{{county_list}}" range-key="name">
              <view class="name {{(county_value == null) ? 'cr-ccc' : 'cr-666' }}">{{county_list[county_value].name || default_county}}</view>
          </picker>
          <text s-else class="cr-ccc" bindtap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
      </view>
    </view>
  </view>

  <view class="form-gorup bg-white">
    <view class="form-gorup-title">详细地址<text class="form-group-tips-must">必填</text></view>
D
Devil 已提交
55
    <input type="text" name="address" value="{{extraction_data.address || ''}}" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
D
devil 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
  </view>

  <view class="form-gorup bg-white">
    <view class="form-gorup-title">地理位置<text class="form-group-tips-must">必选</text></view>
    <view bindtap="choose_location_event" class="form-gorup-text">
      <view s-if="(user_location || null) == null" class="cr-888">请选择地理位置</view>
      <view s-else class="cr-666">{{((user_location || null) != null && (user_location.name || null) != null) ? user_location.name+' ' : ''}}{{user_location.address || ''}}</view>
    </view>
  </view>

  <view class="form-gorup">
    <view s-if="(extraction_data || null) != null && (extraction_data.status || 0) == 1" class="tips spacing-mb">
      注意:编辑信息将重新审核后方可生效
    </view>
    <button class="submit-bottom" type="default" formType="submit" hover-class="none" disabled="{{form_submit_disabled_status}}">提交</button>
  </view>
</form>