boxofficePlus.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <style lang="sass">
  2. @import "./scss/boxofficePlus.scss";
  3. </style>
  4. <template>
  5. <div :class='["page-zt-boxofficePlus",{"is-ch":type=="1"}]'>
  6. <div class="box-rank">
  7. <section class="boxoffice-hd">
  8. <ul class="hd-row1">
  9. <li>
  10. <a :class='{active:type=="1"}' @click='changeNav(1)'>中国</a>
  11. </li>
  12. <li>
  13. <a :class='{active:type=="2"||type=="3"||type=="4"}' @click='changeNav(2)'>北美</a>
  14. </li>
  15. <li>
  16. <a :class='{active:type=="5"}' @click='changeNav(5)'>全球</a>
  17. </li>
  18. </ul>
  19. <div class="hd-row2" v-if='type!="1"'>
  20. <p>
  21. <template v-if='type=="5"'>
  22. <a class="active">&nbsp;总榜&nbsp;</a>
  23. </template>
  24. <template v-else>
  25. <a :class='{active:type=="2"}' @click='changeNav(2)'>日榜&nbsp;</a>
  26. <a :class='{active:type=="3"}' @click='changeNav(3)'>/&nbsp;月榜&nbsp;</a>
  27. <a :class='{active:type=="4"}' @click='changeNav(4)'>/&nbsp;总榜&nbsp;</a>
  28. </template>
  29. </p>
  30. <p class="tip">{{updataTip}}</p>
  31. </div>
  32. <template v-else>
  33. <div class="boxoffice-ch-detail">
  34. <h2>今日大盘: <span><em>{{totalBoxOffice | parseBoxOffice}}</em> </span></h2>
  35. <p>每小时更新,上次更新:北京时间{{upDate | parseUpdateTime}}</p>
  36. <span class="date">{{curDay}}</span>
  37. </div>
  38. <ul class="boxoffice-tab-thead">
  39. <li>影片名称</li>
  40. <li>实时票房</li>
  41. <li>票房占比</li>
  42. <li>排片占比</li>
  43. <li>上座率</li>
  44. </ul>
  45. </template>
  46. </section>
  47. <section class="boxoffice-bd boxoffice-tab-tbody" v-if='type=="1"'>
  48. <ul class="tab-row" v-for="(article,index) in articles" :key="index" @click="showBoxofficeDetail(article.boxAId)">
  49. <li>
  50. <h3>{{article.name}}</h3>
  51. <p>
  52. <b v-html="article.releaseDateStr"></b></p>
  53. </li>
  54. <li><span>{{article.boxOffice | parseBoxOffice}}</span></li>
  55. <li>{{article.boxPer}}%</li>
  56. <li>{{article.showPer}}%</li>
  57. <li>{{article.attendance}}%</li>
  58. </ul>
  59. </section>
  60. <section class="boxoffice-bd" v-else>
  61. <ul class="zt-list-film ext-list">
  62. <li class="item-film" v-for="(article,index) in articles" :key="index" @click="toVideoDetail(article.articleId)">
  63. <div :class='"item-rank item-rank"+(index+1)'><em>{{index+1}}</em></div>
  64. <div class="item-fl">
  65. <img :src="article.cover" :alt="article.name">
  66. </div>
  67. <div class="item-fr">
  68. <h2>{{article.name}}<em>{{article.rate}}</em><span v-if="article.newMoiveFlag==1" class="tag-new"></span></h2>
  69. <template v-if="type==2 || type==3">
  70. <p>
  71. {{type==2?"今日票房":"当月票房"}}<em>${{article.boxOffice | parseBoxOffice}}</em>
  72. </p>
  73. <p>
  74. 累计票房${{article.sumBoxOffice | parseBoxOffice}},已上映{{article.releaseDate | parseReleaseDate}}
  75. </p>
  76. </template>
  77. <template v-else>
  78. <p>
  79. 累计票房<em>${{article.boxOffice | parseBoxOffice}}</em>
  80. </p>
  81. <p v-if="article.filmmakers">
  82. <span v-if="article.filmmakers.directors">导演:</span><span v-for="(director,index) in article.filmmakers.directors" :key="index">{{director.name}}&nbsp;</span>
  83. <span v-if="article.filmmakers.actors">演员:</span><span v-for="actor in article.filmmakers.actors">{{actor.name}}/</span>
  84. </p>
  85. </template>
  86. <div class="item-btns2">
  87. <span class="btn btn-preview" v-if="article.trailerCount>0" @click.stop.prevent="toVideoPreview(article.articleId)">预告片</span>
  88. <span class="btn btn-post" v-if="article.commentaryCount>0" @click.stop.prevent="toCommentaryDetail(article.commentaryId)">解说视频</span>
  89. </div>
  90. </div>
  91. </li>
  92. </ul>
  93. </section>
  94. <loading
  95. :nextFlag = "nextFlag"
  96. :loading = "isloading"
  97. @getLoadMore = "getBoxOfficeList"></loading>
  98. </div>
  99. </div>
  100. </template>
  101. <script>
  102. import boxoffice from './js/boxofficePlus.js'
  103. export default boxoffice
  104. </script>