Commit 1c8029ce authored by jiangjiantao's avatar jiangjiantao

前后屏联合调试

parent a0041802
......@@ -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 重新打开
......
......@@ -153,7 +153,7 @@ Page({
else
console.log('RESULT: ' + res.bizType);
});
} catch {
} catch(err) {
console.log("收银台启动回调 异常==>" + JSON.stringify(err));
}
......
......@@ -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,
});
},
......
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