一、列表页面

创建 pages/course/index.vue

  1. <template>
  2. <div id="aCoursesList" class="bg-fa of">
  3. <!-- /课程列表 开始 -->
  4. <section class="container">
  5. <header class="comm-title">
  6. <h2 class="fl tac">
  7. <span class="c-333">全部课程</span>
  8. </h2>
  9. </header>
  10. <section class="c-sort-box">
  11. <section class="c-s-dl">
  12. <dl>
  13. <dt>
  14. <span class="c-999 fsize14">课程类别</span>
  15. </dt>
  16. <dd class="c-s-dl-li">
  17. <ul class="clearfix">
  18. <li>
  19. <a title="全部" href="#">全部</a>
  20. </li>
  21. <li>
  22. <a title="数据库" href="#">数据库</a>
  23. </li>
  24. <li class="current">
  25. <a title="外语考试" href="#">外语考试</a>
  26. </li>
  27. <li>
  28. <a title="教师资格证" href="#">教师资格证</a>
  29. </li>
  30. <li>
  31. <a title="公务员" href="#">公务员</a>
  32. </li>
  33. <li>
  34. <a title="移动开发" href="#">移动开发</a>
  35. </li>
  36. <li>
  37. <a title="操作系统" href="#">操作系统</a>
  38. </li>
  39. </ul>
  40. </dd>
  41. </dl>
  42. <dl>
  43. <dt>
  44. <span class="c-999 fsize14"></span>
  45. </dt>
  46. <dd class="c-s-dl-li">
  47. <ul class="clearfix">
  48. <li>
  49. <a title="职称英语" href="#">职称英语</a>
  50. </li>
  51. <li>
  52. <a title="英语四级" href="#">英语四级</a>
  53. </li>
  54. <li>
  55. <a title="英语六级" href="#">英语六级</a>
  56. </li>
  57. </ul>
  58. </dd>
  59. </dl>
  60. <div class="clear"></div>
  61. </section>
  62. <div class="js-wrap">
  63. <section class="fr">
  64. <span class="c-ccc">
  65. <i class="c-master f-fM">1</i>/
  66. <i class="c-666 f-fM">1</i>
  67. </span>
  68. </section>
  69. <section class="fl">
  70. <ol class="js-tap clearfix">
  71. <li>
  72. <a title="关注度" href="#">关注度</a>
  73. </li>
  74. <li>
  75. <a title="最新" href="#">最新</a>
  76. </li>
  77. <li class="current bg-orange">
  78. <a title="价格" href="#">价格&nbsp;
  79. <span></span>
  80. </a>
  81. </li>
  82. </ol>
  83. </section>
  84. </div>
  85. <div class="mt40">
  86. <!-- /无数据提示 开始-->
  87. <section class="no-data-wrap">
  88. <em class="icon30 no-data-ico">&nbsp;</em>
  89. <span class="c-666 fsize14 ml10 vam">没有相关数据,小编正在努力整理中...</span>
  90. </section>
  91. <!-- /无数据提示 结束-->
  92. <article class="comm-course-list">
  93. <ul class="of" id="bna">
  94. <li>
  95. <div class="cc-l-wrap">
  96. <section class="course-img">
  97. <img src="~/assets/photo/course/1442295592705.jpg" class="img-responsive" alt="听力口语">
  98. <div class="cc-mask">
  99. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  100. </div>
  101. </section>
  102. <h3 class="hLh30 txtOf mt10">
  103. <a href="/course/1" title="听力口语" class="course-title fsize18 c-333">听力口语</a>
  104. </h3>
  105. <section class="mt10 hLh20 of">
  106. <span class="fr jgTag bg-green">
  107. <i class="c-fff fsize12 f-fA">免费</i>
  108. </span>
  109. <span class="fl jgAttr c-ccc f-fA">
  110. <i class="c-999 f-fA">9634人学习</i>
  111. |
  112. <i class="c-999 f-fA">9634评论</i>
  113. </span>
  114. </section>
  115. </div>
  116. </li>
  117. <li>
  118. <div class="cc-l-wrap">
  119. <section class="course-img">
  120. <img src="~/assets/photo/course/1442295581911.jpg" class="img-responsive" alt="Java精品课程">
  121. <div class="cc-mask">
  122. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  123. </div>
  124. </section>
  125. <h3 class="hLh30 txtOf mt10">
  126. <a href="/course/1" title="Java精品课程" class="course-title fsize18 c-333">Java精品课程</a>
  127. </h3>
  128. <section class="mt10 hLh20 of">
  129. <span class="fr jgTag bg-green">
  130. <i class="c-fff fsize12 f-fA">免费</i>
  131. </span>
  132. <span class="fl jgAttr c-ccc f-fA">
  133. <i class="c-999 f-fA">501人学习</i>
  134. |
  135. <i class="c-999 f-fA">501评论</i>
  136. </span>
  137. </section>
  138. </div>
  139. </li>
  140. <li>
  141. <div class="cc-l-wrap">
  142. <section class="course-img">
  143. <img src="~/assets/photo/course/1442295604295.jpg" class="img-responsive" alt="C4D零基础">
  144. <div class="cc-mask">
  145. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  146. </div>
  147. </section>
  148. <h3 class="hLh30 txtOf mt10">
  149. <a href="/course/1" title="C4D零基础" class="course-title fsize18 c-333">C4D零基础</a>
  150. </h3>
  151. <section class="mt10 hLh20 of">
  152. <span class="fr jgTag bg-green">
  153. <i class="c-fff fsize12 f-fA">免费</i>
  154. </span>
  155. <span class="fl jgAttr c-ccc f-fA">
  156. <i class="c-999 f-fA">300人学习</i>
  157. |
  158. <i class="c-999 f-fA">300评论</i>
  159. </span>
  160. </section>
  161. </div>
  162. </li>
  163. <li>
  164. <div class="cc-l-wrap">
  165. <section class="course-img">
  166. <img
  167. src="~/assets/photo/course/1442302831779.jpg"
  168. class="img-responsive"
  169. alt="数学给宝宝带来的兴趣"
  170. >
  171. <div class="cc-mask">
  172. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  173. </div>
  174. </section>
  175. <h3 class="hLh30 txtOf mt10">
  176. <a href="/course/1" title="数学给宝宝带来的兴趣" class="course-title fsize18 c-333">数学给宝宝带来的兴趣</a>
  177. </h3>
  178. <section class="mt10 hLh20 of">
  179. <span class="fr jgTag bg-green">
  180. <i class="c-fff fsize12 f-fA">免费</i>
  181. </span>
  182. <span class="fl jgAttr c-ccc f-fA">
  183. <i class="c-999 f-fA">256人学习</i>
  184. |
  185. <i class="c-999 f-fA">256评论</i>
  186. </span>
  187. </section>
  188. </div>
  189. </li>
  190. <li>
  191. <div class="cc-l-wrap">
  192. <section class="course-img">
  193. <img
  194. src="~/assets/photo/course/1442295455437.jpg"
  195. class="img-responsive"
  196. alt="零基础入门学习Python课程学习"
  197. >
  198. <div class="cc-mask">
  199. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  200. </div>
  201. </section>
  202. <h3 class="hLh30 txtOf mt10">
  203. <a
  204. href="/course/1"
  205. title="零基础入门学习Python课程学习"
  206. class="course-title fsize18 c-333"
  207. >零基础入门学习Python课程学习</a>
  208. </h3>
  209. <section class="mt10 hLh20 of">
  210. <span class="fr jgTag bg-green">
  211. <i class="c-fff fsize12 f-fA">免费</i>
  212. </span>
  213. <span class="fl jgAttr c-ccc f-fA">
  214. <i class="c-999 f-fA">137人学习</i>
  215. |
  216. <i class="c-999 f-fA">137评论</i>
  217. </span>
  218. </section>
  219. </div>
  220. </li>
  221. <li>
  222. <div class="cc-l-wrap">
  223. <section class="course-img">
  224. <img
  225. src="~/assets/photo/course/1442295570359.jpg"
  226. class="img-responsive"
  227. alt="MySql从入门到精通"
  228. >
  229. <div class="cc-mask">
  230. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  231. </div>
  232. </section>
  233. <h3 class="hLh30 txtOf mt10">
  234. <a href="/course/1" title="MySql从入门到精通" class="course-title fsize18 c-333">MySql从入门到精通</a>
  235. </h3>
  236. <section class="mt10 hLh20 of">
  237. <span class="fr jgTag bg-green">
  238. <i class="c-fff fsize12 f-fA">免费</i>
  239. </span>
  240. <span class="fl jgAttr c-ccc f-fA">
  241. <i class="c-999 f-fA">125人学习</i>
  242. |
  243. <i class="c-999 f-fA">125评论</i>
  244. </span>
  245. </section>
  246. </div>
  247. </li>
  248. <li>
  249. <div class="cc-l-wrap">
  250. <section class="course-img">
  251. <img src="~/assets/photo/course/1442302852837.jpg" class="img-responsive" alt="搜索引擎优化技术">
  252. <div class="cc-mask">
  253. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  254. </div>
  255. </section>
  256. <h3 class="hLh30 txtOf mt10">
  257. <a href="/course/1" title="搜索引擎优化技术" class="course-title fsize18 c-333">搜索引擎优化技术</a>
  258. </h3>
  259. <section class="mt10 hLh20 of">
  260. <span class="fr jgTag bg-green">
  261. <i class="c-fff fsize12 f-fA">免费</i>
  262. </span>
  263. <span class="fl jgAttr c-ccc f-fA">
  264. <i class="c-999 f-fA">123人学习</i>
  265. |
  266. <i class="c-999 f-fA">123评论</i>
  267. </span>
  268. </section>
  269. </div>
  270. </li>
  271. <li>
  272. <div class="cc-l-wrap">
  273. <section class="course-img">
  274. <img src="~/assets/photo/course/1442295379715.jpg" class="img-responsive" alt="20世纪西方音乐">
  275. <div class="cc-mask">
  276. <a href="/course/1" title="开始学习" class="comm-btn c-btn-1">开始学习</a>
  277. </div>
  278. </section>
  279. <h3 class="hLh30 txtOf mt10">
  280. <a href="/course/1" title="20世纪西方音乐" class="course-title fsize18 c-333">20世纪西方音乐</a>
  281. </h3>
  282. <section class="mt10 hLh20 of">
  283. <span class="fr jgTag bg-green">
  284. <i class="c-fff fsize12 f-fA">免费</i>
  285. </span>
  286. <span class="fl jgAttr c-ccc f-fA">
  287. <i class="c-999 f-fA">34人学习</i>
  288. |
  289. <i class="c-999 f-fA">34评论</i>
  290. </span>
  291. </section>
  292. </div>
  293. </li>
  294. </ul>
  295. <div class="clear"></div>
  296. </article>
  297. </div>
  298. <!-- 公共分页 开始 -->
  299. <div>
  300. <div class="paging">
  301. <a class="undisable" title></a>
  302. <a id="backpage" class="undisable" href="#" title>&lt;</a>
  303. <a href="#" title class="current undisable">1</a>
  304. <a href="#" title>2</a>
  305. <a id="nextpage" href="#" title>&gt;</a>
  306. <a href="#" title></a>
  307. <div class="clear"></div>
  308. </div>
  309. </div>
  310. <!-- 公共分页 结束 -->
  311. </section>
  312. </section>
  313. <!-- /课程列表 结束 -->
  314. </div>
  315. </template>
  316. <script>
  317. export default {};
  318. </script>

二、详情页面

创建 pages/course/_id.vue

<template>
  <div id="aCoursesList" class="bg-fa of">
    <!-- /课程详情 开始 -->
    <section class="container">
      <section class="path-wrap txtOf hLh30">
        <a href="#" title class="c-999 fsize14">首页</a>
        \
        <a href="#" title class="c-999 fsize14">课程列表</a>
        \
        <span class="c-333 fsize14">Java精品课程</span>
      </section>
      <div>
        <article class="c-v-pic-wrap" style="height: 357px;">
          <section class="p-h-video-box" id="videoPlay">
            <img src="~/assets/photo/course/1442295581911.jpg" alt="Java精品课程" class="dis c-v-pic">
          </section>
        </article>
        <aside class="c-attr-wrap">
          <section class="ml20 mr15">
            <h2 class="hLh30 txtOf mt15">
              <span class="c-fff fsize24">Java精品课程</span>
            </h2>
            <section class="c-attr-jg">
              <span class="c-fff">价格:</span>
              <b class="c-yellow" style="font-size:24px;">¥0.00</b>
            </section>
            <section class="c-attr-mt c-attr-undis">
              <span class="c-fff fsize14">主讲: 唐嫣&nbsp;&nbsp;&nbsp;</span>
            </section>
            <section class="c-attr-mt of">
              <span class="ml10 vam">
                <em class="icon18 scIcon"></em>
                <a class="c-fff vam" title="收藏" href="#" >收藏</a>
              </span>
            </section>
            <section class="c-attr-mt">
              <a href="#" title="立即观看" class="comm-btn c-btn-3">立即观看</a>
            </section>
          </section>
        </aside>
        <aside class="thr-attr-box">
          <ol class="thr-attr-ol clearfix">
            <li>
              <p>&nbsp;</p>
              <aside>
                <span class="c-fff f-fM">购买数</span>
                <br>
                <h6 class="c-fff f-fM mt10">150</h6>
              </aside>
            </li>
            <li>
              <p>&nbsp;</p>
              <aside>
                <span class="c-fff f-fM">课时数</span>
                <br>
                <h6 class="c-fff f-fM mt10">20</h6>
              </aside>
            </li>
            <li>
              <p>&nbsp;</p>
              <aside>
                <span class="c-fff f-fM">浏览数</span>
                <br>
                <h6 class="c-fff f-fM mt10">501</h6>
              </aside>
            </li>
          </ol>
        </aside>
        <div class="clear"></div>
      </div>
      <!-- /课程封面介绍 -->
      <div class="mt20 c-infor-box">
        <article class="fl col-7">
          <section class="mr30">
            <div class="i-box">
              <div>
                <section id="c-i-tabTitle" class="c-infor-tabTitle c-tab-title">
                  <a name="c-i" class="current" title="课程详情">课程详情</a>
                </section>
              </div>
              <article class="ml10 mr10 pt20">
                <div>
                  <h6 class="c-i-content c-infor-title">
                    <span>课程介绍</span>
                  </h6>
                  <div class="course-txt-body-wrap">
                    <section class="course-txt-body">
                      <p>
                        Java的发展历史,可追溯到1990年。当时Sun&nbsp;Microsystem公司为了发展消费性电子产品而进行了一个名为Green的项目计划。该计划
                        负责人是James&nbsp;Gosling。起初他以C++来写一种内嵌式软件,可以放在烤面包机或PAD等小型电子消费设备里,使得机器更聪明,具有人工智
                        能。但他发现C++并不适合完成这类任务!因为C++常会有使系统失效的程序错误,尤其是内存管理,需要程序设计师记录并管理内存资源。这给设计师们造成
                        极大的负担,并可能产生许多bugs。&nbsp;
                        <br>为了解决所遇到的问题,Gosling决定要发展一种新的语言,来解决C++的潜在性危险问题,这个语言名叫Oak。Oak是一种可移植性语言,也就是一种平台独立语言,能够在各种芯片上运行。
                        <br>1994年,Oak技术日趋成熟,这时网络正开始蓬勃发展。Oak研发小组发现Oak很适合作为一种网络程序语言。因此发展了一个能与Oak配合的浏
                        览器--WebRunner,后更名为HotJava,它证明了Oak是一种能在网络上发展的程序语言。由于Oak商标已被注册,工程师们便想到以自己常
                        享用的咖啡(Java)来重新命名,并于Sun&nbsp;World&nbsp;95中被发表出来。
                      </p>
                    </section>

                  </div>
                </div>
                <!-- /课程介绍 -->
                <div class="mt50">
                  <h6 class="c-g-content c-infor-title">
                    <span>课程大纲</span>
                  </h6>
                  <section class="mt20">
                    <div class="lh-menu-wrap">
                      <menu id="lh-menu" class="lh-menu mt10 mr10">
                        <ul>
                          <!-- 文件目录 -->
                          <li class="lh-menu-stair">
                            <a href="javascript: void(0)" title="第一章" class="current-1">
                              <em class="lh-menu-i-1 icon18 mr10"></em>第一章
                            </a>
                            <ol class="lh-menu-ol" style="display: block;">
                              <li class="lh-menu-second ml30">
                                <a href="#" title>
                                  <span class="fr">
                                    <i class="free-icon vam mr10">免费试听</i>
                                  </span>
                                  <em class="lh-menu-i-2 icon16 mr5">&nbsp;</em>第一节
                                </a>
                              </li>
                              <li class="lh-menu-second ml30">
                                <a href="#" title class="current-2">
                                  <em class="lh-menu-i-2 icon16 mr5">&nbsp;</em>第二节
                                </a>
                              </li>
                            </ol>
                          </li>
                        </ul>
                      </menu>
                    </div>
                  </section>
                </div>
                <!-- /课程大纲 -->
              </article>
            </div>
          </section>
        </article>
        <aside class="fl col-3">
          <div class="i-box">
            <div>
              <section class="c-infor-tabTitle c-tab-title">
                <a title href="javascript:void(0)">主讲讲师</a>
              </section>
              <section class="stud-act-list">
                <ul style="height: auto;">
                  <li>
                    <div class="u-face">
                      <a href="#">
                        <img src="~/assets/photo/teacher/1442297969808.jpg" width="50" height="50" alt>
                      </a>
                    </div>
                    <section class="hLh30 txtOf">
                      <a class="c-333 fsize16 fl" href="#">周杰伦</a>
                    </section>
                    <section class="hLh20 txtOf">
                      <span class="c-999">毕业于北京大学数学系</span>
                    </section>
                  </li>
                </ul>
              </section>
            </div>
          </div>
        </aside>
        <div class="clear"></div>
      </div>
    </section>
    <!-- /课程详情 结束 -->

  </div>
</template>

<script>
export default {};
</script>