工行这里学车报名流程h5
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.

139 lines
3.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="entry">
  3. <view class="redTps">
  4. 温馨提示<br>
  5. 工会会员为自己报名会默认使用会员手机号如果想更换报名手机号请选择为家人报名
  6. </view>
  7. <view class="content">
  8. <view class="h1">请选择</view>
  9. <view class="h1Tps">以下两种报名方式均享受会员价</view>
  10. <view class="card" @click="goPage(1)">
  11. <view class="leftIcon">
  12. <image src="@/static/images/third_icon_ziji@3x.png" mode=""></image>
  13. </view>
  14. <view class="text-box">
  15. <view class="text1">为自己报名</view>
  16. <view class="text2">我是工会会员为自己报名</view>
  17. </view>
  18. <view class="rightCon">
  19. <image src="@/static/images/third_icon_select@3x.png" mode=""></image>
  20. </view>
  21. </view>
  22. <view class="card" @click="goPage(2)">
  23. <view class="leftIcon">
  24. <image src="@/static/images/third_icon_jiaren@3x.png" mode=""></image>
  25. </view>
  26. <view class="text-box" style="color: #570900;">
  27. <view class="text1" >为家人报名</view>
  28. <view class="text2">我是工会会员为家人报名</view>
  29. </view>
  30. <view class="rightCon">
  31. <image src="@/static/images/third_icon_selectx@3x.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import indexApi from '@/api/index.js'
  39. export default {
  40. data() {
  41. return {
  42. trainingApplyId: ''
  43. }
  44. },
  45. onLoad() {
  46. },
  47. methods: {
  48. async goPage(num) {
  49. if(num==1) {
  50. await this.createTrainingApplySimpleFn()
  51. this.$goPage('/pages/application/fillRegistInfo?trainingApplyId='+ this.trainingApplyId)
  52. }else {
  53. this.$goPage('/pages/application/registrationPhone')
  54. }
  55. },
  56. // 第一步先报名
  57. async createTrainingApplySimpleFn() {
  58. let trainingSchoolId = this.$store.state.currentSchool.trainingSchoolId
  59. let trainingClassId = this.$store.state.classChooseItem.trainingClassId
  60. const [nulls, res] = await indexApi.createTrainingApplySimple({trainingSchoolId, trainingClassId})
  61. if(res.code==0) {
  62. this.trainingApplyId = res.data
  63. }else if(res.code==502) {
  64. // 已经报名过这个学校了 存在未支付订单
  65. this.$u.toast(res.message)
  66. }
  67. },
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .entry {
  73. width: 100%;
  74. height: 100vh;
  75. background: url('../../static/images/third_bg_jianbian@3x.png') no-repeat;
  76. background-size: 100% 100%;
  77. .redTps {
  78. width: 100%;
  79. background: #FCEAEA;
  80. font-size: 28rpx;
  81. color: #E63633;
  82. padding: 24rpx 32rpx;
  83. }
  84. .content {
  85. padding: 16% 48rpx 0 54rpx;
  86. .h1 {
  87. font-size: 48rpx;
  88. color: #003B77;
  89. }
  90. .h1Tps {
  91. margin: 8rpx 0 64rpx 0;
  92. color: #003B77;
  93. }
  94. .card {
  95. height: 176rpx;
  96. background: #FFFFFF;
  97. border-radius: 16rpx;
  98. width: 100%;
  99. padding: 40rpx;
  100. justify-content: space-between;
  101. display: flex;
  102. align-items: center;
  103. margin-bottom: 40rpx;
  104. .leftIcon {
  105. width: 72rpx;
  106. height: 72rpx;
  107. }
  108. .text-box {
  109. padding: 0 0 0 54rpx;
  110. color: #002C58;
  111. .text1 {
  112. font-size: 36rpx;
  113. font-weight: 600;
  114. }
  115. .text2 {
  116. font-size: 28rpx;
  117. margin-top: 8rpx;
  118. }
  119. }
  120. .rightCon {
  121. width: 36rpx;
  122. height: 36rpx;
  123. }
  124. }
  125. }
  126. }
  127. </style>