invite.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <style lang="sass">
  2. @import "./scss/invite.scss";
  3. </style>
  4. <template>
  5. <div :class='"page-act-invite "+(isApp?"is-app":"")'>
  6. <h1 v-if="!isApp&&userHeadInfo">{{userHeadInfo.nick}} 邀请你看微剧院</h1>
  7. <section class="invite-info" v-if="userHeadInfo">
  8. <div class="u-head">
  9. <img :src='userHeadInfo.head ? userHeadInfo.head : "/_src/img/pic-head.png"'>
  10. </div>
  11. <h2 class="u-title" v-if="isApp">您的邀请码</h2>
  12. <h2 class="u-title" v-else>他的邀请码</h2>
  13. <p class="u-code">{{userHeadInfo.id}}</p>
  14. </section>
  15. <section class="invite-btn" v-if="!isApp">
  16. <div class="btn-copy" ref="copy" :data-clipboard-text="userHeadInfo.id" @click="copy()">复制邀请码并立即下载</div>
  17. <p>安装app后,按提示输入邀请码即可</p>
  18. </section>
  19. <section class="invite-share" v-if="isApp">
  20. <h2>邀请好友</h2>
  21. <ul>
  22. <li @click="shareMessage(0)" v-if="isSupportList[0]">
  23. <i class="icon-share0"></i>
  24. <p>微信</p>
  25. </li>
  26. <li @click="shareMessage(1)" v-if="isSupportList[1]">
  27. <i class="icon-share1"></i>
  28. <p>朋友圈</p>
  29. </li>
  30. <li @click="shareMessage(3)" v-if="isSupportList[2]">
  31. <i class="icon-share3"></i>
  32. <p>QQ</p>
  33. </li>
  34. <li @click="shareMessage(4)" v-if="isSupportList[3]">
  35. <i class="icon-share4"></i>
  36. <p>QQ空间</p>
  37. </li>
  38. <li @click="shareMessage(2)" v-if="isSupportList[4]">
  39. <i class="icon-share2"></i>
  40. <p>新浪微博</p>
  41. </li>
  42. </ul>
  43. </section>
  44. <section class="invite-list" v-if="isApp">
  45. <div class="is-success" v-if="invitedCount>0">
  46. <h2>已成功邀请<em>{{invitedCount}}</em>人</h2>
  47. <ul>
  48. <li v-for="(user,index) in invitedUser" :key="index">
  49. <img :src='user.role==1 ? user.head : "/_src/img/pic-head.png"'>
  50. <p>{{user.role==1 ? user.nick : "游客"+user.id}}</p>
  51. </li>
  52. </ul>
  53. </div>
  54. <div class="is-empty" v-else>暂未邀请好友</div>
  55. </section>
  56. <section class="invite-add" v-if="!isApp">
  57. <div class="box-add1">
  58. <img src="./../../img/act/bg-invite2.jpg" />
  59. </div>
  60. <div class="box-add2">
  61. <h2>热映中的电影</h2>
  62. <p>(点击影片播放)</p>
  63. <div class="swiper-container swiper-video">
  64. <ul class="swiper-wrapper">
  65. <li class="swiper-slide" v-for="(film,index) in recommendFilms" :key="index">
  66. <a :data-href=' film.commentaryCount>0 ? "/?page=video-post&articleId="+film.id+"&cid="+film.ups[0].cid+"&uid="+userHeadInfo.id : "/?page=video-detail&articleId="+film.id+"&uid="+userHeadInfo.id'>
  67. <span class="item-cover">
  68. <img :src="film.cover">
  69. <em>{{film.dbRate}}</em>
  70. </span>
  71. <span class="item-title">{{film.name}}</span>
  72. <span class="item-num">{{film.commentaryCount}}个解说</span>
  73. </a>
  74. </li>
  75. </ul>
  76. </div>
  77. </div>
  78. <div class="box-add3">
  79. <h2>更多精选专题,尽在微剧院</h2>
  80. <img src="./../../img/act/bg-invite4.jpg" />
  81. </div>
  82. </section>
  83. <section class="invite-sugg" v-if="isApp">任何意见和反馈可联系客服<span @click="openFeedback">意见反馈</span></section>
  84. <dlfooter v-if="!isApp"></dlfooter>
  85. </div>
  86. </template>
  87. <script>
  88. import invite from './js/invite.js'
  89. export default invite
  90. </script>