interactPost.wxml 1.1 KB
<!--pages/interact/interactPost/interactPost.wxml-->
<view class='box'>
  <view class='banner_box'>
    <view class='type_box' bindtap="showPicker">
      <view>
        <input placeholder='输入主题...' placeholder-class='input_size' data-type='title' value='{{title}}' bindinput='setTitle'></input>
      </view>
    </view>
    <view class='textarea_box'>
      <textarea class='textarea' placeholder='输入内容...' placeholder-class='input_size'  maxlength='{{max2}}' value='{{text}}' bindinput='setText'>
      </textarea>
    </view>
    <view class='upload_box'>
      <block wx:for="{{images}}" wx:for-item="image" wx:key="index">
        <view class='upload_img'>
          <view class='icon_box'>
            <view class='iconfont icon-shanchu' catchtap="deleteImg" data-index="{{index}}"></view>
          </view>
          <image src='{{image}}' data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image>
        </view>
      </block>
      <view class='upload_img' bindtap="choose">
        <view class='iconfont icon-jia1'></view>
      </view>
    </view>
  </view>
  <view class='bottom_btn'>发表帖子</view>
</view>