indHot.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="pageCon">
  3. <navigator open-type="navigateBack" class="iconBox"><u-icon name="arrow-left" color="#333" size="22" class="rightBox"></u-icon></navigator>
  4. <view class="top dffd">
  5. <view class="topLeft">Top {{ newsInfo.num }}</view>
  6. <view class="title blod dffs">
  7. {{ newsInfo.name }}
  8. <image src="/static/img/pro/ordlist.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view class="conwarp">
  12. <view class="gdHead dffs">
  13. <image src="/static/img/pro/tips.png" mode=""></image>
  14. <view class=" fontssm flex1">已近三天阅读、下载、分享数据为准</view>
  15. <view class="textgrey fontssm">共{{ newsInfo.count }}套|每天更新</view>
  16. </view>
  17. <auth-list :flag="type" :list="newsInfo.data"></auth-list>
  18. </view>
  19. <image class="imgbg" src="/static/img/pro/hotbgzl.png" mode=""></image>
  20. </view>
  21. </template>
  22. <script>
  23. import authList from './components/knowAuthList.vue';
  24. export default {
  25. components: {
  26. authList
  27. },
  28. data() {
  29. return {
  30. id: '',
  31. type: 1, //1文档 2视频
  32. newsInfo: {
  33. data: []
  34. }
  35. };
  36. },
  37. onPullDownRefresh() {
  38. setTimeout(res => {
  39. uni.stopPullDownRefresh();
  40. }, 1000);
  41. },
  42. onLoad(opt) {
  43. this.id = opt.id;
  44. this.type = opt.type;
  45. this.getInfoList();
  46. },
  47. methods: {
  48. getInfoList() {
  49. this.$api
  50. .request('hotrank/rank_list', {
  51. id: this.id
  52. })
  53. .then(data => {
  54. if (data.code == 200) {
  55. this.newsInfo = data.data[0];
  56. } else {
  57. this.$api.toast(data.msg);
  58. }
  59. });
  60. },
  61. toNext(url) {
  62. uni.navigateTo({
  63. url: url
  64. });
  65. }
  66. }
  67. };
  68. </script>
  69. <style lang="scss" scoped>
  70. .pageCon {
  71. .iconBox {
  72. width: 40rpx;
  73. height: 40rpx;
  74. position: fixed;
  75. top: 80rpx;
  76. left: 30rpx;
  77. z-index: 99999;
  78. }
  79. .imgbg {
  80. position: absolute;
  81. top: 0;
  82. left: 0;
  83. width: 100%;
  84. }
  85. .top {
  86. height: 430rpx;
  87. padding: 0 30rpx;
  88. position: relative;
  89. z-index: 1;
  90. justify-content: center;
  91. .topLeft {
  92. background: linear-gradient(90deg, #fdd597 0%, #eec37a 100%);
  93. border-radius: 15rpx;
  94. font-size: 18rpx;
  95. font-family: PingFangSC-Medium, PingFang SC;
  96. font-weight: 500;
  97. line-height: 25rpx;
  98. padding: 5rpx 12rpx;
  99. display: inline-block;
  100. margin-bottom: 15rpx;
  101. }
  102. .title {
  103. font-family: PingFangSC-Semibold, PingFang SC;
  104. font-weight: 600;
  105. font-size: 46rpx;
  106. color: #333;
  107. line-height: 42rpx;
  108. margin: 9rpx 5rpx 10rpx;
  109. image {
  110. width: 36rpx;
  111. height: 40rpx;
  112. margin-left: 12rpx;
  113. }
  114. }
  115. }
  116. .conwarp {
  117. position: relative;
  118. z-index: 11;
  119. background: #ffffff;
  120. box-shadow: 0px 2rpx 4rpx 0px rgba(0, 0, 0, 0.5);
  121. border-radius: 30rpx 30rpx 0rpx 0rpx;
  122. padding: 39rpx 30rpx 30rpx;
  123. border-radius: 16rpx;
  124. margin-bottom: 20rpx;
  125. .gdHead {
  126. line-height: 58rpx;
  127. margin-bottom: 16rpx;
  128. .head {
  129. font-size: 34rpx;
  130. font-family: PingFangSC-Medium, PingFang SC;
  131. font-weight: 600;
  132. color: #333333;
  133. line-height: 48rpx;
  134. }
  135. image {
  136. width: 28rpx;
  137. height: 28rpx;
  138. margin-right: 14rpx;
  139. }
  140. }
  141. }
  142. .content {
  143. position: relative;
  144. z-index: 11;
  145. }
  146. }
  147. </style>