payResult.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view>
  3. <u-navbar title="支付结果"></u-navbar>
  4. <view class="main">
  5. <img src="../../../assets/img/payResult.png" alt="">
  6. <view class="text">
  7. 支付成功
  8. </view>
  9. <view class="btn">
  10. <button class="back" @click="toHome">返回主页</button>
  11. <button class="view" @click="toPaymentRecord">查看缴费记录</button>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. id: ''
  21. }
  22. },
  23. onLoad(op) {
  24. if(op.id) {
  25. this.id = op.id;
  26. }
  27. this.delShoppingCartList();
  28. },
  29. methods: {
  30. delShoppingCartList() {
  31. var list1 = [];
  32. this.carhelp.setShoppingCartList(list1);
  33. },
  34. toHome() {
  35. uni.redirectTo({
  36. url: '/pages/parents/homePage/homePage'
  37. });
  38. },
  39. toPaymentRecord() {
  40. uni.navigateTo({
  41. url: '/pages/parents/course/paymentRecords'
  42. })
  43. },
  44. }
  45. }
  46. </script>
  47. <style scoped lang="scss">
  48. page{
  49. background-color: #fff;
  50. }
  51. .main{
  52. margin-top: 140rpx;
  53. text-align: center;
  54. .text{
  55. margin-top: 48rpx;
  56. color: rgba(16, 16, 16, 1);
  57. font-size: 24px;
  58. }
  59. .btn{
  60. margin-top: 120rpx;
  61. display: flex;
  62. padding: 0 80rpx;
  63. uni-button{
  64. font-size: 16px;
  65. height: 40px;
  66. border-radius: 50px;
  67. width: 280rpx;
  68. }
  69. .back{
  70. background-color: rgba(255, 255, 255, 1);
  71. color: #101010;
  72. border: 1px solid rgba(223, 223, 223, 1);
  73. }
  74. .view{
  75. background-color: rgba(13, 186, 199, 1);
  76. color: rgba(255, 255, 255, 1);
  77. }
  78. }
  79. }
  80. </style>