index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <view class="consume-content" :style="{'--status-bar-': statusBarHeight}">
  3. <view class="consume-content-info">
  4. <!-- 头部主要内容 开始 -->
  5. <view class="consume-content-header">
  6. <customNavbar title="收支明细" bgColor="var(--gd-bgm-color)" :customNavbarInfo="{}" :contentStyle="{}"
  7. :leftStyle="{color: '#fff'}"></customNavbar>
  8. <!-- tab 开始 -->
  9. <u-tabs
  10. :list="list1"
  11. @click="clickTabs"
  12. lineColor="var(--gd-bgm-color)"
  13. :activeStyle="{ color: 'rgba(127, 127, 127, 1)' }"
  14. :inactiveStyle="{ color: 'rgba(127, 127, 127, 1)' }"
  15. :scrollable="false"
  16. ></u-tabs>
  17. <!-- tab 结束 -->
  18. </view>
  19. <!-- 头部主要内容 结束 -->
  20. <!-- 收支列表 开始 -->
  21. <view class="consume-content-list">
  22. <mescroll-body class="" style="width: 100%;height: 100%;min-height: unset;" ref="mescrollRef">
  23. <customListItem v-for="(item,index) in 200" />
  24. </mescroll-body>
  25. </view>
  26. <!-- 收支列表 结束 -->
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {
  32. navigateTo
  33. } from "@/utils/util.js"
  34. export default {
  35. data() {
  36. return {
  37. title: '这是我的',
  38. statusBarHeight: 0, // 状态栏安全距离
  39. monry: 123456.789,
  40. moneyValue: null,
  41. tool: [ // 我的工具
  42. {
  43. title: "支付设置",
  44. icon: this.$commonConfig.staticUrl + 'balance/zhifu.png',
  45. url: '/pages/invitationStatistics/index'
  46. },
  47. {
  48. title: "余额提现",
  49. icon: this.$commonConfig.staticUrl + 'balance/mingxi.png',
  50. url: '/pages/balance/index'
  51. },
  52. ],
  53. list1: [
  54. {
  55. name: '全部'
  56. },
  57. {
  58. name: '收入',
  59. },
  60. {
  61. name: '支出',
  62. }],
  63. }
  64. },
  65. onLoad() {
  66. },
  67. onShow() {
  68. this.statusBarHeight = getApp().globalData.statusBarHeight
  69. },
  70. methods: {
  71. /**
  72. * @author ygh
  73. * @data 2023-12-20
  74. */
  75. navigateToFun() {
  76. navigateTo('/pages/cash/index')
  77. },
  78. /**
  79. * 数字显示格式化
  80. *
  81. */
  82. numFormat(num = 0) {
  83. if (num < 100000) {
  84. return num
  85. } else if (num > 100000) {
  86. return (num / 10000).toFixed(2)
  87. }
  88. },
  89. /**
  90. * 选择tabs
  91. */
  92. clickTabs(item) {
  93. console.log('item', item);
  94. }
  95. }
  96. }
  97. </script>
  98. <style lang="scss" scoped>
  99. .consume-content {
  100. width: 100%;
  101. height: 100%;
  102. --header-h: 90rpx;
  103. .consume-content-info {
  104. width: 100%;
  105. height: 100%;
  106. display: flex;
  107. flex-direction: column;
  108. box-sizing: border-box;
  109. }
  110. }
  111. /** 头部主要内容 开始 */
  112. .consume-content-header {
  113. width: 100%;
  114. //height: var(--header-h);
  115. box-sizing: border-box;
  116. position: relative;
  117. ::v-deep .u-search {
  118. padding: 0 30rpx !important;
  119. }
  120. ::v-deep .u-search__action {
  121. color: #fff !important;
  122. }
  123. /** 余额 开始 */
  124. .consume-content-money {
  125. width: 100%;
  126. box-sizing: border-box;
  127. margin-top: 50rpx;
  128. padding-left: 66rpx;
  129. color: #fff;
  130. >text {
  131. font-size: 24rpx;
  132. }
  133. .consume-content-money-num {
  134. display: flex;
  135. justify-content: center;
  136. align-items: flex-start;
  137. flex-direction: column;
  138. margin-top: 24rpx;
  139. >text:nth-child(1) {
  140. .balance-userinfo-util {
  141. font-size: 24rpx;
  142. margin-left: 5rpx;
  143. }
  144. ::v-deep .u-count-num {
  145. font-weight: bold !important;
  146. font-size: 48rpx !important;
  147. }
  148. }
  149. >text:nth-child(2) {
  150. margin-top: 20rpx;
  151. font-size: 24rpx;
  152. }
  153. }
  154. }
  155. /** 余额 结束 */
  156. /** 提现 开始 */
  157. .consume-content-cash {
  158. width: 100%;
  159. box-sizing: border-box;
  160. position: absolute;
  161. top: 100%;
  162. transform: translateY(-50%);
  163. padding: 0 12rpx;
  164. .consume-content-consume-box {
  165. width: 100%;
  166. height: 100%;
  167. background-color: #fff;
  168. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(221, 221, 221, 0.5);
  169. border-radius: 20rpx;
  170. box-sizing: border-box;
  171. padding: 34rpx 30rpx 38rpx;
  172. >text {
  173. font-size: 28rpx;
  174. color: #363636;
  175. }
  176. .consume-content-consume-money {
  177. width: 100%;
  178. display: flex;
  179. align-items: center;
  180. padding: 40rpx 0 20rpx;
  181. border-bottom: 2rpx solid #EEEEEE;
  182. ::v-deep .u-cell__body {
  183. padding: 20rpx 0 !important;
  184. }
  185. .consume-content-consume-input {
  186. width: 100%;
  187. padding: 0 10rpx;
  188. }
  189. >text {
  190. flex-shrink: 0;
  191. flex-wrap: nowrap;
  192. white-space: nowrap;
  193. }
  194. .consume-content-consume-money-icon {
  195. font-size: 32rpx;
  196. }
  197. .consume-content-consume-money-all {
  198. color: var(--gd-but-color);
  199. font-size: 24rpx;
  200. cursor: pointer;
  201. }
  202. }
  203. .consume-content-consume-card {
  204. width: 100%;
  205. ::v-deep .u-cell__body {
  206. padding: 20rpx 0 !important;
  207. }
  208. }
  209. .consume-content-consume-submit {
  210. width: 100%;
  211. height: 92rpx;
  212. display: flex;
  213. align-items: center;
  214. justify-content: center;
  215. box-sizing: border-box;
  216. padding: 0 80rpx 0;
  217. margin-top: 70rpx;
  218. >view {
  219. width: 100%;
  220. height: 100%;
  221. border-radius: 46rpx;
  222. color: #fff;
  223. background-color: var(--gd-but-color);
  224. font-size: 28rpx;
  225. font-family: SourceHanSansCN, SourceHanSansCN;
  226. display: flex;
  227. align-items: center;
  228. justify-content: center;
  229. }
  230. }
  231. }
  232. }
  233. /** 提现 结束 */
  234. }
  235. /** 头部主要内容 结束 **/
  236. /** 收支列表 开始 */
  237. .consume-content-list {
  238. width: 100%;
  239. height: 100%;
  240. // overflow: hidden;
  241. }
  242. /** 收支列表 结束 */
  243. </style>