rank.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <style lang="sass">
  2. @import "./scss/rank.scss";
  3. </style>
  4. <template>
  5. <div class="page-zt-rank">
  6. <section class="rank-hd">
  7. <div class="hd-row1">
  8. <span>共250部</span>
  9. </div>
  10. </section>
  11. <section class="rank-bd">
  12. <ul class="zt-list-film has-commentary">
  13. <li class="item-film" v-for="(article,index) in articles" :key="article.id" @click="toVideoDetail(article.id)">
  14. <div :class='"item-rank item-rank"+(index+1)'><em>{{index+1}}</em></div>
  15. <div class="item-fl">
  16. <img :src="article.cover" :alt="article.name">
  17. </div>
  18. <div class="item-fr">
  19. <h2>{{article.name}}<em>{{article.dbRate}}</em></h2>
  20. <p v-if="article.filmmakers">导演:<span v-for="(director,index) in article.filmmakers.directors" :key="index">{{director.name}}&nbsp;</span>
  21. 演员:<span v-for="actor in article.filmmakers.actors" :key="actor.name">{{actor.name}}/</span>
  22. </p>
  23. <ul class="list-ups">
  24. <li v-for="up in article.ups" :key="up.cid" @click.stop.prevent="toCommentaryDetail(up.cid)">
  25. <img :src="up.head" :alt="up.nick">{{up.nick}}
  26. </li>
  27. </ul>
  28. <span class="btn-open" @click.stop.prevent="toggleFilm(index)" v-if="article.ups && article.ups.length>2"></span>
  29. </div>
  30. </li>
  31. </ul>
  32. </section>
  33. <loading
  34. :nextFlag = "nextFlag"
  35. :loading = "isloading"
  36. @getLoadMore = "getRanklist"></loading>
  37. </div>
  38. </template>
  39. <script>
  40. import rank from './js/rank.js'
  41. export default rank
  42. </script>