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

496 lines
12 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="报名信息确认"></topNavbar>
  4. <view class="pad">
  5. <!-- #ifndef H5 -->
  6. <view class="card">
  7. <view class="row">
  8. <view class="lab">扫描教练二维码</view>
  9. <view class="rightCon">
  10. <view class="scan" @click="scanCodeFn">扫一扫</view>
  11. </view>
  12. </view>
  13. </view>
  14. <!-- #endif -->
  15. <view class="card">
  16. <view class="row" >
  17. <view class="lab">选择驾校</view>
  18. <view class="rightCon">
  19. <view class="row" @click="showSchool=true">
  20. <view class="val">
  21. <mySelect :value="form.school"/>
  22. </view>
  23. <view class="arrow">
  24. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="row">
  30. <view class="lab">选择车型</view>
  31. <view class="rightCon">
  32. <view class="row" @click="showCar=true">
  33. <view class="val">
  34. <mySelect :value="form.car"/>
  35. </view>
  36. <view class="arrow">
  37. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="row">
  43. <view class="lab">选择班型</view>
  44. <view class="rightCon">
  45. <view class="row" @click="showClassModel=true">
  46. <view class="val">
  47. <mySelect :value="form.classModel"/>
  48. </view>
  49. <view class="arrow">
  50. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="row">
  56. <view class="lab">选择教练</view>
  57. <view class="rightCon">
  58. <view class="row" @click="$goPage('/pages/indexEntry/enroll/registInfo/chooseCoach/chooseCoach')">
  59. <view class="val">
  60. <mySelect :value="form.coach"/>
  61. </view>
  62. <view class="arrow">
  63. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="card">
  70. <view class="row">
  71. <view class="lab">业务类型</view>
  72. <view class="rightCon">
  73. <u-radio-group
  74. v-model="form.radiovalue1"
  75. >
  76. <u-radio
  77. :customStyle="{marginRight: '24rpx'}"
  78. v-for="(item, index) in radiolist1"
  79. :key="index"
  80. :label="item.name"
  81. :name="item.id"
  82. >
  83. </u-radio>
  84. </u-radio-group>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="card">
  89. <view class="row">
  90. <view class="lab">是否异地转入</view>
  91. <view class="rightCon" style="margin-left: 40rpx;">
  92. <u-radio-group
  93. v-model="form.radiovalue2"
  94. @change="changeVal"
  95. >
  96. <u-radio
  97. :customStyle="{marginRight: '24rpx'}"
  98. v-for="(item, index) in radiolist2"
  99. :key="item.id"
  100. :label="item.name"
  101. :name="item.id"
  102. >
  103. </u-radio>
  104. </u-radio-group>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="card" v-if="form.radiovalue1==2">
  109. <view class="row">
  110. <view class="lab long">原驾驶证号</view>
  111. <view class="rightCon">
  112. <view class="row">
  113. <view class="val">{{ form.certificateCodeShow }}</view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="row">
  118. <view class="lab long">驾驶证初领日期</view>
  119. <view class="rightCon">
  120. <view class="row" @click="showFirstLicenceTime=true" >
  121. <view class="val">
  122. <mySelect :value="form.firstLicenceTime"/>
  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 long">原准驾车型</view>
  132. <view class="rightCon">
  133. <view class="row" @click="showOldDriveModel=true" >
  134. <view class="val">
  135. <mySelect :value="form.oldDriveModel"/>
  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==1">
  145. <view class="row">
  146. <view class="lab">来源城市</view>
  147. <view class="rightCon">
  148. <view class="row">
  149. <view class="val">
  150. <mySelect :value="form.classModel"/>
  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" @click="showSubjectPass=true">
  162. <view class="val">
  163. <mySelect :value="form.subjectPass"/>
  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" @click="showSubjectTreat=true">
  175. <view class="val">
  176. <mySelect :value="form.subjectTreat"/>
  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. <u-popup :show="showSchool" mode="bottom" :round="8" @close="showSchool=false">
  256. <searchSchool @chooseSchool="chooseSchool"/>
  257. </u-popup>
  258. <!-- 选择班型 -->
  259. <u-picker :show="showClassModel" :columns="columnsClassModel" keyName="label" @confirm="confirmClassModel"></u-picker>
  260. <!-- 选择车型 -->
  261. <u-picker :show="showCar" :columns="columnsCar" keyName="label" @confirm="confirmCar"></u-picker>
  262. <!-- 原驾驶证初领日期 -->
  263. <u-datetime-picker :show="showFirstLicenceTime" mode="date" @confirm="confirmFirstLicenceTime"></u-datetime-picker>
  264. <!-- 原驾驶证学驾车型 -->
  265. <u-popup :show="showOldDriveModel" mode="bottom" :round="8" @close="showOldDriveModel=false">
  266. <oldDrive @pickerOldDrive="pickerOldDrive"/>
  267. </u-popup>
  268. <!-- 已过科目 -->
  269. <u-picker :show="showSubjectPass" :columns="columnsSubject" keyName="label" @confirm="confirmSubjectPass"></u-picker>
  270. <!-- 待科目 -->
  271. <u-picker :show="showSubjectTreat" :columns="columnsSubject" keyName="label" @confirm="confirmTreat"></u-picker>
  272. </view>
  273. </template>
  274. <script>
  275. import comfigPopup from './comp/comfigPopup'
  276. import searchSchool from './comp/searchSchool'
  277. import oldDrive from './comp/oldDrive'
  278. export default {
  279. components: { comfigPopup, searchSchool, oldDrive },
  280. data() {
  281. return {
  282. showPopup: false,
  283. showClassModel: false,
  284. showCar: false,
  285. showFirstLicenceTime: false,
  286. showOldDriveModel: false,
  287. showSubjectPass: false,
  288. showSubjectTreat: false,
  289. columnsClassModel: [
  290. [
  291. {
  292. label: '普通班型',
  293. id: 1
  294. },
  295. {
  296. label: 'vip班型',
  297. id: 2
  298. }
  299. ]
  300. ],
  301. columnsSubject: [
  302. [
  303. {label: '科目一', id: 1},
  304. {label: '科目二', id: 2},
  305. {label: '科目三', id: 3},
  306. ]
  307. ],
  308. columnsCar: [
  309. [
  310. {
  311. label: 'C1',
  312. id: 1
  313. },
  314. {
  315. label: 'C2',
  316. id: 2
  317. }
  318. ]
  319. ],
  320. form: {
  321. school: '',
  322. classModel: '',
  323. car: '',
  324. coach: '',
  325. certificateCodeShow: '原驾驶证号xxx',
  326. firstLicenceTime: '',
  327. oldDriveModel: '',
  328. subjectPass: '',
  329. subjectTreat: '',
  330. radiovalue2: 1,
  331. radiovalue1: 1,
  332. },
  333. showSchool: false,
  334. radiolist1: [ {name: '初领', id: 1}, {name: '增驾', id: 2}],
  335. radiolist2: [ {name: '是', id: 1}, {name: '否', id: 2}],
  336. radiolist3: [ {name: '全款', id: 1}, {name: '预付款', id: 2}]
  337. }
  338. },
  339. onLoad() {
  340. this.$on('upDateCoachItem',(item)=>{
  341. console.log(item)
  342. this.form.coach = item.coachName
  343. })
  344. },
  345. methods: {
  346. // 选择驾校
  347. chooseSchool(item) {
  348. this.form.school = item.schoolName
  349. console.log(item)
  350. this.showSchool = false
  351. },
  352. // 选择班型
  353. confirmClassModel(val) {
  354. let item = val.value[0]
  355. console.log(item)
  356. this.showClassModel = false
  357. this.form.classModel = item.label
  358. },
  359. // 选择车型
  360. confirmCar(val) {
  361. let item = val.value[0]
  362. console.log(item)
  363. this.showCar = false
  364. this.form.car = item.label
  365. },
  366. // 选择原驾驶证初领日期
  367. confirmFirstLicenceTime(val) {
  368. console.log(val)
  369. this.form.firstLicenceTime = uni.$u.timeFormat(val.value, 'yyyy-mm-dd');
  370. this.showFirstLicenceTime = false
  371. },
  372. // 选择原准驾车型
  373. pickerOldDrive(val) {
  374. this.form.oldDriveModel = val
  375. this.showOldDriveModel = false
  376. console.log(val)
  377. },
  378. // 选择已过科目
  379. confirmSubjectPass(val) {
  380. let item = val.value[0]
  381. this.form.subjectPass = item.label
  382. this.showSubjectPass = false
  383. },
  384. // 选择已过科目
  385. confirmTreat(val) {
  386. let item = val.value[0]
  387. this.form.subjectTreat = item.label
  388. this.showSubjectTreat = false
  389. },
  390. // 扫码
  391. scanCodeFn() {
  392. let _this = this
  393. uni.scanCode({
  394. success: function(res) {
  395. console.log('条码类型:' + res.scanType);
  396. console.log('条码内容:' + res.result);
  397. }
  398. });
  399. },
  400. changeVal(val) {
  401. console.log(val)
  402. },
  403. // 点击确认
  404. confirmClick() {
  405. this.showPopup = true
  406. },
  407. comfigClick(val) {
  408. console.log(val)
  409. this.showPopup = false
  410. if(val) {
  411. this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
  412. }
  413. }
  414. }
  415. }
  416. </script>
  417. <style lang="scss" scoped>
  418. .pad {
  419. padding-bottom: 66rpx;
  420. }
  421. .card {
  422. padding: 10rpx 40rpx 10rpx 32rpx;
  423. margin-bottom: 20rpx;
  424. .row {
  425. height: 100rpx;
  426. display: flex;
  427. align-items: center;
  428. width: 100%;
  429. .lab {
  430. width: 152rpx;
  431. line-height: 100rpx;
  432. white-space: nowrap;
  433. &.long {
  434. width: 230rpx;
  435. }
  436. }
  437. .scan {
  438. margin-left: auto;
  439. width: 130rpx;
  440. height: 60rpx;
  441. background: rgba(25,137,250,0.1);
  442. border-radius: 8rpx;
  443. border: 2rpx solid #1989FA;
  444. background: #E8F3FE;
  445. text-align: center;
  446. line-height: 60rpx;
  447. color: $themC;
  448. }
  449. .rightCon {
  450. flex: 1;
  451. width: 0;
  452. display: flex;
  453. .val {
  454. flex: 1;
  455. width: 0;
  456. input {
  457. font-size: 28rpx;
  458. }
  459. &.blue {
  460. color: $themC;
  461. }
  462. &.red {
  463. color: #FF6A2A;
  464. }
  465. }
  466. .icon {
  467. width: 30rpx;
  468. height: 30rpx;
  469. u-icon {
  470. }
  471. }
  472. }
  473. }
  474. }
  475. .btnBg {
  476. width: 396rpx;
  477. margin: 100rpx auto 0 auto;
  478. }
  479. </style>