index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <script lang="ts" setup>
  2. import { storeToRefs } from 'pinia'
  3. import { ref } from 'vue'
  4. import { LOGIN_PAGE } from '@/router/config'
  5. import { useUserStore } from '@/store'
  6. import { useTokenStore } from '@/store/token'
  7. definePage({
  8. style: {
  9. navigationBarTitleText: '提现',
  10. },
  11. })
  12. const userStore = useUserStore()
  13. const tokenStore = useTokenStore()
  14. // 使用storeToRefs解构userInfo
  15. const { userInfo } = storeToRefs(userStore)
  16. const unlockAmount = ref('')
  17. function toBindBank() {
  18. uni.navigateTo({
  19. url: '/pages-A/bank/index',
  20. })
  21. }
  22. </script>
  23. <template>
  24. <view class="profile-container">
  25. <view class="widthdraw-select-card">
  26. <view class="widthdraw-select-card-left">
  27. <view class="widthdraw-select-card-left-title">
  28. 提现至
  29. </view>
  30. <view class="widthdraw-select-card-left-hanke">
  31. <image src="/static/images/income/y-1.png" />
  32. <view class="widthdraw-select-card-left-hanke-text">
  33. 建设银行(8463)
  34. </view>
  35. </view>
  36. </view>
  37. <view class="widthdraw-select-card-right">
  38. <view class="widthdraw-select-card-right-title" @click.stop="toBindBank">
  39. 去绑卡
  40. </view>
  41. <u-icon name="arrow-right" size="13" color="#666" />
  42. </view>
  43. </view>
  44. <view class="income-header-menu">
  45. <view class="income-header-menu-title">
  46. 提现金额
  47. </view>
  48. <view class="income-header-menu-input-box">
  49. <view class="income-header-menu-input">
  50. <text class="income-header-menu-input-symbol">¥</text>
  51. <u-input
  52. v-model="unlockAmount"
  53. type="number"
  54. border="none"
  55. />
  56. </view>
  57. <view class="income-header-menu-input-text">
  58. 全部提现
  59. </view>
  60. </view>
  61. <view class="income-header-menu-input-tips">
  62. 可提现金额:¥1000000
  63. </view>
  64. </view>
  65. <view class="income-header-menu-btn">
  66. 申请提现
  67. </view>
  68. <view class="income-header-menu-btn-cancle">
  69. 提现记录
  70. </view>
  71. </view>
  72. </template>
  73. <style lang="scss" scoped>
  74. ::v-deep .u-input__content__field-wrapper__field {
  75. height: 80rpx !important;
  76. font-size: 80rpx !important;
  77. }
  78. .profile-container {
  79. font-family: Alibaba PuHuiTi;
  80. min-height: calc(100vh - 20rpx);
  81. background-color: #f5f5f5;
  82. line-height: 1;
  83. padding: 20rpx 0 0 0;
  84. // padding-top: 44px; /* 为固定导航栏留出空间 */
  85. .widthdraw-select-card {
  86. height: 88rpx;
  87. background: #ffffff;
  88. border-radius: 10rpx;
  89. display: flex;
  90. justify-content: space-between;
  91. align-items: center;
  92. font-weight: 400;
  93. font-size: 26rpx;
  94. color: #333333;
  95. padding: 0 20rpx;
  96. margin: 0 20rpx;
  97. .widthdraw-select-card-left {
  98. display: flex;
  99. align-items: center;
  100. gap: 38rpx;
  101. .widthdraw-select-card-left-hanke {
  102. display: flex;
  103. align-items: center;
  104. gap: 15rpx;
  105. image {
  106. width: 30rpx;
  107. height: 30rpx;
  108. }
  109. }
  110. }
  111. .widthdraw-select-card-right {
  112. display: flex;
  113. align-items: center;
  114. gap: 20rpx;
  115. }
  116. }
  117. .income-header-menu {
  118. background: #ffffff;
  119. border-radius: 10rpx;
  120. margin: 24rpx 24rpx 0;
  121. .income-header-menu-title {
  122. font-weight: 400;
  123. font-size: 26rpx;
  124. color: #333333;
  125. padding: 34rpx 20rpx;
  126. // border-bottom: 2rpx solid #eeeeee;
  127. }
  128. .income-header-menu-input-box {
  129. display: flex;
  130. align-items: flex-end;
  131. justify-content: space-between;
  132. .income-header-menu-input {
  133. display: flex;
  134. align-items: flex-end;
  135. gap: 17rpx;
  136. padding: 66rpx 20rpx;
  137. .income-header-menu-input-symbol {
  138. font-weight: 400;
  139. font-size: 60rpx;
  140. color: #333333;
  141. }
  142. }
  143. .income-header-menu-input-text {
  144. width: 200rpx;
  145. font-weight: 400;
  146. font-size: 26rpx;
  147. color: #1777ff;
  148. padding: 66rpx 20rpx;
  149. }
  150. }
  151. .income-header-menu-input-tips {
  152. font-weight: 400;
  153. font-size: 28rpx;
  154. color: #888888;
  155. padding: 30rpx 0;
  156. margin: 0 20rpx;
  157. border-top: 2rpx solid #eeeeee;
  158. }
  159. }
  160. .income-header-menu-btn {
  161. width: 600rpx;
  162. line-height: 80rpx;
  163. background: linear-gradient(90deg, #ee6b67 0%, #ff7d78 100%);
  164. border-radius: 10rpx;
  165. margin: 100rpx auto 0;
  166. font-weight: 400;
  167. font-size: 30rpx;
  168. color: #ffffff;
  169. text-align: center;
  170. }
  171. .income-header-menu-btn-cancle {
  172. width: 600rpx;
  173. line-height: 80rpx;
  174. margin: 10rpx auto 0;
  175. font-weight: 400;
  176. font-size: 30rpx;
  177. color: #333;
  178. text-align: center;
  179. }
  180. }
  181. </style>