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 868ca039
authored
Jul 09, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
设置置顶通知
1 parent
9a47f6af
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
assets/css/sprite.scss
assets/images/sprite.png
assets/spritesmith/notice-success.png
pages/common/serviceDetail/index.vue
assets/css/sprite.scss
View file @
868ca03
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
868ca03
2.41 MB
|
W:
|
H:
2.42 MB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/spritesmith/notice-success.png
0 → 100644
View file @
868ca03
1.94 KB
pages/common/serviceDetail/index.vue
View file @
868ca03
...
@@ -40,11 +40,18 @@
...
@@ -40,11 +40,18 @@
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
<uni-transition
:show=
"noticeTips"
mode=
"slide-top"
>
<view
class=
"notice-tips blue"
>
<view
class=
"sprite-icon icon-notice-success"
></view>
<view>
{{ topList.includes(Number(moduleType)) ? '置顶' : '取消置顶' }}成功
</view>
</view>
</uni-transition>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
const
PAGE_SIZE
=
10
const
PAGE_SIZE
=
10
const
PAGE_NUM
=
1
const
PAGE_NUM
=
1
let
timer
=
null
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
moduleTypeEnum
,
moduleContentEnum
}
from
'./components/contant'
import
{
moduleTypeEnum
,
moduleContentEnum
}
from
'./components/contant'
import
ServiceList
from
'./components/ServiceList.vue'
;
import
ServiceList
from
'./components/ServiceList.vue'
;
...
@@ -68,7 +75,8 @@ export default {
...
@@ -68,7 +75,8 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
scrollTop
:
0
,
scrollTop
:
0
,
isLoading
:
false
,
isLoading
:
false
,
userInfo
:
{}
userInfo
:
{},
noticeTips
:
false
}
}
},
},
computed
:
{
computed
:
{
...
@@ -336,7 +344,8 @@ export default {
...
@@ -336,7 +344,8 @@ export default {
// 置顶,取消置顶
// 置顶,取消置顶
handleStickTop
()
{
handleStickTop
()
{
console
.
log
(
'置顶'
)
console
.
log
(
'置顶'
)
const
{
phone
,
shopMerchantId
,
sceneType
}
=
this
.
userInfo
clearTimeout
(
timer
)
const
{
phone
,
shopMerchantId
,
sceneType
}
=
this
.
userInfo
const
_topInfo
=
uni
.
$storage
.
get
(
'noticeTopInfo'
)
||
{}
const
_topInfo
=
uni
.
$storage
.
get
(
'noticeTopInfo'
)
||
{}
const
key
=
`
${
phone
}
-
${
shopMerchantId
}
-
${
sceneType
}
`
const
key
=
`
${
phone
}
-
${
shopMerchantId
}
-
${
sceneType
}
`
let
_topList
=
_topInfo
[
key
]
||
[]
let
_topList
=
_topInfo
[
key
]
||
[]
...
@@ -347,6 +356,10 @@ export default {
...
@@ -347,6 +356,10 @@ export default {
}
}
_topInfo
[
key
]
=
_topList
_topInfo
[
key
]
=
_topList
this
.
topList
=
_topList
this
.
topList
=
_topList
this
.
noticeTips
=
true
timer
=
setTimeout
(()
=>
{
this
.
noticeTips
=
false
},
3000
)
uni
.
$storage
.
set
(
'noticeTopInfo'
,
_topInfo
)
uni
.
$storage
.
set
(
'noticeTopInfo'
,
_topInfo
)
}
}
}
}
...
@@ -489,4 +502,24 @@ export default {
...
@@ -489,4 +502,24 @@ export default {
padding
:
toRpx
(
30
)
0
;
padding
:
toRpx
(
30
)
0
;
font-size
:
toRpx
(
24
);
font-size
:
toRpx
(
24
);
}
}
.notice-tips
{
position
:
fixed
;
top
:
toRpx
(
160
);
left
:
50%
;
transform
:
translateX
(
-50%
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#4673ff
;
font-size
:
toRpx
(
28
);
padding
:
toRpx
(
16
)
toRpx
(
24
);
border-radius
:
toRpx
(
8
);
z-index
:
1
;
&.blue
{
background
:
#4673ff1
a
;
}
.icon-notice-success
{
margin-right
:
toRpx
(
16
);
}
}
</
style
>
</
style
>
\ No newline at end of file
\ 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