|
@@ -503,19 +503,32 @@ export default defineComponent({
|
|
|
forms.showMessage =
|
|
|
'<p style="color: #F44541">报名已截止,感谢您的参与</p>'; //result.message;
|
|
|
forms.showButton = false;
|
|
|
- } else if (
|
|
|
- registerResult.code === 5442 ||
|
|
|
- registerResult.code === 5443
|
|
|
- ) {
|
|
|
+ } else if (registerResult.code === 980) {
|
|
|
+ // 980:激活码不存在
|
|
|
+ forms.showResultPopup = true;
|
|
|
+ forms.reslutPopupType = 'INVALID';
|
|
|
+ forms.resultPopupContent = registerResult.message;
|
|
|
+ } else if (registerResult.code === 981) {
|
|
|
+ // 981:激活码被同一人重复使用
|
|
|
+ forms.showResultPopup = true;
|
|
|
+ forms.reslutPopupType = 'ACTIVATING-TWO';
|
|
|
+ forms.resultPopupContent = registerResult.message;
|
|
|
+ } else if (registerResult.code === 982) {
|
|
|
+ // 982:激活码已激活
|
|
|
forms.showResultPopup = true;
|
|
|
forms.reslutPopupType = 'EXPIRED';
|
|
|
forms.resultPopupContent = registerResult.message;
|
|
|
+ } else if (registerResult.code === 983) {
|
|
|
+ // 983:激活码已作废
|
|
|
+ forms.showResultPopup = true;
|
|
|
+ forms.reslutPopupType = 'OVERDUE';
|
|
|
+ forms.resultPopupContent = registerResult.message;
|
|
|
+ } else if (registerResult.code === 984) {
|
|
|
+ // 984:激活码已过期
|
|
|
+ forms.showResultPopup = true;
|
|
|
+ forms.reslutPopupType = 'CANCELLED';
|
|
|
+ forms.resultPopupContent = registerResult.message;
|
|
|
}
|
|
|
- // else if (registerResult.code === 5443) {
|
|
|
- // forms.showResultPopup = true;
|
|
|
- // forms.reslutPopupType = 'CANCELLED';
|
|
|
- // forms.resultPopupContent = registerResult.message;
|
|
|
- // }
|
|
|
return false;
|
|
|
} else {
|
|
|
forms.showResultPopup = true;
|
|
@@ -585,6 +598,7 @@ export default defineComponent({
|
|
|
changeTipStatus(true, false);
|
|
|
} else {
|
|
|
forms.isRegister = 'create';
|
|
|
+ studentInfo.autoRegister = false;
|
|
|
changeTipStatus(false, false);
|
|
|
forms.studentItem = [];
|
|
|
}
|
|
@@ -607,6 +621,7 @@ export default defineComponent({
|
|
|
forms.studentList = []; // 手机号关联学生列表
|
|
|
forms.studentItem = {}; // 选择的学生
|
|
|
forms.isRegister = 'create'; // 是否注册学生
|
|
|
+ studentInfo.autoRegister = false
|
|
|
forms.isTipRegister = false; // 是否显示名字不一致 - 默认显示
|
|
|
forms.isChangeSchool = false; // 是否切换学校
|
|
|
};
|
|
@@ -803,6 +818,7 @@ export default defineComponent({
|
|
|
forms.gradeList = getGradeList();
|
|
|
forms.classList = classList;
|
|
|
});
|
|
|
+
|
|
|
return () => (
|
|
|
<div class={[styles['student-register']]}>
|
|
|
<img src={bannerBg} class={styles.bannerBg} />
|
|
@@ -1473,13 +1489,17 @@ export default defineComponent({
|
|
|
<CodeDialog
|
|
|
type={forms.reslutPopupType}
|
|
|
btnText={
|
|
|
- forms.reslutPopupType === 'ACTIVATING'
|
|
|
+ forms.reslutPopupType === 'ACTIVATING' ||
|
|
|
+ forms.reslutPopupType === 'ACTIVATING-TWO'
|
|
|
? '立即下载激活'
|
|
|
: '我知道了'
|
|
|
}
|
|
|
onConfirm={() => {
|
|
|
//
|
|
|
- if (forms.reslutPopupType === 'ACTIVATING') {
|
|
|
+ if (
|
|
|
+ forms.reslutPopupType === 'ACTIVATING' ||
|
|
|
+ forms.reslutPopupType === 'ACTIVATING-TWO'
|
|
|
+ ) {
|
|
|
router.push('/download');
|
|
|
} else {
|
|
|
forms.showResultPopup = false;
|
|
@@ -1492,13 +1512,17 @@ export default defineComponent({
|
|
|
,使用手机号激活,实现音乐课堂互通互联
|
|
|
</p>
|
|
|
)}
|
|
|
-
|
|
|
- {forms.reslutPopupType === 'CANCELLED' && (
|
|
|
- <p style={{ textAlign: 'center', paddingTop: '5px' }}>
|
|
|
- {forms.resultPopupContent}
|
|
|
+ {forms.reslutPopupType === 'ACTIVATING-TWO' && (
|
|
|
+ <p>
|
|
|
+ 您已激活该互通码,请勿重复提交,请下载
|
|
|
+ <span style={{ color: '#2B85FF' }}>【音乐数字课堂】</span>
|
|
|
+ 实现互通互联
|
|
|
</p>
|
|
|
)}
|
|
|
- {forms.reslutPopupType === 'EXPIRED' && (
|
|
|
+
|
|
|
+ {['INVALID', 'EXPIRED', 'CANCELLED', 'OVERDUE'].includes(
|
|
|
+ forms.reslutPopupType
|
|
|
+ ) && (
|
|
|
<p style={{ textAlign: 'center', paddingTop: '5px' }}>
|
|
|
{forms.resultPopupContent}
|
|
|
</p>
|