添加画布颜色历史
This commit is contained in:
@@ -1,32 +1,33 @@
|
||||
<template>
|
||||
<div class="emailVerify" :class="{'active': forbid}">
|
||||
<div class="emailVerify">
|
||||
<main class="main">
|
||||
<h1 id="title">Welcome</h1>
|
||||
<p id="description" v-if="!forbid">Please take the survey</p>
|
||||
|
||||
<div class="survey-form">
|
||||
<h1 id="title"><span>√</span>邮箱修改成功</h1>
|
||||
<div class="text">
|
||||
<p id="description">您的新邮箱为:*********************</p>
|
||||
</div>
|
||||
<div class="mark_loading" v-show="!isSucceed">
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<div class="mark_loading" v-show="isShowMark">
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
import { Modal,message } from 'ant-design-vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { Https } from "@/tool/https";
|
||||
import { defineComponent, toRefs,ref, reactive, createVNode } from "vue";
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
const route = useRoute();
|
||||
let feedbackData:any = reactive({
|
||||
userName:'',
|
||||
gender:'Female',
|
||||
occupation:'',
|
||||
country:'',
|
||||
email:'',
|
||||
age:'20-30',
|
||||
helpful:[],
|
||||
improve:[],
|
||||
isSubscribe:'',
|
||||
reasonForNotSubscribe:[],
|
||||
designTools:'',
|
||||
isShowMark:false,
|
||||
isSucceed:false,
|
||||
});
|
||||
let setSubmit = (value:any)=>{
|
||||
Https.axiosPost(Https.httpUrls.questionnaire, value).then(
|
||||
@@ -36,12 +37,10 @@ export default defineComponent({
|
||||
).catch(res=>{
|
||||
});
|
||||
}
|
||||
let forbid = ref(false)
|
||||
|
||||
return {
|
||||
...toRefs(feedbackData),
|
||||
setSubmit,
|
||||
forbid,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -63,73 +62,58 @@ export default defineComponent({
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
// background: linear-gradient(180deg, #f3f3e6 0%, #eee4f3 100%);
|
||||
margin: 1rem;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
&.active{
|
||||
#title {
|
||||
font-size: 3rem;
|
||||
}
|
||||
#description {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
#survey-form {
|
||||
width: 90%;
|
||||
padding: 1.5rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
p{
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
input,
|
||||
#dropdown {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
max-height: 125px;
|
||||
padding: 5px;
|
||||
}
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
input,select{
|
||||
height: 3.5rem;
|
||||
}
|
||||
*{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.main{
|
||||
background: linear-gradient(45deg, #eee4f3, #f3f4e6);
|
||||
padding: 2rem;
|
||||
// background: #f5f5f5;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
#title {
|
||||
font-size: 6rem;
|
||||
margin: 0;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
#description {
|
||||
font-size: 2.8rem;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#survey-form {
|
||||
position: relative;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
width: 60%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
text-align: left;
|
||||
border-radius: 15px;
|
||||
padding: 3rem;
|
||||
box-shadow: -1px 1px 5px 0.5px;
|
||||
font-size: 2.4rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
&.active{
|
||||
transition: width 1s ease;
|
||||
#title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
span{
|
||||
background: #39215b;
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-size: 6rem;
|
||||
line-height: 8rem;
|
||||
text-align: center;
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
.survey-form {
|
||||
position: relative;
|
||||
background: rgba(255, 255, 255);
|
||||
width: 50%;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 2.4rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 2rem;
|
||||
padding: 4rem 0;
|
||||
.mark_loading{
|
||||
background: #fff;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,117 +122,9 @@ export default defineComponent({
|
||||
width: 75%;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
width: 100%;
|
||||
font-weight: 900;
|
||||
}
|
||||
.section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
.section:last-child{
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
.w40 {
|
||||
width: 40%;
|
||||
}
|
||||
.fontColor{
|
||||
color: rgb(255, 2, 2);
|
||||
}
|
||||
|
||||
p{
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
p,
|
||||
label {
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
input,
|
||||
#dropdown {
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
#dropdown:focus {
|
||||
border: 2px solid rgb(173, 173, 173);
|
||||
}
|
||||
input,select{
|
||||
height: 7rem;
|
||||
}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
vertical-align: middle;
|
||||
margin: 0;
|
||||
}
|
||||
label{
|
||||
vertical-align: baseline;
|
||||
cursor: pointer;
|
||||
.others-input{
|
||||
background: rgba(255, 255, 255, 0);
|
||||
border-top: none;
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
border-radius: 0;
|
||||
border-bottom: 2px solid;
|
||||
}
|
||||
.others-input:focus{
|
||||
border: none;
|
||||
border-bottom: 2px solid;
|
||||
}
|
||||
span{
|
||||
vertical-align: top;
|
||||
}
|
||||
textarea{
|
||||
width: 80%;
|
||||
vertical-align: top;
|
||||
margin-left: 1rem;
|
||||
|
||||
}
|
||||
}
|
||||
textarea {
|
||||
min-height: 75%;
|
||||
max-height: 250px;
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#submit {
|
||||
background: green;
|
||||
background: #39215b;
|
||||
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
color: white;
|
||||
font-size: 3rem;
|
||||
transition: all 0.3s ease-in;
|
||||
}
|
||||
|
||||
#submit:hover {
|
||||
background: darkgreen;
|
||||
background: #543087;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user