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
>
<
template
>
<view
class=
"page-body"
>
<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"
<view
class=
"nav-left-item"
v-for=
"item in classifyData"
@
click=
"categoryClickMain(item.id)"
:key=
"item.id"
:class=
"item.id == categoryId ? 'active' : ''"
>
:class=
"item.id == categoryId ? 'active' : ''"
>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
<view
:class=
"item.id == categoryId ? 'active-line' : ''"
></view>
<view
:class=
"item.id == categoryId ? 'active-line' : ''"
></view>
</view>
</view>
</scroll-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
>
scroll-with-animation
>
<view
v-for=
"category in classifyData"
:id=
"category.id"
:key=
"category.id"
class=
"box"
>
<view
v-for=
"category in classifyData"
:id=
"category.id"
:key=
"category.id"
class=
"box"
>
<view
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
<view
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<view
class=
"price"
>
¥
<text
class=
"num"
>
{{
getSku
(
item
).
price
}}
</text></view>
<view
class=
"price"
>
¥
<text
class=
"num"
>
{{
getSku
(
item
).
price
}}
</text></view>
</view>
</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>
<div
v-else
style=
"color: orangered;font-size: 22rpx;"
>
已售罄
</div>
</view>
</view>
</view>
</view>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'menuAssembly'
,
name
:
'menuAssembly'
,
watch
:
{}
,
props
:[
'buied'
]
,
data
()
{
data
()
{
return
{
return
{
classifyData
:
[],
classifyData
:
[],
...
@@ -354,7 +354,7 @@ export default {
...
@@ -354,7 +354,7 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
box-shadow
:
0px
3px
2px
#f4f2f2
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
}
}
.nav-left-item
:last-child
{
.nav-left-item
:last-child
{
...
@@ -365,10 +365,12 @@ export default {
...
@@ -365,10 +365,12 @@ export default {
height
:
calc
(
100vh
-
376
rpx
);
height
:
calc
(
100vh
-
376
rpx
);
overflow
:
auto
;
overflow
:
auto
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-top
:
3
0
rpx
;
padding-top
:
6
0
rpx
;
width
:
596
rpx
;
width
:
596
rpx
;
}
}
.buiedcss
{
height
:
calc
(
100vh
-
376
rpx
-
183
rpx
);
}
.box
{
.box
{
display
:
block
;
display
:
block
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -382,12 +384,13 @@ export default {
...
@@ -382,12 +384,13 @@ export default {
}
}
.right-title
{
.right-title
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
padding-left
:
28
rpx
;
padding-left
:
28
rpx
;
margin-bottom
:
40
rpx
;
margin-bottom
:
40
rpx
;
height
:
44
rpx
;
height
:
44
rpx
;
font-size
:
32
rpx
;
font-size
:
28
rpx
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#
000000
;
color
:
#
333333
;
line-height
:
44
rpx
;
line-height
:
44
rpx
;
}
}
...
@@ -412,20 +415,22 @@ export default {
...
@@ -412,20 +415,22 @@ export default {
flex
:
1
;
flex
:
1
;
.goods-name
{
.goods-name
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#
000000
;
color
:
#
333333
;
}
}
.tags
{
.tags
{
.tag-item
{
.tag-item
{
font-family
:
Arial
,
Helvetica
SC
;
height
:
24
rpx
;
height
:
24
rpx
;
border-radius
:
4
rpx
;
border-radius
:
4
rpx
;
b
order
:
2
rpx
solid
#006ECF
;
b
ackground-color
:
#f0edf1
;
margin-right
:
10
rpx
;
margin-right
:
10
rpx
;
padding
:
4
rpx
6
rpx
;
padding
:
4
rpx
6
rpx
;
font-size
:
16
rpx
;
font-size
:
20
rpx
;
color
:
#
006ECF
;
color
:
#
999999
;
line-height
:
24
rpx
;
line-height
:
24
rpx
;
display
:
inline-block
;
display
:
inline-block
;
}
}
...
@@ -437,6 +442,7 @@ export default {
...
@@ -437,6 +442,7 @@ export default {
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
line-height
:
40
rpx
;
line-height
:
40
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
.desc
{
.desc
{
flex
:
1
;
flex
:
1
;
...
@@ -445,13 +451,14 @@ export default {
...
@@ -445,13 +451,14 @@ export default {
.mon
{
.mon
{
.discount
{
.discount
{
font-family
:
Futura
,
Arial
,
sans-serif
;
display
:
inline-block
;
display
:
inline-block
;
height
:
32
rpx
;
height
:
32
rpx
;
font-size
:
2
4
rpx
;
font-size
:
2
8
rpx
;
color
:
#
EB5F17
;
color
:
#
333333
;
line-height
:
32
rpx
;
line-height
:
32
rpx
;
margin-right
:
6
rpx
;
margin-right
:
6
rpx
;
font-weight
:
8
00
;
font-weight
:
6
00
;
}
}
.price
{
.price
{
...
@@ -484,8 +491,11 @@ export default {
...
@@ -484,8 +491,11 @@ export default {
}
}
.active
{
.active
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#000000
;
color
:
#333333
;
font-size
:
24
rpx
;
box-shadow
:
0px
2px
3px
#f4f2f2
;
background
:
#fff
;
background
:
#fff
;
}
}
...
...
pages/menu/menu.vue
View file @
be335291
...
@@ -23,18 +23,17 @@
...
@@ -23,18 +23,17 @@
</view>
</view>
</view>
</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>
</view>
</view>
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立刻登录
</button>
</view>
</view>
</view>
</view>
<view
class=
"order-banner"
v-if=
"buied"
@
click=
"openQrcode"
>
<view
class=
"order-banner"
v-if=
"buied"
@
click=
"openQrcode"
>
<view
class=
"info"
>
<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
class=
"second"
>
请您耐心等候,剩余等候时间
<text
class=
"time"
>
{{
orderInfo
.
waitTime
}}
</text>
分钟
</view>
</view>
</view>
<view
class=
"line"
></view>
<view
class=
"line"
></view>
...
@@ -46,7 +45,7 @@
...
@@ -46,7 +45,7 @@
</view>
</view>
</view>
</view>
<ShopCar
ref=
"shopbar"
/>
<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"
<u-picker
@
cancel=
"show = false"
:show=
"show"
:immediateChange=
"true"
ref=
"uPicker"
:columns=
"columns"
@
confirm=
"confirm"
keyName=
"name"
@
change=
"changeHandler"
></u-picker>
@
confirm=
"confirm"
keyName=
"name"
@
change=
"changeHandler"
></u-picker>
<OrderQrCode
ref=
"OrderQrCode"
/>
<OrderQrCode
ref=
"OrderQrCode"
/>
...
@@ -407,16 +406,15 @@ export default {
...
@@ -407,16 +406,15 @@ export default {
}
}
.order-banner
{
.order-banner
{
width
:
686
rpx
;
width
:
710
rpx
;
height
:
179
rpx
;
height
:
179
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
4
rpx
8
rpx
0
rpx
rgba
(
166
,
166
,
166
,
0.5
);
box-shadow
:
4
rpx
2
rpx
4
rpx
3
rpx
#f3f1f4
;
border-radius
:
10
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
left
:
32
rpx
;
left
:
20
rpx
;
top
:
-8
rpx
;
top
:
12
rpx
;
z-index
:
1
;
z-index
:
1
0
;
display
:
flex
;
display
:
flex
;
.info
{
.info
{
...
@@ -425,12 +423,17 @@ export default {
...
@@ -425,12 +423,17 @@ export default {
.first
{
.first
{
height
:
44
rpx
;
height
:
44
rpx
;
font-size
:
32
rpx
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#
323232
;
color
:
#
6d6a6d
;
line-height
:
44
rpx
;
line-height
:
44
rpx
;
margin-top
:
40
rpx
;
margin-top
:
40
rpx
;
.first-code{
font-family
:
Arial
,
Helvetica
SC
;
font-size
:
28
rpx
;
color
:
#333333
;
}
}
}
.second
{
.second
{
...
@@ -439,14 +442,14 @@ export default {
...
@@ -439,14 +442,14 @@ export default {
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#
323232
;
color
:
#
a4a2a5
;
line-height
:
34
rpx
;
line-height
:
34
rpx
;
letter-spacing
:
0
rpx
;
.time
{
.time
{
font-size
:
28
rpx
;
font-size
:
32
rpx
;
font-family
:
Arial-BoldMT
,
Arial
;
font-family
:
Futura
,
Arial
,
sans-serif
;
font-weight
:
normal
;
font-weight
:
normal
;
color
:
#00
6ECF
;
color
:
#00
3ae9
;
margin
:
0
16
rpx
;
margin
:
0
16
rpx
;
}
}
}
}
...
@@ -455,7 +458,7 @@ export default {
...
@@ -455,7 +458,7 @@ export default {
.line
{
.line
{
width
:
0
;
width
:
0
;
height
:
104
rpx
;
height
:
104
rpx
;
border-right
:
4
rpx
solid
#006ECF
;
border-right
:
2
rpx
solid
#f8f5f8
;
position
:
absolute
;
position
:
absolute
;
right
:
188
rpx
;
right
:
188
rpx
;
top
:
36
rpx
;
top
:
36
rpx
;
...
@@ -487,7 +490,7 @@ export default {
...
@@ -487,7 +490,7 @@ export default {
font-size
:
16
rpx
;
font-size
:
16
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#
666666
;
color
:
#
999999
;
line-height
:
22
rpx
;
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