<!--pages/cg_detail/index.wxml-->
<import src="../../common/component/wxParse/wxParse.wxml" />

<view class='container'>
  <view class='scene-introduction'>
    <view class='cg_detail_bg'>
      <image wx:if="{{pavilionDetail.imageUrl}}" class='cg_detail_bg_img' mode="aspectFill" src="{{(imgServer + pavilionDetail.imageUrl)||defaultImg}}"></image>
    </view>
    <view class='cg_detail_info'>
      <view class='cg_detail_info_top' style='margin-bottom:20rpx;'>
        <view class='cg_detail_info_top_img_flex'>
          <image wx:if="{{pavilionDetail.logoUrl}}" class='cg_detail_info_top_flex_img' mode='aspectFill' src="{{imgServer + pavilionDetail.logoUrl||defaultImg}}"></image>
        </view>
        <view class='cg_detail_info_top_flex'>
          <view class='cg_detail_info_title'>
            <text class='exhibitionDetailName' style='width:550rpx;'>{{pavilionDetail.name}}</text>
          </view>
          <view class='cg_detail_info_subTxt'>
            <text decode='true' class='cg_detail_info_subTxt_txt'>{{pavilionDetail.enName}}&nbsp;</text>
          </view>
        </view>
      </view>

      <!-- <view class="cg_detail_container">
          <view style='height:190rpx;overflow:hidden'>
          <template is="wxParse" data="{{wxParseData:description.nodes}}" />
          </view>
          <view style='margin-top:10rpx;'>
            <view class='weui-cell no-border' style='padding:0'>
              <view class='weui-cell__bd'>
              </view>
              <view class='weui-cell__ft weui-cell__ft_in-access' style='font-size:28rpx' bindtap='to_search'>查看更多</view>
            </view>
          </view>
        </view> -->

      <view class='cg_detail_warpper'>
        <view class='cg_detail_time_warpper'>
          <view class='iconfont iconshijian'></view>
          <text class='cg_detail_time'>{{pavilionDetail.openTime}} 提前一个小时入馆 周一闭馆</text>
        </view>
        <navigator class='cg_address_warpper' url="./cg_introduce/index?id={{pavilionId}}&lo={{pavilionDetail.longitude}}&la={{pavilionDetail.latitude}}">
          <view class=' iconfont iconweizhi'></view>
          <text class='cg_address'>{{pavilionDetail.address}}</text>
          <view class='iconfont icon-youbian'></view>
        </navigator>

        <view class='cg_detail_title'>展厅简介</view>

        <view class='cg_detail_desc'>
          <view class='cg_detail_desc_con {{ pavilionDetail.description ? "" : "noText"  }} {{active ? "active" : ""}}'>
            <template is="wxParse" data="{{wxParseData:description.nodes}}" />
            <text wx:if="{{!pavilionDetail.description}}">暂无简介</text>
          </view>
          <view wx:if="{{pavilionDetail.description}}" class='cg_detail_descMore {{ active ? "active" : ""  }}' bindtap='clickCell'>{{active ? "" : "查看更多内容" }}</view>
        </view>

      </view>
    </view>
  </view>

  <view class='cg_artist' wx:if="{{pavilionDetail.relatedActivities.length}}">
    <view class='fdkk-cells'>
      <view class='tab-bar'>
        <view class='weui-cell'>
          <view class='weui-cell__bd'>
            <text class='sub_bar_title'>正在展出</text>
          </view>
          <!-- <view style='font-size:28rpx' class="weui-cell__ft weui-cell__ft_in-access  fix_weui-cell__ft_in-access {{readActive?'weui-cell__ft_in-access_active':''}}" bindtap='readMore'>全部（{{relatedActivitiesLength}}）</view> -->
          <view class="weui-cell__ft   fix_weui-cell__ft_in-access ">全部（{{relatedActivitiesLength}}）</view>
        </view>
      </view>
      <view class='artist_avatar'>
        <navigator hover-class='none' url="{{item.hasProduct ? ('../wv_page/index?link='+item.product.link+'&id='+item.id+'&imageUrl='+item.imageUrl):('../zl_detail/index?id='+item.id+'&imageUrl='+item.imageUrl)}}" wx:if="{{!(index>2)||readActive}}" class='fdkz-card'
          wx:for="{{relatedActivities}}" wx:key="index">
          <view class='fdkz-card-img'>

            <view wx:if="{{item.statusText}}" class="{{item.online == 1 ? 'new-fdkz-card-tag' : 'fdkz-card-tag'}}  {{item.statusText=='展览中'||item.statusText==''?'':item.statusText=='已结束'?'fdkz-card-tag-end':item.statusText=='热门'?'':'fdkz-card-tag_coming'}}">
              <text class='fdkz-card-tag-txt'>{{item.online == 1 ? '线上看展' : item.statusText}}</text>
            </view>


            <image src="{{imgServer + item.imageUrl||defaultImg}}" mode="aspectFill" class='item-img'></image>
          </view>
          <view class='fdkz-card-info'>
            <view class='fdkz-card-info-title'>
              <view class='title-txt'>
                {{item.name}}
              </view>
             
            </view>
            <view class='fdkz-card-info-date'>
              <view class='date-txt'>{{item.pavilionName}}</view>
              
              <view>{{item.statusTextDesp}}</view>
            </view>
          </view>
        </navigator>
      </view>
      <view class='fdkz-card-info-date-more' bindtap='readMore'>{{(readActive || relatedActivitiesLength
        < 3) ? "没有更多内容" : "查看更多内容" }}</view>
      </view>
    </view>
  </view>