Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
82043982
Commit
82043982
authored
Aug 20, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
顶部吸附
parent
2ee28736
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
listFood.vue
src/pages/index/listFood.vue
+12
-2
detail.vue
src/pages/storeEntry/detail.vue
+3
-3
No files found.
src/pages/index/listFood.vue
View file @
82043982
...
...
@@ -9,7 +9,7 @@
></search>
<view
class=
"head"
>
<view
class=
"top"
:style=
"
{ backgroundImage: topBg }">
</view>
<view
class=
"bootom"
>
<view
class=
"bootom"
:style=
"
{ top }"
>
<view
class=
"bootom-top"
>
<view
class=
"option"
@
tap=
"locationFiltering(0)"
>
<text
:class=
"
{ rotate: rotate }">全部烧烤烤肉
</text>
...
...
@@ -98,6 +98,7 @@ const cardData = ref([]);
const
backgroundBox
=
ref
(
''
);
const
backIcon
=
ref
(
'white'
);
const
title
=
ref
(
''
);
const
top
=
ref
(
null
);
let
total
;
const
paramsId
=
{
parentId
:
null
,
...
...
@@ -116,11 +117,20 @@ onLoad((options) => {
const
{
categoryId
,
place
}
=
options
;
paramsId
.
parentId
=
categoryId
;
getByParentIdData
();
getTop
();
getByType
({
place
}).
then
((
res
)
=>
{
topBg
.
value
=
`url(
${
import
.
meta
.
env
.
VITE_APP_IMG_URL
+
res
.
data
[
0
].
imgUrl
}
)`
;
});
});
// 获取位置板块贴合高度
const
getTop
=
()
=>
{
xma
.
xh
.
getMenuButtonBoundingClientRect
({
success
(
res
)
{
top
.
value
=
(
res
.
top
+
res
.
bottom
)
/
2
+
25
+
'px'
;
},
});
};
const
refresh
=
()
=>
{
delete
listParams
.
distance
;
delete
listParams
.
area
;
...
...
@@ -295,7 +305,7 @@ page {
justify-content
:
space-around
;
border-radius
:
6rpx
;
background
:
#ffffff
;
position
:
relative
;
position
:
sticky
;
.bootom-top
{
display
:
flex
;
align-items
:
center
;
...
...
src/pages/storeEntry/detail.vue
View file @
82043982
...
...
@@ -161,9 +161,9 @@
label-width=
"100px"
v-model=
"formData.intro"
prop=
"intro"
auto-height
show-word-limit
:maxlength=
"120"
auto-height
show-word-limit
:maxlength=
"120"
/>
<wd-button
type=
"error"
width=
"80%"
class=
"submitBTN"
@
tap=
"submitData"
>
提交
</wd-button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment