<!--pages/news/index.wxml-->
<view class="cu-form-group margin-top">
  <view class="title">主题</view>
		<input placeholder="" value="{{title}}" bindblur="inputTitle"></input>
</view>
<view class="cu-form-group align-start">
		<view class="title">动态内容</view>
		<textarea maxlength="-1" bindinput="textareaBInput" value="{{content}}" placeholder="多行文本输入框"></textarea>
</view>
<view class="cu-bar bg-white margin-top">
		<view class="action">
			图片上传
		</view>
		<view class="action">
			{{imgList.length}}/4
		</view>
</view>
<view class="cu-form-group">
  <view class="grid col-4 grid-square flex-sub">
    <view class="bg-img" wx:for="{{imgList}}" wx:key="{{index}}" bindtap="ViewImage" data-url="{{imgList[index]}}">
      <image src='{{host+imgList[index]}}' mode='aspectFill'></image>
      <view class="cu-tag bg-red" catchtap="DelImg" data-index="{{index}}">
        <text class="cuIcon-close"></text>
      </view>
    </view>
    <view class="solids" bindtap="ChooseImage" wx:if="{{imgList.length<4}}">
      <text class="cuIcon-cameraadd"></text>
    </view>
  </view>
</view>
<button class=" bg-red lg button-hover" role="button" bindtap="submit">提交</button>
