<!-- pages/release/release.wxml -->
<view class="release-page page-container">
    <view class="list-loading text-center" wx:if="{{ pageLoading }}">
        <van-loading size="24px">加载中...</van-loading>
    </view>
    <view wx:else>
        <!-- 顶部 -->
        <view class="section">
            <textarea class="section-textarea" value="{{ detailValue }}" bindinput="textareaInput" maxlength="{{ max }}" placeholder="请输入你的需求详情~ " bindblur="textareaBlur" />
            <view class="limit">{{min}}/{{max}}</view>
        </view>
        <view class="tags-view">
            <view class="title">需求类型（最少选择一个，最多可选择三个）</view>
            <view class="tags-item-box clearfix">
                <view class="tag-item {{ item.isActive }}" wx:for="{{tags}}" wx:key="index">
                    <view class="tag" bindtap="tagSelectedChange" data-typename="{{ item.typeName }}">
                        {{ item.typeName }}
                    </view>
                </view>
            </view>
        </view>
        <view class="submit-btn">
            <van-button block color="#5e73e5" round wx:if="{{ (!!detailValue && selectedTag.length > 0) }}" bind:click="releaseDemands" loading="{{ saveLoading }}">
                {{  businessCommunicationDemandId ? '确认修改':'发布需求'}}
            </van-button>
            <view wx:else class="btn-span">
                {{  businessCommunicationDemandId ? '确认修改':'发布需求'}}
            </view>
        </view>
    </view>
    <tabBar currentIndex="{{currentIndex}}"></tabBar>
</view>