学员端小程序
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.

34 lines
549 B

11 months ago
  1. <template>
  2. <view class="main">
  3. 666
  4. </view>
  5. </template>
  6. <script>
  7. import { getStudentVoucher } from '@/config/api.js'
  8. export default {
  9. data() {
  10. return {
  11. orderId: ''
  12. }
  13. },
  14. onLoad(options) {
  15. if (options.orderId) {
  16. this.orderId = options.orderId
  17. this.getStudentVoucherFn()
  18. }
  19. },
  20. methods: {
  21. async getStudentVoucherFn() {
  22. let obj = {
  23. studentId: this.studentId,
  24. type: 1
  25. }
  26. const res = await getStudentVoucher(obj)
  27. console.log(res)
  28. }
  29. }
  30. }
  31. </script>
  32. <style>
  33. </style>