Walletdetails.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <view class="titlenav">
  3. <!-- <titlenav :flag="true"></titlenav> -->
  4. <view class="top">
  5. <view class="title">提现</view>
  6. <view class="box-con">
  7. <p>提现金额</p>
  8. <view class="num">
  9. <span>全部可提现 ¥{{ money || 0 }}</span>
  10. </view>
  11. <view class="box">
  12. <view class="numbers">
  13. <image class="img" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-24-15-57-32PFysvIHT.png" mode=""></image>
  14. <input type="number" v-model="boxPrice" placeholder="请输入金额" />
  15. </view>
  16. <view class="text2" @click="allMoney">全部</view>
  17. </view>
  18. <view class="btom" @click="show = true">
  19. <span>提现至</span>
  20. <view class="btomIpc">
  21. <image class="imgBox" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-15-27-51oTVSzeFr.png" mode=""></image>
  22. <text>光大银行储蓄卡(1234)</text>
  23. <image class="imgBox2" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-15-15-54YOiVgcKi.png" mode=""></image>
  24. </view>
  25. </view>
  26. <u-button type="primary" size="small" :disabled="notWithdrawal" @click="Withdrawal(notWithdrawal)">申请提现</u-button>
  27. </view>
  28. <u-popup v-model="show" mode="bottom" border-radius="12">
  29. <view class="ipc">选择到账的银行卡</view>
  30. <u-cell-group>
  31. <view class="conPup" @click="Add">
  32. <view class="right">
  33. <image class="img2" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-15-15-33kVvYGRfP.png" mode=""></image>
  34. <view class="add">添加新卡提现</view>
  35. </view>
  36. <image class="img3" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-15-15-54YOiVgcKi.png" mode=""></image>
  37. </view>
  38. </u-cell-group>
  39. </u-popup>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import { mapState } from 'vuex';
  45. import Titlenav from '../components/Titlenav.vue';
  46. export default {
  47. components: { Titlenav },
  48. data() {
  49. return {
  50. boxPrice: '',
  51. money: '',
  52. show: false
  53. };
  54. },
  55. computed: {
  56. ...mapState(['systemInfo']),
  57. notWithdrawal() {
  58. let flag = false;
  59. this.boxPrice > this.money ? (flag = false) : (flag = true);
  60. return flag;
  61. }
  62. },
  63. methods: {
  64. Add() {
  65. uni.navigateTo({
  66. url: '/pages/Addipc'
  67. });
  68. },
  69. Withdrawal() {
  70. uni.navigateTo({
  71. url: '/pages/Review'
  72. });
  73. }
  74. // Withdrawal(notWithdrawal) {
  75. // if (notWithdrawal) {
  76. // wx.showToast({
  77. // icon: 'none',
  78. // title: '提现金额超出'
  79. // });
  80. // return;
  81. // }
  82. // if (this.boxPrice < 1) {
  83. // wx.showToast({
  84. // icon: 'none',
  85. // title: '金额不能低于1元',
  86. // duration: 2000
  87. // });
  88. // return;
  89. // }
  90. // })
  91. // .catch(e => {
  92. // wx.showToast({
  93. // icon: 'none',
  94. // title: e.error
  95. // });
  96. // });
  97. // }
  98. }
  99. };
  100. </script>
  101. <style lang="scss" scoped>
  102. /deep/ .u-btn {
  103. height: 48px;
  104. background: #214bbe;
  105. border-radius: 4px;
  106. margin: 88px 23px 0 23px;
  107. }
  108. /deep/ .uni-input-input {
  109. font-size: 30px;
  110. font-family: OSP-DIN, OSP;
  111. font-weight: normal;
  112. color: #000000;
  113. }
  114. /deep/ .uni-scroll-view {
  115. min-height: 200px;
  116. border-radius: 12px 12px 10px 10px;
  117. .ipc {
  118. margin: 20px 0;
  119. text-align: center;
  120. font-size: 16px;
  121. font-weight: 400;
  122. color: #000000;
  123. line-height: 24px;
  124. }
  125. .conPup {
  126. height: 56px;
  127. line-height: 56px;
  128. display: flex;
  129. align-items: center;
  130. justify-content: space-between;
  131. margin: 0 20px;
  132. .right {
  133. display: flex;
  134. align-items: center;
  135. .img2 {
  136. width: 24px;
  137. height: 24px;
  138. }
  139. .add {
  140. font-size: 16px;
  141. font-weight: 400;
  142. color: #000000;
  143. line-height: 22px;
  144. margin-left: 6px;
  145. }
  146. }
  147. .img3 {
  148. width: 12px;
  149. height: 24px;
  150. }
  151. }
  152. }
  153. .titlenav {
  154. height: 491px;
  155. background: linear-gradient(180deg, #214bbe 0%, #ffffff 100%);
  156. .top {
  157. padding-top: 10px;
  158. .title {
  159. font-size: 22px;
  160. font-weight: bold;
  161. color: #ffffff;
  162. line-height: 26px;
  163. margin: 0 0 20px 20px;
  164. }
  165. .box-con {
  166. height: 600px;
  167. background: #ffffff;
  168. border-radius: 8px;
  169. margin: 0 20px;
  170. p {
  171. font-size: 14px;
  172. font-weight: bold;
  173. color: #000000;
  174. line-height: 20px;
  175. padding: 30px 0 4px 16px;
  176. }
  177. .num {
  178. display: flex;
  179. align-items: center;
  180. padding-left: 16px;
  181. span {
  182. font-size: 13px;
  183. font-weight: 400;
  184. color: #c8c9cc;
  185. line-height: 22px;
  186. }
  187. }
  188. .box {
  189. display: flex;
  190. align-items: center;
  191. justify-content: space-between;
  192. height: 42px;
  193. margin: 16px 16px 0 16px;
  194. padding-bottom: 12px;
  195. border-bottom: 1px solid #f5f7fa;
  196. .numbers {
  197. display: flex;
  198. align-items: center;
  199. .img {
  200. width: 15px;
  201. height: 17px;
  202. margin-right: 5px;
  203. }
  204. }
  205. .text2 {
  206. width: 70px;
  207. height: 31px;
  208. border-radius: 8px;
  209. border: 1px solid #214bbe;
  210. font-size: 13px;
  211. color: #214bbe;
  212. font-weight: bold;
  213. text-align: center;
  214. line-height: 28.5px;
  215. }
  216. }
  217. .btom {
  218. display: flex;
  219. align-items: center;
  220. justify-content: space-between;
  221. padding: 0 17px;
  222. margin-top: 21px;
  223. span {
  224. font-size: 14px;
  225. font-weight: bold;
  226. color: #000000;
  227. line-height: 24px;
  228. }
  229. .btomIpc {
  230. display: flex;
  231. align-items: center;
  232. text {
  233. font-size: 16px;
  234. font-weight: 400;
  235. color: #000000;
  236. line-height: 22px;
  237. margin: 0 2px 0 6px;
  238. }
  239. .imgBox {
  240. width: 24px;
  241. height: 24px;
  242. }
  243. .imgBox2 {
  244. width: 12px;
  245. height: 24px;
  246. }
  247. }
  248. }
  249. }
  250. }
  251. }
  252. </style>