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

207 lines
4.1 KiB

11 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
11 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
11 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 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="digit" border="none"></uv-input>
  21. </view>
  22. <view class="right" @click="withdrawMoney = money.money">全部提现</view>
  23. </view>
  24. </view>
  25. <view class="inputComponent">
  26. <view class="left">请输入真实姓名</view>
  27. <view class="centerAndRight">
  28. <view class="center">
  29. <uv-input placeholder="请输入真实姓名" v-model="name" border="none"></uv-input>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="tips">
  34. 温馨提示真实姓名将影响到提现是否成功请认真对待
  35. </view>
  36. </view>
  37. </view>
  38. <span class="income-record"
  39. style="bottom: 220rpx;"
  40. @click="$utils.navigateTo('/pages_mine/mine/withdrawalRecord')">提现记录</span>
  41. <!--提现按钮-->
  42. <button @click="withdrawPage" class="bottomBtn">
  43. 提现
  44. </button>
  45. </view>
  46. </template>
  47. <script>
  48. import '../../common.css'; // 引入公共 CSS 文件
  49. export default {
  50. data() {
  51. return {
  52. withdrawMoney: "",
  53. name: "",
  54. money: {},
  55. };
  56. },
  57. onShow() {
  58. this.infoGetInfoMoney()
  59. },
  60. methods: {
  61. infoGetInfoMoney() {
  62. this.$api('infoGetInfoMoney', res => {
  63. if (res.code == 200) {
  64. this.money = res.result
  65. }
  66. })
  67. },
  68. // 提现
  69. withdrawPage() {
  70. let data = {
  71. money: this.withdrawMoney,
  72. name : this.name,
  73. }
  74. if(this.$utils.verificationAll(data, {
  75. money : '填写提现金额',//
  76. name : '请输入真实姓名',//
  77. })){
  78. return
  79. }
  80. this.$api('infoWithdraw', data, res => {
  81. if (res.code == 200) {
  82. uni.navigateTo({
  83. url: '/pages_mine/mine/withdrawalRecord'
  84. });
  85. // this.$utils.navigateTo('/pages_mine/mine/withdrawalRecord');
  86. }
  87. })
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .withdraw {
  94. .tips{
  95. color: #777;
  96. font-size: 28rpx;
  97. }
  98. .content {
  99. .content-top {
  100. display: flex;
  101. flex-direction: column;
  102. align-items: center;
  103. padding-top: 60rpx;
  104. background-color: #f8faff;
  105. height: 10vh;
  106. .aaa {
  107. color: #000000;
  108. .top {
  109. font-size: 50rpx;
  110. }
  111. .bottom {
  112. font-size: 14px;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. }
  117. }
  118. }
  119. .content-bottom {
  120. border-radius: 50rpx 50rpx 0 0;
  121. box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2);
  122. /* 仅上边的阴影效果 */
  123. background-color: #fff;
  124. height: calc(90vh - 240rpx);
  125. //width: 100vw;
  126. padding: 40rpx;
  127. .inputComponent {
  128. display: flex;
  129. margin-bottom: 40rpx;
  130. //gap: 20rpx;
  131. //border: 1px solid red;
  132. .left {
  133. display: flex;
  134. justify-content: flex-start;
  135. align-items: center;
  136. font-size: 30rpx;
  137. width: 50%;
  138. margin-right: 20rpx;
  139. }
  140. .centerAndRight {
  141. display: flex;
  142. width: 60%;
  143. .center {
  144. width: 60%;
  145. }
  146. .right {
  147. display: flex;
  148. justify-content: flex-end;
  149. align-items: center;
  150. font-size: 32rpx;
  151. margin-left: 20rpx;
  152. width: 40%;
  153. background: $uni-linear-gradient-color;
  154. -webkit-background-clip: text;
  155. /*将设置的背景颜色限制在文字中*/
  156. -webkit-text-fill-color: transparent;
  157. /*给文字设置成透明*/
  158. }
  159. }
  160. }
  161. }
  162. }
  163. .income-record {
  164. position: fixed;
  165. bottom: 160rpx;
  166. right: 40%;
  167. margin-bottom: 40rpx;
  168. background: $uni-linear-gradient-color;
  169. -webkit-background-clip: text;
  170. /*将设置的背景颜色限制在文字中*/
  171. -webkit-text-fill-color: transparent;
  172. /*给文字设置成透明*/
  173. }
  174. }
  175. </style>