用工小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
  1. <template>
  2. <view class="se-m-40">
  3. <u--input v-model="money" type="number" class="se-bgc-f5 se-fs-32" placeholder="请输入充值金额">
  4. <text slot="prefix" class="se-ml-10 se-c-orange se-fs-32"></text>
  5. </u--input>
  6. <view class="se-flex se-flex-v se-pb-20 se-mt-80">
  7. <view class="se-ml-10 se-fs-26 se-c-black se-fw-5">
  8. 充值说明
  9. </view>
  10. <view class="se-flex se-flex-v se-fs-24 se-c-66 se-mt-30">
  11. <text class="se-hl-50">
  12. 1本次充值必须通过银行卡充值暂不支持其他途径</br>
  13. 2如若遇到24小时充值未到账请联系客服</br>
  14. 3充值金额至少不能低于10元
  15. </text>
  16. </view>
  17. </view>
  18. <view class="se-pt-80 se-fs-20 se-flex">
  19. <view @click="onRecharge()"
  20. class="se-mx-10 se-flex-1 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-28 se-c-white se-bgc-orange">
  21. <text>立即充值</text>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import {
  28. payRecharge
  29. } from "@/common/api.js"
  30. export default{
  31. props:["userId","myMoney"],
  32. data(){
  33. return{
  34. money:""
  35. }
  36. },
  37. methods:{
  38. onRecharge(){
  39. let that = this
  40. let params = {
  41. rechargeReq:{
  42. id:this.userId,
  43. price:this.money
  44. }
  45. }
  46. payRecharge(params).then(response=>{
  47. that.$emit("onParent")
  48. }).catch(error=>{
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style>
  55. </style>