洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
3.3 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="pageBg">
  3. <view class="pad">
  4. <view class="card">
  5. <view class="orderInfo">
  6. <view class="schoolName">翔力驾校</view>
  7. <view class="price">
  8. <text class="uint"></text>1000.13
  9. </view>
  10. <!-- <view class="num">交易单号65465879312</view> -->
  11. </view>
  12. <view class="li border">
  13. <view class="lab">订单金额</view>
  14. <view class="val"> 2000</view>
  15. </view>
  16. <view class="li">
  17. <view class="lab">订单编号</view>
  18. <view class="val">646545645646458</view>
  19. </view>
  20. </view>
  21. <view class="card">
  22. <view class="pay">
  23. <!-- <view class="h2">选择支付方式</view> -->
  24. <view class="row border">
  25. <view class="wxIcon">
  26. <image src="@/static/images/carIcon/xfbIcon.png" mode=""></image>
  27. </view>
  28. <view class="text">支付宝</view>
  29. <view class="icon">
  30. <!-- <image src="@/static/images/index/noSelect.png.png" mode=""></image> -->
  31. <image src="@/static/images/carIcon/isSelect.png" mode=""></image>
  32. </view>
  33. </view>
  34. <view class="row">
  35. <view class="wxIcon">
  36. <image src="@/static/images/carIcon/wxIcon.png" mode=""></image>
  37. </view>
  38. <view class="text">微信</view>
  39. <view class="icon">
  40. <!-- <image src="@/static/images/index/noSelect.png.png" mode=""></image> -->
  41. <image src="@/static/images/carIcon/isSelect.png" mode=""></image>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="footerBtn pad">
  47. <view class="btnBg" @click="$goPage('/pages/indexEntry/enroll/paymentSuccess/paymentSuccess')">确认支付</view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. import { getStudentByPayment } from '@/config/api.js'
  54. export default {
  55. data() {
  56. return {
  57. trainingApplyId: '',
  58. }
  59. },
  60. onLoad(options) {
  61. if(options.trainingApplyId) {
  62. this.trainingApplyId = options.trainingApplyId
  63. }
  64. this.getStudentByPayment()
  65. },
  66. methods: {
  67. async getStudentByPayment() {
  68. const {data: res} = await getStudentByPayment({trainingApplyId: this.trainingApplyId})
  69. this.$store.dispatch('getUserInfo')
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .card {
  76. width: 100%;
  77. margin-bottom: 20rpx;
  78. padding: 0 20rpx;
  79. .orderInfo {
  80. text-align: center;
  81. .schoolName {
  82. font-size: 28rpx;
  83. color: #ccc;
  84. padding: 40rpx 0 20rpx 0;
  85. }
  86. .price {
  87. font-size: 72rpx;
  88. font-weight: 600;
  89. text.uint {
  90. font-size: 44rpx;
  91. font-weight: 600;
  92. }
  93. }
  94. .num {
  95. font-size: 24rpx;
  96. color: #ADADAD;
  97. }
  98. }
  99. .li {
  100. display: flex;
  101. height: 88rpx;
  102. line-height: 88rpx;
  103. &.border{
  104. border-bottom: 1px solid #F6F7FA;
  105. }
  106. .lab {
  107. color: #ccc;
  108. width: 230rpx;
  109. }
  110. .val {
  111. font-weight: 500;
  112. flex: 1;
  113. text-align: right;
  114. }
  115. }
  116. }
  117. .pay {
  118. .h2 {
  119. font-size: 32rpx;
  120. font-weight: 500;
  121. margin-bottom: 24rpx;
  122. }
  123. .row {
  124. display: flex;
  125. justify-content: space-between;
  126. align-items: center;
  127. height: 88rpx;
  128. &.border{
  129. border-bottom: 1px solid #F6F7FA;
  130. }
  131. .wxIcon {
  132. width: 40rpx;
  133. height: 40rpx;
  134. }
  135. .text {
  136. margin-left: 20rpx;
  137. flex: 1;
  138. text-align: left;
  139. font-size: 28rpx;
  140. color: #333;
  141. }
  142. .icon {
  143. width: 40rpx;
  144. height: 40rpx;
  145. }
  146. }
  147. }
  148. </style>