index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="container">
  3. <navBar title="提现" :back="true" color="#333333" background="#FFFFFF" />
  4. <view class='box'>
  5. <view class='addpd'>
  6. <view class='top'>
  7. <view class='left'>
  8. 提现方式
  9. </view>
  10. <view class='right' @click="handleOpen">
  11. <image class='icon' mode=""
  12. :src="currWayIndex[0]==0?'../../../static/other/wechat.png':currWayIndex[0]==1?'../../../static/other/zhifubao.png':'../../../static/other/yhk.png'" />
  13. {{currWay}}
  14. <image class='icon_arrR' mode="" src="../../../static/other/c_arrR.png" />
  15. </view>
  16. </view>
  17. <view class='money'>
  18. <view class='label'>
  19. 提现金额
  20. </view>
  21. <view class='bot'>
  22. <view class='left'>
  23. <view class='danwei'>
  24. </view>
  25. <input class="" placeholder="请输入提现金额" v-model="formData.money">
  26. </input>
  27. </view>
  28. <view class='tips'>
  29. 可提现余额¥{{availMoney}}
  30. </view>
  31. </view>
  32. </view>
  33. <view class='info'>
  34. <view class='item bb'>
  35. <view class='label'>
  36. 名字
  37. </view>
  38. <input class="" placeholder="名字" v-model="formData.name">
  39. </input>
  40. </view>
  41. <view class='item bb' v-if="currWay=='银行卡'">
  42. <view class='label'>
  43. 开户行
  44. </view>
  45. <input class="" placeholder="请输入开户行名称" v-model="formData.bankName">
  46. </input>
  47. </view>
  48. <view class='item'>
  49. <view class='label'>
  50. 账号
  51. </view>
  52. <input class="" placeholder="账号" v-model="formData.account">
  53. </input>
  54. </view>
  55. </view>
  56. <view class='botTxt'>
  57. <!-- <image class='icon' mode="" src="{{picBaseUrl+'winfo.png'}}"/> -->
  58. <image class='icon' mode="" src="../../../static/other/wechat.png" />
  59. <view class='right'>
  60. <view class='item' @click="toCashRecord">
  61. 提现记录
  62. </view>
  63. <!-- <view class='item'>
  64. 收取提现金额的{{tipInfo.percent}}手续费
  65. </view>
  66. <view class='item'>
  67. 如有疑问,请及时联系客服
  68. </view> -->
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <u-picker :show="showPopup" :columns="wayList" title="提现方式" aColor="#007AFF" :defaultIndex="currWayIndex"
  74. :closeOnClickOverlay="true" @confirm="handleConfirm" @cancel="showPopup=false"></u-picker>
  75. <view class="btnBox">
  76. <view class="btn" @click="post">
  77. 提交申请
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. // import navBar from '@/components/navBar/index.vue'
  84. export default {
  85. // components: {
  86. // navBar
  87. // },
  88. data() {
  89. return {
  90. wayList: [
  91. [
  92. '微信余额',
  93. '支付宝',
  94. '银行卡'
  95. ]
  96. ],
  97. currWay: '微信余额',
  98. currWayIndex: [0],
  99. availMoney: 0,
  100. formData: {
  101. money: '',
  102. name: '',
  103. account: '',
  104. bankName: ''
  105. },
  106. showPopup: false,
  107. }
  108. },
  109. onLoad() {
  110. },
  111. methods: {
  112. handleConfirm(e) {
  113. console.log('e', e, );
  114. this.currWay = e.value[0]
  115. this.currWayIndex = e.indexs
  116. this.showPopup = false
  117. },
  118. handleOpen() {
  119. this.showPopup = true
  120. },
  121. post() {
  122. console.log('提现参数', this.formData, this.currWayIndex);
  123. },
  124. toCashRecord() {
  125. uni.navigateTo({
  126. url: '/pages/my/cashRecord/index'
  127. })
  128. }
  129. }
  130. }
  131. </script>
  132. <style lang="scss" scoped>
  133. @import "./index.scss";
  134. </style>