Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0b2379e7
authored
Apr 24, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
4e3f5383
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
167 additions
and
6 deletions
env.js
pages/home/home.vue
env.js
View file @
0b2379e
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
2
;
const
index
=
1
;
/**
/**
*
*
0本地
0本地
...
...
pages/home/home.vue
View file @
0b2379e
...
@@ -11,6 +11,21 @@
...
@@ -11,6 +11,21 @@
@
click=
"handleTouchStart()"
@
click=
"handleTouchStart()"
>
>
<view
:class=
"['home',
{ show: !id }]">
<view
:class=
"['home',
{ show: !id }]">
<view
class=
"bg"
>
<view
class=
"top"
>
<view
class=
"top-one"
></view>
</view>
<view
class=
"bottom"
>
<view
class=
"bottom-one"
></view>
<view
class=
"bottom-two"
></view>
<view
class=
"bottom-three"
:style=
"
{transform: 'translate(' + x + 'px, ' + y + 'px)'}"
>
</view>
</view>
</view>
<!--
<template
v-if=
"false"
>
-->
<view
class=
"left-side"
>
<view
class=
"left-side"
>
<!-- 左侧内容 -->
<!-- 左侧内容 -->
<view
class=
"user-info flex"
>
<view
class=
"user-info flex"
>
...
@@ -131,6 +146,7 @@
...
@@ -131,6 +146,7 @@
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
</view>
</view>
</view>
</view>
<!-- </template> -->
</view>
</view>
<view
:class=
"['detail', { show: id }]"
>
<view
:class=
"['detail', { show: id }]"
>
<detail
<detail
...
@@ -211,11 +227,14 @@ export default {
...
@@ -211,11 +227,14 @@ export default {
version
:
''
,
version
:
''
,
payInfo
:
null
,
payInfo
:
null
,
accountInfo
:
null
,
accountInfo
:
null
,
accountLength
:
uni
.
$storage
.
get
(
'accountLength'
)
accountLength
:
uni
.
$storage
.
get
(
'accountLength'
),
x
:
0
,
y
:
0
,
};
};
},
},
mounted
()
{
mounted
()
{
this
.
randomize
();
setInterval
(
this
.
randomize
,
3
e3
);
},
},
onBackPress
(
options
)
{
onBackPress
(
options
)
{
if
(
options
.
from
===
"backbutton"
)
{
if
(
options
.
from
===
"backbutton"
)
{
...
@@ -236,6 +255,13 @@ export default {
...
@@ -236,6 +255,13 @@ export default {
// else this.$refs.recordRef?.pageonReachBottom()
// else this.$refs.recordRef?.pageonReachBottom()
},
},
methods
:
{
methods
:
{
randomize
()
{
const
maxX
=
uni
.
getSystemInfoSync
().
windowWidth
-
300
const
maxY
=
uni
.
getSystemInfoSync
().
windowHeight
-
100
console
.
log
(
maxX
)
this
.
x
=
Math
.
floor
(
Math
.
random
()
*
maxX
);
this
.
y
=
Math
.
floor
(
Math
.
random
()
*
maxY
);
},
init
()
{
init
()
{
this
.
getSoure
();
this
.
getSoure
();
this
.
findPayInfo
();
this
.
findPayInfo
();
...
@@ -385,16 +411,151 @@ export default {
...
@@ -385,16 +411,151 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.container
{
.container
{
position
:
relative
;
position
:
relative
;
&::after
{
//
&::after
{
//
position
:
absolute
;
//
z-index
:
-2
;
//
left
:
0
;
//
top
:
0
;
//
width
:
100vw
;
//
height
:
100vh
;
//
background-image
:
url("../../assets/images/home/bg.webp")
;
//
background-size
:
100%
100%
;
//
content
:
""
;
//
}
.bg
{
position
:
absolute
;
position
:
absolute
;
z-index
:
-2
;
z-index
:
-2
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
width
:
100vw
;
width
:
100vw
;
height
:
100vh
;
height
:
100vh
;
background-image
:
url("../../assets/images/home/bg.webp")
;
background-image
:
linear-gradient
(
180deg
,
#f2f6ff
0%
,
#f7f9ff
100%
);
background-size
:
100%
100%
;
overflow
:
hidden
;
.top
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
&-one
{
position
:
absolute
;
top
:
-1600
rpx
;
right
:
128
rpx
;
width
:
2012
rpx
;
height
:
2012
rpx
;
opacity
:
0.3
;
background
:
#fff
;
box-shadow
:
inset
2
rpx
2
rpx
0
2
rpx
#ffffff80
;
border-radius
:
50%
/
25%
;
z-index
:
2
;
&::before
{
position
:
absolute
;
width
:
856.56
rpx
;
height
:
153.54
rpx
;
right
:
150
rpx
;
top
:
0
;
opacity
:
0.6
;
background
:
#ebfdff
;
filter
:
blur
(
36
rpx
);
content
:
""
;
}
}
&
::before
{
position
:
absolute
;
content
:
""
;
content
:
""
;
right
:
0
;
top
:
0
;
width
:
890.36
rpx
;
height
:
174.84
rpx
;
opacity
:
0.2
;
background
:
#3582ee
;
filter
:
blur
(
100
rpx
);
}
&
::after
{
width
:
274.32
rpx
;
height
:
410.02
rpx
;
opacity
:
0.16
;
background-image
:
linear-gradient
(
125deg
,
#65b8f7
36%
,
#3582ee
79%
);
filter
:
blur
(
74
rpx
);
position
:
absolute
;
content
:
""
;
right
:
0
;
top
:
24
rpx
;
}
}
.bottom
{
position
:
absolute
;
width
:
1291.3
rpx
;
height
:
316
rpx
;
left
:
0
;
bottom
:
0
;
z-index
:
2
;
&::before
{
content
:
""
;
position
:
absolute
;
width
:
100%
;
height
:
100%
;
left
:
0
;
top
:
0
;
opacity
:
0.11
;
background
:
#3582ee
;
filter
:
blur
(
100
rpx
);
}
&
::after
{
width
:
1484.32
rpx
;
height
:
160.02
rpx
;
opacity
:
0.12
;
background-image
:
linear-gradient
(
125deg
,
#65b8f8
36%
,
#3582ee
79%
);
filter
:
blur
(
74
rpx
);
position
:
absolute
;
left
:
480
rpx
;
bottom
:
0
;
content
:
""
;
}
&
-one
{
position
:
absolute
;
left
:
0
;
bottom
:
44
rpx
;
width
:
643.02
rpx
;
height
:
258.78
rpx
;
opacity
:
0.4
;
background
:
#ebfffd
;
filter
:
blur
(
36
rpx
);
}
&
-two
{
position
:
absolute
;
width
:
450
rpx
;
height
:
450
rpx
;
opacity
:
0.24
;
background
:
#ffffff
;
box-shadow
:
inset
2
rpx
2
rpx
0
2
rpx
#ffffff80
;
border
:
100%
;
left
:
-225
rpx
;
bottom
:
-225
rpx
;
border-radius
:
100%
;
}
&
-three
{
width
:
762.7
rpx
;
height
:
210.92
rpx
;
opacity
:
0.16
;
background
:
#fff
;
box-shadow
:
inset
2
rpx
2
rpx
0
2
rpx
#ffffff80
;
background-color
:
#fff
;
position
:
fixed
;
left
:
0
;
top
:
0
;
border-radius
:
50%
;
transition
:
all
2s
;
z-index
:
2
;
}
}
}
@keyframes
bottom-move
{
0
%
{
transform
:
translate
(
0
);
}
100
%
{
transform
:
translate
(
300%
,
-50%
);
}
}
}
.home
,
.home
,
.detail
{
.detail
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment