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

168 lines
3.0 KiB

11 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">{{money.money}}</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" type="number" border="none"></uv-input>
  21. </view>
  22. <view class="right" @click="withdrawMoney = money.money">全部提现</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <!--提现按钮-->
  28. <button @click="withdrawPage" class="bottomBtn">
  29. 提现
  30. </button>
  31. </view>
  32. </template>
  33. <script>
  34. import '../../common.css'; // 引入公共 CSS 文件
  35. export default {
  36. data() {
  37. return {
  38. withdrawMoney: "",
  39. money: {},
  40. };
  41. },
  42. onShow() {
  43. this.infoGetInfoMoney()
  44. },
  45. methods: {
  46. infoGetInfoMoney() {
  47. this.$api('infoGetInfoMoney', res => {
  48. if (res.code == 200) {
  49. this.money = res.result
  50. }
  51. })
  52. },
  53. // 提现
  54. withdrawPage() {
  55. this.$api('infoWithdraw', {
  56. money: this.withdrawMoney
  57. }, res => {
  58. if (res.code == 200) {
  59. uni.navigateTo({
  60. url: '/pages_mine/mine/withdrawalRecord'
  61. });
  62. // this.$utils.navigateTo('/pages_mine/mine/withdrawalRecord');
  63. }
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .withdraw {
  71. .content {
  72. .content-top {
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. padding-top: 60rpx;
  77. background-color: #f8faff;
  78. height: 10vh;
  79. .aaa {
  80. color: #000000;
  81. .top {
  82. font-size: 50rpx;
  83. }
  84. .bottom {
  85. font-size: 14px;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. }
  90. }
  91. }
  92. .content-bottom {
  93. border-radius: 50rpx 50rpx 0 0;
  94. box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2);
  95. /* 仅上边的阴影效果 */
  96. background-color: #fff;
  97. height: calc(90vh - 240rpx);
  98. //width: 100vw;
  99. padding: 40rpx;
  100. .inputComponent {
  101. display: flex;
  102. //gap: 20rpx;
  103. //border: 1px solid red;
  104. .left {
  105. display: flex;
  106. justify-content: flex-start;
  107. align-items: center;
  108. font-size: 30rpx;
  109. width: 50%;
  110. margin-right: 20rpx;
  111. }
  112. .centerAndRight {
  113. display: flex;
  114. width: 60%;
  115. .center {
  116. width: 60%;
  117. }
  118. .right {
  119. display: flex;
  120. justify-content: flex-end;
  121. align-items: center;
  122. font-size: 32rpx;
  123. margin-left: 20rpx;
  124. width: 40%;
  125. background: $uni-linear-gradient-color;
  126. -webkit-background-clip: text;
  127. /*将设置的背景颜色限制在文字中*/
  128. -webkit-text-fill-color: transparent;
  129. /*给文字设置成透明*/
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. </style>