boxofficeDetail.vue 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <style lang="sass">
  2. @import "./scss/boxofficePlus.scss";
  3. </style>
  4. <template>
  5. <div class="page-zt-boxofficePlus">
  6. <div class="box-detail active">
  7. <section class="box-detail_hd">
  8. <div class="film-detail" @click="toCommentary(detailFilm.commentaryId,detailFilm.articleId)">
  9. <div class="detail-bg" :style='"background-image:url("+detailFilm.cover+")"'></div>
  10. <div class="detail-info">
  11. <div class="info-cover" :style='"background-image:url("+detailFilm.cover+")"'></div>
  12. <div class="info-cont">
  13. <h1>{{detailFilm.name}}</h1>
  14. <p>
  15. <template v-for="item in detailFilm.categories">{{item}} / </template>
  16. </p>
  17. <p>上映日期: {{detailFilm.releaseDate | parseDate}}(中国大陆) {{detailFilm.duration}}分钟</p>
  18. <p>评分:{{detailFilm.rate}}</p>
  19. </div>
  20. </div>
  21. <div class="detail-boxoffice">
  22. <ul>
  23. <li>
  24. <p>上映天数</p>{{detailFilm.releaseDate | parseReleaseDate}}
  25. </li>
  26. <li>
  27. <p>累计票房</p>{{detailFilm.sumBoxOffice | parseBoxOffice}}
  28. </li>
  29. <li>
  30. <p>首日票房</p>{{detailFilm.boxOfficeFirstDay | parseBoxOffice}}
  31. </li>
  32. <li>
  33. <p>首周票房</p>{{detailFilm.boxOfficeFirstWeek | parseBoxOffice}}
  34. </li>
  35. <li>
  36. <p>首周末票房</p>{{detailFilm.boxOfficeWeekEnd | parseBoxOffice}}
  37. </li>
  38. </ul>
  39. </div>
  40. </div>
  41. <ul class="boxoffice-tab-thead">
  42. <li>日期</li>
  43. <li>实时票房</li>
  44. <li>票房占比</li>
  45. <li>排片占比</li>
  46. <li>上座率</li>
  47. </ul>
  48. </section>
  49. <section class="box-detail_bd boxoffice-tab-tbody" v-on:scroll.passive="onScroll" ref="filmDetailBoxScroller">
  50. <div ref="filmDetailBoxList">
  51. <ul class="tab-row" v-for="(article,index) in detailArticles" :key="index">
  52. <li>
  53. <h3>{{article.deadline | parseDate}}</h3>
  54. <p>{{article.deadline | parseReleaseDateStr}}</p>
  55. </li>
  56. <li>{{article.boxOffice | parseBoxOffice}}</li>
  57. <li>{{article.boxPer}}%</li>
  58. <li>{{article.showPer}}%</li>
  59. <li>{{article.attendance}}%</li>
  60. </ul>
  61. </div>
  62. <div v-if="detailNextFlag">
  63. <div class="weui-loadmore" v-if="detailIsloading">
  64. <i class="weui-loading"></i>
  65. <span class="weui-loadmore__tips"><img src="../../img/loading.gif"></span>
  66. </div>
  67. <div class="loading-com" v-else @click="getBoxOfficeDetails">
  68. <div>加载更多</div>
  69. </div>
  70. </div>
  71. <div v-else class="weui-loadmore weui-loadmore_line">
  72. <span class="weui-loadmore__tips">没有更多了~~</span>
  73. </div>
  74. </section>
  75. </div>
  76. </div>
  77. </template>
  78. <script>
  79. import boxoffice from './js/boxofficeDetail.js'
  80. export default boxoffice
  81. </script>