preview.vue 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <style lang="sass">
  2. @import "./scss/preview.scss";
  3. </style>
  4. <template>
  5. <div class="page-video-preview">
  6. <section class="preview-hd">
  7. <video id="videoPlayer" :poster="curVideoPic" controls :src="curVideoUrl" playsinline="isiPhoneShowPlaysinline" webkit-playsinline="isiPhoneShowPlaysinline"></video>
  8. </section>
  9. <div class="preview-bd">
  10. <section class="v-mod-detail">
  11. <a :data-href='"/?page=video-detail&articleId="+article.id' class="detail-wrap">
  12. <div class="detail-fl">
  13. <img :src="article.cover" alt="">
  14. </div>
  15. <div class="detail-fm">
  16. <h2>{{article.name}}</h2>
  17. <p>上映时间:{{article.releaseDate | parseReleaseDate}}</p>
  18. <p v-if="articleType==2">{{article.episode}}集/单集片长:{{article.duration}}min</p>
  19. <p v-else>片长:{{article.duration}}min</p>
  20. <p><span v-for="(area,index) in areas" :key="area">{{area}}</span>/<span v-for="(categorie,index) in categories" :key="categorie">{{categorie}}</span></p>
  21. <p>别名:<span v-for="(alia,index) in alias" :key="alia">{{alia}}</span></p>
  22. </div>
  23. </a>
  24. </section>
  25. <section class="v-mod-preview">
  26. <h2>预告片({{trailers.count}})</h2>
  27. <ul class="list-preview">
  28. <li v-for="(video,index) in videos" :key="index" :class='index==0?"active":""' @click="changeVideo(index)">
  29. <div class="item-fl">
  30. <img :src="video.cover" :alt="video.title">
  31. </div>
  32. <div class="item-fr">
  33. <h3>{{video.title}}</h3>
  34. <p>{{video.len | parseVideoLen}}</p>
  35. </div>
  36. </li>
  37. </ul>
  38. <a class="btn-more" :href="downloadUrl" v-if="trailers.count>5">进入APP查看更多 &gt;</a>
  39. </section>
  40. <section class="v-mod-comment mt-16 pb-150">
  41. <div class="comment-hd comment-hd2">
  42. <h2><span>用户辣评</span></h2>
  43. <p>(<em id="commentNum">0</em>)</p>
  44. </div>
  45. <comment
  46. :type="1"
  47. :id="articleId"
  48. :hasPlayer="true">
  49. </comment>
  50. </section>
  51. </div>
  52. <dlfooter></dlfooter>
  53. <photoswipe></photoswipe>
  54. </div>
  55. </template>
  56. <script>
  57. import preview from './js/preview.js'
  58. export default preview
  59. </script>