Commit f88692f8 authored by jiangjiantao's avatar jiangjiantao

bugfix

parent 83424076
......@@ -30,3 +30,7 @@ export const ACTION_GO_HOME = "ACTION_GO_HOME";
//获取账户信息
export const ACTION_GET_ACCOUNT = "ACTION_GET_ACCOUNT";
//直接收款
export const ACTION_DIRECT_PAYMENT = "ACTION_DIRECT_PAYMENT";
......@@ -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));
}
})
}
}
});
......
......@@ -219,7 +219,7 @@ Page({
//跳转结算页面
goBalance() {
my.navigateTo({
my.reLaunch({
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