<!--subPackage/page/pages/grassCommunity/grassCommunity.wxml-->
<form bindsubmit="formSubmit">
  <view class="grass-community border_box">
    <view class="page-upload-img">
      <view class="flex-wrp">
        <view class="flex-item" wx:for="{{pics}}" wx:key="{{index}}">
          <image class="item-img" src="{{item}}" />
        </view>
        <view class="flex-item" hidden="{{pics.length >= 5}}">
          <view class="upload-wrap" bindtap="uploadImg">
            <view class="upload-text">+图片</view>
          </view>
        </view>
        <view class="flex-item">
          <upload-video/>
        </view>
      </view>
    </view>

    <view class="upload-tip">*只支持.jpg格式图片/ .mp4格式视频，最长60s</view>
    <view class="title-border">
      <input placeholder="添加标题" name="headline" auto-focus value="{{params.headline}}" />
    </view>
    <view class="title-border">
      <input placeholder="这一刻想说什么..." name="article"  auto-focus value="{{params.article}}" />
    </view>

    <view class="related-goods" bindtap="handleRelatedGoods">关联商品</view>
    <view class="gress-list">
      <grass-item/>
    </view>
  </view>
  <button class="post-notes fixed-bottom0" form-type="submit">发布笔记</button>
</form>
<select-related-goods show="{{showSelectRelatedGoods}}"/>

