contact-table.wxml 1.88 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <view class="border table">
        <view class="form">
          <view class="form-item">
            <view class="label">用户姓名</view>
            <input class="val" bindinput="bindNameInput" placeholder="请输入姓名" />
          </view>
          <view class="form-item">
            <view class="label">联系方式</view>
            <input class="val" bindinput="bindPhoneInput" placeholder="请输入联系方式" type="number" />
          </view>
          <textarea class="textarea" bindinput="bindMessageContantInput" maxlength="500" placeholder="不超过500字"></textarea>
          <!-- 图片上传 -->
          <view class="upload">
            <view class="tips">上传照片</view>
            <view class="upload-file">
              <view class="upload-file-item" wx:for="{{files}}" wx:key="{{index}}">
                <image class="thumb" src="{{item.path}}" mode="aspectFill" />
                <span class="iconfont iconclose1 remove" data-index="{{index}}" bindtap="remove"></span>
              </view>
              <view class="upload-file-item" wx:if="{{files.length < maxImg}}">
                <image class="thumb" src="../../image/icon/icon-upload.png" mode="aspectFill" bindtap="onUploadHandler" />
              </view>
            </view>
          </view>
        </view>
      </view>
      <view class="submit-btn" bindtap="onSubmitHandler">提交</view>
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ commonTipsCompVisible }}">
  <common-tips-comp bind:evtcomp="evtcomp" inner-title="{{innerTitle}}" inner-text="{{innerText}}"></common-tips-comp>
</van-popup>