success.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="content">
  3. <!-- <text class="success-icon iconfont iconroundcheck"></text>
  4. <text class="tit">支付成功</text> -->
  5. <image class="success" src="../../static/money/success.png" mode=""></image>
  6. <text class="tit">订单支付成功</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. <navigator url="/pages/index/index" open-type="switchTab" class="btn">返回首页</navigator>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. orderId:''
  19. }
  20. },
  21. onLoad(opt) {
  22. // 保存订单号
  23. this.orderId = opt.orderid;
  24. },
  25. methods: {
  26. }
  27. }
  28. </script>
  29. <style lang='scss'>
  30. .content{
  31. display: flex;
  32. flex-direction: column;
  33. justify-content: center;
  34. align-items: center;
  35. }
  36. .success {
  37. width: 302rpx;
  38. height: 302rpx;
  39. margin-top: 100rpx;
  40. }
  41. .tit{
  42. font-size: 38upx;
  43. color: #303133;
  44. margin-top: 30rpx;
  45. }
  46. .btn {
  47. margin-top: 80upx;
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. width: 300upx;
  52. height: 80upx;
  53. font-size: $font-lg;
  54. color: #01A6A8 ;
  55. background-color: #f8f8f8;
  56. border-radius: 10upx;
  57. border: 1px solid #01A6A8;
  58. }
  59. /* .success-icon{
  60. font-size: 160upx;
  61. color: #5dbc7c;
  62. margin-top: 100upx;
  63. }
  64. .tit{
  65. font-size: 38upx;
  66. color: #303133;
  67. }
  68. .btn-group{
  69. padding-top: 100upx;
  70. } */
  71. /* .mix-btn {
  72. margin-top: 30upx;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. width: 600upx;
  77. height: 80upx;
  78. font-size: $font-lg;
  79. color: #fff;
  80. background-color: $base-color;
  81. border-radius: 10upx;
  82. &.hollow{
  83. background: #fff;
  84. color: #303133;
  85. border: 1px solid #ccc;
  86. }
  87. } */
  88. </style>