<!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="https://qkj-web.oss-cn-beijing.aliyuncs.com/html5/share.png"/>
    <meta name="shareurl" content=""/>

    <link href="/web/css/common.css" rel="stylesheet">
    <link href="/static/css/web/page.css" rel="stylesheet">
    <link href="/web/css/layer.css" rel="stylesheet">
    <link href="/web/css/new.css" rel="stylesheet">
    <script src="/static/js/jquery-3.5.1.min.js?v=" +Math.random()></script>
    <script src="/static/web/js/layer.js"></script>

    <script src="/static/js/common.js?v=" +Math.random()></script>
    <script src="/static/web/js/common.js?v=" +Math.random()></script>

    <script>
        document.write('<link href="/static/css/web/courseware/courseware.css?v=' + Math.random() + '" rel="stylesheet" type="text/css"/>');
    </script>

    <link rel="stylesheet" href="/static/css/swiper-bundle.min.css">
    <script src="/static/js/swiper-bundle.min.js"></script>

    <script src="/static/js/vue.js"></script>
    <!--引入 element-ui 的样式，-->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 必须先引入vue，  后使用element-ui -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>
    <!-- 引入element 的组件库-->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="/static/js/wxLogin.js?v=" +Math.random()></script>
    <script src="/static/js/md5.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="index-box">

    <div th:include="web/common::common-header-web"></div>
    <div id="container" class="container">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div v-for="(item,i) in ad" class="swiper-slide">
                    <img @click="gotoAdHtml(item.rcmdUrl)" onload="AutoResizeImage(1200,260,this)"
                         :src="item.rcmdImgpath">
                </div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <div style="position: relative">
            <div class="tab float">
                <div v-for="(item,i) in oneCata" @click="chooseTab(i)" class="tab-item"
                     :class="{'active':item.active == 1}">{{item.name}}
                </div>
            </div>
            <!--                    <div @click="showChooseItem()" class="choose">-->
            <!--                        <img src="https://files.qkyxzx.com/html5/shaixuan.png" alt="">-->
            <!--                        筛选-->
            <!--                    </div>-->
        </div>
        <div style="position: relative" v-show="twoCata.length>0">
            <div class="tab float">
                <div v-for="(item,i) in twoCata" @click="chooseCata(i,2)" class="tab-item"
                     :class="{'active':item.active == 1}">{{item.name}}
                </div>
            </div>

        </div>
        <div style="position: relative" v-show="threeCata.length>0">
            <div class="tab float">
                <div v-for="(item,i) in threeCata" @click="chooseCata(i,3)" class="tab-item"
                     :class="{'active':item.active == 1}">{{item.name}}
                </div>
            </div>

        </div>
        <div id="list" class="list">
            <div v-if="list.length == 0" class="no-data">
                <img onload="AutoResizeImage(280,200,this)" src="/web/img/null.png"/>
                <div class="info">暂无数据</div>
            </div>
            <div v-for="(item,i) in list" @click="gotoPay(item)" class="list-item float">
                <div class="left">
                    <img onload="AutoResizeImage(282,159,this)" :src="item.coverImg">
<!--                    <img v-if="item.fileType == 3" onload="AutoResizeImage(282,159,this)"-->
<!--                         src="http://files.qkyxzx.com/html5/pdf.png">-->
<!--                    <img v-if="item.fileType == 2" onload="AutoResizeImage(282,159,this)"-->
<!--                         src="http://files.qkyxzx.com/html5/word.png">-->
<!--                    <img v-if="item.fileType == 1" onload="AutoResizeImage(282,159,this)"-->
<!--                         src="http://files.qkyxzx.com/html5/ppt.png">-->
<!--                    <img v-if="item.fileType == 4" onload="AutoResizeImage(282,159,this)"-->
<!--                         src="http://files.qkyxzx.com/html5/excel.png">-->
                </div>
                <div class="right">
                    <div class="title">{{item.title}}</div>
                    <div v-if="isVip" class="down" @click.stop="downFile(item.id)">下载</div>
                    <div v-else style="display: flex;justify-content: space-between;align-items: center">
                        <div class="time">{{item.downloadMembers}}</div>
                        <div v-if=" item.isPurchased == 0 &&item.price > 0&&item.pointFlag == 0" class="money">
                            <span>¥</span>{{item.price}}
                        </div>
                        <div v-if="item.isPurchased == 0 && item.pointFlag == 0 && item.price == 0" class="money">免费
                        </div>
                        <div v-if="item.isPurchased == 0 && item.pointFlag == 1 && item.point == 0" class="money">免费
                        </div>
                        <div v-if="item.isPurchased == 0 && item.pointFlag == 1 && item.point > 0 " class="jf">
                            {{item.point}}<span>积分</span></div>
                        <div v-if="item.isPurchased == 1" class="down" @click.stop="downFile(item.id)">下载</div>
                    </div>

                </div>
            </div>
        </div>
        <div id="app">
            <!-- elementUI实现表格属性筛选 -->
            <el-pagination
                    background
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="start"
                    :page-size="size"
                    layout=" prev, pager, next, total,jumper"
                    :total="total">
            </el-pagination>
        </div>

        <div class="choose-item" @click="hideCata()" v-if="chooseItem">
            <div class="cata" style="background: #ffffff;width: 750px;height: 77%">
                <div v-if="oneCata.length > 0" class="oneCata">
                    <div v-for="(item,i) in oneCata" @click.stop="chooseCata(i,1)" class="one-item"
                         :class="{'active':item.active == 1}">{{item.name}}
                    </div>
                </div>
                <div v-if="twoCata.length > 0" class="twoCata">
                    <div v-for="(item,i) in twoCata" @click.stop="chooseCata(i,2)" class="two-item"
                         :class="{'active':item.active == 1}">{{item.name}}
                    </div>
                </div>
                <div v-if="threeCata.length > 0" class="threeCata">
                    <div v-for="(item,i) in threeCata" @click.stop="chooseCata(i,3)" class="three-item"
                         :class="{'active':item.active == 1}">{{item.name}}
                    </div>
                </div>
            </div>
            <div class="footer">
                <button @click="hideCata()">取消</button>
                <button @click="confirm()">确定</button>
            </div>
        </div>
    </div>
    <div th:include="web/common::common-bottom-web"></div>
    <!--返回顶部-->
    <div th:include="web/common::common-back-web"></div>
</div>
</body>
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>

<script>
    document.write('<script src="/static/web/js/courseware/courseware.js?v=' + Math.random() + '"><\/script\>');
</script>
<script src="/web/js/layer.js"></script>
<script src="/static/web/js/common.js?v=" +Math.random()></script>

</html>
