interactPost.wxml 1.1 KB
<!--pages/interact/interactPost/interactPost.wxml-->
<view class='box'>
  <view class='banner_box'>
    <view class='type_box' >
        <input placeholder='输入主题...' placeholder-class='input_size' data-type='title' value='{{title}}'  bindinput='setText'></input>
    </view>
    <view class='textarea_box'>
      <textarea class='textarea' placeholder='输入内容...' placeholder-class='input_size'  maxlength='{{max2}}' value='{{text}}' bindinput='setText' data-type='content'>
      </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" hidden='{{images.length>9}}'>
        <view class='iconfont icon-jia1'></view>
      </view>
    </view>
  </view>
  <view class='bottom_btn' bindtap='subArticle'>发表帖子</view>
</view>