release.wxml 3.8 KB
<!--pages/release/release.wxml-->
<view class='banner_box'>
  <view class='type_box' bindtap="showPicker">
    <view>
      <input placeholder='标题' value='{{title}}' bindinput='setTitle'></input>
    </view>
    <text class="currentWordNumber">{{currentWordNumber|0}}/{{max}}</text>
  </view>
  <view class='textarea_box'>
    <textarea class='textarea' placeholder='同大家分享一下你的穿搭秘籍吧~' maxlength='{{max2}}' value='{{text}}' bindinput='setText'>
      <text class="number">{{number|0}}/{{max2}}</text>
    </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-jian' catchtap="deleteImg" data-index="{{index}}"></view>
          <view class="edit_label" catchtap="goEdit" data-index="{{index}}" data-url='{{image.url}}'>编辑</view>
        </view>
        <image src='{{image.url}}' data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image>
      </view>
    </block>
    <view class='upload_img' bindtap="choose">
      <view class='iconfont icon-jia2'></view>
    </view>
  </view>
  <view class='hint_box'>
    <view class='hint_label' bindtap='showMask'>{{time_info}}</view>
    <view class='hint_label more_box'>
      <text catchtap='showMore'>{{more_info}}</text>
      <view class='more_label_box' wx:if='{{more_state}}'>
        <view class='more_item' bindtap='setOpen' data-open='1'>
          <text>公开</text>
        </view>
        <view class='more_line'></view>
        <view class='more_item' catchtap='setOpen' data-open='3'>
          <text>仅自己可见</text>
        </view>
        <view class='more_line'></view>
        <view class='more_item' catchtap='setOpen' data-open='2'>
          <text>粉丝可见</text>
        </view>
        <view class='more_line'></view>
        <view class='more_item' catchtap='setOpen' data-open='4'>
          <text>草稿箱</text>
        </view>
      </view>
    </view>
  </view>
</view>

<view class='content_box'>
  <view class='tab_box'>
    <scroll-view scroll-x>
      <text class='classify_title'>风格</text>
      <view class="tab_item {{item.state?'bgc-active':''}}" wx:for='{{classify}}' wx:key='index' data-index="{{index}}" bindtap="setClassify">{{item.name}}</view>
    </scroll-view>
  </view>
  <view class='bottom_box'>
    <view class='bottom_btn1' bindtap='submitInfo'>确定</view>
  </view>
</view>

<view class='mask_box' wx:if='{{relsese_state}}' catchtap='cancleMask'>
  <view class='release_box'>
    <view class='release_title'>选择发布时间</view>
    <view class='release_content_box'>
      <view class='release_left'>
        <view class="relsese_item {{currentTime==index?'relsese_active':''}} " catchtap='selectTime' wx:for='{{lastMonth}}' wx:key data-index='{{index}}'>
          <text wx:if='{{index==0}}'>今天</text>
          <text wx:elif='{{index==1}}'>明天</text>
          <text wx:else>{{item}} </text>
        </view>
      </view>
      <view class='release_right'>
        <view class="right_item" wx:for='{{release_time2}}' wx:key data-index='{{index}}' catchtap='setTime'>
          <text>{{item}}</text>
          <text class='iconfont icon-dui' wx:if='{{relsese_state1==index}}'></text>
        </view>
      </view>
    </view>
  </view>
</view>


<view class='mask_box2' wx:if='{{img_state}}'>
  <view class='item_list2'>
    <image class='list_img' src='{{url}}'></image>
    <view class='list_content_box'>
      <textarea class="areas" placeholder='请输入简要描述' minlength="{{min}}" maxlength="{{max3}}" bindinput="setImgText">
        <text class="currentWordNumber">{{imgInfoNum|0}}/{{max3}}</text>
      </textarea>
    </view>
  </view>
  <view class='bottom_btn2' bindtap='goCheck'>确定</view>
</view>