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
085215aa
Commit
085215aa
authored
Jul 25, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
478b4cbd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
6 deletions
+38
-6
Search.vue
src/components/index/Search.vue
+36
-5
index.vue
src/pages/index/index.vue
+2
-1
arrow.png
src/static/arrow.png
+0
-0
magnifyingGlass.png
src/static/magnifyingGlass.png
+0
-0
No files found.
src/components/index/Search.vue
View file @
085215aa
<
template
>
<
template
>
<view
class=
"search"
>
<view
class=
"search"
>
<wd-icon
name=
"thin-arrow-left"
class=
"icon"
></wd-icon>
<image
@
tap=
"test2"
class=
"arrow"
src=
"../../static/arrow.png"
mode=
"aspectFit|aspectFill|widthFix"
/>
<slot></slot>
<slot></slot>
<view
class=
"searchBox"
><input
type=
"text"
:value=
"test"
/></view>
<view
class=
"searchBox"
>
<image
class=
"magnifyingGlass"
src=
"../../static/magnifyingGlass.png"
mode=
"aspectFit|aspectFill|widthFix"
/>
<input
type=
"text"
:value=
"test"
class=
"text"
/>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -22,6 +34,12 @@ onMounted(() => {
...
@@ -22,6 +34,12 @@ onMounted(() => {
},
},
});
});
});
});
const
test2
=
()
=>
{
xma
.
navigateTo
({
url
:
'/page/index/index'
,
});
};
function
toUIComponentsDoc
()
{
function
toUIComponentsDoc
()
{
window
.
open
(
'https://wot-design-uni.netlify.app/component/button.html'
);
window
.
open
(
'https://wot-design-uni.netlify.app/component/button.html'
);
}
}
...
@@ -42,9 +60,10 @@ function onHandleClick() {
...
@@ -42,9 +60,10 @@ function onHandleClick() {
margin-top
:
44rpx
;
margin-top
:
44rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.icon
{
padding-left
:
20rpx
;
width
:
22rpx
;
.arrow
{
height
:
22rpx
;
width
:
15rpx
;
height
:
24rpx
;
}
}
.searchBox
{
.searchBox
{
opacity
:
1
;
opacity
:
1
;
...
@@ -52,6 +71,18 @@ function onHandleClick() {
...
@@ -52,6 +71,18 @@ function onHandleClick() {
height
:
56rpx
;
height
:
56rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
28rpx
28rpx
28rpx
28rpx
;
border-radius
:
28rpx
28rpx
28rpx
28rpx
;
display
:
flex
;
align-items
:
center
;
padding-left
:
20rpx
;
margin-left
:
20rpx
;
.magnifyingGlass
{
width
:
26rpx
;
height
:
26rpx
;
}
.text
{
margin-left
:
10rpx
;
font-size
:
24rpx
;
}
}
}
}
}
</
style
>
</
style
>
src/pages/index/index.vue
View file @
085215aa
...
@@ -36,7 +36,8 @@ function onHandleClick() {
...
@@ -36,7 +36,8 @@ function onHandleClick() {
overflow
:
hidden
;
overflow
:
hidden
;
.food
{
.food
{
width
:
178rpx
;
width
:
178rpx
;
height
:
52rpx
;
height
:
45rpx
;
margin-left
:
25rpx
;
}
}
}
}
}
}
...
...
src/static/arrow.png
0 → 100644
View file @
085215aa
209 Bytes
src/static/magnifyingGlass.png
0 → 100644
View file @
085215aa
654 Bytes
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