|
@@ -186,9 +186,10 @@ export default defineComponent({
|
|
|
|
|
|
const otherParams = reactive({
|
|
|
showOtherSchool: false,
|
|
|
+ showCloseButton: true, // 是否显示关闭按钮
|
|
|
showOtherMessage: '',
|
|
|
/** limit 超限制,change 更换学生,nickname 名称不一致 */
|
|
|
- otherType: '' as 'limit' | 'change' | 'nickname',
|
|
|
+ otherType: '' as 'limit' | 'change' | 'nickname' | 'member',
|
|
|
showCancelButton: true,
|
|
|
cancelButtonColor: '',
|
|
|
cancelButtonText: '取消',
|
|
@@ -477,6 +478,7 @@ export default defineComponent({
|
|
|
'学生姓名与上次提交信息不一致,请确认修改学生信息或创建新的学生账号';
|
|
|
otherParams.showOtherSchool = true;
|
|
|
otherParams.showCancelButton = true;
|
|
|
+ otherParams.showCloseButton = true;
|
|
|
otherParams.cancelButtonColor =
|
|
|
'linear-gradient( 224deg, #3FE1E6 0%, #00CDD4 100%)';
|
|
|
otherParams.cancelButtonText = '新建学生';
|
|
@@ -496,6 +498,7 @@ export default defineComponent({
|
|
|
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 = '我知道了';
|
|
@@ -511,11 +514,14 @@ export default defineComponent({
|
|
|
forms.isRegister === 'update'
|
|
|
) {
|
|
|
otherParams.showOtherMessage = `您已绑定【${
|
|
|
+ forms.studentItem?.schoolName || ''
|
|
|
+ }】,提交后将更换到【
|
|
|
+ <span style="color: #2B85FF">${
|
|
|
forms.registerDetails.schoolName || ''
|
|
|
- }】,提交后将更换到【${
|
|
|
- forms.studentItem?.schoolName
|
|
|
- }】,是否确认提交?`;
|
|
|
+ }</span>
|
|
|
+ 】,是否确认提交?`;
|
|
|
otherParams.showOtherSchool = true;
|
|
|
+ otherParams.showCloseButton = false;
|
|
|
otherParams.showCancelButton = true;
|
|
|
otherParams.cancelButtonColor = '';
|
|
|
otherParams.cancelButtonText = '取消';
|
|
@@ -659,7 +665,20 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
if (schoolInfo.data.hasBuyCourse && vipList.length > 0) {
|
|
|
- forms.dialogConfirmStatus = true;
|
|
|
+ // forms.dialogConfirmStatus = true;
|
|
|
+
|
|
|
+ // 15907121011
|
|
|
+
|
|
|
+ otherParams.showOtherMessage = `该学员已购买会员,是否确认购买?`;
|
|
|
+ otherParams.showOtherSchool = true;
|
|
|
+ otherParams.showCloseButton = false;
|
|
|
+ otherParams.showCancelButton = true;
|
|
|
+ otherParams.cancelButtonColor = '';
|
|
|
+ otherParams.cancelButtonText = '取消';
|
|
|
+ otherParams.confirmButtonColor = '';
|
|
|
+ otherParams.confirmButtonText = '确定';
|
|
|
+ otherParams.otherType = 'member';
|
|
|
+ otherParams.messageAlign = 'center';
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1741,7 +1760,7 @@ export default defineComponent({
|
|
|
</Popup>
|
|
|
|
|
|
{/* 已经购买过样品 */}
|
|
|
- <MDialog
|
|
|
+ {/* <MDialog
|
|
|
title="提示"
|
|
|
v-model:show={forms.dialogConfirmStatus}
|
|
|
message={'已购买会员,是否确认购买?'}
|
|
@@ -1758,7 +1777,7 @@ export default defineComponent({
|
|
|
applyOver();
|
|
|
}
|
|
|
}}
|
|
|
- />
|
|
|
+ /> */}
|
|
|
|
|
|
<MDialog
|
|
|
title="提示"
|
|
@@ -1851,6 +1870,7 @@ export default defineComponent({
|
|
|
|
|
|
<MMessageTip
|
|
|
show={otherParams.showOtherSchool}
|
|
|
+ showCloseButton={otherParams.showCloseButton}
|
|
|
messageAlign={otherParams.messageAlign}
|
|
|
message={otherParams.showOtherMessage}
|
|
|
showCancelButton={otherParams.showCancelButton}
|
|
@@ -1858,16 +1878,30 @@ export default defineComponent({
|
|
|
cancelButtonText={otherParams.cancelButtonText}
|
|
|
confirmButtonColor={otherParams.confirmButtonColor}
|
|
|
confirmButtonText={otherParams.confirmButtonText}
|
|
|
+ onClose={() => (otherParams.showOtherSchool = false)}
|
|
|
onCancel={() => {
|
|
|
otherParams.showOtherSchool = false;
|
|
|
if (otherParams.otherType === 'nickname') {
|
|
|
forms.isRegister = 'create'; // 新建
|
|
|
changeTipStatus(false, false);
|
|
|
onSubmit();
|
|
|
- } else if (otherParams.otherType === 'limit') {
|
|
|
+ } else if (otherParams.otherType === 'member') {
|
|
|
+ //取消支付,判断是否有结束时间,是否已经结束
|
|
|
+ if (forms.registerExpireTime && forms.activeOverStatus) {
|
|
|
+ applyOver();
|
|
|
+ }
|
|
|
+ // onConfirm={async () => {
|
|
|
+ // await paymentContinue();
|
|
|
+ // }}
|
|
|
+ // onCancel={() => {
|
|
|
+ // //取消支付,判断是否有结束时间,是否已经结束
|
|
|
+ // if (forms.registerExpireTime && forms.activeOverStatus) {
|
|
|
+ // applyOver();
|
|
|
+ // }
|
|
|
+ // }}
|
|
|
}
|
|
|
}}
|
|
|
- onConfirm={() => {
|
|
|
+ onConfirm={async () => {
|
|
|
otherParams.showOtherSchool = false;
|
|
|
// 名字
|
|
|
if (otherParams.otherType === 'nickname') {
|
|
@@ -1888,6 +1922,8 @@ export default defineComponent({
|
|
|
: true,
|
|
|
false
|
|
|
);
|
|
|
+ } else if (otherParams.otherType === 'member') {
|
|
|
+ await paymentContinue();
|
|
|
}
|
|
|
}}
|
|
|
/>
|