paySuccess.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. }
  25. </script>
  26. <style lang='scss'>
  27. .content{
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: center;
  31. align-items: center;
  32. }
  33. .success-icon{
  34. font-size: 160upx;
  35. color: #5dbc7c;
  36. margin-top: 100upx;
  37. }
  38. .tit{
  39. font-size: 38upx;
  40. color: #303133;
  41. }
  42. .btn-group{
  43. padding-top: 100upx;
  44. }
  45. .mix-btn {
  46. margin-top: 30upx;
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. width: 600upx;
  51. height: 80upx;
  52. font-size: $font-lg;
  53. color: #fff;
  54. background-color: $base-color;
  55. border-radius: 10upx;
  56. &.hollow{
  57. background: #fff;
  58. color: #303133;
  59. border: 1px solid #ccc;
  60. }
  61. }
  62. </style>