gztq.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <view class="content">
  3. <view class="row top">
  4. <view class="tit">
  5. 可提现金额
  6. </view>
  7. <view class="input price">
  8. 1000.10
  9. </view>
  10. </view>
  11. <view class="row top">
  12. <view class="tit">
  13. 提现到
  14. </view>
  15. <view class="select-time">
  16. <picker mode="selector" @change="bindTypeChange" fields="month" :range="typeList" range-key="name">
  17. <view class="input" style="min-width: 400rpx;text-align: right;">{{typename}}</view>
  18. </picker>
  19. </view>
  20. </view>
  21. <view class="top row">
  22. <view class="tit">
  23. 申请提现金额
  24. </view>
  25. <input class="input price" type="digit" v-model="txnum" placeholder="请输入金额" placeholder-class="placeholder" />
  26. </view>
  27. <view class="gq-detail">
  28. <view class="">
  29. <!-- 可提现: (股权) -->
  30. </view>
  31. <view class="right" @click="">
  32. 全部提现
  33. </view>
  34. </view>
  35. <view class="" style="height: 20rpx;background-color: #f7f7f7;"></view>
  36. <view class="row" v-if="type == 'alipay'">
  37. <text class="tit">姓名</text>
  38. <input class="input" type="text" v-model="ali_people" placeholder="请输入支付宝姓名"
  39. placeholder-class="placeholder" />
  40. </view>
  41. <view class="row" v-if="type == 'alipay'">
  42. <text class="tit">支付宝账号</text>
  43. <input class="input" type="text" v-model="alipay_code" placeholder="请输入支付宝账号"
  44. placeholder-class="placeholder" />
  45. </view>
  46. <view class="row" v-if="type == 'bank'">
  47. <text class="tit">姓名</text>
  48. <input class="input" type="text" v-model="bank_people" placeholder="请输入银行卡姓名"
  49. placeholder-class="placeholder" />
  50. </view>
  51. <view class="row" v-if="type == 'bank'">
  52. <text class="tit">银行卡号</text>
  53. <input class="input" type="text" v-model="bank_code" placeholder="请输入银行卡号"
  54. placeholder-class="placeholder" />
  55. </view>
  56. <view class="row" v-if="type == 'bank'">
  57. <text class="tit">手机号</text>
  58. <input class="input" type="text" v-model="phone" placeholder="请输入银行卡姓名" placeholder-class="placeholder" />
  59. </view>
  60. <view class="row" v-if="type == 'bank'">
  61. <text class="tit">所属银行</text>
  62. <input class="input" type="text" v-model="bank_name" placeholder="请输入所属银行"
  63. placeholder-class="placeholder" />
  64. </view>
  65. <view class="sub-btn">
  66. 提交申请
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. typename: '银行卡',
  75. typeList: [{
  76. state: 'bank',
  77. name: '银行卡'
  78. },
  79. {
  80. state: 'alipay',
  81. name: '支付宝'
  82. }
  83. ],
  84. txnum: '',
  85. ali_people: '',
  86. loading: false,
  87. phone: '',
  88. weixin_no: '',
  89. type: 'bank', //提现方式
  90. money: '0.00', //可提现金额
  91. freeze: '0.0', //冻结金额
  92. withdrawal: '', //提现金额
  93. minPrice: '', //最少提现金额
  94. aliData: {},
  95. bankData: {},
  96. weixin: {},
  97. alipay_code: '',
  98. alipay_name: '',
  99. bank_code: '',
  100. bank_people: '',
  101. bank_name: '',
  102. bank_belonging: '',
  103. jftype: 0,
  104. }
  105. },
  106. onLoad() {
  107. },
  108. onShow() {
  109. },
  110. onReachBottom() {
  111. },
  112. onReady() {
  113. },
  114. methods: {
  115. bindTypeChange(e) {
  116. let index = e.detail.value
  117. this.typename = this.typeList[index].name
  118. this.type = this.typeList[index].state
  119. }
  120. }
  121. }
  122. </script>
  123. <style lang="scss">
  124. page {
  125. height: auto;
  126. min-height: 100%;
  127. background-color: #fff;
  128. }
  129. .row {
  130. margin: auto;
  131. width: 710rpx;
  132. height: 90rpx;
  133. display: flex;
  134. justify-content: space-between;
  135. padding: 0 20rpx;
  136. border-bottom: 1rpx solid #eeee;
  137. background-color: #fff;
  138. align-items: center;
  139. font-size: 28rpx;
  140. color: #000;
  141. .tit {
  142. width: 200rpx;
  143. flex-shrink: 0;
  144. }
  145. .input {
  146. flex-grow: 1;
  147. font-size: 28rpx;
  148. font-weight: bold;
  149. }
  150. .placeholder {
  151. font-size: 28rpx;
  152. color: #999;
  153. }
  154. }
  155. .sub-btn {
  156. width: 670rpx;
  157. line-height: 88rpx;
  158. background: #FF4C4C;
  159. border-radius: 10rpx;
  160. text-align: center;
  161. font-size: 32rpx;
  162. font-weight: 500;
  163. color: #FFFFFF;
  164. margin: 120rpx auto 0;
  165. }
  166. .top {
  167. height: 110rpx;
  168. .tit {
  169. font-size: 32rpx;
  170. font-weight: 500;
  171. color: #333333;
  172. }
  173. .price {
  174. font-size: 48rpx;
  175. font-weight: bold;
  176. color: #333333;
  177. text-align: right;
  178. }
  179. input {
  180. font-size: 42rpx;
  181. font-weight: 500;
  182. }
  183. .placeholder {
  184. font-size: 32rpx;
  185. font-weight: 500;
  186. }
  187. }
  188. .gq-detail {
  189. display: flex;
  190. justify-content: space-between;
  191. padding:20rpx 40rpx;
  192. font-size: 28rpx;
  193. .left {
  194. }
  195. .right {
  196. color: #d74f3a;
  197. }
  198. }
  199. </style>