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
aaec373e
Commit
aaec373e
authored
Feb 25, 2020
by
gaodapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加会员相关
parent
3162c845
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
actioncmd.js
const/actioncmd.js
+3
-0
scan.js
pages/scan/scan.js
+7
-1
No files found.
const/actioncmd.js
View file @
aaec373e
...
...
@@ -7,6 +7,9 @@ export const ACTION_REPRINT = "ACTION_REPRINT";
//商品信息
export
const
ACTION_GOODS
=
"ACTION_GOODS"
;
//会员登录
export
const
ACTION_MEMBER
=
"ACTION_MEMBER"
;
//去结算页面
export
const
ACTION_GO_BALANCE
=
"ACTION_GO_BALANCE"
;
...
...
pages/scan/scan.js
View file @
aaec373e
...
...
@@ -3,6 +3,7 @@ import { Page } from '../../utils/scan';
import
{
API_SCAN
}
from
'../../const/apiurl'
import
{
API_USE_COUPON
}
from
'../../const/apiurl'
import
{
ACTION_GOODS
}
from
'../../const/actioncmd'
import
{
ACTION_MEMBER
}
from
'../../const/actioncmd'
import
{
ACTION_REQUEST_GOOD_INFO
}
from
'../../const/actioncmd'
import
{
ACTION_GO_BALANCE
}
from
'../../const/actioncmd'
import
{
ACTION_GO_HOME
}
from
'../../const/actioncmd'
...
...
@@ -42,7 +43,12 @@ Page({
totalDisc
:
viewGoodsInfo
.
totalDisc
,
})
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
}
else
if
(
res
.
action
==
ACTION_MEMBER
)
{
context
.
setData
({
memberPhone
:
res
.
data
})
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
//去结算页面
context
.
goBalance
();
}
else
if
(
res
.
action
==
ACTION_REQUEST_GOOD_INFO
)
{
...
...
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