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
2ddbb9d4
Commit
2ddbb9d4
authored
Jul 25, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b5a9865f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
11 deletions
+53
-11
Search.vue
src/components/index/Search.vue
+25
-7
index.vue
src/pages/index/index.vue
+28
-4
food.png
src/static/food.png
+0
-0
No files found.
src/components/index/Search.vue
View file @
2ddbb9d4
<
template
>
<view
class=
"container"
></view>
<view
class=
"search"
>
<wd-icon
name=
"thin-arrow-left"
class=
"icon"
></wd-icon>
<slot></slot>
<view
class=
"searchBox"
>
11
</view>
</view>
</
template
>
<
script
setup
>
...
...
@@ -18,12 +22,26 @@ function onHandleClick() {
</
script
>
<
style
lang=
"scss"
>
.container
{
.top
{
width
:
100%
;
height
:
440rpx
;
background
:
linear-gradient
(
180deg
,
#fa5151
0%
,
rgba
(
243
,
243
,
243
,
0
)
100%
);
border-radius
:
0rpx
0rpx
0rpx
0rpx
;
.search
{
width
:
710rpx
;
height
:
80rpx
;
background
:
rgba
(
255
,
255
,
255
,
0
.8
);
border-radius
:
16rpx
16rpx
16rpx
16rpx
;
opacity
:
0
.8
;
margin
:
0
auto
;
margin-top
:
44rpx
;
display
:
flex
;
align-items
:
center
;
.icon
{
width
:
22rpx
;
height
:
22rpx
;
}
.searchBox
{
opacity
:
1
;
width
:
256rpx
;
height
:
56rpx
;
background
:
#ffffff
;
border-radius
:
28rpx
28rpx
28rpx
28rpx
;
}
}
</
style
>
src/pages/index/index.vue
View file @
2ddbb9d4
<
template
>
<view
class=
"container"
>
<view
class=
"container"
@
tap=
"aa"
>
<view
class=
"top"
>
<
view
>
<
Search></Search
>
</
view
>
<
Search
>
<
image
class=
"food"
src=
"../../static/food.png"
mode=
"aspectFit|aspectFill|widthFix"
/
>
</
Search
>
</view>
</view>
</
template
>
<
script
setup
>
import
{
onMounted
}
from
'vue'
;
import
{
useCountStore
}
from
'@/store'
;
import
Search
from
'../../components/index/Search.vue'
;
const
title
=
ref
(
'小程序平台'
);
const
{
countInfo
,
addCount
}
=
useCountStore
();
onMounted
(()
=>
{
xma
.
xh
.
getUserProfile
({
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
async
success
(
info
)
{
xma
.
showModal
({
title
:
'提示'
,
content
:
info
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
});
},
});
});
function
toUIComponentsDoc
()
{
window
.
open
(
'https://wot-design-uni.netlify.app/component/button.html'
);
}
...
...
@@ -31,6 +50,11 @@ function onHandleClick() {
height
:
440rpx
;
background
:
linear-gradient
(
180deg
,
#fa5151
0%
,
rgba
(
243
,
243
,
243
,
0
)
100%
);
border-radius
:
0rpx
0rpx
0rpx
0rpx
;
overflow
:
hidden
;
.food
{
width
:
178rpx
;
height
:
52rpx
;
}
}
}
</
style
>
src/static/food.png
0 → 100644
View file @
2ddbb9d4
3.03 KB
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