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
1c8029ce
Commit
1c8029ce
authored
Feb 13, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前后屏联合调试
parent
a0041802
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
app.js
app.js
+12
-12
balance.js
pages/balance/balance.js
+1
-1
scan.js
pages/scan/scan.js
+4
-1
No files found.
app.js
View file @
1c8029ce
...
...
@@ -8,7 +8,7 @@ App({
TEST_URL
:
"https://cashier.test.miyahub.net/"
,
RELEASE_URL
:
"https://cashier.miyahub.com/"
,
BASE_URL
:
null
,
appId
:
"
1542075029346
"
,
appId
:
"
2021001107603212
"
,
//小程序容器版本
containerVersionCode
:
null
,
localAccountInfo
:
null
,
...
...
@@ -30,17 +30,17 @@ App({
}
});
//添加后屏小程序
//
my.ix.addExtensionApp({
// appId: "****************
",
//
// 填入后屏小程序的 AppID
//
type: "screen",
//
success: (res) => {
//
console.log("addExtensionApp success:", res)
//
},
//
fail: (res) => {
//
console.log("addExtensionApp fail:", res)
//
},
//
})
my
.
ix
.
addExtensionApp
({
appId
:
"2021001107617164
"
,
// 填入后屏小程序的 AppID
type
:
"screen"
,
success
:
(
res
)
=>
{
console
.
log
(
"addExtensionApp success:"
,
res
)
},
fail
:
(
res
)
=>
{
console
.
log
(
"addExtensionApp fail:"
,
res
)
},
})
},
onShow
(
options
)
{
// 从后台被 scheme 重新打开
...
...
pages/balance/balance.js
View file @
1c8029ce
...
...
@@ -153,7 +153,7 @@ Page({
else
console
.
log
(
'RESULT: '
+
res
.
bizType
);
});
}
catch
{
}
catch
(
err
)
{
console
.
log
(
"收银台启动回调 异常==>"
+
JSON
.
stringify
(
err
));
}
...
...
pages/scan/scan.js
View file @
1c8029ce
...
...
@@ -7,6 +7,7 @@ import {API_USE_COUPON} from '../../const/apiurl'
Page
({
data
:
{
goods
:
[],
//单位是元
totalPrice
:
0.00
,
totalQuantity
:
0
,
totalDisc
:
0.00
,
...
...
@@ -143,7 +144,9 @@ Page({
//跳转结算页面
goBalance
()
{
my
.
navigateTo
({
url
:
"/pages/balance/balance?totalPrice="
+
this
.
data
.
totalPrice
+
"&totalQuantity="
+
this
.
data
.
totalQuantity
+
"&totalDisc="
+
this
.
data
.
totalDisc
,
url
:
"/pages/balance/balance?totalPrice=0.01"
+
"&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