success.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view>
  3. <car-common ref="common" ></car-common>
  4. <u-navbar title="缴费结果" :is-back="false">
  5. <view class="slot-wrap"></view>
  6. <view class="navbar-right" @click="gotoHome" >
  7. <u-icon name="home-fill" color="#999" size="28"></u-icon>
  8. <span >前往首页</span>
  9. </view>
  10. </u-navbar>
  11. <view class="success">
  12. <u-icon name="checkmark-circle-fill" color="#08d152" size="200"></u-icon>
  13. <h3>支付成功</h3>
  14. </view>
  15. <view class="ticket-item" v-for="item,i in pay.list" :key="i" >
  16. <view class="ticket-item-left" >
  17. <view class="ticket-head">
  18. <h3>{{item.startStation}} - {{item.endStation}}</h3>
  19. </view>
  20. <view class="ticket-text">
  21. <view class="ticket-text-row">
  22. <p>票种:</p><span>{{item.ticketTypeName}}</span>
  23. </view>
  24. <view class="ticket-text-row">
  25. <p>货票:</p><span>¥{{item.goodTicket}}</span>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="ticket-item-right">
  30. <u-avatar :src="item.imageUrl" size="default"></u-avatar>
  31. <h3>{{item.totalFee}}</h3>
  32. </view>
  33. </view>
  34. <view class="upload-button">
  35. <u-button class="upload-btn" type="primary" shape="circle" @click="backBtn" plain>继续购票</u-button>
  36. <u-button class="upload-btn" type="primary" shape="circle" @click="lookBtn">查看购票记录</u-button>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import api from './success.js'
  42. export default api;
  43. </script>
  44. <style>
  45. page{
  46. background-color: #f7f7f7;
  47. }
  48. </style>
  49. <style scoped lang="scss">
  50. .ticket-item{
  51. background-color: #fff;
  52. margin:20rpx;
  53. border-radius: 10px;
  54. display: flex;
  55. justify-content: space-between;
  56. box-shadow:3px 3px 3px rgba(0,0,0,0.1);
  57. .ticket-item-left{
  58. padding: 30rpx;
  59. .ticket-head{
  60. display: flex;
  61. align-items: center;
  62. }
  63. .ticket-text{
  64. margin-top: 20rpx;
  65. .ticket-text-row{
  66. display: flex;
  67. align-items: center;
  68. margin-bottom: 10rpx;
  69. &:last-child{
  70. margin-bottom: 0;
  71. }
  72. span{
  73. color:#007AFF
  74. }
  75. }
  76. }
  77. }
  78. .ticket-item-right{
  79. width: 120px;
  80. display: flex;
  81. flex-direction: column;
  82. justify-content: center;
  83. align-items: center;
  84. border-left: 1px dashed #eee;
  85. position: relative;
  86. padding: 20rpx;
  87. &:before{
  88. content: '';
  89. position: absolute;
  90. height: 30rpx;
  91. width: 30rpx;
  92. background-color: #f7f7f7;
  93. border-radius: 50%;
  94. left: -15rpx;
  95. top:-15rpx;
  96. }
  97. &:after{
  98. content: '';
  99. position: absolute;
  100. height: 30rpx;
  101. width: 30rpx;
  102. background-color: #f7f7f7;
  103. border-radius: 50%;
  104. left: -15rpx;
  105. bottom:-15rpx;
  106. }
  107. h3{
  108. color:#007AFF;
  109. font-size:24px;
  110. }
  111. }
  112. }
  113. .upload-button{
  114. display: flex;
  115. font-size:24px;
  116. position: fixed;
  117. left: 30rpx;
  118. bottom:30rpx;
  119. right: 30rpx;
  120. .upload-btn{
  121. flex: 1;
  122. &:first-child{
  123. margin-right: 10px;
  124. }
  125. }
  126. }
  127. .success{
  128. text-align: center;
  129. padding: 100rpx 0 40rpx;
  130. }
  131. .navbar-right {
  132. display: flex;
  133. margin-right: 20rpx;
  134. span{
  135. color:rgb(96, 98, 102);
  136. margin-left: 3px;
  137. }
  138. }
  139. .slot-wrap {
  140. display: flex;
  141. align-items: center;
  142. flex: 1;
  143. }
  144. </style>