<van-tabs sticky color='var(--assist)' title-active-color='var(--assist)' bind:change='tabChange'>
    <van-tab title="详情" />
    <van-tab title="数据" />
</van-tabs>

<DispalyData wx:if="{{tabsTitle=='数据'}}" dataId="{{sat_noticeid}}" dataAuth="{{dataAuth}}" />

<view hidden="{{tabsTitle!='详情'}}">
    <view class="main">
        <view class="title multi-line">{{detailsData.title}}</view>
        <view class="incidental">
            <view class="incidental_l">
                <van-tag wx:if="{{detailsData.classname}}" custom-class='tag line-1' color="#FF3B30" plain>{{detailsData.classname}}</van-tag>
                <view class="time">发布于：{{detailsData.createdate}}</view>
            </view>
            <view class="incidental_r">
                <view class="incidental_r_item">
                    <text class="iconfont icon-a-tonggaoliulanliang" />
                    {{detailsData.readcount}}
                </view>
            </view>
        </view>
        <block wx:if="{{detailsData.content.length}}">
            <view class="cut-off-rule" />
            <mp-html content="{{detailsData.content}}" />
        </block>
    </view>
    <view class="box" wx:if="{{detailsData.attinfos[0]}}">
        <view class="label">附件</view>
        <My_accessory list="{{detailsData.attinfos}}" binddownLoadRecord='downLoadRecord' />
    </view>
    <view class="box" wx:if="{{videoList[0]}}">
        <view class="label">视频</view>
        <video wx:for="{{videoList}}" src="{{item.url}}" />
    </view>

    <view wx:if="{{per.query(auth,'反馈')}}" class="evaluate" title="通告评价" hover>
        <view class="mtitle">
            <view class="title-l">通告评价</view>
            <view class="title-r">{{evaluate.evaluatecount}}人评分</view>
        </view>
        <view class="score">
            <text>总体</text>
            <van-rate custom-class='rate' readonly='{{isEvaluate}}' value="{{ rate.nubmer }}" size="{{ 25 }}" color="#ffd21e" void-icon="star" void-color="#eee" bind:change="rateChange" />
            <text>{{rate.text}}</text>
        </view>
        <view class="evaluation-title">建议与反馈</view>
        <view style="width: 100%; text-align: center;">
            <textarea value="{{evaluate.leavemessage}}" disabled='{{isEvaluate}}' bind:input='textInput' placeholder="请输入您的建议与反馈" />
            <view class="but-box">
                <van-button bindtap="submit" disabled='{{isEvaluate}}' loading='{{loading}}' loading-text="提交中..." custom-class='submit' color="var(--assist)">提交</van-button>
            </view>
        </view>
    </view>

    <view style="height: 30px;" />
</view>



<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />