preRegister.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  8. <meta name="format-detection" content="telephone=no">
  9. <meta name="mobile-web-app-capable" content="yes">
  10. <meta name="msapplication-tap-highlight" content="no">
  11. <meta name="fragment" content="!">
  12. <meta name="viewport"
  13. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, viewport-fit=cover">
  14. <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  15. <meta http-equiv="Pragma" content="no-cache" />
  16. <meta http-equiv="Expires" content="0" />
  17. <meta http-equiv="Cache" content="no-cache">
  18. <meta name="description" content="">
  19. <link rel="icon" href="../favicon.ico">
  20. <title>管乐团报名申请</title>
  21. <!-- 引入样式文件 -->
  22. <link rel="stylesheet" href="./js/vant-index.css" />
  23. <link rel="stylesheet" href="./css/preRegister.css">
  24. <script src="./js/flexible.js"></script>
  25. </head>
  26. <body>
  27. <style>
  28. .m-toast {
  29. position: fixed;
  30. top: 50%;
  31. left: 50%;
  32. display: -webkit-box;
  33. display: -webkit-flex;
  34. display: flex;
  35. -webkit-box-orient: vertical;
  36. -webkit-box-direction: normal;
  37. -webkit-flex-direction: column;
  38. flex-direction: column;
  39. -webkit-box-align: center;
  40. -webkit-align-items: center;
  41. align-items: center;
  42. -webkit-box-pack: center;
  43. -webkit-justify-content: center;
  44. justify-content: center;
  45. box-sizing: content-box;
  46. width: 88px;
  47. max-width: 70%;
  48. min-height: 88px;
  49. padding: 16px;
  50. color: #fff;
  51. font-size: 14px;
  52. line-height: 20px;
  53. white-space: pre-wrap;
  54. text-align: center;
  55. word-wrap: break-word;
  56. background-color: rgba(50, 50, 51, 0.88);
  57. border-radius: 4px;
  58. -webkit-transform: translate3d(-50%, -50%, 0);
  59. transform: translate3d(-50%, -50%, 0);
  60. z-index: 2002
  61. }
  62. .m-loading {
  63. position: relative;
  64. color: #fff;
  65. font-size: 0;
  66. vertical-align: middle;
  67. padding: 4px
  68. }
  69. .m-loading__spinner {
  70. position: relative;
  71. display: inline-block;
  72. width: 30px;
  73. max-width: 100%;
  74. height: 30px;
  75. max-height: 100%;
  76. vertical-align: middle;
  77. -webkit-animation: m-rotate .8s linear infinite;
  78. animation: m-rotate .8s linear infinite
  79. }
  80. .m-loading__spinner--circular {
  81. -webkit-animation-duration: 2s;
  82. animation-duration: 2s
  83. }
  84. .m-loading__circular {
  85. display: block;
  86. width: 100%;
  87. height: 100%
  88. }
  89. .m-loading__circular circle {
  90. -webkit-animation: m-circular 1.5s ease-in-out infinite;
  91. animation: m-circular 1.5s ease-in-out infinite;
  92. stroke: currentColor;
  93. stroke-width: 3;
  94. stroke-linecap: round
  95. }
  96. .m-loading__text {
  97. display: inline-block;
  98. margin-left: 8px;
  99. color: #969799;
  100. font-size: 14px;
  101. vertical-align: middle
  102. }
  103. .m-loading--vertical {
  104. display: -webkit-box;
  105. display: -webkit-flex;
  106. display: flex;
  107. -webkit-box-orient: vertical;
  108. -webkit-box-direction: normal;
  109. -webkit-flex-direction: column;
  110. flex-direction: column;
  111. -webkit-box-align: center;
  112. -webkit-align-items: center;
  113. align-items: center
  114. }
  115. .m-loading--vertical .m-loading__text {
  116. margin: 8px 0 0
  117. }
  118. @-webkit-keyframes m-circular {
  119. 0% {
  120. stroke-dasharray: 1, 200;
  121. stroke-dashoffset: 0
  122. }
  123. 50% {
  124. stroke-dasharray: 90, 150;
  125. stroke-dashoffset: -40
  126. }
  127. 100% {
  128. stroke-dasharray: 90, 150;
  129. stroke-dashoffset: -120
  130. }
  131. }
  132. @keyframes m-circular {
  133. 0% {
  134. stroke-dasharray: 1, 200;
  135. stroke-dashoffset: 0
  136. }
  137. 50% {
  138. stroke-dasharray: 90, 150;
  139. stroke-dashoffset: -40
  140. }
  141. 100% {
  142. stroke-dasharray: 90, 150;
  143. stroke-dashoffset: -120
  144. }
  145. }
  146. .m-toast__text {
  147. margin-top: 8px
  148. }
  149. .van-field--error .van-field__control,
  150. .van-field--error .van-field__control::placeholder {
  151. color: #c8c9cc;
  152. -webkit-text-fill-color: currentColor;
  153. }
  154. </style>
  155. <div id="m_loading" class="m-toast m-toast--middle m-toast--loading" style="z-index: 2001;">
  156. <div class="m-loading m-loading--circular m-toast__loading"><span
  157. class="m-loading__spinner m-loading__spinner--circular"><svg viewBox="25 25 50 50" class="m-loading__circular">
  158. <circle cx="50" cy="50" r="20" fill="none"></circle>
  159. </svg></span></div>
  160. <div class="m-toast__text">加载中...</div>
  161. </div>
  162. <div id="app">
  163. <div class="title" v-clock v-html="(orchestraName || '') + '管乐团报名申请'"></div>
  164. <van-form validate-first scroll-to-error @submit="onSubmit" ref='form' class="form">
  165. <div class="top-tips">
  166. 1、为了保障乐团顺利组建,避免名额浪费;请家长与孩子以自愿为原则,在确认意向后填写相关信息;专业老师将根据家长的相关填报,确认孩子是否能够加入乐团;<br />
  167. 2、自用乐器及课后练习,家长自愿选择准备方式。
  168. </div>
  169. <van-cell-group inset class="cell-group">
  170. <van-field label="性别" name="sex" :rules="[{ required: true, message: '请选择性别' }]">
  171. <template #input>
  172. <van-radio-group v-model="stu.sex" checked-color="#57ABF8" direction="horizontal">
  173. <van-tag size="large" type="primary" :color="!(stu.sex === 1) ? '#EAEAEA' : '#57ABF8'"
  174. :text-color="!(stu.sex === 1) ? '#AAA' : '#FFF'" class="radioSection">
  175. <van-radio class="radioItem" :name="1"></van-radio>男生
  176. </van-tag>
  177. <van-tag size="large" type="primary" :color="!(stu.sex === 0) ? '#EAEAEA' : '#57ABF8'"
  178. :text-color="!(stu.sex === 0) ? '#AAA' : '#FFF'" class="radioSection">
  179. <van-radio class="radioItem" :name="0"></van-radio>女生
  180. </van-tag>
  181. </van-radio-group>
  182. </template>
  183. </van-field>
  184. <van-field label="孩子是否有学习过的乐器(有请备注)" v-model="stu.learningSubjectName" name="learningSubjectName"
  185. placeholder="请输入学习过的乐器" maxlength="10">
  186. </van-field>
  187. <van-field label="选报乐器1" v-model="stu.registerSubjectId" readonly name="registerSubjectId"
  188. :rules="[{ required: true, message: '请选择选报乐器1', trigger: 'onChange' }]" @click="pickerChange2"
  189. placeholder="请选择">
  190. <template #right-icon>
  191. <van-icon name="arrow" :color="'#323233'" size="16"></van-icon>
  192. </template>
  193. </van-field>
  194. <van-field label="选报乐器2" v-model="stu.standbyRegisterSubjectId" readonly name="standbyRegisterSubjectId"
  195. :rules="[{ required: true, message: '请选择选报乐器2', trigger: 'onChange' }]" @click="pickerChange3"
  196. placeholder="请选择">
  197. <template #right-icon>
  198. <van-icon name="arrow" :color="'#323233'" size="16"></van-icon>
  199. </template>
  200. </van-field>
  201. <van-field label="是否服从调配" name="adjust" :rules="[{ required: true, message: '请选择是否服从调配' }]">
  202. <template #input>
  203. <div>
  204. <p class="otherSubject">(如果自选声部名额已满,是否愿意接受安排其他声部?)</p>
  205. <van-radio-group v-model="stu.adjust" checked-color="#57ABF8" direction="horizontal">
  206. <van-tag size="large" type="primary" :color="!(stu.adjust === 1) ? '#EAEAEA' : '#57ABF8'"
  207. :text-color="!(stu.adjust === 1) ? '#AAA' : '#FFF'" class="radioSection">
  208. <van-radio class="radioItem" :name='1'></van-radio>愿意
  209. </van-tag>
  210. <van-tag size="large" type="primary" :color="!(stu.adjust === 0) ? '#EAEAEA' : '#57ABF8'"
  211. :text-color="!(stu.adjust === 0) ? '#AAA' : '#FFF'" class="radioSection">
  212. <van-radio class="radioItem" :name='0'></van-radio>不愿意
  213. </van-tag>
  214. </van-radio-group>
  215. </div>
  216. </template>
  217. </van-field>
  218. </van-cell-group>
  219. <van-cell-group inset class="cell-group">
  220. <van-field label="乐器参考表&Ai练习参考表" :border="false" style="padding-bottom: 0;">
  221. <template #input>
  222. <img :src="instrumentPriceImg" style="width: 100%" @click="showImg = true" />
  223. </template>
  224. </van-field>
  225. <van-field label="乐器准备方式" name="instrumentsPrepareMode" :rules="[{ required: true, message: '请选择乐器准备方式' }]">
  226. <template #input>
  227. <van-radio-group v-model="stu.instrumentsPrepareMode" checked-color="#57ABF8" direction="horizontal">
  228. <van-tag size="large" type="primary"
  229. :color="!(stu.instrumentsPrepareMode === 'ONESELF') ? '#EAEAEA' : '#57ABF8'"
  230. :text-color="!(stu.instrumentsPrepareMode === 'ONESELF') ? '#AAA' : '#FFF'" class="radioSection">
  231. <van-radio class="radioItem" name="ONESELF"></van-radio>自行购置
  232. </van-tag>
  233. <van-tag size="large" type="primary"
  234. :color="!(stu.instrumentsPrepareMode === 'GROUP_PURCHASE') ? '#EAEAEA' : '#57ABF8'"
  235. :text-color="!(stu.instrumentsPrepareMode === 'GROUP_PURCHASE') ? '#AAA' : '#FFF'" class="radioSection">
  236. <van-radio class="radioItem" name="GROUP_PURCHASE"></van-radio>希望基金会提供渠道购置
  237. </van-tag>
  238. </van-radio-group>
  239. </template>
  240. </van-field>
  241. <van-field label="乐团学习系统准备方式" name="learningSystemPrepareMode"
  242. :rules="[{ required: true, message: '请选择乐团学习系统准备方式' }]">
  243. <template #input>
  244. <van-radio-group v-model="stu.learningSystemPrepareMode" checked-color="#57ABF8" direction="horizontal">
  245. <van-tag size="large" type="primary"
  246. :color="!(stu.learningSystemPrepareMode === 'ONESELF') ? '#EAEAEA' : '#57ABF8'"
  247. :text-color="!(stu.learningSystemPrepareMode === 'ONESELF') ? '#AAA' : '#FFF'" class="radioSection">
  248. <van-radio class="radioItem" name="ONESELF"></van-radio>自行购置
  249. </van-tag>
  250. <van-tag size="large" type="primary"
  251. :color="!(stu.learningSystemPrepareMode === 'GROUP_PURCHASE') ? '#EAEAEA' : '#57ABF8'"
  252. :text-color="!(stu.learningSystemPrepareMode === 'GROUP_PURCHASE') ? '#AAA' : '#FFF'" :color="'#57ABF8'"
  253. class="radioSection">
  254. <van-radio class="radioItem" name="GROUP_PURCHASE"></van-radio>希望基金会提供渠道购置
  255. </van-tag>
  256. </van-radio-group>
  257. </template>
  258. </van-field>
  259. <van-field type="tel" maxlength="11" minlength="11" label="联系电话(直接监护人)" v-model="stu.phone" name="phone"
  260. :rules="[{ pattern, message: '输入监护人手机号码有误' }]" placeholder="请输入监护人手机号码">
  261. </van-field>
  262. </van-cell-group>
  263. <van-button size="large" block round class="btn-submit" :loading="btnLoading" native-type="submit"></van-button>
  264. </van-form>
  265. <van-popup v-model:show="subjectPicker" position="bottom" round>
  266. <van-picker show-toolbar :columns="subjectList" @cancel="subjectPicker = false" @confirm="onConfirmSubject" />
  267. </van-popup>
  268. <van-popup v-model:show="subjectPicker2" position="bottom" round>
  269. <van-picker show-toolbar :columns="subjectList" @cancel="subjectPicker2 = false" @confirm="onConfirmSubject2" />
  270. </van-popup>
  271. <van-image-preview v-model:show="showImg" :images="[instrumentPriceImg]">
  272. </van-image-preview>
  273. <!-- <van-popup v-model:show="submitStatus" round
  274. style="width: 100%;background-color: transparent;transform: translateY(-60%);" :close-on-click-overlay="false">
  275. <div class="submit-container">
  276. <p class="submit-title">提交成功</p>
  277. <p class="submit-tips">谢谢您的参与,请留意乐团的<br />后续通知!</p>
  278. <div @click="onLinkUrl" class="submit-btn"></div>
  279. </div>
  280. </van-popup> -->
  281. <van-popup v-model:show="showPopup" round style="width: 88%" :close-on-click-overlay="false" class="wxPopupDialog">
  282. <div class="popupContainer">
  283. <p class="title1">温馨提示</p>
  284. <p class="popupTips">请使用微信打开</p>
  285. </div>
  286. </van-popup>
  287. </div>
  288. <!-- 引入 Vue 和 Vant 的 JS 文件 -->
  289. <script src="./js/vue.global.min.js"></script>
  290. <script src="./js/vant.min.js"></script>
  291. <!-- <script src="https://fastly.jsdelivr.net/npm/vant@4/lib/vant.min.js"></script> -->
  292. <!-- <script src="https://cdn.jsdelivr.net/npm/umi-request@1.4.0/dist/index.min.js"></script> -->
  293. <script src="./js/axios.js"></script>
  294. <script type="text/javascript" src="./js/utils.js"></script>
  295. <script>
  296. // 乐团交付,乐团停止或关闭,有新的交付团;则不允许报名
  297. var app = Vue.createApp({
  298. data() {
  299. return {
  300. orchestraId: getQueryVariable('orchestraId'),
  301. openId: getQueryVariable('openId'),
  302. orchestraName: null,
  303. schoolId: null,
  304. subjectPickerType: 'first',
  305. subjectPicker: false,
  306. subjectPicker2: false,
  307. submitStatus: false,
  308. pattern: /^((13[0-9])|(14(0|[5-7]|9))|(15([0-3]|[5-9]))|(16(2|[5-7]))|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\d{8}$/,
  309. nameReg: /^[\u4E00-\u9FA5]+$/,
  310. subjectList: [{ text: '听从老师安排', value: 999 }],
  311. columns: [],
  312. pickerType: null, // 下拉类型
  313. stu: {
  314. sex: 1, // 性别
  315. phone: null, // 电话
  316. learningSubjectName: null,
  317. registerSubjectId: '', // 首选声部
  318. registerSubjectNum: null, // 所在声部
  319. standbyRegisterSubjectId: '', // 次选声部
  320. adjust: 1,
  321. standbyRegisterSubjectNum: '', // 次选声部
  322. instrumentsPrepareMode: 'ONESELF',
  323. learningSystemPrepareMode: 'ONESELF',
  324. },
  325. showImg: false,
  326. instrumentPriceImg: '',
  327. btnLoading: false,
  328. checkPhone: true,
  329. showPopup: false,
  330. code: '',
  331. canSignUp: ''
  332. }
  333. },
  334. async mounted() {
  335. if (document.querySelector('#m_loading')) {
  336. document.querySelector('#m_loading').remove()
  337. }
  338. // 判断是否是微信,只能微信中打开
  339. if (!browser().weixin) {
  340. this.showPopup = true
  341. return
  342. }
  343. // 判断是在微信中,并且没有openId
  344. if (browser().weixin && !this.openId) {
  345. //授权
  346. const code = getUrlCode()
  347. console.log(code)
  348. if (!code) {
  349. this.getAppIdAndCode(window.location.href)
  350. return
  351. } else {
  352. this.code = code
  353. }
  354. }
  355. if (!this.orchestraId) {
  356. vant.showToast('信息获取失败,请联系老师')
  357. }
  358. try {
  359. this.setLoading(true)
  360. var schoolDetail = await axios.post('/api-student/open/school/detail', {
  361. orchestraId: this.orchestraId
  362. })
  363. // console.log(schoolDetail)
  364. if (schoolDetail.data.code === 200) {
  365. var schoolSystem = schoolDetail.data.data.schoolSystem || 'sixYearSystem'
  366. this.schoolId = schoolDetail.data.data.id
  367. }
  368. var subjects = await axios.post('/api-student/open/orchestraSubjectConfig/pageByOrchestraId', {
  369. orchestraId: this.orchestraId,
  370. page: 1,
  371. rows: 100
  372. })
  373. if (subjects.data.code === 200) {
  374. var rows = subjects.data.data.rows || []
  375. rows.forEach(item => {
  376. this.subjectList.push({
  377. text: item.name,
  378. value: item.subjectId
  379. })
  380. })
  381. }
  382. var orchestraDetail = await axios.get('/api-student/open/orchestra/detail/' + this.orchestraId)
  383. if (orchestraDetail.data.code === 200) {
  384. this.orchestraName = orchestraDetail.data.data.name || ''
  385. this.instrumentPriceImg = orchestraDetail.data.data.instrumentPriceImg || ''
  386. this.canSignUp = orchestraDetail.data.data.status
  387. if (orchestraDetail.data.data.status !== 'PRE_REGISTER') {
  388. vant.showToast('家长会调查问卷已结束')
  389. return
  390. }
  391. }
  392. } catch {
  393. vant.showDialog({
  394. message: '信息获取失败,请联系老师',
  395. theme: 'round-button',
  396. confirmButtonColor: '#57ABF8'
  397. })
  398. }
  399. this.setLoading(false)
  400. },
  401. methods: {
  402. async getAppIdAndCode(url) {
  403. try {
  404. var res = await axios.get('/api-school/open/paramConfig/wechatAppId')
  405. // 判断是否有微信appId
  406. if (res.data.code === 200 && res.data.data) {
  407. vant.closeToast()
  408. if (/online.lexiaoya/.test(location.href)) {
  409. this.goAuth(res.data.data, url)
  410. } else {
  411. this.goTestAuth(res.data.data, url)
  412. }
  413. }
  414. } catch {
  415. //
  416. }
  417. },
  418. goTestAuth(wxAppId, urlString) {
  419. const replaceUrl =
  420. `https://online.lexiaoya.cn/getWxCode?appid=${wxAppId || 'wx8654c671631cfade'}&state=STATE&redirect_uri=` +
  421. encodeURIComponent(urlString || window.location.href)
  422. window.location.replace(replaceUrl)
  423. },
  424. goAuth(wxAppId, urlString) {
  425. // 用户授权
  426. console.log(urlString || window.location.href, 'urlString || window.location.href')
  427. const urlNow = encodeURIComponent(urlString || window.location.href)
  428. console.log(urlNow, 'urlNow')
  429. const scope = 'snsapi_base' //snsapi_userinfo //静默授权 用户无感知
  430. const appid = wxAppId || 'wx8654c671631cfade'
  431. const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${urlNow}&response_type=code&scope=${scope}&state=STATE&connect_redirect=1#wechat_redirect`
  432. window.location.replace(url)
  433. },
  434. onLinkUrl() {
  435. this.submitStatus = false
  436. window.location.href = window.location.origin + '/orchestra-student/#/download'
  437. },
  438. validator(val) {
  439. // 校验函数返回 true 表示校验通过,false 表示不通过
  440. return this.nameReg.test(val) && (val.length >= 2 && val.length <= 15);
  441. },
  442. message(value) {
  443. if (!value) {
  444. return '请填写学员真实姓名'
  445. } else if (!this.nameReg.test(value)) {
  446. return '学员姓名必须为中文'
  447. } else if (value.length < 2 || value.length > 15) {
  448. return '学员姓名必须为2~15个字'
  449. }
  450. },
  451. async onSubmit() {
  452. if (this.canSignUp !== 'PRE_REGISTER') {
  453. vant.showToast('乐团预报名阶段已结束')
  454. return
  455. }
  456. this.btnLoading = true
  457. try {
  458. var stu = this.stu
  459. var res = await axios.post('/api-student/open/orchestraPreRegister/save', {
  460. orchestraId: this.orchestraId,
  461. schoolId: this.schoolId,
  462. openId: this.openId,
  463. ...stu,
  464. registerSubjectId: stu.registerSubjectNum,
  465. standbyRegisterSubjectId: stu.standbyRegisterSubjectNum,
  466. code: this.code
  467. })
  468. if (res.data.code === 200) {
  469. // this.submitStatus = true
  470. window.location.href =
  471. 'https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=3&sn=9b265d36b5dabe7f9393fc679c367540&chksm=c12c256cf65bac7ae2a865435b950f6e1285afd226356db0ffde815b1ee345f29cfcdb798cc9#rd'
  472. } else {
  473. vant.showToast(res.data.message)
  474. }
  475. } catch {
  476. // vant.showToast('保存失败,请重试')
  477. }
  478. this.btnLoading = false
  479. },
  480. setLoading(status) {
  481. if (status) {
  482. vant.showLoadingToast({
  483. duration: 0, // 持续展示 toast
  484. message: '加载中...',
  485. forbidClick: true,
  486. loadingType: 'spinner',
  487. })
  488. } else {
  489. vant.closeToast()
  490. }
  491. },
  492. pickerChange2(type) {
  493. let tempId = this.stu.standbyRegisterSubjectNum
  494. this.subjectList.forEach((item) => {
  495. if (item.value == tempId && tempId != 999) {
  496. item.disabled = true
  497. } else {
  498. item.disabled = false
  499. }
  500. })
  501. this.subjectPicker = true
  502. },
  503. pickerChange3() {
  504. let tempId = this.stu.registerSubjectNum
  505. this.subjectList.forEach((item) => {
  506. if (item.value == tempId && tempId != 999) {
  507. item.disabled = true
  508. } else {
  509. item.disabled = false
  510. }
  511. })
  512. this.subjectPicker2 = true
  513. },
  514. onConfirmSubject(options) {
  515. var stu = this.stu
  516. stu.registerSubjectId = options.selectedOptions[0].text
  517. stu.registerSubjectNum = options.selectedOptions[0].value
  518. this.subjectPicker = false
  519. },
  520. onConfirmSubject2(options) {
  521. var stu = this.stu
  522. stu.standbyRegisterSubjectId = options.selectedOptions[0].text
  523. stu.standbyRegisterSubjectNum = options.selectedOptions[0].value
  524. this.subjectPicker2 = false
  525. }
  526. }
  527. })
  528. app.use(vant)
  529. app.mount('#app')
  530. </script>
  531. </body>
  532. </html>