post.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <style lang="sass">
  2. @import "./scss/post.scss";
  3. </style>
  4. <template>
  5. <div class="page-video-post">
  6. <section class="post-hd">
  7. <video :poster="curCommentarie.cover" controls :src="curVideoUrl" playsinline="isiPhoneShowPlaysinline" webkit-playsinline="isiPhoneShowPlaysinline"></video>
  8. </section>
  9. <section class="v-mod-video">
  10. <div class="info-row1">
  11. <div class="col-fl">
  12. <span class="img-wrap">
  13. <img :src="curVideoUp.head">
  14. </span>
  15. <h2>{{curVideoUp.nick}}</h2>
  16. </div>
  17. <div class="col-fr">{{curCommentarie.playCount}}</div>
  18. </div>
  19. <div class="info-row2">
  20. <h1>{{curCommentarie.title}}</h1>
  21. <a :href="downloadUrl" class="btn-more" v-if="(commentaryCount>1)">(还有{{commentaryCount-1}}个解说登录APP可看)</a>
  22. </div>
  23. </section>
  24. <section class="v-mod-detail mt-16">
  25. <a :data-href='"/?page=video-detail&articleId="+article.id' class="detail-wrap">
  26. <div class="detail-fl">
  27. <img :src="article.cover" :alt="article.name">
  28. </div>
  29. <div class="detail-fm">
  30. <h2>{{article.name}}</h2>
  31. <p>上映时间:{{article.releaseDate | parseReleaseDate}}</p>
  32. <p v-if="articleType==2">{{article.episode}}集/单集片长:{{article.duration}}min / <span v-for="(area,index) in areas" :key="index">{{area}}</span></p>
  33. <p v-else>片长:{{article.duration}}min / <span v-for="(area,index) in areas" :key="index">{{area}}</span></p>
  34. <p>演员:<span v-for="(actor,index) in actors" :key="index">{{actor.name}}</span></p>
  35. <p>更多详情&gt;</p>
  36. </div>
  37. <div class="detail-fr">
  38. <div class="rate-wrap">
  39. <span>{{article.dbRate?article.dbRate:0}}</span>
  40. <p>豆瓣评分</p>
  41. <div class="imdb-wrap">IMDB: {{article.imdbRate?article.imdbRate:0}}</div>
  42. </div>
  43. </div>
  44. </a>
  45. <div class="btn-wrap" v-if="watchOnline.count>0">
  46. <a :href="downloadUrl" class="btn-app" >{{watchOnline.count}}个片源登录App可看</a>
  47. </div>
  48. </section>
  49. <section class="v-mod-jieshuo mt-16" v-if="recommends.length>0">
  50. <h2 class="clearfix">相关推荐 <a :href="downloadUrl" v-if="recommends.length>3">更多推荐&nbsp;&gt;</a></h2>
  51. <ul class="list-jieshuo" v-if="recommends.length==1">
  52. <li v-for="(recommend,index) in recommends" :key="index" v-if="index<3">
  53. <a :href='"/?page=video-post&cid="+recommend.id'>
  54. <div class="item-fl">
  55. <img :src="recommend.cover" :alt="recommend.title">
  56. </div>
  57. <div class="item-fr">
  58. <h3>{{recommend.title}}</h3>
  59. <p><img :src="recommend.up.head">{{recommend.up.nick}}</p>
  60. </div>
  61. </a>
  62. </li>
  63. </ul>
  64. <ul class="list-jieshuo2" v-else>
  65. <li v-for="(recommend,index) in recommends" :key="index" v-if="index<3">
  66. <a :href='"/?page=video-post&cid="+recommend.id'>
  67. <div class="cover">
  68. <img :src="recommend.cover" :alt="recommend.title">
  69. </div>
  70. <h3>{{recommend.title}}</h3>
  71. </a>
  72. </li>
  73. </ul>
  74. </section>
  75. <section class="v-mod-comment mt-16 pb-150">
  76. <div class="comment-hd comment-hd1">
  77. <h2><span>用户辣评<em id="commentNum">0</em></span></h2>
  78. <ul class="tag-nav">
  79. <li class="active" @click="changeCommentTag(0)">全部评论</li>
  80. <li @click="changeCommentTag(1)">本视频评论</li>
  81. </ul>
  82. </div>
  83. <div class="tag-cont">
  84. <div class="tag-panel active">
  85. <comment
  86. :type="1"
  87. :id="articleId"
  88. :hasPlayer="true"
  89. v-if="article.id">
  90. </comment>
  91. </div>
  92. <div class="tag-panel">
  93. <comment
  94. :type="2"
  95. :id="cid"
  96. :hasPlayer="true">
  97. </comment>
  98. </div>
  99. </div>
  100. </section>
  101. <dlfooter></dlfooter>
  102. <photoswipe></photoswipe>
  103. </div>
  104. </template>
  105. <script>
  106. import post from './js/post.js'
  107. export default post
  108. </script>