tx.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view>
  3. <view class="czmain">
  4. <view class="cztop">
  5. <view class="czxx">提现方式:{{type}}</view>
  6. <view class="czyebox">
  7. <view style="font-size: 36upx; text-align: center;">当前余额 ¥{{urerdata.money}}</view>
  8. <view>提现金额</view>
  9. <input type="digit" focus class="czye" v-model="money" placeholder="请输入提现金额" />
  10. <view>提现姓名</view>
  11. <input type="text" class="czye1" v-model="name" placeholder="请输入提现姓名" />
  12. <view>提现账号</view>
  13. <input type="text" class="czye1" v-model="cord" placeholder="请输入提现账号" />
  14. <view style="margin-top: 10upx; font-size: 28upx; color: #ff0000;">备注:{{configsa.txbz}}</view>
  15. <view class="uni-btn-v uni-common-mt">
  16. <button class="onstep" @click="butsub()">提交</button>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. loading: false,
  28. money: '',
  29. name: '',
  30. cord:'',
  31. type:'支付宝',
  32. dbled:true,
  33. urerdata:[],
  34. configsa:[],
  35. providerList: []
  36. }
  37. },
  38. onLoad: function() {
  39. },
  40. onShow: function() {
  41. this.ongrzlTap()
  42. },
  43. methods: {
  44. async butsub(){
  45. var thia=this
  46. let data = {
  47. 'token':uni.getStorageSync("userinfo").token,
  48. 'money':this.money,
  49. 'name':this.name,
  50. 'cord':this.cord,
  51. 'type':this.type,
  52. };
  53. let [err,res] =await this.$httpas.get('/api/user/tx',data);
  54. if (!this.$httpas.errorCheck(err,res)) return;
  55. uni.showModal({
  56. title: '提示',
  57. content: res.data.msg,
  58. showCancel: false,
  59. success: ress => {
  60. if(res.data.code == 1){
  61. thia.money=''
  62. thia.name=''
  63. thia.cord=''
  64. }
  65. thia.ongrzlTap()
  66. }
  67. });
  68. },
  69. async ongrzlTap(){
  70. let data = {};
  71. data.token = uni.getStorageSync("userinfo").token;
  72. data.uid = uni.getStorageSync("userinfo").id;
  73. uni.request({
  74. url: this.configs.webUrl+'/api/user/index',
  75. data: data,
  76. success: res =>{
  77. if(res.data.code==1){
  78. this.urerdata=res.data.data
  79. if(res.data.data.config){
  80. this.configsa=res.data.data.config
  81. }
  82. }else{
  83. uni.showToast({ title: res.data.msg,icon:"none" });
  84. }
  85. },
  86. fail: (data, code) => {
  87. //console.log('fail' + JSON.stringify(data));
  88. }
  89. });
  90. },
  91. // 监听原生标题导航按钮点击事件
  92. onNavigationBarButtonTap(e) {
  93. const index = e.index;
  94. uni.navigateTo({
  95. url:"/pages/client/member/txjl"
  96. })
  97. }
  98. }
  99. }
  100. </script>
  101. <style>
  102. page{
  103. background: #f9f9f9;
  104. }
  105. .cztop{
  106. position: relative;
  107. }
  108. .czxx{
  109. top: 10px;
  110. font-size: 32upx;
  111. margin-left: 50upx;
  112. color: #3a3a3a;
  113. font-family: iconfont;
  114. line-height: 80upx;
  115. }
  116. .czyebox{
  117. padding: 20upx 50upx;
  118. }
  119. .czyebox>view:first-child{
  120. font-size: 32upx;
  121. color: #3a3a3a;
  122. line-height: 50px;
  123. }
  124. .czye{
  125. width: 100%;
  126. border-bottom: 1upx solid #e5e5e5;
  127. font-size: 36upx;
  128. font-weight: bold;
  129. color: #3a3a3a;
  130. position: relative;
  131. padding-left: 20px;
  132. height: 40px;
  133. line-height: 40px;
  134. }
  135. .czye:after{
  136. position: absolute;
  137. top: -2px;
  138. left: 0;
  139. content: '¥';
  140. color: #3a3a3a;
  141. font-size: 18px;
  142. }
  143. .czye1{
  144. width: 100%;
  145. border-bottom: 1upx solid #e5e5e5;
  146. font-size: 32upx;
  147. color: #3a3a3a;
  148. position: relative;
  149. height: 40px;
  150. line-height: 40px;
  151. }
  152. .onstep{
  153. margin-top: 40upx;
  154. background: #007AFF!important;
  155. }
  156. .czmain{
  157. width: 94%;
  158. margin: 10px auto;
  159. overflow: hidden;
  160. background: #fff;
  161. border-radius: 16upx;
  162. padding-bottom: 20px;
  163. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  164. box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  165. }
  166. .icon-alipay{
  167. background: #fbfbfb;
  168. padding-bottom: 20upx;
  169. }
  170. .icon-alipay>view:first-child{
  171. margin-top: 10px;
  172. font-size: 32upx;
  173. padding-left: 0upx;
  174. color: #3a3a3a;
  175. font-family: iconfont;
  176. position: relative;
  177. line-height: 30px;
  178. }
  179. .icon-alipay:before {
  180. content: "\e636";
  181. margin-top: 25upx;
  182. margin-right: 10upx;
  183. color: #007AFF;
  184. }
  185. .cztype>view:first-child:after{
  186. position: absolute;
  187. content:"\e66c";
  188. top: 0;
  189. left: 0;
  190. font-size: 26px;
  191. color: #05c160;
  192. }
  193. .rmbLogo {
  194. font-size: 40upx;
  195. }
  196. button {
  197. background-color: #007aff;
  198. color: #ffffff;
  199. }
  200. .uni-h1.uni-center {
  201. display: flex;
  202. flex-direction: row;
  203. justify-content: center;
  204. align-items: flex-end;
  205. }
  206. .ipaPayBtn {
  207. margin-top: 30upx;
  208. }
  209. </style>