index.vue 5.1 KB

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