新弹窗

This commit is contained in:
A1300399510 2023-08-11 19:03:16 +08:00
parent 30d2ef0b3b
commit 2e7ec8dda5
6 changed files with 12445 additions and 1 deletions

View File

@ -51,11 +51,14 @@
import { ElLoading } from 'element-plus'
import { ref, reactive, onMounted, getCurrentInstance, defineEmits } from 'vue'
import { useRouter } from 'vue-router'
import { useRouter, useRoute } from 'vue-router'
const { proxy } = getCurrentInstance()
const router = useRouter()
const route = useRoute();
let identityList = ref([])
let popType = ref('') // choice agent: affirmAgent:
@ -75,12 +78,16 @@ let isintermediary = ref(0)
let loading = ref(null) //
//
const ClickBtn = () => {
if (identityList.value.length == 0) init()
else popType.value = 'choice'
}
if (route.path == "/choosing-identity") ClickBtn()
async function init() {
loading = ElLoading.service({
lock: true,
@ -98,6 +105,7 @@ async function init() {
// isintermediary.value = 1
// console.log("data.isintermediary",data.isintermediary);
// if (data['ispopup'] == 0) overallJump()
if (data['ispopup'] == 0) overallJump()
else popType.value = 'choice'
}).finally(() => {
@ -143,6 +151,7 @@ let confirmIntermediary = (isintermediary) => {
</script>
<style lang="less" scoped>
.btn {
position: absolute;
top: 0;

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="./css.css">
<script src="./js/axios.min.js"></script>
<script src="./js/vue.js"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,183 @@
.btn {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.pop-mask {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.81764706);
z-index: 1000;
}
.pop-box {
position: relative;
z-index: 1111;
box-sizing: border-box;
border-radius: 16px;
padding-top: 39px;
background-color: #ffffff;
width: 640px;
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.11764706);
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.11764706);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.11764706);
line-height: normal;
}
.pop-header {
font-size: 24px;
font-weight: 650;
color: #000000;
}
.please-choose {
color: #555555;
font-size: 14px;
margin-top: 26px;
margin-bottom: 24px;
padding-left: 35px;
}
.choice-box {
justify-content: space-between;
flex-wrap: wrap;
padding: 0 35px 49px;
}
.choice-box .choice-item,
.choice-box .choice-long-item {
background-color: #f6f6f6;
height: 160px;
width: 220px;
border-radius: 16px;
margin-bottom: 10px;
box-sizing: border-box;
padding-top: 18px;
}
.choice-box .choice-item .choice-name,
.choice-box .choice-long-item .choice-name {
font-weight: 650;
font-size: 18px;
color: #000000;
position: relative;
padding-left: 34px;
text-align: left;
}
.choice-box .choice-item .choice-name::after,
.choice-box .choice-long-item .choice-name::after {
content: "";
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
background-color: #50e3c2;
width: 6px;
height: 16px;
border-radius: 3px;
}
.choice-box .choice-item:hover,
.choice-box .choice-long-item:hover {
cursor: pointer;
background-color: #f2f2f2;
}
.choice-box .choice-item:hover .choice-arrows,
.choice-box .choice-long-item:hover .choice-arrows {
background-color: #000;
background-image: url('@/assets/img/edit/selectArrow-white.svg');
}
.choice-box .choice-long-item {
width: 450px;
justify-content: space-between;
height: 100px;
padding-right: 20px;
}
.choice-box .choice-long-item .choice-arrows {
margin: 0;
margin-top: -18px;
}
.choice-box .choice-explain {
color: #555555;
font-size: 14px;
font-weight: 400;
margin-top: 10px;
margin-bottom: 21px;
padding-left: 34px;
text-align: left;
}
.choice-box .choice-arrows {
width: 40px;
height: 40px;
background-color: #fddf6d;
border-radius: 50%;
margin: 0 auto;
background-image: url('@/assets/img/edit/selectArrow.png');
background-size: 24px;
background-repeat: no-repeat;
background-position: center;
}
.close-icon {
position: absolute;
top: 20px;
right: 14px;
width: 14px;
height: 14px;
cursor: pointer;
}
.affirm-hint {
color: #333333;
margin: 0 auto;
text-align: left;
padding: 0 30px;
}
.affirm-a-hint {
text-align: center;
margin-top: 20px;
}
.affirm-b-hint {
margin: 36px auto 0;
}
.rules-box {
background: #f6f6f6;
margin: 30px;
border-radius: 10px;
padding: 15px;
}
.rules-box .rules-item {
line-height: 24px;
}
.rules-box .rules-item:not(:last-of-type) .rules-text {
border-bottom: 1px dashed #ebebeb;
}
.rules-box .rules-item .rules-text {
padding: 20px 0;
font-size: 15px;
}
.rules-box .rules-icon {
width: 15px;
height: 15px;
margin-top: 25px;
margin-right: 12px;
}
.footer {
padding: 0 15px;
height: 100px;
border-top: 1px solid #ebebeb;
}
.footer .footer-item {
width: 200px;
height: 50px;
border-radius: 40px;
font-size: 20px;
cursor: pointer;
background-color: #ffffff;
border: 1px solid #d7d7d7;
}
.footer .footer-item:first-of-type {
margin-right: 20px;
}
.footer .footer-item.affirm {
border: none;
background-color: #62b1ff;
color: #ffffff;
font-weight: 650;
}

View File

@ -0,0 +1,211 @@
.btn {
position: absolute;
top: 0;
left: 0;
// background-color: #50e3c2;
width: 100%;
height: 100%;
}
.pop-mask {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.817647058823529);
z-index: 1000;
}
.pop-box {
position: relative;
z-index: 1111;
box-sizing: border-box;
border-radius: 16px;
padding-top: 39px;
background-color: #ffffff;
// width: 520px;
width: 640px;
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
line-height: normal;
}
.pop-header {
font-size: 24px;
font-weight: 650;
color: #000000;
// margin-bottom: 35px;
}
.please-choose {
color: #555555;
font-size: 14px;
margin-top: 26px;
margin-bottom: 24px;
padding-left: 35px;
}
.choice-box {
justify-content: space-between;
flex-wrap: wrap;
padding: 0 35px 49px;
.choice-item,
.choice-long-item {
background-color: #f6f6f6;
height: 160px;
width: 220px;
border-radius: 16px;
margin-bottom: 10px;
box-sizing: border-box;
padding-top: 18px;
.choice-name {
font-weight: 650;
font-size: 18px;
color: #000000;
position: relative;
padding-left: 34px;
text-align: left;
&::after {
content: "";
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
background-color: #50e3c2;
width: 6px;
height: 16px;
border-radius: 3px;
}
}
&:hover {
cursor: pointer;
background-color: rgb(242, 242, 242);
.choice-arrows {
background-color: #000;
background-image: url('@/assets/img/edit/selectArrow-white.svg');
}
}
}
.choice-long-item {
width: 450px;
justify-content: space-between;
height: 100px;
padding-right: 20px;
.choice-arrows {
margin: 0;
margin-top: -18px;
}
}
.choice-explain {
color: #555555;
font-size: 14px;
font-weight: 400;
margin-top: 10px;
margin-bottom: 21px;
padding-left: 34px;
text-align: left;
}
.choice-arrows {
width: 40px;
height: 40px;
background-color: #fddf6d;
border-radius: 50%;
margin: 0 auto;
background-image: url('@/assets/img/edit/selectArrow.png');
background-size: 24px;
background-repeat: no-repeat;
background-position: center;
}
}
.close-icon {
position: absolute;
top: 20px;
right: 14px;
width: 14px;
height: 14px;
cursor: pointer;
}
.affirm-hint {
color: #333333;
margin: 0 auto;
text-align: left;
padding: 0 30px;
}
.affirm-a-hint {
text-align: center;
margin-top: 20px;
}
.affirm-b-hint {
margin: 36px auto 0;
}
.rules-box {
background: rgba(246, 246, 246, 1);
margin: 30px;
border-radius: 10px;
padding: 15px;
.rules-item {
line-height: 24px;
&:not(:last-of-type) .rules-text {
border-bottom: 1px dashed #ebebeb;
}
.rules-text {
padding: 20px 0;
font-size: 15px;
}
}
.rules-icon {
width: 15px;
height: 15px;
margin-top: 25px;
margin-right: 12px;
}
}
.footer {
padding: 0 15px;
height: 100px;
border-top: 1px solid #ebebeb;
.footer-item {
width: 200px;
height: 50px;
border-radius: 40px;
font-size: 20px;
cursor: pointer;
background-color: #ffffff;
border: 1px solid rgba(215, 215, 215, 1);
&:first-of-type {
margin-right: 20px;
}
&.affirm {
border: none;
background-color: rgba(98, 177, 255, 1);
color: #ffffff;
font-weight: 650;
}
}
}

9
单独的入口弹窗/js/axios.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff