学员端小程序
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.

363 lines
9.3 KiB

1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="报名信息确认"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <view class="row">
  7. <view class="lab">扫描教练二维码</view>
  8. <view class="rightCon">
  9. <view class="scan">扫一扫</view>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="card">
  14. <view class="row">
  15. <view class="lab">选择驾校</view>
  16. <view class="rightCon">
  17. <view class="row">
  18. <view class="val">
  19. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  20. </view>
  21. <view class="arrow">
  22. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="row">
  28. <view class="lab">选择车型</view>
  29. <view class="rightCon">
  30. <view class="row">
  31. <view class="val">
  32. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  33. </view>
  34. <view class="arrow">
  35. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="row">
  41. <view class="lab">选择班型</view>
  42. <view class="rightCon">
  43. <view class="row">
  44. <view class="val">
  45. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  46. </view>
  47. <view class="arrow">
  48. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="row">
  54. <view class="lab">选择教练</view>
  55. <view class="rightCon">
  56. <view class="row">
  57. <view class="val">
  58. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  59. </view>
  60. <view class="arrow">
  61. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="card">
  68. <view class="row">
  69. <view class="lab">业务类型</view>
  70. <view class="rightCon">
  71. <u-radio-group
  72. v-model="form.radiovalue1"
  73. >
  74. <u-radio
  75. :customStyle="{marginRight: '24rpx'}"
  76. v-for="(item, index) in radiolist1"
  77. :key="index"
  78. :label="item.name"
  79. :name="item.id"
  80. >
  81. </u-radio>
  82. </u-radio-group>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="card">
  87. <view class="row">
  88. <view class="lab">是否异地转入</view>
  89. <view class="rightCon" style="margin-left: 40rpx;">
  90. <u-radio-group
  91. v-model="form.radiovalue2"
  92. @change="changeVal"
  93. >
  94. <u-radio
  95. :customStyle="{marginRight: '24rpx'}"
  96. v-for="(item, index) in radiolist2"
  97. :key="item.id"
  98. :label="item.name"
  99. :name="item.id"
  100. >
  101. </u-radio>
  102. </u-radio-group>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="card" v-if="form.radiovalue1==2">
  107. <view class="row">
  108. <view class="lab">原驾驶证号</view>
  109. <view class="rightCon">
  110. <view class="row">
  111. <view class="val">
  112. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="row">
  118. <view class="lab">驾驶证初领日期</view>
  119. <view class="rightCon" style="margin-left: 56rpx;">
  120. <view class="row">
  121. <view class="val">
  122. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  123. </view>
  124. <view class="arrow">
  125. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="row">
  131. <view class="lab">原准驾车型</view>
  132. <view class="rightCon">
  133. <view class="row">
  134. <view class="val">
  135. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  136. </view>
  137. <view class="arrow">
  138. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  139. </view>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <view class="card" v-if="form.radiovalue2==2">
  145. <view class="row">
  146. <view class="lab">来源城市</view>
  147. <view class="rightCon">
  148. <view class="row">
  149. <view class="val">
  150. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  151. </view>
  152. <view class="arrow">
  153. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. <view class="row">
  159. <view class="lab">已过科目</view>
  160. <view class="rightCon">
  161. <view class="row">
  162. <view class="val">
  163. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  164. </view>
  165. <view class="arrow">
  166. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. <view class="row">
  172. <view class="lab">待学科目</view>
  173. <view class="rightCon">
  174. <view class="row">
  175. <view class="val">
  176. <input v-model="form.classModel" placeholder="请选择" @click="showSchool=true" disabled/></input>
  177. </view>
  178. <view class="arrow">
  179. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <view class="card">
  186. <view class="row">
  187. <view class="lab">学费</view>
  188. <view class="rightCon">
  189. <view class="row">
  190. <view class="val">100</view>
  191. </view>
  192. </view>
  193. </view>
  194. <view class="row">
  195. <view class="lab">代收费</view>
  196. <view class="rightCon">
  197. <view class="row">
  198. <view class="val">100</view>
  199. </view>
  200. </view>
  201. </view>
  202. <view class="row">
  203. <view class="lab">合计</view>
  204. <view class="rightCon">
  205. <view class="row">
  206. <view class="val blue">100</view>
  207. </view>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="card">
  212. <view class="row">
  213. <view class="lab">支付形式</view>
  214. <view class="rightCon">
  215. <u-radio-group
  216. v-model="form.radiovalue3"
  217. >
  218. <u-radio
  219. :customStyle="{marginRight: '24rpx'}"
  220. v-for="(item, index) in radiolist3"
  221. :key="index"
  222. :label="item.name"
  223. :name="item.name"
  224. >
  225. </u-radio>
  226. </u-radio-group>
  227. </view>
  228. </view>
  229. </view>
  230. <view class="card">
  231. <view class="row">
  232. <view class="lab">优惠券</view>
  233. <view class="rightCon">
  234. <view class="row">
  235. <view class="val red">-1000</view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view class="card">
  241. <view class="row">
  242. <view class="lab">待支付金额</view>
  243. <view class="rightCon">
  244. <view class="row">
  245. <view class="val blue">100</view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. <view class="btnBg" @click="confirmClick">确认</view>
  251. </view>
  252. <u-popup :show="showPopup" mode="center" :round="8" >
  253. <comfigPopup @comfigClick="comfigClick"/>
  254. </u-popup>
  255. </view>
  256. </template>
  257. <script>
  258. import comfigPopup from './comp/comfigPopup'
  259. export default {
  260. components: { comfigPopup },
  261. data() {
  262. return {
  263. showPopup: false,
  264. form: {
  265. radiovalue2: 1,
  266. radiovalue1: 1,
  267. },
  268. showSchool: false,
  269. radiolist1: [ {name: '初领', id: 1}, {name: '增驾', id: 2}],
  270. radiolist2: [ {name: '是', id: 1}, {name: '否', id: 2}],
  271. radiolist3: [ {name: '全款', id: 1}, {name: '预付款', id: 2}]
  272. }
  273. },
  274. methods: {
  275. changeVal(val) {
  276. console.log(val)
  277. },
  278. // 点击确认
  279. confirmClick() {
  280. this.showPopup = true
  281. },
  282. comfigClick(val) {
  283. console.log(val)
  284. this.showPopup = false
  285. if(val) {
  286. this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
  287. }
  288. }
  289. }
  290. }
  291. </script>
  292. <style lang="scss" scoped>
  293. .pad {
  294. padding-bottom: 66rpx;
  295. }
  296. .card {
  297. padding: 10rpx 40rpx 10rpx 32rpx;
  298. margin-bottom: 20rpx;
  299. .row {
  300. height: 100rpx;
  301. display: flex;
  302. align-items: center;
  303. width: 100%;
  304. .lab {
  305. width: 152rpx;
  306. line-height: 100rpx;
  307. white-space: nowrap;
  308. }
  309. .scan {
  310. margin-left: auto;
  311. width: 130rpx;
  312. height: 60rpx;
  313. background: rgba(25,137,250,0.1);
  314. border-radius: 8rpx;
  315. border: 2rpx solid #1989FA;
  316. background: #E8F3FE;
  317. text-align: center;
  318. line-height: 60rpx;
  319. color: $themC;
  320. }
  321. .rightCon {
  322. flex: 1;
  323. width: 0;
  324. display: flex;
  325. .val {
  326. flex: 1;
  327. width: 0;
  328. input {
  329. font-size: 28rpx;
  330. }
  331. &.blue {
  332. color: $themC;
  333. }
  334. &.red {
  335. color: #FF6A2A;
  336. }
  337. }
  338. .icon {
  339. width: 30rpx;
  340. height: 30rpx;
  341. u-icon {
  342. }
  343. }
  344. }
  345. }
  346. }
  347. .btnBg {
  348. width: 396rpx;
  349. margin: 100rpx auto 0 auto;
  350. }
  351. </style>