| | |
| | | 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) |
| | | } |
| | | }) |
| | |
| | | duration: 2000, |
| | | icon: "none", |
| | | }); |
| | | debugger; |
| | | console.log('--------------绑定模板------------------>',decodeURIComponent(this.routerVal.template)) |
| | | //判断如果有template那么就直接根据trade的sn编号去将订单与模板绑定 |
| | | if(this.routerVal.template){ |
| | | let parms = {}; |
| | | const template = JSON.parse(decodeURIComponent(this.routerVal.template)) |
| | | parms.sn = res.data.result.sn; |
| | | parms.templateId = template.templateId; |
| | | parms.templateName = template.templateName; |
| | | parms.chooseImage = template.chooseImage; |
| | | parms.chooseImageId = template.chooseImageId; |
| | | parms.templateForm = template.templateForm; |
| | | API_Trade.bindingTemplate(parms) |
| | | } |
| | | // 如果当前价格为0跳转到订单列表 |
| | | if (this.orderMessage.priceDetailDTO.billPrice == 0) { |
| | | uni.navigateTo({ |