裂变星小程序-25.03.04
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.

165 lines
3.3 KiB

  1. <template>
  2. <view class="page">
  3. <navbar title="提现" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="content">
  5. <view class="card info">
  6. <view class="info-row">
  7. <view class="flex">
  8. <text class="unit"></text>
  9. <uv-input
  10. v-model="count"
  11. placeholder="请输入提现金额"
  12. :placeholderStyle="{
  13. color: '#999999',
  14. fontSize: '38rpx',
  15. fontWight: 900,
  16. }"
  17. :customStyle="{
  18. flex: 1,
  19. padding: 0,
  20. fontWight: 900,
  21. }"
  22. fontSize="38rpx"
  23. color="#1B1B1B"
  24. border="none"
  25. focus
  26. ></uv-input>
  27. <button plain class="btn-simple btn-withdraw">全部提现</button>
  28. </view>
  29. <view class="account">{{ `可用金额:¥${account}` }}</view>
  30. </view>
  31. <view class="info-row">
  32. <view class="flex title">
  33. <text>提现至</text>
  34. <image class="icon-wx" src="../static/center/wx.png"></image>
  35. <text>微信</text>
  36. <!-- todo: check -->
  37. <txt>本人已实名微信账号</txt>
  38. </view>
  39. <view class="flex">
  40. <view class="desc">余额提现至微信钱包提现限额2000元/日次日00:00恢复提现额度</view>
  41. <button plain class="btn-auth">去授权</button>
  42. </view>
  43. </view>
  44. </view>
  45. <button class="btn-submit" @click="onConfirm">确定</button>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. count: null,
  54. account: null,
  55. }
  56. },
  57. onShow() {
  58. // todo
  59. // fetch user-info
  60. this.account = 100.0
  61. },
  62. methods: {
  63. onConfirm() {
  64. // todo
  65. },
  66. },
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .page {
  71. background-color: $uni-bg-color;
  72. }
  73. .content {
  74. padding: 20rpx;
  75. }
  76. .info {
  77. border-radius: 16rpx;
  78. padding: 60rpx 24rpx 50rpx 24rpx;
  79. color: #999999;
  80. font-size: 28rpx;
  81. &-row {
  82. padding: 0 17rpx 0 19rpx;
  83. & + & {
  84. margin-top: 30rpx;
  85. border-top: 1rpx solid #CCCCCC;
  86. padding-top: 33rpx;
  87. }
  88. .title {
  89. justify-content: flex-start;
  90. color: #666666;
  91. font-weight: 700;
  92. margin-bottom: 15rpx;
  93. }
  94. .desc {
  95. flex: 1;
  96. font-size: 24rpx;
  97. }
  98. }
  99. .unit {
  100. color: #1B1B1B;
  101. font-size: 38rpx;
  102. font-weight: 900;
  103. margin-right: 13rpx;
  104. }
  105. .account {
  106. padding-left: 19rpx;
  107. margin-top: 21rpx;
  108. }
  109. .icon-wx {
  110. width: 40rpx;
  111. height: 34rpx;
  112. margin: 0 8rpx;
  113. }
  114. .btn {
  115. &-withdraw {
  116. color: #04D6A3;
  117. font-weight: 700;
  118. font-size: 28rpx;
  119. }
  120. &-auth {
  121. color: #04D6A3;
  122. border-color: #04D6A3;
  123. font-size: 28rpx;
  124. line-height: 1;
  125. padding: 12rpx 34rpx;
  126. width: auto;
  127. height: auto;
  128. box-sizing: border-box;
  129. border-radius: 33rpx;
  130. margin-left: 22rpx;
  131. }
  132. }
  133. }
  134. .btn-submit {
  135. width: calc(100% - 40rpx);
  136. height: 90rpx;
  137. background-color: $uni-bg-color-highlight;
  138. color: $uni-text-color-highlight;
  139. font-size: 36rpx;
  140. border-radius: 45rpx;
  141. position: fixed;
  142. bottom: 159rpx;
  143. left: 20rpx;
  144. }
  145. </style>