Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
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
hooloo
mp
user
Commits
be335291
Commit
be335291
authored
Jun 16, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页部分样式效果
parent
32a113a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
39 deletions
+52
-39
components/menuAssembly/index.vue
+27
-17
pages/menu/menu.vue
+25
-22
No files found.
components/menuAssembly/index.vue
View file @
be335291
<
template
>
<view
class=
"page-body"
>
<scroll-view
class=
"nav-left"
scroll-y
:scroll-top=
"scrollLeftTop"
scroll-with-animation
>
<scroll-view
class=
"nav-left"
:class=
"buied?'buiedcss':''"
scroll-y
:scroll-top=
"scrollLeftTop"
scroll-with-animation
>
<view
class=
"nav-left-item"
v-for=
"item in classifyData"
@
click=
"categoryClickMain(item.id)"
:key=
"item.id"
:class=
"item.id == categoryId ? 'active' : ''"
>
<span>
{{
item
.
name
}}
</span>
<view
:class=
"item.id == categoryId ? 'active-line' : ''"
></view>
</view>
</scroll-view>
<scroll-view
class=
"nav-right"
scroll-y
:scroll-top=
"scrollTop"
@
scroll=
"scroll"
@
touchstart=
"openScroll"
<scroll-view
class=
"nav-right"
:class=
"buied?'buiedcss':''"
scroll-y
:scroll-top=
"scrollTop"
@
scroll=
"scroll"
@
touchstart=
"openScroll"
scroll-with-animation
>
<view
v-for=
"category in classifyData"
:id=
"category.id"
:key=
"category.id"
class=
"box"
>
<view
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
...
...
@@ -28,7 +28,7 @@
<view
class=
"price"
>
¥
<text
class=
"num"
>
{{
getSku
(
item
).
price
}}
</text></view>
</view>
</view>
<u-icon
v-if=
"getSku(item).state==1"
class=
"add"
name=
"plus-circle-fill"
color=
"#
2979ff
"
@
click
.
stop=
"getallNum(item, category)"
size=
"22"
></u-icon>
<u-icon
v-if=
"getSku(item).state==1"
class=
"add"
name=
"plus-circle-fill"
color=
"#
003AE9
"
@
click
.
stop=
"getallNum(item, category)"
size=
"22"
></u-icon>
<div
v-else
style=
"color: orangered;font-size: 22rpx;"
>
已售罄
</div>
</view>
</view>
...
...
@@ -39,7 +39,7 @@
<
script
>
export
default
{
name
:
'menuAssembly'
,
watch
:
{}
,
props
:[
'buied'
]
,
data
()
{
return
{
classifyData
:
[],
...
...
@@ -354,7 +354,7 @@ export default {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
box-shadow
:
0px
3px
2px
#f4f2f2
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
}
.nav-left-item
:last-child
{
...
...
@@ -365,10 +365,12 @@ export default {
height
:
calc
(
100vh
-
376
rpx
);
overflow
:
auto
;
box-sizing
:
border-box
;
padding-top
:
3
0
rpx
;
padding-top
:
6
0
rpx
;
width
:
596
rpx
;
}
.buiedcss
{
height
:
calc
(
100vh
-
376
rpx
-
183
rpx
);
}
.box
{
display
:
block
;
overflow
:
hidden
;
...
...
@@ -382,12 +384,13 @@ export default {
}
.right-title
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
padding-left
:
28
rpx
;
margin-bottom
:
40
rpx
;
height
:
44
rpx
;
font-size
:
32
rpx
;
font-size
:
28
rpx
;
font-weight
:
600
;
color
:
#
000000
;
color
:
#
333333
;
line-height
:
44
rpx
;
}
...
...
@@ -412,20 +415,22 @@ export default {
flex
:
1
;
.goods-name
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-size
:
28
rpx
;
font-weight
:
500
;
color
:
#
000000
;
color
:
#
333333
;
}
.tags
{
.tag-item
{
font-family
:
Arial
,
Helvetica
SC
;
height
:
24
rpx
;
border-radius
:
4
rpx
;
b
order
:
2
rpx
solid
#006ECF
;
b
ackground-color
:
#f0edf1
;
margin-right
:
10
rpx
;
padding
:
4
rpx
6
rpx
;
font-size
:
16
rpx
;
color
:
#
006ECF
;
font-size
:
20
rpx
;
color
:
#
999999
;
line-height
:
24
rpx
;
display
:
inline-block
;
}
...
...
@@ -437,6 +442,7 @@ export default {
font-weight
:
400
;
color
:
#666666
;
line-height
:
40
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
.desc
{
flex
:
1
;
...
...
@@ -445,13 +451,14 @@ export default {
.mon
{
.discount
{
font-family
:
Futura
,
Arial
,
sans-serif
;
display
:
inline-block
;
height
:
32
rpx
;
font-size
:
2
4
rpx
;
color
:
#
EB5F17
;
font-size
:
2
8
rpx
;
color
:
#
333333
;
line-height
:
32
rpx
;
margin-right
:
6
rpx
;
font-weight
:
8
00
;
font-weight
:
6
00
;
}
.price
{
...
...
@@ -484,8 +491,11 @@ export default {
}
.active
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#000000
;
color
:
#333333
;
font-size
:
24
rpx
;
box-shadow
:
0px
2px
3px
#f4f2f2
;
background
:
#fff
;
}
...
...
pages/menu/menu.vue
View file @
be335291
...
...
@@ -23,18 +23,17 @@
</view>
</view>
<view>
<u-icon
name=
"arrow-right"
class=
"arrow-right-select"
color=
"#717171"
></u-icon>
<u-icon
name=
"arrow-right"
v-if=
"userms"
class=
"arrow-right-select"
color=
"#717171"
></u-icon>
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立刻登录
</button>
</view>
</view>
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立刻登录
</button>
</view>
</view>
<view
class=
"order-banner"
v-if=
"buied"
@
click=
"openQrcode"
>
<view
class=
"info"
>
<view
class=
"first"
>
取单码:
{{
orderInfo
.
orderNum
}}
</view>
<view
class=
"first"
>
取单码:
<text
class=
"first-code"
>
{{
orderInfo
.
orderNum
}}
</text>
</view>
<view
class=
"second"
>
请您耐心等候,剩余等候时间
<text
class=
"time"
>
{{
orderInfo
.
waitTime
}}
</text>
分钟
</view>
</view>
<view
class=
"line"
></view>
...
...
@@ -46,7 +45,7 @@
</view>
</view>
<ShopCar
ref=
"shopbar"
/>
<MenuAssembly
ref=
"MenuAssembly"
@
getallNum=
"getallNum"
/>
<MenuAssembly
ref=
"MenuAssembly"
@
getallNum=
"getallNum"
:buied=
"buied"
/>
<u-picker
@
cancel=
"show = false"
:show=
"show"
:immediateChange=
"true"
ref=
"uPicker"
:columns=
"columns"
@
confirm=
"confirm"
keyName=
"name"
@
change=
"changeHandler"
></u-picker>
<OrderQrCode
ref=
"OrderQrCode"
/>
...
...
@@ -407,16 +406,15 @@ export default {
}
.order-banner
{
width
:
686
rpx
;
width
:
710
rpx
;
height
:
179
rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
4
rpx
8
rpx
0
rpx
rgba
(
166
,
166
,
166
,
0.5
);
border-radius
:
10
rpx
;
box-shadow
:
4
rpx
2
rpx
4
rpx
3
rpx
#f3f1f4
;
box-sizing
:
border-box
;
position
:
relative
;
left
:
32
rpx
;
top
:
-8
rpx
;
z-index
:
1
;
left
:
20
rpx
;
top
:
12
rpx
;
z-index
:
1
0
;
display
:
flex
;
.info
{
...
...
@@ -425,12 +423,17 @@ export default {
.first
{
height
:
44
rpx
;
font-size
:
32
rpx
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#
323232
;
color
:
#
6d6a6d
;
line-height
:
44
rpx
;
margin-top
:
40
rpx
;
.first-code{
font-family
:
Arial
,
Helvetica
SC
;
font-size
:
28
rpx
;
color
:
#333333
;
}
}
.second
{
...
...
@@ -439,14 +442,14 @@ export default {
font-size
:
24
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#
323232
;
color
:
#
a4a2a5
;
line-height
:
34
rpx
;
letter-spacing
:
0
rpx
;
.time
{
font-size
:
28
rpx
;
font-family
:
Arial-BoldMT
,
Arial
;
font-size
:
32
rpx
;
font-family
:
Futura
,
Arial
,
sans-serif
;
font-weight
:
normal
;
color
:
#00
6ECF
;
color
:
#00
3ae9
;
margin
:
0
16
rpx
;
}
}
...
...
@@ -455,7 +458,7 @@ export default {
.line
{
width
:
0
;
height
:
104
rpx
;
border-right
:
4
rpx
solid
#006ECF
;
border-right
:
2
rpx
solid
#f8f5f8
;
position
:
absolute
;
right
:
188
rpx
;
top
:
36
rpx
;
...
...
@@ -487,7 +490,7 @@ export default {
font-size
:
16
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#
666666
;
color
:
#
999999
;
line-height
:
22
rpx
;
}
}
...
...
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