Commit 1c8029ce authored by jiangjiantao's avatar jiangjiantao

前后屏联合调试

parent a0041802
...@@ -8,7 +8,7 @@ App({ ...@@ -8,7 +8,7 @@ App({
TEST_URL: "https://cashier.test.miyahub.net/", TEST_URL: "https://cashier.test.miyahub.net/",
RELEASE_URL: "https://cashier.miyahub.com/", RELEASE_URL: "https://cashier.miyahub.com/",
BASE_URL: null, BASE_URL: null,
appId: "1542075029346", appId: "2021001107603212",
//小程序容器版本 //小程序容器版本
containerVersionCode: null, containerVersionCode: null,
localAccountInfo:null, localAccountInfo:null,
...@@ -30,17 +30,17 @@ App({ ...@@ -30,17 +30,17 @@ App({
} }
}); });
//添加后屏小程序 //添加后屏小程序
// my.ix.addExtensionApp({ my.ix.addExtensionApp({
// appId: "****************", appId: "2021001107617164",
// // 填入后屏小程序的 AppID // 填入后屏小程序的 AppID
// type: "screen", type: "screen",
// success: (res) => { success: (res) => {
// console.log("addExtensionApp success:", res) console.log("addExtensionApp success:", res)
// }, },
// fail: (res) => { fail: (res) => {
// console.log("addExtensionApp fail:", res) console.log("addExtensionApp fail:", res)
// }, },
// }) })
}, },
onShow(options) { onShow(options) {
// 从后台被 scheme 重新打开 // 从后台被 scheme 重新打开
......
...@@ -153,7 +153,7 @@ Page({ ...@@ -153,7 +153,7 @@ Page({
else else
console.log('RESULT: ' + res.bizType); console.log('RESULT: ' + res.bizType);
}); });
} catch { } catch(err) {
console.log("收银台启动回调 异常==>" + JSON.stringify(err)); console.log("收银台启动回调 异常==>" + JSON.stringify(err));
} }
......
...@@ -7,6 +7,7 @@ import {API_USE_COUPON} from '../../const/apiurl' ...@@ -7,6 +7,7 @@ import {API_USE_COUPON} from '../../const/apiurl'
Page({ Page({
data: { data: {
goods: [], goods: [],
//单位是元
totalPrice: 0.00, totalPrice: 0.00,
totalQuantity: 0, totalQuantity: 0,
totalDisc:0.00, totalDisc:0.00,
...@@ -143,7 +144,9 @@ Page({ ...@@ -143,7 +144,9 @@ Page({
//跳转结算页面 //跳转结算页面
goBalance() { goBalance() {
my.navigateTo({ 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,
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment