success.js 814 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import * as API from '@/apis/common.js'
  2. export default {
  3. data() {
  4. return {
  5. id:"",
  6. pay:{
  7. list:[]
  8. }
  9. }
  10. },
  11. methods: {
  12. lookBtn(){
  13. uni.navigateTo({
  14. url: '/pages/my/user/bybusList'
  15. })
  16. },
  17. getPay(){
  18. this.$refs.common.showLoading();
  19. API.mergeInfo(this.id).then((response) => {
  20. this.pay=response.data;
  21. this.$refs.common.showLoading(false);
  22. }).catch(error => {
  23. this.$refs.common.showLoading(false, error);
  24. })
  25. },
  26. gotoHome(){
  27. uni.switchTab({
  28. url: '/pages/index/index'
  29. });
  30. },
  31. backBtn(){
  32. uni.redirectTo({
  33. url: '/pages/buytickets/index?id='+this.pay.id
  34. })
  35. }
  36. },
  37. onLoad(op) {
  38. this.id=op.id;
  39. },onReady(){
  40. if(!process.car.SIMPLE_RUN){
  41. this.getPay();
  42. }
  43. }
  44. }