inProcess.nvue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="wrapper">
  3. <image class="banner" src="../../../static/bg.png" mode=""></image>
  4. <view class="tabs">
  5. <view class="tab-box">
  6. <newsPage class="page-item" ref="pageRp"></newsPage>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import newsPage from './itemPage.nvue';
  13. export default {
  14. components: {
  15. newsPage
  16. },
  17. data() {
  18. return {
  19. newsid: "",
  20. }
  21. },
  22. onNavigationBarButtonTap(e) {
  23. uni.$emit("readAll")
  24. },
  25. onReady() {
  26. this.$refs.pageRp.loadData();
  27. },
  28. methods: {
  29. }
  30. }
  31. </script>
  32. <style>
  33. /* #ifndef APP-PLUS */
  34. page {
  35. width: 100%;
  36. min-height: 100%;
  37. display: flex;
  38. }
  39. /* #endif */
  40. .banner{
  41. width: 750rpx;
  42. height: 320rpx;
  43. position: fixed;
  44. top: 0;
  45. left: 0;
  46. right: 0;
  47. }
  48. .tabs {
  49. flex: 1;
  50. flex-direction: column;
  51. overflow: hidden;
  52. border-radius: 15px;
  53. position: fixed;
  54. top: 0;
  55. bottom: 0;
  56. left:20rpx;
  57. right: 20rpx;
  58. background-color: #fff;
  59. }
  60. .tab-bar {
  61. /* #ifdef APP-PLUS */
  62. width: 750rpx;
  63. /* #endif */
  64. height: 42px;
  65. flex-direction: row;
  66. /* #ifndef APP-PLUS */
  67. white-space: nowrap;
  68. /* #endif */
  69. }
  70. /* #ifndef APP-NVUE */
  71. .tab-bar ::-webkit-scrollbar {
  72. display: none;
  73. width: 0 !important;
  74. height: 0 !important;
  75. -webkit-appearance: none;
  76. background: transparent;
  77. }
  78. /* #endif */
  79. .scroll-view-indicator {
  80. position: relative;
  81. height: 2px;
  82. background-color: transparent;
  83. }
  84. .scroll-view-underline {
  85. position: absolute;
  86. top: 0;
  87. bottom: 0;
  88. width: 0;
  89. background-color: #007AFF;
  90. }
  91. .scroll-view-animation {
  92. transition-duration: 0.2s;
  93. transition-property: left;
  94. }
  95. .tab-bar-line {
  96. height: 1px;
  97. background-color: #cccccc;
  98. }
  99. .tab-box {
  100. flex: 1;
  101. }
  102. .swiper-item {
  103. flex: 1;
  104. flex-direction: column;
  105. }
  106. .page-item {
  107. flex: 1;
  108. flex-direction: row;
  109. position: absolute;
  110. overflow: hidden;
  111. left: 20rpx;
  112. padding:30rpx;
  113. top: 5rpx;
  114. right:20rpx;
  115. bottom: 0;
  116. }
  117. </style>