'yyyf跳转初步'

master
huan.xu 5 years ago
parent 88126015db
commit fce654f208
  1. 98
      src/pages/index.vue

@ -325,6 +325,16 @@ export default {
}; };
}, },
created() { created() {
let params = this.parseUrl();
if (
!$.isEmptyObject(params) &&
params.userId != undefined &&
params.reqType != undefined
) {
alert(1);
location.href = '/';
}
// //
this.fileUrl = FILE_URL; this.fileUrl = FILE_URL;
@ -360,6 +370,35 @@ export default {
clearInterval(this.timer); clearInterval(this.timer);
}, },
methods: { methods: {
parseUrl() {
let params = {}; //
let url = decodeURIComponent(location.href);
let paramsIndex = url.indexOf('?');
if (paramsIndex != -1) {
paramsIndex = paramsIndex + 1;
let paramsStr = url.substring(paramsIndex);
let paramsAttr = paramsStr.split('&');
for (let x in paramsAttr) {
let y = paramsAttr[x].split('=');
if (y[0] == undefined || y[0] == '') {
continue;
}
if (y[1] != undefined) {
let value = '';
let len = y.length;
for (let j = 1; j < len; j++) {
value +=
y[j] == '' &&
paramsAttr[x].charAt(value.length + y[0].length + 1) != ''
? '='
: y[j];
}
params[y[0]] = value;
}
}
}
return params;
},
setSize1: function() { setSize1: function() {
var width = var width =
window.innerWidth || window.innerWidth ||
@ -511,14 +550,17 @@ export default {
max-width: 100%; max-width: 100%;
} }
} }
p { p {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.eurTitle2 { .eurTitle2 {
width: 100%; width: 100%;
background-color: #23252b; background-color: #23252b;
} }
.eurTitle { .eurTitle {
margin: 0 auto; margin: 0 auto;
width: 1180px; width: 1180px;
@ -537,6 +579,7 @@ p {
// margin: 2% auto 0; // margin: 2% auto 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.usdItem { .usdItem {
width: 28.5%; width: 28.5%;
// height: 120px; // height: 120px;
@ -551,32 +594,39 @@ p {
color: #fff; color: #fff;
// margin-top: 9px; // margin-top: 9px;
} }
p:nth-of-type(1) { p:nth-of-type(1) {
margin-top: 21px; margin-top: 21px;
} }
p:nth-of-type(2) { p:nth-of-type(2) {
font-size: 18px !important; font-size: 18px !important;
margin-top: 17px; margin-top: 17px;
.shang { .shang {
position: relative; position: relative;
top: -3px; top: -3px;
left: -14px; left: -14px;
} }
span { span {
font-size: 18px; font-size: 18px;
margin-left: 10px; margin-left: 10px;
} }
} }
p:nth-of-type(3) { p:nth-of-type(3) {
margin-top: 13px; margin-top: 13px;
margin-bottom: 20px; margin-bottom: 20px;
font-size: 16px; font-size: 16px;
color: #9ba0bc; color: #9ba0bc;
span { span {
margin-right: 10px; margin-right: 10px;
} }
} }
} }
.upData { .upData {
font-size: 16px; font-size: 16px;
color: #4db872; color: #4db872;
@ -584,6 +634,7 @@ p {
top: 16px; top: 16px;
right: 22px; right: 22px;
} }
.upData2 { .upData2 {
font-size: 16px; font-size: 16px;
color: #ee6560; color: #ee6560;
@ -591,6 +642,7 @@ p {
top: 16px; top: 16px;
right: 22px; right: 22px;
} }
.curreyBig { .curreyBig {
font-size: 48px; font-size: 48px;
font-weight: 500; font-weight: 500;
@ -600,9 +652,11 @@ p {
right: 22px; right: 22px;
} }
} }
.green { .green {
color: #4db872 !important; color: #4db872 !important;
} }
.red { .red {
color: #ee6560 !important; color: #ee6560 !important;
} }
@ -613,6 +667,7 @@ p {
margin-top: 40px; margin-top: 40px;
margin-bottom: 72px; margin-bottom: 72px;
background-color: #23242b; background-color: #23242b;
.rangeTable { .rangeTable {
.upRange { .upRange {
font-size: 16px; font-size: 16px;
@ -620,51 +675,63 @@ p {
padding: 16px 40px; padding: 16px 40px;
background-color: #1f2026; background-color: #1f2026;
} }
.rangeTr { .rangeTr {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
padding: 16px 40px; padding: 16px 40px;
.rangeTd { .rangeTd {
font-size: 14px; font-size: 14px;
&:nth-child(1) { &:nth-child(1) {
width: 50px; width: 50px;
color: #fff; color: #fff;
} }
&:nth-child(2) { &:nth-child(2) {
width: 150px; width: 150px;
color: #9ba0bc; color: #9ba0bc;
} }
&:nth-child(3) { &:nth-child(3) {
flex: 2; flex: 2;
font-size: 14px; font-size: 14px;
color: #4db872; color: #4db872;
span { span {
color: #545663; color: #545663;
} }
} }
&:nth-child(4) { &:nth-child(4) {
flex: 2; flex: 2;
font-size: 14px; font-size: 14px;
color: #9ba0bc; color: #9ba0bc;
span { span {
color: #545663; color: #545663;
} }
} }
&:nth-child(5) { &:nth-child(5) {
flex: 2; flex: 2;
font-size: 14px; font-size: 14px;
color: #9ba0bc; color: #9ba0bc;
span { span {
color: #545663; color: #545663;
} }
} }
&:nth-child(6) { &:nth-child(6) {
flex: 1; flex: 1;
// width: 60px; // width: 60px;
font-size: 14px; font-size: 14px;
color: #9ba0bc; color: #9ba0bc;
} }
&:nth-child(7) { &:nth-child(7) {
flex: 1; flex: 1;
// width: 60px; // width: 60px;
@ -672,48 +739,60 @@ p {
color: #4db872; color: #4db872;
} }
} }
.rangeTdPrice { .rangeTdPrice {
flex: 2; flex: 2;
font-size: 14px; font-size: 14px;
width: 150px; width: 150px;
color: #ee6560; color: #ee6560;
span { span {
color: #545663; color: #545663;
} }
} }
.button { .button {
flex: 1; flex: 1;
font-size: 14px; font-size: 14px;
color: #ee6560; color: #ee6560;
} }
&:nth-of-type(2n + 1) { &:nth-of-type(2n + 1) {
background-color: #1f2026; background-color: #1f2026;
} }
} }
.rangthead { .rangthead {
font-size: 14px; font-size: 14px;
color: #545663; color: #545663;
padding: 16px 40px; padding: 16px 40px;
background-color: #23242b; background-color: #23242b;
display: flex; display: flex;
span:nth-of-type(1) { span:nth-of-type(1) {
width: 50px; width: 50px;
} }
span:nth-of-type(2) { span:nth-of-type(2) {
width: 150px; width: 150px;
} }
span:nth-of-type(3) { span:nth-of-type(3) {
flex: 2; flex: 2;
} }
span:nth-of-type(4) { span:nth-of-type(4) {
flex: 2; flex: 2;
} }
span:nth-of-type(5) { span:nth-of-type(5) {
flex: 2; flex: 2;
} }
span:nth-of-type(6) { span:nth-of-type(6) {
flex: 1; flex: 1;
} }
span:nth-of-type(7) { span:nth-of-type(7) {
flex: 1; flex: 1;
} }
@ -733,29 +812,36 @@ p {
.slide { .slide {
color: #fff; color: #fff;
} }
.mint-swipe-indicators { .mint-swipe-indicators {
display: none; display: none;
} }
.bigServe { .bigServe {
background-color: #15161a; background-color: #15161a;
padding-top: 61px; padding-top: 61px;
padding-bottom: 57px; padding-bottom: 57px;
.serve { .serve {
width: 1180px; width: 1180px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
.function { .function {
width: 168px; width: 168px;
div:nth-of-type(1) { div:nth-of-type(1) {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
img { img {
width: 60px; width: 60px;
height: 60px; height: 60px;
} }
} }
div:nth-of-type(2) { div:nth-of-type(2) {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -764,6 +850,7 @@ p {
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
margin: 17px 0; margin: 17px 0;
} }
div:nth-of-type(3) { div:nth-of-type(3) {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
@ -772,14 +859,17 @@ p {
} }
} }
} }
.mint-swipe-item { .mint-swipe-item {
a { a {
color: #fff !important; color: #fff !important;
&:hover { &:hover {
color: #fff !important; color: #fff !important;
} }
} }
} }
.qrCode { .qrCode {
margin: 0 auto; margin: 0 auto;
width: 1180px; width: 1180px;
@ -787,21 +877,25 @@ p {
// justify-content: center; // justify-content: center;
// align-items: center; // align-items: center;
flex-direction: row; flex-direction: row;
img { img {
margin-left: 223px; margin-left: 223px;
margin-top: 76px; margin-top: 76px;
width: 327px; width: 327px;
height: 414px; height: 414px;
} }
&-contant { &-contant {
margin-top: 172px; margin-top: 172px;
margin-left: 61px; margin-left: 61px;
} }
&-char { &-char {
font-size: 36px; font-size: 36px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
} }
&-main { &-main {
width: 130px; width: 130px;
margin-top: 38px; margin-top: 38px;
@ -810,12 +904,14 @@ p {
font-size: 14px; font-size: 14px;
color: #fff; color: #fff;
} }
div:nth-of-type(2) { div:nth-of-type(2) {
margin: 12px 0; margin: 12px 0;
background-color: #fff; background-color: #fff;
width: 105px; width: 105px;
height: 105px; height: 105px;
position: relative; position: relative;
img { img {
position: absolute; position: absolute;
top: -73px; top: -73px;
@ -824,12 +920,14 @@ p {
height: 100px; height: 100px;
} }
} }
div:nth-of-type(3) { div:nth-of-type(3) {
font-size: 14px; font-size: 14px;
color: #9ba0bc; color: #9ba0bc;
} }
} }
} }
// .mint-swipe-indicators { // .mint-swipe-indicators {
// margin-bottom: 20px; // margin-bottom: 20px;
// } // }

Loading…
Cancel
Save