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 98ac4745
authored
Jun 06, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
b49988fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
14 deletions
components/HomeFrame/index.vue
components/ToolBox.vue
env.js
pages/boutique/detail.vue
components/HomeFrame/index.vue
View file @
98ac474
<!--
* @Description: 首页
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 17:08:12
-->
<
template
>
<view
class=
"container"
...
...
@@ -97,6 +90,9 @@
src=
"../../assets/images/home/start.webp"
@
click=
"$emit('start')"
/>
<!-- <view class="start">
<view class="start-btn"></view>
</view> -->
<!-- <button
class="start"
@click="start"
...
...
@@ -180,8 +176,8 @@ import myClick from "@/mixin/click";
export
default
{
mixins
:
[
myClick
],
components
:
{
KfBox
,
SettingBox
},
props
:{
id
:
[
String
,
Number
],
props
:
{
id
:
[
String
,
Number
],
},
data
()
{
return
{
...
...
@@ -221,7 +217,7 @@ export default {
previewRef
()
{
return
this
.
$refs
.
previewRef
},
finishRef
()
{
finishRef
()
{
return
this
.
$refs
.
finish
}
},
...
...
@@ -521,10 +517,71 @@ export default {
height
:
100vh
;
box-sizing
:
border-box
;
}
@keyframes
moveAround
{
0
%,
100
%
{
top
:
0
;
left
:
0
;
transform
:
translateX
(
0
);
}
10
%,
90
%
{
/* 调整这些百分比以适应长边移动 */
top
:
0
;
left
:
calc
(
100%
-
20px
);
transform
:
translateX
(
calc
(
100%
-
20px
));
}
50
%
{
top
:
calc
(
100%
-
20px
);
left
:
calc
(
100%
-
20px
);
transform
:
translateY
(
calc
(
100%
-
20px
))
translateX
(
calc
(
100%
-
20px
));
}
40
%,
60
%
{
/* 调整这些百分比以适应短边移动 */
top
:
calc
(
100%
-
20px
);
left
:
0
;
transform
:
translateY
(
calc
(
100%
-
20px
))
translateX
(
0
);
}
}
/* 动态计算动画时长以匹配长宽比 */
.start
[
data-long
=
"true"
]
{
--duration
:
calc
(
12s
*
(
var
(
--width
)
/
var
(
--height
)));
}
.start
[
data-long
=
"false"
]
{
--duration
:
6s
;
/* 或者任何适合短边动画时长 */
}
.start
{
//
border-radius
:
48
rpx
;
//
border
:
4
rpx
solid
#fff
;
//
box-sizing
:
border-box
;
//
position
:
relative
;
//
overflow
:
hidden
;
&::after
{
content
:
""
;
position
:
absolute
;
width
:
20
rpx
;
height
:
20
rpx
;
background-color
:
white
;
/* 光环内部的颜色,可以根据需要调整 */
border-radius
:
50%
;
/* 如果希望是圆形光环,则设置为50%以形成圆形 */
box-shadow
:
0
0
40
rpx
40
rpx
rgba
(
255
,
255
,
255
,
0.5
),
/* 外发光,白色半透明 */
0
0
30px
30px
rgba
(
255
,
255
,
255
,
0.3
);
/* 可以叠加多层以增强效果 */
animation
:
moveAround
var
(
--duration
)
ease-in-out
infinite
;
}
&
-btn
{
position
:
absolute
;
width
:
calc
(
100%
-
24
rpx
);
height
:
calc
(
100%
-
24
rpx
);
background-image
:
linear-gradient
(
to
bottom
,
#48a6ff
0%
,
#2c66f7
100%
);
border-radius
:
48
rpx
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
width
:
calc
(
100
%
-
64rpx
);
height
:
336rpx
;
vertical-align
:
top
;
//
display
:
flex
;
//
justify-content
:
center
;
//
align-items
:
center
;
...
...
components/ToolBox.vue
View file @
98ac474
...
...
@@ -64,10 +64,9 @@ export default {
},
data
()
{
return
{
show
:
true
,
show
:
true
}
},
methods
:
{
hide
()
{
this
.
show
=
true
...
...
env.js
View file @
98ac474
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
2
;
const
index
=
1
;
/**
*
0本地
...
...
pages/boutique/detail.vue
View file @
98ac474
...
...
@@ -41,7 +41,7 @@
<
template
v-if=
"type != 'preview'"
>
<tool-box
ref=
"toolRef"
:data=
"
media
"
:data=
"
toolList
"
:type=
"type"
@
choose=
"choose"
@
finish=
"open"
...
...
@@ -66,6 +66,7 @@ import { mapMutations } from "vuex";
import
invitation
from
"./invitation.vue"
;
import
Case
from
"./case.vue"
;
import
history
from
"./history.vue"
;
import
utils
from
"@/utils/utils"
;
export
default
{
components
:
{
ToolBox
,
...
...
@@ -100,6 +101,11 @@ export default {
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
;
},
toolList
(){
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
media
)).
sort
(
function
(
a
,
b
)
{
return
a
.
shortSort
-
b
.
shortSort
})
}
},
mounted
()
{
},
methods
:
{
...
...
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