帧视界壹通告,付费看视频的微信小程序
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.

157 lines
3.1 KiB

11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="withdraw">
  3. <!--顶部导航栏-->
  4. <navbar leftClick @leftClick="$utils.navigateBack" title="提现"/>
  5. <!--内容区-->
  6. <view class="content">
  7. <!--上部分-->
  8. <view class="content-top">
  9. <view class="aaa">
  10. <view class="top">1240,045</view>
  11. <view class="bottom">可提现金额</view>
  12. </view>
  13. </view>
  14. <!--下部分-->
  15. <view class="content-bottom">
  16. <view class="inputComponent">
  17. <view class="left">填写提现金额</view>
  18. <view class="centerAndRight">
  19. <view class="center">
  20. <uv-input placeholder="输入金额" v-model="withdrawMoney"
  21. border="none" @change="moneyChange"></uv-input>
  22. </view>
  23. <view class="right">全部提现</view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <!--提现按钮-->
  29. <button @click="withdrawPage" class="bottomBtn">
  30. 提现
  31. </button>
  32. </view>
  33. </template>
  34. <script>
  35. import '../../common.css'; // 引入公共 CSS 文件
  36. export default {
  37. data() {
  38. return {
  39. withdrawMoney: "",
  40. };
  41. },
  42. methods: {
  43. // 金额发生变化
  44. moneyChange(e) {
  45. console.log(e)
  46. this.withdrawMoney = e
  47. },
  48. // 提现
  49. withdrawPage() {
  50. this.$api('infoWithdraw', {
  51. withdrawMoney: this.withdrawMoney
  52. }, res => {
  53. if (res.code == 200) {
  54. this.$utils.navigateTo('/mine/withdrawalRecord');
  55. }
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .withdraw {
  63. .content {
  64. .content-top {
  65. display: flex;
  66. flex-direction: column;
  67. align-items: center;
  68. padding-top: 60rpx;
  69. background-color: #f8faff;
  70. height: 10vh;
  71. .aaa {
  72. color: #000000;
  73. .top {
  74. font-size: 50rpx;
  75. }
  76. .bottom {
  77. font-size: 14px;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. }
  82. }
  83. }
  84. .content-bottom {
  85. border-radius: 50rpx 50rpx 0 0;
  86. box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */
  87. background-color: #fff;
  88. height: calc(90vh - 240rpx);
  89. //width: 100vw;
  90. padding: 40rpx;
  91. .inputComponent {
  92. display: flex;
  93. //gap: 20rpx;
  94. //border: 1px solid red;
  95. .left {
  96. display: flex;
  97. justify-content: flex-start;
  98. align-items: center;
  99. font-size: 30rpx;
  100. width: 50%;
  101. margin-right: 20rpx;
  102. }
  103. .centerAndRight {
  104. display: flex;
  105. width: 50%;
  106. .center {
  107. width: 60%;
  108. }
  109. .right {
  110. display: flex;
  111. justify-content: flex-end;
  112. align-items: center;
  113. font-size: 32rpx;
  114. margin-left: 20rpx;
  115. width: 40%;
  116. background: $uni-linear-gradient-color;
  117. -webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
  118. -webkit-text-fill-color: transparent; /*给文字设置成透明*/
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. </style>