帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
3.4 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="title">
  5. <view class="">
  6. 首页
  7. </view>
  8. <view class="">
  9. 北京
  10. <uv-icon
  11. name="arrow-down"
  12. color="#fff"></uv-icon>
  13. </view>
  14. </view>
  15. <view class="search">
  16. <view class="icon">
  17. <uv-icon
  18. size="40rpx"
  19. name="search"></uv-icon>
  20. </view>
  21. <input type="text" placeholder="请输入搜索关键字..."/>
  22. <view class="text">
  23. 搜索
  24. </view>
  25. </view>
  26. <view class="swipe">
  27. <uv-swiper
  28. :list="banner"
  29. keyName="image"
  30. height="320rpx"></uv-swiper>
  31. </view>
  32. </view>
  33. <view class="box">
  34. <view class="box-line">
  35. <view class="title">
  36. 认证演员
  37. </view>
  38. <view class="more"
  39. @click="$utils.navigateTo('/publish/actorList')">
  40. 查看全部
  41. <uv-icon
  42. size="26rpx"
  43. name="arrow-right"></uv-icon>
  44. </view>
  45. </view>
  46. <view class="ACTORS">
  47. <uv-swiper
  48. :list="actorList"
  49. keyName="logo"
  50. height="320rpx"></uv-swiper>
  51. </view>
  52. </view>
  53. <view class="box">
  54. <view class="box-line">
  55. <view class="title">
  56. 动态帖子
  57. </view>
  58. <view class="more"
  59. @click="$utils.navigateTo('/publish/postList')">
  60. 查看全部
  61. <uv-icon
  62. size="26rpx"
  63. name="arrow-right"></uv-icon>
  64. </view>
  65. </view>
  66. <postList :list="trends"/>
  67. </view>
  68. <tabber :select="0"/>
  69. </view>
  70. </template>
  71. <script>
  72. import tabber from '@/components/base/tabbar.vue'
  73. import postList from '@/components/post/postList.vue'
  74. export default {
  75. components : {
  76. tabber,
  77. postList
  78. },
  79. data() {
  80. return {
  81. banner : [],
  82. actorList : [],
  83. postList : [],
  84. trends : [],
  85. }
  86. },
  87. computed : {
  88. },
  89. onShow() {
  90. this.getData()
  91. },
  92. methods: {
  93. getData(){
  94. this.$api('indexGetBanner', res => {
  95. if(res.code == 200){
  96. this.banner = res.result
  97. }
  98. })
  99. this.$api('indexGetActorList', res => {
  100. if(res.code == 200){
  101. this.actorList = res.result
  102. }
  103. })
  104. this.$api('indexGetTrendsPage', {
  105. pageNo : 1,
  106. pageSize : 10,
  107. }, res => {
  108. if(res.code == 200){
  109. this.trends = res.result.records
  110. }
  111. })
  112. },
  113. }
  114. }
  115. </script>
  116. <style scoped lang="scss">
  117. .content{
  118. padding-bottom: 150rpx;
  119. .top{
  120. background-image: $uni-linear-gradient-bg-color;
  121. padding: 0 20rpx;
  122. padding-top: calc(var(--status-bar-height) + 20rpx);
  123. .title{
  124. display: flex;
  125. color: #fff;
  126. justify-content: space-between;
  127. &>view{
  128. display: flex;
  129. justify-content: center;
  130. align-items: center;
  131. }
  132. }
  133. .search{
  134. background-color: #fff;
  135. height: 70rpx;
  136. width: 100%;
  137. margin: 20rpx 0;
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. font-size: 28rpx;
  142. border-radius: 10rpx;
  143. .icon{
  144. margin: 0 20rpx;
  145. }
  146. input{
  147. }
  148. .text{
  149. margin-left: auto;
  150. margin-right: 20rpx;
  151. }
  152. }
  153. }
  154. .box{
  155. padding: 20rpx;
  156. .box-line{
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. margin-bottom: 20rpx;
  161. .title{
  162. position: relative;
  163. &::after{
  164. content: '';
  165. position: absolute;
  166. display: block;
  167. bottom: 0;
  168. left: 20rpx;
  169. width: 20rpx;
  170. height: 12rpx;
  171. background-color: $uni-linear-gradient-color;
  172. }
  173. }
  174. .more{
  175. display: flex;
  176. font-size: 24rpx;
  177. color: #777;
  178. }
  179. }
  180. }
  181. }
  182. </style>