payment.vue 896 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="container">
  3. <view class="info-text">Please wait...</view>
  4. </view>
  5. </template>
  6. <script>
  7. import settings from '../../settings';
  8. import auth from '@/utils/auth';
  9. export default {
  10. data() {
  11. return {
  12. }
  13. },
  14. onLoad(options) {
  15. if (settings.isDebug) {
  16. console.log("支付完成页面-参数", options);
  17. }
  18. if (options.c) {
  19. this.init(options.c);
  20. } else if (options.creditHistoryPk) {
  21. //auth.setPaymentId(options.creditHistoryPk);
  22. this.init(options.creditHistoryPk);
  23. }
  24. },
  25. methods: {
  26. init(pk) {
  27. //getApp().globalData.waitPayment = true;
  28. uni.redirectTo({
  29. url: "/pages/charge/index?pk=" + pk
  30. });
  31. }
  32. }
  33. }
  34. </script>
  35. <style>
  36. .info-text {
  37. color: #999;
  38. font-size: 30rpx;
  39. padding-top: 20vh;
  40. text-align: center;
  41. }
  42. </style>