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
7b560fb4
Commit
7b560fb4
authored
Aug 14, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
8e579966
a8103b2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
Search.vue
src/components/index/Search.vue
+3
-17
index.vue
src/pages/index/index.vue
+2
-2
No files found.
src/components/index/Search.vue
View file @
7b560fb4
<
template
>
<
template
>
<view
class=
"
cont
ent"
:style=
"
{ height: contentHeight, background: backgroundBox }">
<view
class=
"
searchCompon
ent"
:style=
"
{ height: contentHeight, background: backgroundBox }">
<view
class=
"search"
:style=
"
{ background }">
<view
class=
"search"
:style=
"
{ background }">
<wd-icon
<wd-icon
v-if=
"show"
v-if=
"show"
...
@@ -48,13 +48,10 @@ const props = defineProps({
...
@@ -48,13 +48,10 @@ const props = defineProps({
},
},
});
});
const
contentHeight
=
ref
(
'100rpx'
);
const
contentHeight
=
ref
(
'100rpx'
);
const
emit
=
defineEmits
([
'toSearch'
]);
// const title = ref('小程序平台');
const
{
countInfo
,
addCount
}
=
useCountStore
();
onLoad
(()
=>
{
onLoad
(()
=>
{
xma
.
xh
.
getSystemInfo
({
xma
.
xh
.
getSystemInfo
({
success
(
res
)
{
success
(
res
)
{
console
.
log
(
'设备信息'
,
res
);
// 设备信息
//
console.log('设备信息', res); // 设备信息
},
},
});
});
xma
.
xh
.
getMenuButtonBoundingClientRect
({
xma
.
xh
.
getMenuButtonBoundingClientRect
({
...
@@ -69,10 +66,6 @@ onLoad(() => {
...
@@ -69,10 +66,6 @@ onLoad(() => {
},
},
});
});
});
});
const
search
=
(
res
)
=>
{
const
keyword
=
res
.
detail
.
value
;
emit
(
'toSearch'
,
keyword
);
};
// 返回上一级
// 返回上一级
const
back
=
()
=>
{
const
back
=
()
=>
{
...
@@ -80,17 +73,10 @@ const back = () => {
...
@@ -80,17 +73,10 @@ const back = () => {
delta
:
1
,
delta
:
1
,
});
});
};
};
function
toUIComponentsDoc
()
{
window
.
open
(
'https://wot-design-uni.netlify.app/component/button.html'
);
}
function
onHandleClick
()
{
addCount
();
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.
cont
ent
{
.
searchCompon
ent
{
position
:
sticky
;
position
:
sticky
;
top
:
0
;
top
:
0
;
z-index
:
999999
;
z-index
:
999999
;
...
...
src/pages/index/index.vue
View file @
7b560fb4
...
@@ -256,8 +256,8 @@ function jumpProductDetails(item) {
...
@@ -256,8 +256,8 @@ function jumpProductDetails(item) {
// });
// });
// };
// };
// 搜索
// 搜索
const
toSearch
=
(
keyword
)
=>
{
const
toSearch
=
(
res
)
=>
{
listParams
.
keyword
=
keyword
;
listParams
.
keyword
=
res
.
detail
.
value
;
reset
();
reset
();
getMerchantList
();
getMerchantList
();
};
};
...
...
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