detail.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <style lang="sass">
  2. @import "./scss/detail.scss";
  3. </style>
  4. <template>
  5. <div class="page-video-detail">
  6. <section class="v-mod-detail">
  7. <div class="detail-wrap">
  8. <div class="detail-fl">
  9. <img :src="article.cover" alt="">
  10. </div>
  11. <div class="detail-fm">
  12. <h2>{{article.name}}</h2>
  13. <p>上映时间:{{article.releaseDate | parseReleaseDate}}</p>
  14. <p v-if="articleType==2">{{article.episode}}集/单集片长:{{article.duration}}min</p>
  15. <p v-else>片长:{{article.duration}}min</p>
  16. <p>
  17. <span v-for="area in areas" :key="area">{{area}}</span>/
  18. <span v-for="categorie in categories" :key="categorie">{{categorie}}</span>
  19. </p>
  20. <p>别名:<span v-for="alia in alias" :key="alia">{{alia}}</span></p>
  21. </div>
  22. <div class="detail-fr">
  23. <div class="rate-wrap">
  24. <span>{{article.dbRate?article.dbRate:0}}</span>
  25. <p>豆瓣评分</p>
  26. <div class="imdb-wrap">IMDB: {{article.imdbRate?article.imdbRate:0}}</div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="detail-filmmakers">
  31. <h2>影人和剧情</h2>
  32. <div :class='{"intro":true,"is-open":isShowSynopsis==1}'>
  33. <p v-html="article.synopsis"></p>
  34. <span class="btn-open" @click="showSynopsis()">{{isShowSynopsis==1?"收起":"展开"}}</span>
  35. </div>
  36. <ul class="list-filmmakers">
  37. <li v-for="(filmmaker,index) in filmmakers" :key="index" @click="previewImage(1,0,index)">
  38. <div class="cover" :style="{backgroundImage : 'url('+filmmaker.pic+'?imageview/4/0/w/400/h/400/format/)'}"></div>
  39. <h3>{{filmmaker.name}}</h3>
  40. <p>{{filmmaker.type == 1 ? "导演" : ""}}</p>
  41. </li>
  42. <li class="item-more" v-if="filmmakers.length>8">
  43. <a :href="downloadUrl">
  44. <div class="cover"></div>
  45. <h3>全部影人</h3>
  46. <p>{{filmmakers.length}}人</p>
  47. </a>
  48. </li>
  49. </ul>
  50. <a :href="downloadUrl" class="btn-app" v-if="watchOnline.count>0">{{watchOnline.count}}个片源登录App可看</a>
  51. <p class="ticket" v-if="boxOffice!=0">{{boxOffice | parseBoxOffice}}</p>
  52. </div>
  53. </section>
  54. <section class="v-mod-jieshuo mt-16">
  55. <h2>解说视频</h2>
  56. <ul class="list-ups">
  57. <li v-for="(up,upIndex) in ups" :key="upIndex" @click="changeUpList(upIndex)" :class='upIndex==0?"active":""'>
  58. {{up.up.nick}}
  59. </li>
  60. </ul>
  61. <ul class="list-jieshuo">
  62. <li v-for="(commentarie,index) in curUpsCommentaries" :key="index">
  63. <a :data-href='"/?page=video-post&cid="+commentarie.id'>
  64. <div class="item-fl">
  65. <img :src="commentarie.cover" :alt="commentarie.title">
  66. <em v-if="commentarie.serialType==1">{{index+1}}</em>
  67. </div>
  68. <div class="item-fr">
  69. <h3>{{commentarie.title}}</h3>
  70. <p><img :src="commentarie.up.head">{{commentarie.up.nick}}</p>
  71. </div>
  72. </a>
  73. </li>
  74. </ul>
  75. <a class="btn-more" :href="downloadUrl" v-if="commentaryCount>1">(还有{{commentaryCount-1}}个解说登录APP可看)</a>
  76. </section>
  77. <section class="mod-album">
  78. <h2>{{trailers.count?"预告片与":""}}剧照</h2>
  79. <ul class="list-album">
  80. <li v-if="trailers.count" class="item-preview" :style="{backgroundImage : 'url('+firstTrailer.cover+')'}">
  81. <a :data-href='"/?page=video-preview&articleId="+article.id'>
  82. <div class="mask"></div>
  83. <h3>预告片</h3>
  84. <p>{{trailers.count}}</p>
  85. </a>
  86. </li>
  87. <li v-for="(img,index) in images" :key="index" :style="{backgroundImage : 'url('+img.smallUrl+')'}" v-if="index<8" @click="previewImage(2,0,index)"></li>
  88. </ul>
  89. <a class="btn-more" :href="downloadUrl">全部{{images.length}}张剧照登录APP可看</a>
  90. </section>
  91. <section class="v-mod-comment mt-16 pb-150">
  92. <div class="comment-hd comment-hd2">
  93. <h2><span>用户辣评</span></h2>
  94. <p>(<em id="commentNum">0</em>)</p>
  95. </div>
  96. <comment
  97. :type="1"
  98. :id="articleId"
  99. :hasPlayer="false">
  100. </comment>
  101. </section>
  102. <dlfooter></dlfooter>
  103. <photoswipe></photoswipe>
  104. </div>
  105. </template>
  106. <script>
  107. import detail from './js/detail.js'
  108. export default detail
  109. </script>