Commit 94e30ce1 authored by pengguangpu's avatar pengguangpu

balance.js中已使用reLaunch跳转,去掉支付成功页返回按钮监听;

parent df4af4c4
......@@ -82,6 +82,3 @@ export const ACTION_VERIFY_FAILED = "ACTION_VERIFY_FAILED";
//退出事件
export const ACTION_QUIT = "ACTION_QUIT";
//支付成功页点击返回按钮
export const ACTION_PAYSUCCESS_PAGE_BACK = "ACTION_PAYSUCCESS_PAGE_BACK";
\ No newline at end of file
......@@ -4,26 +4,6 @@ import { ACTION_GO_HOME } from '../../const/actioncmd'
import { ACTION_PAYSUCCESS_PAGE_BACK } from '../../const/actioncmd'
Page({
//回退到上一个页面
events: {
onBack(e) {
console.log('onBack触发');
my.ix.sendBuddyMessage({
// 填入目标小程序的 AppID
target: getApp().globalData.backScreenAppId,
data: {
action: ACTION_PAYSUCCESS_PAGE_BACK,
data: null
},
success: (res) => {
e.preventDefault();
},
fail: (res) => {
console.info(`sendBuddyMessage failed: ${JSON.stringify(res)}`);
}
});
}
},
data: {
orderPriceYuan: "--.--",
......
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