paySuccess.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="content">
  3. <!-- <text class="success-icon iconfont iconroundcheck"></text> -->
  4. <image src="../../static/img/payok.png" mode="" class="okimg"></image>
  5. <text class="tit" v-if="isshow">订单支付成功: <text>¥{{ money }}</text></text>
  6. <text class="tit" v-if="!isshow">支付成功</text></text>
  7. <!-- <view class="btn-group">
  8. <navigator :url="'/pages/order/orderDetail?id='+orderId" open-type="redirect" class="mix-btn">查看订单</navigator>
  9. <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
  10. </view> -->
  11. <view class="btn-wrapper" >
  12. <navigator :url="'/pages/order/orderDetail?id='+orderId" open-type="redirect" class="look-btn" v-if="isshow">查看订单</navigator>
  13. <navigator url="/pages/index/index" open-type="switchTab" class="bank">返回首页</navigator>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. orderId:'',
  22. money: '',
  23. isshow: true
  24. }
  25. },
  26. onLoad(opt) {
  27. // 保存订单号
  28. this.orderId = opt.orderid;
  29. // 保存金额
  30. this.money = opt.mun
  31. if(opt.isshow) {
  32. this.isshow = false
  33. }
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style lang='scss'>
  40. .content{
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: center;
  44. align-items: center;
  45. }
  46. .success-icon{
  47. font-size: 160upx;
  48. color: #5dbc7c;
  49. margin-top: 100upx;
  50. }
  51. .tit{
  52. padding-top: 40rpx;
  53. padding-bottom: 130rpx;
  54. font-size: 32rpx;
  55. color: #303133;
  56. font-size: 32rpx;
  57. font-weight: bold;
  58. color: #333333;
  59. line-height: 1;
  60. text {
  61. font-size: 36rpx;
  62. font-weight: bold;
  63. color: #333333;
  64. line-height: 1;
  65. }
  66. }
  67. .btn-group{
  68. padding-top: 100upx;
  69. }
  70. .mix-btn {
  71. margin-top: 30upx;
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. width: 600upx;
  76. height: 80upx;
  77. font-size: $font-lg;
  78. color: #fff;
  79. background-color: $base-color;
  80. border-radius: 10upx;
  81. &.hollow{
  82. background: #fff;
  83. color: #303133;
  84. border: 1px solid #ccc;
  85. }
  86. }
  87. .okimg {
  88. margin-top: 100rpx;
  89. width: 302rpx;
  90. height: 302rpx;
  91. }
  92. .btn-wrapper {
  93. display: flex;
  94. .look-btn {
  95. width: 301rpx;
  96. height: 78rpx;
  97. background: #901b21;
  98. text-align: center;
  99. line-height: 78rpx;
  100. border-radius: 10rpx;
  101. color: #fff;
  102. margin-right: 37rpx;
  103. }
  104. .bank {
  105. width: 301rpx;
  106. height: 78rpx;
  107. text-align: center;
  108. line-height: 78rpx;
  109. background: #FFFFFF;
  110. border: 2px solid #901B21;
  111. border-radius: 10rpx;
  112. color: #901b21;
  113. }
  114. }
  115. </style>