|
@@ -32,7 +32,7 @@ import { browser, checkPhone, getUrlCode, moneyFormat } from '@/helpers/utils';
|
|
import OWxTip from '@/components/m-wx-tip';
|
|
import OWxTip from '@/components/m-wx-tip';
|
|
|
|
|
|
import MImgCode from '@/components/m-img-code';
|
|
import MImgCode from '@/components/m-img-code';
|
|
-import MMessageTip from '@/components/m-message-tip';
|
|
|
|
|
|
+import MMessageTip from '../m-message-tip';
|
|
import SelectStudent from '@/views/student-register/modal/select-student';
|
|
import SelectStudent from '@/views/student-register/modal/select-student';
|
|
import { api_sysAreaQueryAllProvince } from '@/views/school-register/api';
|
|
import { api_sysAreaQueryAllProvince } from '@/views/school-register/api';
|
|
import CodeDialog from '../modal/code-dialog';
|
|
import CodeDialog from '../modal/code-dialog';
|
|
@@ -42,6 +42,8 @@ import { storage } from '@/helpers/storage';
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types';
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types';
|
|
import { api_verification } from '@/views/creation/api';
|
|
import { api_verification } from '@/views/creation/api';
|
|
import bannerBg from './images/banner-bg.png';
|
|
import bannerBg from './images/banner-bg.png';
|
|
|
|
+import submitBtn from './images/btn1.png'
|
|
|
|
+import title1 from './images/title1.png'
|
|
|
|
|
|
const classList: any = [];
|
|
const classList: any = [];
|
|
for (let i = 1; i <= 40; i++) {
|
|
for (let i = 1; i <= 40; i++) {
|
|
@@ -101,7 +103,7 @@ export default defineComponent({
|
|
isLoginRegister: false, // 是否已经登录或已注册
|
|
isLoginRegister: false, // 是否已经登录或已注册
|
|
schoolId: null as any,
|
|
schoolId: null as any,
|
|
schoolAreaId: null, // 学校区域编号
|
|
schoolAreaId: null, // 学校区域编号
|
|
- activationCode: null as any, // 互通码
|
|
|
|
|
|
+ activationCode: null as any, // 激活码
|
|
paymentType: '', // 支付类型
|
|
paymentType: '', // 支付类型
|
|
paymentChannel: '',
|
|
paymentChannel: '',
|
|
multi_user_limit: 1, // 限制注册学生数量
|
|
multi_user_limit: 1, // 限制注册学生数量
|
|
@@ -127,7 +129,7 @@ export default defineComponent({
|
|
cityCode: null,
|
|
cityCode: null,
|
|
regionCode: null,
|
|
regionCode: null,
|
|
|
|
|
|
- showResultPopup: false,
|
|
|
|
|
|
+ showResultPopup: true,
|
|
reslutPopupType: '' as any,
|
|
reslutPopupType: '' as any,
|
|
resultPopupContent: '',
|
|
resultPopupContent: '',
|
|
registerType: '', // 报名类型
|
|
registerType: '', // 报名类型
|
|
@@ -295,7 +297,7 @@ export default defineComponent({
|
|
status && showToast('请选择所在班级');
|
|
status && showToast('请选择所在班级');
|
|
return true;
|
|
return true;
|
|
} else if (!forms.activationCode) {
|
|
} else if (!forms.activationCode) {
|
|
- status && showToast('请输入互通码');
|
|
|
|
|
|
+ status && showToast('请输入激活码');
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
@@ -679,7 +681,7 @@ export default defineComponent({
|
|
forms.schoolLoading = false;
|
|
forms.schoolLoading = false;
|
|
};
|
|
};
|
|
|
|
|
|
- // 格式化互通码
|
|
|
|
|
|
+ // 格式化激活码
|
|
const maskMiddleDigits = (str: string) => {
|
|
const maskMiddleDigits = (str: string) => {
|
|
if (!str) {
|
|
if (!str) {
|
|
return '';
|
|
return '';
|
|
@@ -781,6 +783,16 @@ export default defineComponent({
|
|
};
|
|
};
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
|
+ // otherParams.showOtherMessage = `同一手机号最多创建${forms.multi_user_limit}个学生`;
|
|
|
|
+ // otherParams.showOtherSchool = true;
|
|
|
|
+ // otherParams.showCancelButton = false;
|
|
|
|
+ // otherParams.showCloseButton = true;
|
|
|
|
+ // otherParams.confirmButtonColor =
|
|
|
|
+ // 'linear-gradient( 305deg, #40C8FF 0%, #3192FF 100%)';
|
|
|
|
+ // otherParams.confirmButtonText = '我知道了';
|
|
|
|
+ // otherParams.otherType = 'limit';
|
|
|
|
+ // otherParams.messageAlign = 'center';
|
|
|
|
+ // return true;
|
|
try {
|
|
try {
|
|
storage.remove(ACCESS_TOKEN);
|
|
storage.remove(ACCESS_TOKEN);
|
|
removeAuth();
|
|
removeAuth();
|
|
@@ -824,6 +836,7 @@ export default defineComponent({
|
|
<div class={[styles['student-register']]}>
|
|
<div class={[styles['student-register']]}>
|
|
<img src={bannerBg} class={styles.bannerBg} />
|
|
<img src={bannerBg} class={styles.bannerBg} />
|
|
<div class={styles.studentRegisterContainer}>
|
|
<div class={styles.studentRegisterContainer}>
|
|
|
|
+ <img src={title1} class={styles.title1} />
|
|
<div class={[styles.studentSection]}>
|
|
<div class={[styles.studentSection]}>
|
|
<Form labelAlign="left" class={styles.registerForm}>
|
|
<Form labelAlign="left" class={styles.registerForm}>
|
|
<Field
|
|
<Field
|
|
@@ -1044,7 +1057,7 @@ export default defineComponent({
|
|
clearable={false}
|
|
clearable={false}
|
|
required
|
|
required
|
|
inputAlign="right"
|
|
inputAlign="right"
|
|
- label="互通码"
|
|
|
|
|
|
+ label="激活码"
|
|
readonly={route.query.code ? true : false}
|
|
readonly={route.query.code ? true : false}
|
|
modelValue={maskMiddleDigits(forms.activationCode)}
|
|
modelValue={maskMiddleDigits(forms.activationCode)}
|
|
/>
|
|
/>
|
|
@@ -1053,8 +1066,8 @@ export default defineComponent({
|
|
clearable={false}
|
|
clearable={false}
|
|
required
|
|
required
|
|
inputAlign="right"
|
|
inputAlign="right"
|
|
- label="互通码"
|
|
|
|
- placeholder="请输入互通码"
|
|
|
|
|
|
+ label="激活码"
|
|
|
|
+ placeholder="请输入激活码"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
v-model={forms.activationCode}
|
|
v-model={forms.activationCode}
|
|
/>
|
|
/>
|
|
@@ -1064,21 +1077,14 @@ export default defineComponent({
|
|
|
|
|
|
<MSticky position="bottom">
|
|
<MSticky position="bottom">
|
|
<div class={styles.paymentContainer}>
|
|
<div class={styles.paymentContainer}>
|
|
- <Button
|
|
|
|
- onClick={() => {
|
|
|
|
- // onSubmit();
|
|
|
|
|
|
+ <img class={[styles.submitBtn, forms.submitLoading && styles.loading]} onClick={() => {
|
|
|
|
+ if(forms.submitLoading) return
|
|
if (checkForm() || checkSubmit()) {
|
|
if (checkForm() || checkSubmit()) {
|
|
forms.submitLoading = false;
|
|
forms.submitLoading = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
forms.showConfirmPopup = true;
|
|
forms.showConfirmPopup = true;
|
|
- }}
|
|
|
|
- round
|
|
|
|
- block
|
|
|
|
- disabled={forms.submitLoading}
|
|
|
|
- loading={forms.submitLoading}>
|
|
|
|
- 提交
|
|
|
|
- </Button>
|
|
|
|
|
|
+ }} src={submitBtn} />
|
|
</div>
|
|
</div>
|
|
</MSticky>
|
|
</MSticky>
|
|
</div>
|
|
</div>
|
|
@@ -1456,7 +1462,7 @@ export default defineComponent({
|
|
{!route.query.code && (
|
|
{!route.query.code && (
|
|
<Cell
|
|
<Cell
|
|
border={false}
|
|
border={false}
|
|
- title="互通码"
|
|
|
|
|
|
+ title="激活码"
|
|
value={forms.activationCode}></Cell>
|
|
value={forms.activationCode}></Cell>
|
|
)}
|
|
)}
|
|
</div>
|
|
</div>
|
|
@@ -1517,7 +1523,7 @@ export default defineComponent({
|
|
)}
|
|
)}
|
|
{forms.reslutPopupType === 'ACTIVATING-TWO' && (
|
|
{forms.reslutPopupType === 'ACTIVATING-TWO' && (
|
|
<p>
|
|
<p>
|
|
- 您已使用该互通码,请勿重复提交,请下载
|
|
|
|
|
|
+ 您已使用该激活码,请勿重复提交,请下载
|
|
<span style={{ color: '#2B85FF' }}>【音乐数字课堂】</span>
|
|
<span style={{ color: '#2B85FF' }}>【音乐数字课堂】</span>
|
|
实现互通互联
|
|
实现互通互联
|
|
</p>
|
|
</p>
|