<!-- packageC/Myshaky/lecturerDetail/lecturerDetail.wxml -->
<view class='detail'>
  <view class='user'>
    <view class='userHead'>
      <image src="{{lecturer.has_one_member.avatar_image}}"></image>
    </view>
    <view class='userName'>{{lecturer.has_one_member.realname}}</view>
    <view class="introduce duce" wx:if="{{!lecturer.introduce}}">
      未设置简介      
    </view>
    <view class='introduce'  wx:else>
      {{lecturer.introduce}}
    </view>
    <view class="Number">
      <view class="activities">
        <view>活动项目</view>
        <view class="project">{{total}}</view>
      </view>
      <view class="line">|</view>
      <view class="shop">
        <view>课程商品</view>
        <view class="shop-item">{{shopTotal}}</view>
      </view>
    </view>
  </view>
  <view class='detailTab'>
    <view class='tabBox'>
      <block wx:for="{{detail}}" wx:key="index">
        <view class='tabLis' bindtap='tapStatus' id='{{item.id}}'>
          <view id='{{item.id}}'>{{item.tit}}</view>
          <view class='lines' wx:if="{{index == curr}}"></view>
        </view>
      </block>
    </view>
    <!-- <viewBox paramAtoB='{{curr}}' munid="{{member_id}}" kid="{{kid}}"></viewBox> -->
    <!-- mycomponent/MyshakyBox/MyshakyBox.wxml -->
    <!-- 活动项目 -->
    <view class='statusOne' wx:if="{{curr == '0'}}">
      <view class='loveList' wx:for="{{list}}" wx:key='index' id="{{item.id}}" bindtap="goxq">
        <view class='listLeft'>
          <view class='listStatus' wx:if="{{nowTime > item.registration_time && nowTime < item.registration_end_time}}">
            报名中
          </view>
          <view class='listStatus' wx:if="{{nowTime < item.registration_time }}">待开始</view>
          <view class='listStatus' wx:if="{{nowTime > item.registration_end_time}}">报名结束</view>
          <image mode="aspectFill" src="{{item.thumb}}"></image>
        </view>
        <view class='listRight'>
          <view class='dy'>
            <view class='de'>{{item.title}}</view>
            <view class='listTime'>
              <icon class='iconfont icon-service_j fontTwo'></icon>
              <view class='listext'>{{item.start_time}}开始</view>
            </view>
            <view class='ds'>
              <view wx:if="{{item.cash != '0.00'}}">
                <view class='ds1'>￥</view>
                <view class='ds2'>{{item.cash}}</view>
              </view>
              <view wx:else>
                <view>免费</view>
              </view>
              <view class='dsi'>
                <view class='dw'>{{item.city_name}}</view>
                <view class='dq'>|</view>
                <view class='dl'>{{item.address}}</view>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <!-- 课程商品 -->
    <view class='statusTwo' wx:if="{{curr == '1'}}">
      <view class='listBox' wx:for="{{shopList}}" wx:key="index" bindtap='goDingdan' id="{{item.goods_id}}">
        <view class='listPhoto'>
          <image src='{{item.has_one_goods.thumb}}'></image>
        </view>
        <view class='listBottom'>
          <view class='listTexts'>{{item.has_one_goods.title}}</view>
          <view class='bzs'>
            <view class='bzsMoney'>
              <text>￥</text>
              <text>{{item.has_one_goods.market_price}}</text>
              <text>¥{{item.has_one_goods.price}}</text>
            </view>
            <!-- <view>已售97</view> -->
          </view>
        </view>
      </view>
      <view class="noneText" wx:if='{{shopList.length == 0}}'>暂无商品</view>
    </view>
  </view>
</view>