<!--mycomponent/voice_shop/good_detail.wxml-->
<!-- <import src="../../../wxParse/wxParse.wxml" /> -->
<view class="hotel_goods">
  <view class="content">
    <view class="showicon {{hoet?'hoet':''}}">
      <view class="member" catchtap="gotoMember">
        <view class="back">
          <icon class="iconfont icon-wode-wode"></icon>
        </view>
      </view>
      <view class="cart" catchtap="gotoindex">
        <view class="back">
          <icon class="iconfont icon-ai-home"></icon>
        </view>
      </view>
    </view>
    <view class="scroll_banner">
      <swiper indicator-dots="{{true}}" style="height: 100%;" autoplay="{{false}}" circular="{{true}}" indicator-active-color="#007aff">
        <block wx:for="{{goodsInfo.thumb_url}}" wx:for-item="image" wx:for-index="index" wx:key="index">
          <swiper-item>
            <image src="{{image}}" mode='aspectFill' />
          </swiper-item>
        </block>
        <block wx:if="{{goodsInfo.goods_video}}">
          <swiper-item>
            <video src="{{goodsInfo.goods_video}}" style="width:100%;"></video>
          </swiper-item>
        </block>
      </swiper>
    </view>
  </view>
</view>
<view class="title">
  <view clas='h1' style="-webkit-box-orient:vertical;">{{goodsInfo.title}}</view>
  <view class="content" style="padding-top:0.5rem;">{{goodsInfo.content}}</view>
</view>
<!--  bindtap="startPlayOrPause"  -->
<view class="btn"  bindtap="popupSpecs" wx:if="{{!is_rule}}">
  立即在线播放
</view>
<view class="voice" wx:if="{{is_rule}}">
  <view class="p">
    <view class="line"></view>
    <view class="title">语音信息</view>
  </view>
  <view class="voice-item ul">
    <view wx:for="{{goodsInfo.curriculum}}" wx:key="index" class="selectedNum==index?'activeLi':'' li">
      <view class="voice-content">
        <view class="first">1</view>
        <view class="second">{{item.name}}</view>
        <view class="icon" >
          <image src="{{stop1}}" wx:if='{{bfstatus}}' data-daLi="{{item}}" bindtap='tapzt'></image>
          <image src="{{play1}}" wx:else data-daLi="{{item}}" bindtap="tapbf" ></image> 
        </view>
      </view>
      <view class="audio-wrapper" wx:if="selectedNum==index">
        <slider block-size='16' activeColor='#ffba00' backgroundColor='#bec2c1' bindchange="sildein" value="{{valueSlmin}}"></slider>
        <view class="time">
          <view class="time_left">{{slmin}}</view>
          <view class="time_right">{{currentTime}}</view>
        </view>
      </view>
    </view>

  </view>
</view>
<!-- 微帖 -->
<invitation goods_plugin="{{goodsInfo}}"></invitation>
	<!-- 微帖 -->
<view class="voice">
  <view class="p">
    <view class="line blue"></view>
    <view class="title">详情</view>
  </view>
  <view id="goods_content">
    <rich-text nodes="{{goodsInfo.goods_content}}"></rich-text>
  </view>
</view>

<view class="voice" wx:if="goodsInfo.sale_goods">
  <view class='p'><view class="line red"></view><view class="title">猜你喜欢</view></view>
  <view class="like-box">
    <view class="like-item" wx:for="{{goodsInfo.sale_goods}}" wx:key="index" bindtap='gotoGoods' id='{{item.id}}'>
      <view class="img">
        <image src="{{item.thumb}}" ></image>
      </view>
      <view style="-webkit-box-orient:vertical;" class="like-title">{{item.title}}</view>
    </view>
  </view>
</view>


<van-popup show="{{posterShow}}" bind:close="posterClose">
  <view class="popup-box">
	<view class="title bottom-line">
	  <view class="h1">授权权限申请</view>
	</view>
	<view class="popup-text">
	  {{ConnectionInfo.voice_tips}}
	</view>
	<view class="icon-box">
	  <view class="popup-icon" wx:if="{{ConnectionInfo.people_connect}}" catchtap='onlinekf'>
      <image src="{{weixin1}}"></image>
      <view class="span">在线客服</view>
	  </view>
	  <view class="popup-icon" wx:if="{{ConnectionInfo.phone}}" catchtap='phone' >
      <image src="{{phone1}}"></image>
      <view class="span">客服电话</view>
	  </view>
	</view>
  </view>
</van-popup>