<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8">
    <title>专区</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=0.5, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta name="sharetitle" content=""/>
    <meta name="sharedesc" content="" />
    <meta name="sharepic" content="" />
    <!--    <meta name="shareurl" :content="" />-->

    <script src="/static/js/jquery-3.5.1.min.js?v="+Math.random()></script>
    <script type="text/javascript" src="/static/js/h5/common.js"></script>
    <script src="/static/js/common.js?v="+Math.random()></script>
    <script>
        document.write('<link href="/static/css/html5/course/course-prefecture-list.css?v=' + Math.random() + '" rel="stylesheet" type="text/css"/>');
    </script>
    <link href="/static/css/html5/common.css?v=" +Math.random() rel="stylesheet" type="text/css"/>

    <link rel="stylesheet" href="/static/css/swiper-bundle.min.css">
    <script src="/static/js/swiper-bundle.min.js"> </script>
    <script src="/static/js/ucenter.js?v="+Math.random()></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?0305f34866fc4fe377f1bec6dc84d92f";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
    <div class="container">
<!--        <div  th:include="html5/common::common-header"></div>-->
        <div  th:include="html5/common::common-loading"></div>
        <div  th:include="html5/common::common-integral"></div>
        <div th:include="html5/common::common-conMusic"></div>
        <div  th:include="html5/common::common-firstlogin"></div>

        <input type="hidden" th:value="${id}" id="id" class="id">
        <input type="hidden" th:value="${memToken}" id="memToken" class="memToken">
        <div class="swiper-container" v-if="ad.length > 0">
            <div class="swiper-wrapper">
                <div v-for="(item,i) in ad" class="swiper-slide">
                    <img @click="gotoAdHtml(item.rcmdUrl)" onload="AutoResizeImage(750,422,this)" :src="item.rcmdImgpath">
                </div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <div class="infoDetails"  v-if="ad.length == 0">
            <img onload="AutoResizeImage(750,422,this)" :src="'http://files.qkyxzx.com/'+info.coverImg">
        </div>
<!--        <div class="make float">-->
<!--            <div class="total">{{info.totalClassHours}}套 · {{info.studyNumTOW}}次学习</div>-->
<!--            <div class="showCom"  @click="showTast()"><img onload="AutoResizeImage(28,28,this)" src="http://files.qkyxzx.com/html5/com.png"></div>-->
<!--        </div>-->
        <div class="courseTitle">{{info.title}}</div>
        <div class="tab">
            <div tabId="1" v-for="(item,i) in cata" :class="{active : item.active == 1}" @click="chooseTab(i)" class="tab-item">{{item.name}}</div>
        </div>
        <div v-show="cata[1].active == 1" class="detail" v-html="info.details">
        </div>
        <div v-show="cata[0].active == 1" id="list" class="list">
            <div v-if="list.length > 0 && list[i]" @click="courseDetails(item.id)" v-for="(item,i) in list" class="list-item float">
                <div class="left">
                    <img onload="AutoResizeImage(288,162,this)" :src="'http://files.qkyxzx.com/'+item.coverImg">
                </div>
                <div class="right">
                    <div class="title">{{item.title}}</div>
                    <div class="time">
                        <span v-if="item.studyNumTOW>9999">{{item.totalClassHours}}讲 · {{(item.studyNumTOW / 10000).toFixed(2)}}万人次学习</span>
                        <span v-else>{{item.totalClassHours}}讲 · {{item.studyNumTOW||0}}人次学习</span>
                    </div>
                    <div v-if="item.isBuy == 0 && item.pointFlag == 0 && item.price > 0" class="money"><span>¥</span>{{item.price}}</div>
                    <div v-if="item.isBuy == 0 && item.pointFlag == 0 && item.price == 0" class="money">免费</div>
                    <div v-if="item.isBuy == 0 && item.pointFlag == 1 && item.point == 0" class="money">免费</div>
                    <div v-if="item.isBuy == 0 && item.pointFlag == 1 && item.point > 0 " class="jf">{{item.point}}<span>积分</span></div>
                </div>
            </div>
        </div>
<!--        <div v-if="cata[1].active == 1" class="bq">-->
<!--            <img src="http://files.qkyxzx.com/html5/bqsm.png">-->
<!--        </div>-->
        <div v-show="cata[0].active == 1 && info.isSell == 0 && info.isBuy == 0" class="footer">
            <button v-if="(info.price==0 &&info.pointFlag==0) || (info.price==0 && info.pointFlag==1 && info.point==0)" class="immediately" @click="addFreeBuyApi()">免费领取</button>
            <button v-else-if="info.pointFlag==1 && info.point>0" class="consume" @click="toPay()">立即购买：{{info.point}}积分</button>
            <button v-else-if="info.price>0" class="consume" @click="toPay()">立即购买：{{info.price}}元</button>
        </div>
        <div v-if="toast" class="toast">
            <div class="toast-content">
                <div class="toast-info-title">电脑端观看</div>
                <div class="toast-info-content">
                    <div>地址</div>
                    <div>{{url+"&id="+zqId}}</div>
                </div>
                <div class="toast-info-bottom">复制链接后电脑端浏览器打开即可观看</div>
                <button @click="copy()">点击复制</button>
                <img @click="closeToast()" class="close" src="http://files.qkyxzx.com/html5/close.png"/>
            </div>
        </div>
        <!--    <p id="bottomInfo">全科在线提供技术支持</p>-->
    </div>
    <footer>
        <div th:include="html5/common::common-footer"></div>
    </footer>
</body>
<script src="/static/js/vue.js"></script>
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/static/js/checkysrz.js"></script>
<!-- Initialize Swiper -->
<script th:inline="javascript">
    //<![CDATA[
    var fromlogin = [[${fromlogin}]];
    //]]>
</script>
<script>
    document.write('<script src="/static/js/h5/course/course-prefecture-list.js?v=' + Math.random() + '"><\/script\>');
</script>
<script src="/static/js/jweixin-1.0.0.js"></script>
<script src="/static/js/wxshare.js?version=20220630"></script>
</html>
