userTuiMoney.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <template>
  2. <view >
  3. <view class="header">
  4. <view class="promoterHeader">
  5. <image class="bg" src="/static/images/transparent.png" />
  6. <view class="headerCon acea-row row-between-wrapper">
  7. <view>
  8. <view class="name">可提现金额</view>
  9. <view>
  10. <text class="num">{{nowMoney}}</text>
  11. <text>元</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="form-box">
  18. <view class="form-item">
  19. <text class="label">提现金额</text>
  20. <input type="number" v-model="form.extractPrice" maxlength="10" placeholder="请输入提现金额" class="form-input" />
  21. </view>
  22. <view class="form-item">
  23. <text class="label">收款人</text>
  24. <input type="text" v-model="form.realName" placeholder="请输入收款人" class="form-input" />
  25. </view>
  26. <view class="form-item">
  27. <text class="label">开户行</text>
  28. <input type="text" v-model="form.bankAddress" placeholder="请输入收款人开户行" class="form-input" />
  29. </view>
  30. <view class="form-item">
  31. <text class="label">银行账号</text>
  32. <input type="text" v-model="form.bankCode" placeholder="请输入收款人银行账号" class="form-input" />
  33. </view>
  34. </view>
  35. <view class="btn-box">
  36. <view class="sub-btn" @click="submit()">提交</view>
  37. </view>
  38. <view class="tips">
  39. <view>冻结佣金:{{brokeragePrice}}元</view>
  40. <view>提现规则</view>
  41. <view>1.订单支付即产生佣金;</view>
  42. <view>2.佣金在用户确认收货前处于冻结状态;</view>
  43. <view>3.每笔最低提现额度100元以上,且为10的倍数;</view>
  44. <view>4.提现后3~7个工作日到账</view>
  45. <view>5.目前仅支持银行卡提现,微信、支付宝提现开发中,尽请期待</view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import {getUserInfo,doExtract} from '@/api/user'
  51. export default {
  52. name: "tuiMoney",
  53. data: function () {
  54. return {
  55. nowMoney:0,
  56. brokeragePrice:0,
  57. form:{
  58. extractPrice:0,
  59. bankCode:"",
  60. bankAddress:"",
  61. realName:"",
  62. }
  63. };
  64. },
  65. mounted: function () {
  66. this.getUserInfo();
  67. },
  68. methods: {
  69. submit(){
  70. doExtract(this.form).then(
  71. res => {
  72. if(res.code==200){
  73. uni.showToast({
  74. icon:'none',
  75. title: res.msg,
  76. });
  77. this.getUserInfo();
  78. }else{
  79. uni.showToast({
  80. icon:'none',
  81. title: res.msg,
  82. });
  83. }
  84. },
  85. rej => {}
  86. );
  87. },
  88. getUserInfo(){
  89. getUserInfo().then(
  90. res => {
  91. if(res.code==200){
  92. if(res.user!=null){
  93. this.nowMoney=res.user.nowMoney;
  94. this.brokeragePrice=res.user.brokeragePrice;
  95. }
  96. else{
  97. this.utils.loginOut();
  98. }
  99. }else{
  100. uni.showToast({
  101. icon:'none',
  102. title: "请求失败",
  103. });
  104. }
  105. },
  106. rej => {}
  107. );
  108. },
  109. }
  110. };
  111. </script>
  112. <style lang="less">
  113. /*所有推广头部样式*/
  114. .promoterHeader {
  115. width: 100%;
  116. height: 2.2 * 100rpx;
  117. background-color: #2BC7B9;
  118. position: relative;
  119. .bg{
  120. width: 100%;
  121. height: 100%;
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. }
  126. }
  127. .promoterHeader .headerCon {
  128. height: 100%;
  129. padding: 0 0.88 * 100rpx 0 0.88 * 100rpx;
  130. font-size: 0.28 * 100rpx;
  131. color: #fff;
  132. background-repeat: no-repeat;
  133. background-size: 100% 100%;
  134. }
  135. .promoterHeader .headerCon .name {
  136. margin-bottom: 0.02 * 100rpx;
  137. }
  138. .promoterHeader .headerCon .num {
  139. font-size: 0.5 * 100rpx;
  140. }
  141. .promoterHeader .headerCon .iconfont {
  142. font-size: 1.25 * 100rpx;
  143. }
  144. .form-box{
  145. padding: 0 30upx;
  146. background: #FFFFFF;
  147. .form-item{
  148. padding: 30upx 0;
  149. display: flex;
  150. align-items: flex-start;
  151. border-bottom: 1px solid #F1F1F1;
  152. &:last-child{
  153. border-bottom: none;
  154. }
  155. .label{
  156. width: 150upx;
  157. text-align: left;
  158. font-size: 30upx;
  159. line-height: 44upx;
  160. font-family: PingFang SC;
  161. font-weight: 500;
  162. color: #222222;
  163. flex-shrink: 0;
  164. }
  165. input{
  166. text-align: left;
  167. }
  168. .form-input{
  169. font-size: 30upx;
  170. font-family: PingFang SC;
  171. font-weight: 500;
  172. color: #111111;
  173. text-align: left;
  174. }
  175. .form-textarea{
  176. font-size: 30upx;
  177. color: #111111;
  178. height: 100upx;
  179. padding: 4upx 0;
  180. }
  181. .birth-picker {
  182. flex: 1;
  183. display: flex;
  184. align-items: center;
  185. .right-box{
  186. width: 100%;
  187. display: flex;
  188. align-items: center;
  189. .input-box{
  190. width: 470upx;
  191. }
  192. .arrow{
  193. width: 13upx;
  194. height: 23upx;
  195. margin-left: 20upx;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. .btn-box{
  202. margin-top: 30rpx;
  203. height: 120upx;
  204. padding: 0 30upx;
  205. display: flex;
  206. align-items: center;
  207. justify-content: center;
  208. .sub-btn{
  209. width: 100%;
  210. height: 88upx;
  211. line-height: 88upx;
  212. text-align: center;
  213. font-size: 30upx;
  214. font-family: PingFang SC;
  215. font-weight: bold;
  216. color: #FFFFFF;
  217. background: #2BC7B9;
  218. border-radius: 44upx;
  219. }
  220. }
  221. .tips{
  222. padding: 0 30upx;
  223. font-size: 28upx;
  224. font-family: PingFang SC;
  225. font-weight: 400;
  226. color: #A9AFB8;
  227. line-height: 48upx;
  228. }
  229. </style>