paySuccess.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="content">
  3. <text class="success-icon iconfont iconroundcheck"></text>
  4. <text class="tit">支付成功</text>
  5. <view class="btn-group">
  6. <!-- <navigator :url="'/pages/order/orderDetail?id='+orderId" open-type="redirect" class="mix-btn">查看订单</navigator> -->
  7. <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. orderId: ''
  16. };
  17. },
  18. onLoad(opt) {
  19. // 保存订单号
  20. this.orderId = opt.orderid;
  21. },
  22. methods: {}
  23. };
  24. </script>
  25. <style lang="scss">
  26. .content {
  27. display: flex;
  28. flex-direction: column;
  29. justify-content: center;
  30. align-items: center;
  31. }
  32. .success-icon {
  33. font-size: 160upx;
  34. color: #5dbc7c;
  35. margin-top: 100upx;
  36. }
  37. .tit {
  38. font-size: 38upx;
  39. color: #303133;
  40. }
  41. .btn-group {
  42. padding-top: 100upx;
  43. }
  44. .mix-btn {
  45. margin-top: 30upx;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. width: 600upx;
  50. height: 80upx;
  51. font-size: $font-lg;
  52. color: #fff;
  53. background-color: $base-color;
  54. border-radius: 10upx;
  55. &.hollow {
  56. background: #fff;
  57. color: #303133;
  58. border: 1px solid #ccc;
  59. }
  60. }
  61. </style>