Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
04d33f34
Commit
04d33f34
authored
Jun 04, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
8502afda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
scan.js
pages/scan/scan.js
+7
-8
No files found.
pages/scan/scan.js
View file @
04d33f34
...
...
@@ -197,18 +197,17 @@ Page({
if
(
res
.
data
.
success
!=
true
)
{
my
.
showToast
({
type
:
'fail'
,
content
:
res
.
data
.
message
,
content
:
"该商品没有对应的活动"
,
duration
:
2000
});
}
else
{
var
arr
=
Object
.
keys
(
res
.
data
.
data
);
if
(
arr
.
length
==
0
)
{
if
(
res
.
data
.
data
==
null
||
res
.
data
.
data
.
barcode
==
null
){
my
.
showToast
({
type
:
'fail'
,
content
:
"该商品没有对应的活动"
,
duration
:
2000
});
}
else
{
}
else
{
//识别商品成功
this
.
parseGoodInfo
(
res
.
data
.
data
);
console
.
log
(
"识别商品信息成功"
);
...
...
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