| | |
| | | onLoad: function (val) { |
| | | this.routerVal = val; |
| | | this.actionParam.pageParams = JSON.stringify(val) |
| | | console.log('获取的参数-----------》',JSON.stringify(decodeURIComponent(this.routerVal.template))) |
| | | }, |
| | | components: { |
| | | invoices, |
| | |
| | | } |
| | | }, |
| | | onUnload() { |
| | | let param = this.actionParam; |
| | | let param = Object.assign({}, this.actionParam); |
| | | if (this.sendOnShow)return |
| | | param.pageStatus = "LEAVE" |
| | | userAction(param) |
| | | }, |
| | | onHide() { |
| | | this.startHidenTime = Date.now() |
| | | let param = this.actionParam; |
| | | let param = Object.assign({}, this.actionParam); |
| | | this.sendOnShow = true; |
| | | param.pageStatus = "LEAVE" |
| | | userAction(param) |
| | |
| | | async onShow() { |
| | | getSessionId().then(res=>{ |
| | | this.pageSessionNo = res.data.data |
| | | this.actionParam.sessionId = this.pageSessionNo |
| | | if(this.pageSessionNo){ |
| | | let param = this.actionParam; |
| | | param.sessionId = this.pageSessionNo |
| | | let param = Object.assign({}, this.actionParam); |
| | | userAction(param) |
| | | } |
| | | }) |
| | |
| | | }); |
| | | } else { |
| | | this.navigateTo( |
| | | `/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}` |
| | | `/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}&template=${this.routerVal.template}` |
| | | ); |
| | | } |
| | | } else { |