洛阳学员端
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.

57 lines
1.2 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="pageBg">
  3. <view class="pad">
  4. <view class="tps">请与教练协商确认达成一致后填写协商好的退款金额</view>
  5. <myform :info="info" :orderId="orderId" :balanceAmount="balanceAmount"></myform>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import myform from './comp/myform'
  11. import { applyOrderGet, applyOnlineFund, refund_amount } from '@/config/api.js'
  12. export default {
  13. components: { myform },
  14. data() {
  15. return {
  16. orderId: '',
  17. info: {},
  18. title: '退款申请',
  19. balanceAmount: 0
  20. }
  21. },
  22. onLoad(options) {
  23. if(!options.orderId) return
  24. this.orderId = options.orderId
  25. this.applyOrderGetFn()
  26. this.refund_amountFn()
  27. },
  28. onPullDownRefresh() {
  29. this.applyOrderGetFn()
  30. this.refund_amountFn()
  31. },
  32. methods: {
  33. async applyOrderGetFn() {
  34. const {data: res} = await applyOrderGet({ orderId: this.orderId})
  35. this.info = res
  36. uni.stopPullDownRefresh()
  37. },
  38. async refund_amountFn() {
  39. const {data: res} = await refund_amount()
  40. if(res) {
  41. this.balanceAmount = res.balanceAmount
  42. }
  43. console.log(res)
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .tps {
  50. font-size: 24rpx;
  51. color: #FF7270;
  52. padding: 20rpx 0;
  53. }
  54. </style>