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 e3510914
authored
Jan 10, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
8227837f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
83 deletions
pages/equity/detail/components/Reception.vue
pages/equity/detail/detail.vue
pages/equity/detail/components/Reception.vue
View file @
e351091
...
@@ -9,9 +9,8 @@
...
@@ -9,9 +9,8 @@
>
>
<template
slot=
"customContent"
>
<template
slot=
"customContent"
>
<view
class=
"layout-content"
>
<view
class=
"layout-content"
>
<view
class=
"title"
>
<view
class=
"title flex"
>
<view
:class=
"['sprite-icon',`$
{isByd?'icon-byd':'icon-aito'}`]">
</view>
{{
title
}}
<view
class=
"text"
>
{{
title
}}
</view>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
<view
...
@@ -61,23 +60,11 @@
...
@@ -61,23 +60,11 @@
</template>
</template>
</view>
</view>
</view>
</view>
<view
class=
"views-box"
>
<
template
v-for=
"(i,index) in views"
>
<view
:key=
"index"
class=
"item"
:style=
"i.style"
>
<image
<image
:src=
"i.detailUrl"
:class=
"['content-image']"
class=
"img"
:src=
"views[viewIndex].detailUrl"
:style=
"i.imgStyle"
/>
/>
</view>
</view>
</
template
>
</view>
</view>
</view>
</view>
</template>
</template>
</wnCanvas>
</wnCanvas>
...
@@ -128,6 +115,7 @@ export default {
...
@@ -128,6 +115,7 @@ export default {
],
],
customerInfo
:
{},
customerInfo
:
{},
focusIndex
:
-
1
,
focusIndex
:
-
1
,
viewIndex
:
0
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -193,7 +181,7 @@ export default {
...
@@ -193,7 +181,7 @@ export default {
.layout
{
.layout
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background-image
:
url('@/assets/images/media/reception-bg.webp')
;
background-size
:
100%
;
background-size
:
100%
;
&-content
{
&-content
{
position
:
relative
;
position
:
relative
;
...
@@ -201,29 +189,33 @@ export default {
...
@@ -201,29 +189,33 @@ export default {
margin
:
$
margin
;
margin
:
$
margin
;
}
}
.title
{
.title
{
padding
:
toRpx
(
160
)
0
toRpx
(
32
)
toRpx
(
110
);
position
:
fixed
;
.sprite-icon
{
left
:
0
;
margin-bottom
:
toRpx
(
24
);
top
:
toRpx
(
48
);
}
width
:
100%
;
.text
{
justify-content
:
center
;
line-height
:
toRpx
(
112
);
z-index
:
2
;
font-weight
:
700
;
height
:
toRpx
(
96
);
font-size
:
toRpx
(
80
);
align-items
:
center
;
color
:
#333333
;
font-weight
:
500
;
}
font-size
:
toRpx
(
36
);
color
:
#1a1a1a
;
}
}
.content
{
.content
{
.form-box
{
.form-box
{
height
:
toRpx
(
80
);
height
:
toRpx
(
80
);
padding
:
0
toRpx
(
110
);
padding
:
0
toRpx
(
110
);
position
:
relative
;
z-index
:
2
;
z-index
:
1
;
position
:
absolute
;
left
:
toRpx
(
64
);
top
:
toRpx
(
168
);
padding
:
0
;
.form
{
.form
{
display
:
flex
;
display
:
flex
;
gap
:
0
toRpx
(
28
);
gap
:
0
toRpx
(
28
);
height
:
100%
;
height
:
100%
;
&-item
{
&-item
{
width
:
toRpx
(
368
);
width
:
toRpx
(
524
);
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
...
@@ -278,64 +270,25 @@ export default {
...
@@ -278,64 +270,25 @@ export default {
}
}
}
}
}
}
.views-box
{
&
-image
{
display
:
flex
;
gap
:
0
toRpx
(
48
);
padding
:
0
toRpx
(
72
);
justify-content
:
center
;
margin-top
:
toRpx
(
92
);
.item
{
height
:
toRpx
(
944
);
position
:
relative
;
.img
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
width
:
100%
;
left
:
50%
;
height
:
100%
;
transform
:
translate
(
-50%
,
-50%
);
z-index
:
1
;
aspect-ratio
:
1
/
1
;
height
:
toRpx
(
1020
);
}
}
}
.bg
{
width
:
100vw
;
height
:
100vh
;
position
:
fixed
;
left
:
0
;
top
:
0
;
}
}
}
}
}
}
.byd-layout
{
.byd-layout
{
background-image
:
url('@/assets/images/media/byd-reception-bg.webp')
!important
;
background-image
:
url('@/assets/images/media/byd-reception-bg.webp')
!important
;
.content
.views-box
{
margin-top
:
toRpx
(
44
);
.item
{
.img
{
height
:
toRpx
(
960
);
}
}
}
}
}
.aito-layout
{
.aito-layout
{
.title
{
background-image
:
url('@/assets/images/media/reception-bg.webp')
;
padding
:
toRpx
(
112
)
0
toRpx
(
40
)
toRpx
(
112
);
}
.content
{
.form-box
{
position
:
fixed
;
right
:
toRpx
(
184
);
top
:
toRpx
(
188
);
padding
:
0
;
}
.views-box
{
margin-top
:
0
;
display
:
flex
;
flex-wrap
:
wrap
;
padding
:
0
toRpx
(
38
);
gap
:
0
;
justify-content
:
flex-start
;
.item
{
width
:
toRpx
(
1132
);
.img
{
width
:
100%
;
height
:
100%
;
}
}
}
}
}
}
</
style
>
</
style
>
pages/equity/detail/detail.vue
View file @
e351091
...
@@ -173,9 +173,9 @@ export default {
...
@@ -173,9 +173,9 @@ export default {
if
(
!
e
||
!
e
.
changedTouches
||
drawStatus
||
toolList
.
length
==
0
||
e
.
changedTouches
.
length
===
0
)
return
if
(
!
e
||
!
e
.
changedTouches
||
drawStatus
||
toolList
.
length
==
0
||
e
.
changedTouches
.
length
===
0
)
return
let
halfScreenWidth
=
screenWidth
/
2
,
let
halfScreenWidth
=
screenWidth
/
2
,
touch
=
e
.
changedTouches
[
0
],
touch
=
e
.
changedTouches
[
0
],
isDistanceSignificant
=
Math
.
abs
(
touch
.
pageX
-
startX
)
>
screenWidth
/
3
,
isDistanceSignificant
=
Math
.
abs
(
touch
.
pageX
-
startX
)
>
screenWidth
/
6
,
index
=
toolList
.
findIndex
(
item
=>
item
.
id
==
id
)
index
=
toolList
.
findIndex
(
item
=>
item
.
id
==
id
)
if
(
Math
.
abs
(
this
.
startY
-
touch
.
pageY
)
>
1
0
0
)
return
if
(
Math
.
abs
(
this
.
startY
-
touch
.
pageY
)
>
1
5
0
)
return
if
(
!
scaleValueObject
[
id
])
scaleValueObject
[
id
]
=
1
if
(
!
scaleValueObject
[
id
])
scaleValueObject
[
id
]
=
1
if
(
isDistanceSignificant
&&
index
!=
-
1
&&
scaleValueObject
[
id
]
==
1
&&
!
productModelStatus
)
{
if
(
isDistanceSignificant
&&
index
!=
-
1
&&
scaleValueObject
[
id
]
==
1
&&
!
productModelStatus
)
{
const
{
nextId
,
modeName
,
title
}
=
this
.
getNextId
(
index
,
toolList
,
startX
,
halfScreenWidth
)
const
{
nextId
,
modeName
,
title
}
=
this
.
getNextId
(
index
,
toolList
,
startX
,
halfScreenWidth
)
...
...
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