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
51e585ca
Commit
51e585ca
authored
Aug 01, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页分类图样式问题
parent
6fbb34ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
components/menuAssembly/index.vue
+4
-4
pages/menu/menu.vue
+2
-2
No files found.
components/menuAssembly/index.vue
View file @
51e585ca
...
...
@@ -4,7 +4,7 @@
<view
class=
"nav-left-item"
v-for=
"(item,index) in classifyData"
@
click=
"categoryClickMain(item.id)"
:key=
"item.id"
:class=
"item.id == categoryId ? 'active' : ''"
>
<view
class=
"imgbox"
v-if=
"item.src"
><image
:style=
"
{'height':sizeList[index].height+'rpx','width':sizeList[index].width+'rpx'}" :src="item.src"/>
</view>
<view><span>
{{
item
.
name
}}
</span></view>
<view
:style=
"
{'margin-top':'10rpx'}"
>
<span>
{{
item
.
name
}}
</span></view>
<!--
<view
:class=
"item.id == categoryId ? 'active-line' : ''"
></view>
-->
</view>
</scroll-view>
...
...
@@ -115,9 +115,9 @@ export default {
this
.
categoryPostion
=
data
}).
exec
();
})
categorys
[
0
]?
categorys
[
0
].
src
=
'http://fakeimg.pl/
70x50
/'
:
''
categorys
[
1
]?
categorys
[
1
].
src
=
'http://fakeimg.pl/
80x60
/'
:
''
categorys
[
2
]?
categorys
[
2
].
src
=
'http://fakeimg.pl/
90x5
0/'
:
''
categorys
[
0
]?
categorys
[
0
].
src
=
'http://fakeimg.pl/
43x42
/'
:
''
categorys
[
1
]?
categorys
[
1
].
src
=
'http://fakeimg.pl/
54x34
/'
:
''
categorys
[
2
]?
categorys
[
2
].
src
=
'http://fakeimg.pl/
32x3
0/'
:
''
categorys
.
map
(
item
=>
{
this
.
imagesHeight
(
item
.
src
)
})
...
...
pages/menu/menu.vue
View file @
51e585ca
...
...
@@ -159,7 +159,7 @@ export default {
this
.
buied
=
true
;
this
.
orderInfo
=
data
.
data
}
else
{
this
.
buied
=
tru
e
this
.
buied
=
fals
e
}
},
openQrcode
()
{
...
...
@@ -170,7 +170,7 @@ export default {
}
new
QRCode
(
'myQrcode2'
,
{
text
:
111
,
text
:
this
.
orderInfo
.
pickCode
,
width
:
141
,
//canvas 画布的宽
height
:
141
,
//canvas 画布的高
padding
:
0
,
// 生成二维码四周自动留边宽度,不传入默认为0
...
...
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