withdraw.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <view class="exchangeIntegral">
  3. <view class="integral">
  4. <view class="">
  5. 可提现金额
  6. </view>
  7. <view class="num">
  8. {{integral}}
  9. </view>
  10. </view>
  11. <view class="applyIntegral">
  12. <view class="">
  13. 申请提现金额
  14. </view>
  15. <input type="number" class="num" v-model="num"/>
  16. </view>
  17. <view class="all" @click="all"> <text>满100可提现</text><text>全部转换</text></view>
  18. <view class="between">
  19. </view>
  20. <view class="bottom">
  21. <view class="box">
  22. <view class="title">
  23. 提现到
  24. </view>
  25. <radio-group name="">
  26. <view class="box-content">
  27. <view class="box-left">
  28. <view class="img">
  29. <image src="../../static/user/wx.png" mode=""></image>
  30. </view>
  31. <text>微信支付</text>
  32. </view>
  33. <label class="radio">
  34. <radio value="" style="transform:scale(0.7)" />
  35. </label>
  36. </view>
  37. <view class="box-content">
  38. <view class="box-left">
  39. <view class="img1 img">
  40. <image src="../../static/user/bank.png" mode=""></image>
  41. </view>
  42. <text>银行账户</text>
  43. </view>
  44. <label class="radio">
  45. <radio value="" style="transform:scale(0.7)" />
  46. </label>
  47. </view>
  48. </radio-group>
  49. </view>
  50. <view class="button" @click="submit">提交申请</view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. integral: 1000,
  59. num: ''
  60. }
  61. },
  62. methods: {
  63. all() {
  64. this.num = this.integral
  65. },
  66. submit() {
  67. if(this.integral < this.num) {
  68. this.all()
  69. }
  70. }
  71. },
  72. watch: {
  73. num() {
  74. if(this.integral < this.num) {
  75. this.all()
  76. }
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. page,.exchangeIntegral {
  83. background-color: #FFFFFF;
  84. height: 100%;
  85. .integral,.applyIntegral{
  86. display: flex;
  87. justify-content: space-between;
  88. padding: 30rpx;
  89. background-color: #FFFFFF;
  90. margin-bottom: 5rpx;
  91. font-size: 30rpx;
  92. .num {
  93. font-size: 40rpx;
  94. text-align: right;
  95. max-width: 400rpx;
  96. }
  97. }
  98. .between{
  99. width: 100%;
  100. height: 20rpx;
  101. background-color: #F7F7F7
  102. }
  103. .all {
  104. display: flex;
  105. justify-content: space-between;
  106. width: 100%;
  107. height: 80rpx;
  108. line-height: 80rpx;
  109. margin-top: 2rpx;
  110. background-color: #fff;
  111. padding: 0 30rpx;
  112. margin-bottom: 20rpx;
  113. text:nth-child(1) {
  114. font-size: 24rpx;
  115. font-family: PingFang SC;
  116. font-weight: 500;
  117. color: #999999;
  118. }
  119. text:nth-child(2){
  120. font-size: 26rpx;
  121. font-family: SourceHanSansCN;
  122. font-weight: 400;
  123. color: #438BED;
  124. }
  125. }
  126. .bottom{
  127. width: 750rpx;
  128. background: #FFFFFF;
  129. padding: 20rpx;
  130. .box{
  131. margin-bottom: 120rpx;
  132. display: flex;
  133. flex-direction: column;
  134. .title{
  135. display: flex;
  136. margin-bottom: 10rpx;
  137. font-size: 30rpx;
  138. font-family: SourceHanSansCN;
  139. font-weight: 400;
  140. color: #333333;
  141. }
  142. .box-content{
  143. padding: 20rpx;
  144. border-bottom: 1rpx solid #E6E6E6;
  145. display: flex;
  146. justify-content: space-between;
  147. .box-left{
  148. display: flex;
  149. .img{
  150. width: 40rpx;
  151. height: 40rpx;
  152. image{
  153. width: 100%;
  154. height: 100%;
  155. }
  156. }
  157. text{
  158. margin-left: 30rpx;
  159. font-size: 26rpx;
  160. font-family: SourceHanSansCN;
  161. font-weight: 400;
  162. color: #515151;
  163. }
  164. }
  165. .radio{
  166. width: 20rpx;
  167. height: 20rpx;
  168. radio{
  169. width: 20rpx;
  170. height: 20rpx;
  171. }
  172. }
  173. }
  174. }
  175. }
  176. // .img1{
  177. // width: 40rpx;
  178. // height: 30rpx;
  179. // image{
  180. // width: 100%;
  181. // height: 100%;
  182. // }
  183. // }
  184. .button {
  185. background: linear-gradient(90deg, #438BED 0%, #44BFEC 100%);
  186. color: #fff;
  187. width: 670rpx;
  188. padding: 20rpx;
  189. font-size: 30rpx;
  190. border-radius: 10rpx;
  191. text-align: center;
  192. margin: 0 auto;
  193. }
  194. }
  195. </style>