schedule.vue 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <style lang="sass">
  2. @import "./scss/schedule.scss";
  3. </style>
  4. <template>
  5. <div class="page-video-schedule">
  6. <section class="schedule-hd">
  7. <ul class="hd-row1">
  8. <li>
  9. <a :class='{active:area=="CN"}' @click='changeNav("CN",timeType)'>中国</a>
  10. </li>
  11. <li>
  12. <a :class='{active:area=="USA"}' @click='changeNav("USA",timeType)'>美国</a>
  13. </li>
  14. </ul>
  15. <div class="hd-row2">
  16. <p>状态:<a :class='{active:timeType=="0"}' @click='changeNav(area,0)'>正在热映</a>&nbsp;&nbsp;/&nbsp;&nbsp;
  17. <a :class='{active:timeType=="1"}' @click='changeNav(area,1)'>即将上映</a>
  18. </p>
  19. </div>
  20. </section>
  21. <section class="schedule-bd">
  22. <ul class="zt-list-film ext-list" v-if="timeType==0">
  23. <li class="item-film" v-for="(article,id) in articles" :key="id" @click="toVideoDetail(article.id)">
  24. <div class="item-fl">
  25. <img :src="article.cover" :alt="article.name">
  26. </div>
  27. <div class="item-fr">
  28. <h2>{{article.name}}<em>{{article.rate}}</em></h2>
  29. <p>
  30. <template v-if="article.sumBoxOffice>0">
  31. 累计票房<em>{{area=="CN"?"¥":"$"}}{{article.sumBoxOffice | parseBoxOffice}}</em>,
  32. </template>
  33. <template>
  34. <em>{{article.releaseDate | parseReleaseDate}}</em>
  35. </template>
  36. </p>
  37. <p v-if="article.filmmakers">
  38. 导演:<span v-for="(director,index) in article.filmmakers.directors" :key="index">{{director.name}}&nbsp;</span>
  39. 演员:<span v-for="actor in article.filmmakers.actors">{{actor.name}}/</span>
  40. </p>
  41. <div class="item-btns2">
  42. <span class="btn btn-preview" v-if="article.trailerCount>0" @click.stop.prevent="toVideoPreview(article.id)">预告片</span>
  43. <span class="btn btn-post" v-if="article.commentaryCount>0" @click.stop.prevent="toCommentaryDetail(article.commentaryId)">解说视频</span>
  44. </div>
  45. </div>
  46. </li>
  47. </ul>
  48. <ul class="list-month" v-else>
  49. <li class="item-month" v-for="(monthData,index) in monthList" :key="index">
  50. <h2 class="title-month">{{index | parseMonth}}</h2>
  51. <ul class="list-date">
  52. <li class="item-date" v-for="(dateData,monthIndex) in monthData" :key="monthIndex">
  53. <h2 class="title-date" :data-time="monthIndex"><i></i>{{monthIndex | parseDay}}</h2>
  54. <ul class="zt-list-film ext-list">
  55. <li class="item-film" v-for="(article,id) in dateData" :key="id" @click="toVideoDetail(article.id)">
  56. <div class="item-fl">
  57. <img :src="article.cover" :alt="article.name">
  58. </div>
  59. <div class="item-fr">
  60. <h2>{{article.name}}<em>{{article.rate}}</em></h2>
  61. <p v-if="article.filmmakers">
  62. <span v-if="article.filmmakers.directors">导演:</span><span v-for="(director,dIndex) in article.filmmakers.directors" :key="dIndex">{{director.name}}&nbsp;</span>
  63. <span v-if="article.filmmakers.actors">演员:</span><span v-for="actor in article.filmmakers.actors">{{actor.name}}/</span>
  64. </p>
  65. <div class="item-btns2">
  66. <span class="btn btn-preview" v-if="article.trailerCount>0" @click.stop.prevent="toVideoPreview(article.id)">预告片</span>
  67. <span class="btn btn-post" v-if="article.commentaryCount>0" @click.stop.prevent="toCommentaryDetail(article.commentaryId)">解说视频</span>
  68. </div>
  69. </div>
  70. </li>
  71. </ul>
  72. </li>
  73. </ul>
  74. </li>
  75. </ul>
  76. </section>
  77. <loading
  78. :nextFlag = "nextFlag"
  79. :loading = "isloading"
  80. @getLoadMore = "getShowtimes"></loading>
  81. </div>
  82. </template>
  83. <script>
  84. import schedule from './js/schedule.js'
  85. export default schedule
  86. </script>