withdraw.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view class="container">
  3. <view class="header">
  4. <view class="row-box">
  5. <view class="title">可提现金额</view>
  6. <view class="row">
  7. <view class="tit">¥{{money}}</view>
  8. </view>
  9. </view>
  10. <view class="row-box">
  11. <view class="title">申请提现金额</view>
  12. <view class="row">
  13. <input class="counts" type="number" v-model="withdrawal" placeholder="请输入金额"/>
  14. </view>
  15. </view>
  16. <view class="buttom" @click="withdrawal = money">全部提现</view>
  17. </view>
  18. <view class="conent">
  19. <view class="text">提现到</view>
  20. <radio-group @change="tabRadio">
  21. <label>
  22. <view class="box">
  23. <image src="../../static/img/img35.png" mode="scaleToFill"></image>
  24. <view class="title-box">
  25. <view class="title"><text>微信支付</text></view>
  26. </view>
  27. <view class="right">
  28. <radio value="weixin" color="#FF4C4C" :checked="type == 'weixin'" />
  29. </view>
  30. </view>
  31. </label>
  32. <label>
  33. <view class="box">
  34. <image src="../../static/img/img36.png" mode="scaleToFill"></image>
  35. <view class="title-box">
  36. <view class="title"><text>银行账户</text></view>
  37. </view>
  38. <view class="right">
  39. <radio value="bank" color="#FF4C4C" :checked="type == 'bank'" />
  40. </view>
  41. </view>
  42. </label>
  43. </radio-group>
  44. <view class="btn" @click="nav('/pages/user/refer')">
  45. <view class="title" >提交申请</view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. type: 'weixin',
  55. money: '0.00', //可提现金额
  56. withdrawal: '' //提现金额
  57. }
  58. },
  59. methods: {
  60. tabRadio(e) {
  61. console.log(e)
  62. this.type = e.detail.value;
  63. },
  64. nav (url) {
  65. uni.navigateTo({
  66. url
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss">
  73. .header {
  74. height: 330rpx;
  75. background-color: #fff;
  76. .row-box {
  77. height: 130rpx;
  78. width: 700rpx;
  79. background-color: #fff;
  80. display: flex;
  81. align-items: center;
  82. border-bottom: 1rpx solid #E6E6E6;
  83. margin: 0 auto;
  84. .title {
  85. font-size: 32rpx;
  86. font-family: PingFang SC;
  87. font-weight: 500;
  88. color: #333333;
  89. width: 100%;
  90. }
  91. .row {
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. .tit {
  96. width: 300rpx;
  97. }
  98. .counts {
  99. // text-align: right;
  100. // width: 100rpx;
  101. font-size: 50rpx;
  102. font-family: Source Han Sans CN;
  103. font-weight: 500;
  104. color: #333333;
  105. // &::before {
  106. // content: '¥';
  107. // }
  108. }
  109. }
  110. }
  111. .buttom {
  112. margin-top: 10rpx;
  113. margin-left: 620rpx;
  114. flex-direction: column;
  115. width: 105rpx;
  116. height: 25rpx;
  117. font-size: 26rpx;
  118. font-family: Source Han Sans CN;
  119. font-weight: 400;
  120. color: #FF4C4C;
  121. line-height: 42rpx;
  122. }
  123. }
  124. .conent {
  125. margin-top: 20rpx;
  126. height: 890rpx;
  127. background-color: #fff;
  128. .text {
  129. font-size: 30rpx;
  130. font-family: Source Han Sans CN;
  131. font-weight: 400;
  132. color: #333333;
  133. margin-left: 20rpx;
  134. padding-top: 20rpx;
  135. }
  136. .box {
  137. display: flex;
  138. align-items: center;
  139. width: 710rpx;
  140. height: 100rpx;
  141. border-bottom: 1rpx solid #E6E6E6;
  142. margin-left: 20rpx;
  143. image {
  144. width: 40rpx;
  145. height: 40rpx;
  146. margin-left: 20rpx;
  147. margin-right: 20rpx;
  148. }
  149. .title-box {
  150. margin-right: 440rpx;
  151. }
  152. }
  153. .btn {
  154. margin-top: 120rpx;
  155. width: 670rpx;
  156. height: 100rpx;
  157. background: #6EAB4E;
  158. border-radius: 10rpx;
  159. display: flex;
  160. justify-content: center;
  161. margin-left: 40rpx;
  162. .title {
  163. display: flex;
  164. align-items: center;
  165. font-size: 32rpx;
  166. font-family: Source Han Sans CN;
  167. font-weight: 500;
  168. color: #FFFFFF;
  169. }
  170. }
  171. }
  172. </style>