inProcess.nvue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. if(this.$refs.pageRp.dataList.length > 0){
  24. uni.navigateTo({
  25. url:'/pages/webview/popupNews',
  26. })
  27. }
  28. },
  29. onReady() {
  30. this.$refs.pageRp.loadData();
  31. },
  32. methods: {
  33. }
  34. }
  35. </script>
  36. <style>
  37. /* #ifndef APP-PLUS */
  38. page {
  39. width: 100%;
  40. min-height: 100%;
  41. display: flex;
  42. }
  43. /* #endif */
  44. .banner{
  45. width: 750rpx;
  46. height: 320rpx;
  47. position: fixed;
  48. top: 0;
  49. left: 0;
  50. right: 0;
  51. }
  52. .tabs {
  53. flex: 1;
  54. flex-direction: column;
  55. overflow: hidden;
  56. border-radius: 15px;
  57. position: fixed;
  58. top: 0;
  59. bottom: 0;
  60. left:20rpx;
  61. right: 20rpx;
  62. background-color: #fff;
  63. }
  64. .tab-bar {
  65. /* #ifdef APP-PLUS */
  66. width: 750rpx;
  67. /* #endif */
  68. height: 42px;
  69. flex-direction: row;
  70. /* #ifndef APP-PLUS */
  71. white-space: nowrap;
  72. /* #endif */
  73. }
  74. /* #ifndef APP-NVUE */
  75. .tab-bar ::-webkit-scrollbar {
  76. display: none;
  77. width: 0 !important;
  78. height: 0 !important;
  79. -webkit-appearance: none;
  80. background: transparent;
  81. }
  82. /* #endif */
  83. .scroll-view-indicator {
  84. position: relative;
  85. height: 2px;
  86. background-color: transparent;
  87. }
  88. .scroll-view-underline {
  89. position: absolute;
  90. top: 0;
  91. bottom: 0;
  92. width: 0;
  93. background-color: #007AFF;
  94. }
  95. .scroll-view-animation {
  96. transition-duration: 0.2s;
  97. transition-property: left;
  98. }
  99. .tab-bar-line {
  100. height: 1px;
  101. background-color: #cccccc;
  102. }
  103. .tab-box {
  104. flex: 1;
  105. }
  106. .swiper-item {
  107. flex: 1;
  108. flex-direction: column;
  109. }
  110. .page-item {
  111. flex: 1;
  112. flex-direction: row;
  113. position: absolute;
  114. overflow: hidden;
  115. left: 20rpx;
  116. padding:30rpx;
  117. top: 5rpx;
  118. right:20rpx;
  119. bottom: 0;
  120. }
  121. </style>