时空网前端
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.

116 lines
4.1 KiB

  1. <template>
  2. <view>
  3. <view class="wallet-top">
  4. <view class="bg-white wallet-wraptop flex-direction flex justify-around align-center text-center">
  5. <view class="text-black1 text-price1" style="font-size: 72rpx;">2000.48</view>
  6. <view class="text-gray lf-font-24 lf-m-b-20">佣金</view>
  7. <view>
  8. <button class="btn" @click="$url('/pages/center/widthdraw')">提取佣金</button>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="bg-white lf-p-t-40 lf-p-b-40 flex justify-around align-center text-center solid-bottom">
  13. <view class="lf-font-32" style="width: 50%;border-right: 1px solid rgba(0, 0, 0, 0.1);box-sizing: border-box;" :class="tabIndex ==0?'text-orange':'text-black1'" @click="tabIndex = 0">佣金记录</view>
  14. <view class="lf-font-32" style="width: 50%;" :class="tabIndex ==1?'text-orange':'text-black1'" @click="tabIndex = 1">提取记录</view>
  15. </view>
  16. <block v-if="tabIndex == 0">
  17. <scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
  18. <view class="flex flex-direction justify-between lf-p-t-20 lf-p-b-20 lf-p-l-32 lf-p-r-32 solid-bottom">
  19. <view class="flex align-center text-center justify-between">
  20. <view class="lf-font-36 lf-color-price">-¥10.00</view>
  21. <view class="lf-font-32 text-black1">结余 ¥34.43</view>
  22. </view>
  23. <view class="flex align-center text-center justify-between lf-m-t-10">
  24. <view class="lf-font-24 lf-color-999">内部粉丝购买商品获得</view>
  25. <view class="lf-font-24 lf-color-999">2021-7-6 22:32:43</view>
  26. </view>
  27. </view>
  28. <!-- 空数据的情况 -->
  29. <view class="loading-more">
  30. <text v-if="!tab.list.length" :class="{'loading-more-text': tab.loadingClass}">{{ tab.loadingText }}</text>
  31. <my-nocontent v-else></my-nocontent>
  32. </view>
  33. <!-- 回到顶部 -->
  34. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  35. </scroll-view>
  36. </block>
  37. <block v-else>
  38. <scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
  39. <view class="flex flex-direction justify-between lf-p-t-20 lf-p-b-20 lf-p-l-32 lf-p-r-32 solid-bottom">
  40. <view class="flex align-center text-center justify-between">
  41. <view class="lf-font-36 lf-color-price">-¥11.00</view>
  42. <view class="lf-font-28 text-orange">申请中</view>
  43. </view>
  44. <view class="flex align-center text-center justify-between lf-m-t-10">
  45. <view class="lf-font-24 lf-color-999">流水号 638763485895875</view>
  46. <view class="lf-font-24 lf-color-999">2021-7-6 22:32:43</view>
  47. </view>
  48. </view>
  49. <!-- 空数据的情况 -->
  50. <view class="loading-more">
  51. <text v-if="!tab.list.length" :class="{'loading-more-text': tab.loadingClass}">{{ tab.loadingText }}</text>
  52. <my-nocontent v-else></my-nocontent>
  53. </view>
  54. <!-- 回到顶部 -->
  55. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  56. </scroll-view>
  57. </block>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. tabIndex: 0,
  65. pageSize: 10,
  66. isRefresher: false, // scroll-view下拉刷新状态,当前默认没有触发
  67. page: 1,
  68. isPage: false
  69. }
  70. },
  71. methods: {
  72. // 页面触底,加载下一页
  73. onScrolltolower(){
  74. console.log('加载下一页')
  75. },
  76. // scroll-view 下拉刷新
  77. onRefresherrefresh(){
  78. this.isRefresher = true;
  79. console.log('下拉刷新')
  80. setTimeout(() => {
  81. this.isRefresher = false;
  82. },1000)
  83. }
  84. }
  85. }
  86. </script>
  87. <style scoped>
  88. .com {
  89. height: 900rpx;
  90. }
  91. .wallet-top {
  92. height: 404rpx;
  93. width: 100%;
  94. padding: 28rpx 32rpx;
  95. background-color: #FE9903;
  96. }
  97. .wallet-wraptop {
  98. width: 100%;
  99. height: 100%;
  100. border-radius: 10rpx;
  101. padding: 46rpx 0 44rpx 0;
  102. }
  103. .btn{
  104. margin: 0;
  105. padding: 0;
  106. width: 320rpx;
  107. height: 84rpx;
  108. background-color: #FE9903;
  109. color: #FFFFFF;
  110. line-height: 84rpx;
  111. font-size: 32rpx;
  112. border-radius: 42rpx;
  113. }
  114. </style>