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
f88692f8
Commit
f88692f8
authored
Feb 21, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
83424076
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
actioncmd.js
const/actioncmd.js
+4
-0
home.js
pages/home/home.js
+19
-0
scan.js
pages/scan/scan.js
+1
-1
No files found.
const/actioncmd.js
View file @
f88692f8
...
@@ -30,3 +30,7 @@ export const ACTION_GO_HOME = "ACTION_GO_HOME";
...
@@ -30,3 +30,7 @@ export const ACTION_GO_HOME = "ACTION_GO_HOME";
//获取账户信息
//获取账户信息
export
const
ACTION_GET_ACCOUNT
=
"ACTION_GET_ACCOUNT"
;
export
const
ACTION_GET_ACCOUNT
=
"ACTION_GET_ACCOUNT"
;
//直接收款
export
const
ACTION_DIRECT_PAYMENT
=
"ACTION_DIRECT_PAYMENT"
;
pages/home/home.js
View file @
f88692f8
...
@@ -56,6 +56,25 @@ Page({
...
@@ -56,6 +56,25 @@ Page({
}
}
});
});
}
else
if
(
res
.
action
==
ACTION_DIRECT_PAYMENT
)
{
//直接收款
my
.
ix
.
sendBuddyMessage
({
target
:
getApp
().
globalData
.
backScreenAppId
,
data
:
{
action
:
ACTION_GO_BALANCE
,
data
:
res
.
data
},
success
:
(
res
)
=>
{
console
.
log
(
"通知后屏小程序跳转到结算页面 成功 ===》"
+
JSON
.
stringify
(
res
));
//去结算页面
my
.
reLaunch
({
url
:
"/pages/balance/balance?totalPrice="
+
res
.
data
+
"&totalQuantity=0&totalDisc=0"
,
});
},
fail
:
(
res
)
=>
{
console
.
log
(
"通知后屏小程序跳转到结算页面 失败 ===》 "
+
JSON
.
stringify
(
res
));
}
})
}
}
}
}
});
});
...
...
pages/scan/scan.js
View file @
f88692f8
...
@@ -219,7 +219,7 @@ Page({
...
@@ -219,7 +219,7 @@ Page({
//跳转结算页面
//跳转结算页面
goBalance
()
{
goBalance
()
{
my
.
navigateTo
({
my
.
reLaunch
({
url
:
"/pages/balance/balance?totalPrice="
+
this
.
data
.
totalPrice
+
"&totalQuantity="
+
this
.
data
.
totalQuantity
+
"&totalDisc="
+
this
.
data
.
totalDisc
,
url
:
"/pages/balance/balance?totalPrice="
+
this
.
data
.
totalPrice
+
"&totalQuantity="
+
this
.
data
.
totalQuantity
+
"&totalDisc="
+
this
.
data
.
totalDisc
,
});
});
// 存商品信息数据
// 存商品信息数据
...
...
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