paySuccess.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="content vflex acenter jcenter">
  3. <view class="img_box">
  4. <image src="/static/images/shop/checked.png" class="img"></image>
  5. </view>
  6. <view class="img_text">支付成功</view>
  7. <view class="text">支付成功,您可以去<span class="text_blue" @click="toOrder">个人中心-我的订单</span>中查看</view>
  8. <view class="btn_group hflex acenter jcenter">
  9. <view class="left hflex acenter jcenter" @click="toHome">返回首页</view>
  10. <view class="left2 hflex acenter jcenter" @click="toDetail">查看订单</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import $api from '@/static/js/api.js'
  16. var that = ''
  17. export default {
  18. data() {
  19. return {
  20. id: '',
  21. }
  22. },
  23. onLoad(options) {
  24. that = this
  25. that.id = options.id
  26. },
  27. methods: {
  28. // 我的订单
  29. toOrder() {
  30. $api.jump('/page_shop/pages/order/list?id=3')
  31. },
  32. // 返回首页
  33. toHome() {
  34. $api.jump('/pages/tabbar/index/index',3)
  35. },
  36. // 查看订单
  37. toDetail() {
  38. $api.jump('/page_shop/pages/order/orderdetail?id=' + that.id)
  39. },
  40. },
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .content {
  45. padding: 0 80rpx;
  46. .img_box {
  47. margin: 90rpx 0 32rpx;
  48. .img {
  49. width: 104rpx;
  50. height: 104rpx;
  51. }
  52. }
  53. .img_text {
  54. font-size: 36rpx;
  55. font-weight: 500;
  56. color: #222222;
  57. line-height: 50rpx;
  58. }
  59. .text {
  60. padding: 52rpx 0 116rpx;
  61. font-size: 26rpx;
  62. font-weight: 400;
  63. color: #8C8C8C;
  64. line-height: 36rpx;
  65. }
  66. .text_blue {
  67. color: #506DFF;
  68. text-decoration:underline;
  69. }
  70. .btn_group {
  71. .left {
  72. width: 272rpx;
  73. height: 76rpx;
  74. border-radius: 38rpx;
  75. border: 2rpx solid #506DFF;
  76. font-size: 32rpx;
  77. font-weight: 400;
  78. color: #506DFF;
  79. line-height: 44rpx;
  80. }
  81. .left2 {
  82. margin-left: 46rpx;
  83. width: 272rpx;
  84. height: 76rpx;
  85. background: #506DFF;
  86. border-radius: 38rpx;
  87. font-size: 32rpx;
  88. font-weight: 400;
  89. color: #FFFFFF;
  90. line-height: 44rpx;
  91. }
  92. }
  93. }
  94. </style>