<div class="exam-con">
    <el-button class="fr return-btn" size="medium" @click="open('UserCourseDetailPeriodTable')">返回课时列表</el-button>
    <ks-title title="试卷" :underline="true" />
    <div class="exam-list" v-if="examlist && examlist.length">
        <div class="exam-item" v-for="(item,i) in examlist" :key="i">
            <div v-if="$route.query.costype=='3'">
                <div class="do-exam-btn">
                    <span class="docount" v-if="item.docount">已做完</span>
                    <a :href="item.view_url">开始做题</a>
                </div>
                <h3 class="exam-item-title"><a :href="item.view_url" target="_blank">{{item.name}}</a></h3>
                <div class="exam-item-con">
                    <span>试卷总分：{{item.sumscores}}分</span>
                    <span>考试时间：{{item.exam_time}}分钟</span>
                </div>
            </div>
            <div v-else>
                <div class="do-exam-btn" v-if="HasCoursePower && item.AllowExam">
                    <span class="docount" v-if="item.docount">已做完</span>
                    <a :href="item.PaperUrl">开始做题</a>
                </div>
                <div class="do-exam-btn" v-else>
                    <i class="do-exam-lock"></i>
                </div>
                <h3 class="exam-item-title"><a :href="item.PaperUrl" target="_blank" v-if="HasCoursePower && item.AllowExam">{{item.PaperTitle}}</a><span v-else style="color: #333;">{{item.PaperTitle}}</span></h3>
                <div class="exam-item-con">
                    <span>试卷总分：{{item.paper_sumscore}}分</span>
                    <span>考试时间：{{item.paper_exam_time}}分钟</span>
                </div>
            </div>
        </div>
    </div>
    <ks-empty msg="暂无商品~" v-else />
</div>