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
1a5778db
Commit
1a5778db
authored
Oct 10, 2022
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复首页取单码异常问题
parent
74096345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
pages/menu/menu.vue
+12
-10
No files found.
pages/menu/menu.vue
View file @
1a5778db
...
@@ -269,18 +269,20 @@ export default {
...
@@ -269,18 +269,20 @@ export default {
if
([
'2'
,
'3'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
){
if
([
'2'
,
'3'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
){
this
.
$refs
.
OrderQrCode
.
open
(
this
.
orderInfo
,
""
);
this
.
$refs
.
OrderQrCode
.
open
(
this
.
orderInfo
,
""
);
return
;
return
;
}
else
{
this
.
$refs
.
OrderQrCode
.
open
(
this
.
orderInfo
,
this
.
orderInfo
.
pickCode
)
}
}
new
QRCode
(
'myQrcode2'
,
{
//
new QRCode('myQrcode2', {
text
:
this
.
orderInfo
.
pickCode
,
//
text: this.orderInfo.pickCode,
width
:
141
,
//canvas 画布的宽
//
width: 141, //canvas 画布的宽
height
:
141
,
//canvas 画布的高
//
height: 141, //canvas 画布的高
padding
:
0
,
// 生成二维码四周自动留边宽度,不传入默认为0
//
padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0
correctLevel
:
QRCode
.
CorrectLevel
.
L
,
// 二维码可辨识度
//
correctLevel: QRCode.CorrectLevel.L, // 二维码可辨识度
callback
:
(
res
)
=>
{
//
callback: (res) => {
this
.
$refs
.
OrderQrCode
.
open
(
this
.
orderInfo
,
res
.
path
)
//
this.$refs.OrderQrCode.open(this.orderInfo, res.path)
}
//
}
})
//
})
},
},
showArea
()
{
showArea
()
{
console
.
log
(
this
.
$refs
)
console
.
log
(
this
.
$refs
)
...
...
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