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
2e757813
Commit
2e757813
authored
Feb 24, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixd
parent
3e2adca3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
scan.js
pages/scan/scan.js
+1
-8
No files found.
pages/scan/scan.js
View file @
2e757813
...
@@ -35,19 +35,12 @@ Page({
...
@@ -35,19 +35,12 @@ Page({
if
(
res
.
action
==
ACTION_GOODS
)
{
if
(
res
.
action
==
ACTION_GOODS
)
{
//商品信息同步
//商品信息同步
let
viewGoodsInfo
=
res
.
data
let
viewGoodsInfo
=
res
.
data
if
(
viewGoodsInfo
.
goods
==
null
||
viewGoodsInfo
.
goods
.
length
==
0
){
my
.
redirectTo
({
url
:
"/pages/home/home"
});
}
else
{
//空列表就回到首页
context
.
setData
({
context
.
setData
({
goods
:
viewGoodsInfo
.
goods
,
goods
:
viewGoodsInfo
.
goods
,
totalPrice
:
viewGoodsInfo
.
totalPrice
,
totalPrice
:
viewGoodsInfo
.
totalPrice
,
totalQuantity
:
viewGoodsInfo
.
totalQuantity
,
totalQuantity
:
viewGoodsInfo
.
totalQuantity
,
totalDisc
:
viewGoodsInfo
.
totalDisc
,
totalDisc
:
viewGoodsInfo
.
totalDisc
,
})
})
}
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
//去结算页面
//去结算页面
...
...
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