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 f89e3d1a
authored
Jun 24, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
c684bdb2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
125 additions
and
0 deletions
pages/equity/detail/components/Guarantee.vue
pages/equity/detail/components/PartsPop.vue
pages/equity/detail/components/Guarantee.vue
View file @
f89e3d1
This diff is collapsed.
Click to expand it.
pages/equity/detail/components/PartsPop.vue
0 → 100644
View file @
f89e3d1
<
template
>
<uni-popup
ref=
"partsRef"
type=
"center"
:mask-click=
"false"
border-radius=
"16px 16px 0 0"
>
<view
class=
"pop-wrapper"
>
<view
class=
"screen-container"
>
<image
class=
"screen-image"
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/screen-1.webp"
/>
<view
class=
"feature-container"
>
<view
class=
"feature-title"
>
{{
screenInfo
.
title
}}
</view>
<view
class=
"feature-description"
>
{{
screenInfo
.
detail
}}
</view>
</view>
</view>
<view
class=
"notice-container"
>
<view
class=
"notice-title"
>
注意事项:
</view>
{{
screenInfo
.
tips
}}
</view>
</view>
<image
@
click=
"close"
class=
"icon-close"
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/icon-close.webp"
/>
</uni-popup>
</
template
>
<
script
>
const
SCREEN_INFO
=
[
{
name
:
'control'
,
title
:
'中控大屏'
,
detail
:
'导航、控制、娱乐、通信、智能助手'
,
tips
:
'避免长时间暴晒、液体泼溅、硬物撞击。'
},
{
name
:
'compressor'
,
title
:
'空调压缩机'
,
detail
:
'车内空气制冷、除湿,保持车内外空气循环'
,
tips
:
'正确启动和关闭,周期性清理灰尘及更换滤芯。'
},
{
name
:
'airSuspension'
,
title
:
'空气悬挂'
,
detail
:
'提升通过性、驾驶舒适性及操控感'
,
tips
:
'避免异物卡阻或频繁调整悬挂高度,及时处理故障报警。'
}
]
export
default
{
name
:
'PartsPop'
,
data
()
{
return
{
screenInfo
:
{}
// screenInfo: SCREEN_INFO
}
},
methods
:
{
show
(
name
)
{
console
.
log
(
name
,
'===='
)
this
.
screenInfo
=
SCREEN_INFO
.
find
(
item
=>
item
.
name
===
name
)
console
.
log
(
this
.
screenInfo
)
this
.
$refs
.
partsRef
.
open
(
"center"
);
},
close
()
{
this
.
$refs
.
partsRef
.
close
();
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.pop-wrapper
{
position
:
relative
;
background-color
:
#FFF
;
border-radius
:
40
rpx
;
width
:
1400
rpx
;
height
:
928
rpx
;
.screen-container
{
width
:
100%
;
height
:
784
rpx
;
position
:
relative
;
.feature-container
{
position
:
absolute
;
bottom
:
48
rpx
;
left
:
64
rpx
;
color
:
#fff
;
.feature-title
{
font-weight
:
500
;
font-size
:
40
rpx
;
}
.feature-description
{
font-size
:
28
rpx
;
margin-top
:
8
rpx
;
color
:
rgba
(
255
,
255
,
255
,
0.7
);
}
}
}
.screen-image
{
width
:
100%
;
height
:
100%
;
}
.notice-container
{
display
:
flex
;
background-color
:
#fff
;
padding
:
48
rpx
68
rpx
56
rpx
;
font-size
:
26
rpx
;
color
:
#141414
;
border-radius
:
0
0
40
rpx
40
rpx
;
.notice-title
{
color
:
#666666
;
}
}
}
.icon-close
{
position
:
absolute
;
bottom
:
-140
rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
width
:
72
rpx
;
height
:
72
rpx
;
}
</
style
>
\ No newline at end of file
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