新增活动

This commit is contained in:
X1627315083
2024-12-31 11:05:33 +08:00
parent a65477353f
commit b6d590e124
7 changed files with 134 additions and 12 deletions

View File

@@ -230,11 +230,12 @@
</template>
<script lang="ts">
import { defineComponent,ref ,onMounted} from "vue";
import { defineComponent,ref ,createVNode} from "vue";
import { Https } from "@/tool/https";
import { isEmail } from "@/tool/util";
import { setCookie ,WriteCookie } from "@/tool/cookie";
import { message } from "ant-design-vue";
import { message,Modal } from "ant-design-vue";
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import VerificationCodeInput from "@/component/LoginPage/verificationCodeInput.vue";
import { useStore } from "vuex";
import { useI18n } from "vue-i18n";
@@ -462,7 +463,7 @@ export default defineComponent({
userId:this.userId
};
Https.axiosPost(Https.httpUrls.accountLogin, data).then(
(rv: any) => {
async (rv: any) => {
if (rv) {
if(rv.systemUser == 4){
rv.systemUser = 1
@@ -489,7 +490,23 @@ export default defineComponent({
this.turnToHomePage('/Square');
}else{
if(window.innerWidth < 768){
message.info("If you need to design, please log in using an iPad or computer.",10);
await new Promise((resolve, reject) => {
Modal.confirm({
title: 'If you need to design, please use iPad or computer to log in. Or check whether the browser zoom ratio is 100%. For iPad, set the zoom ratio by setting - APP - browser - zoom ratio. For computer, press ctrl + mouse scroll to set the zoom ratio.',
icon: createVNode(ExclamationCircleOutlined),
okText: 'Yes',
cancelText: 'No',
mask:false,
centered:true,
onOk() {
resolve('')
},
onCancel(){
resolve('')
}
});
})
// message.info("If you need to design, please log in using an iPad or computer.",10);
this.turnToHomePage('/Square');
}else{
this.turnToHomePage('/home');