Commit 86a0775d authored by gaodapeng's avatar gaodapeng

fix bugs

parent e7242221
......@@ -31,10 +31,12 @@ Page({
data: null
},
success: (res) => {
e.preventDefault();
console.log(`sendBuddyMessage success: ${JSON.stringify(res)}`);
// e.preventDefault();
my.navigateBack();
},
fail: (res) => {
console.info(`sendBuddyMessage failed: ${JSON.stringify(res)}`);
console.log(`sendBuddyMessage failed: ${JSON.stringify(res)}`);
}
});
}
......@@ -48,6 +50,7 @@ Page({
},
onLoad(options) {
console.log("balance onLoad==>" + JSON.stringify(options));
var totalQuantity = options.totalQuantity
var totalPrice = options.totalPrice
......@@ -108,10 +111,6 @@ Page({
}
});
},
onShow() {
console.log("balance onShow");
my.ix.onBuddyMessage({
success: (res) => {
console.info(`onBuddyMessage success: ${JSON.stringify(res)}`);
......@@ -129,6 +128,12 @@ Page({
}
}
});
},
onShow() {
console.log("balance onShow");
//这个界面接受事件是在onLoad,去除监听是在onUnload
},
onHide() {
......
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