| | |
| | | onShow() { |
| | | getSessionId().then(res=>{ |
| | | this.pageSessionNo = res.data.data |
| | | this.actionParam.sessionId = this.pageSessionNo |
| | | if(this.pageSessionNo){ |
| | | let param = Object.assign({}, this.actionParam); |
| | | param.sessionId = this.pageSessionNo |
| | | userAction(param) |
| | | } |
| | | }) |
| | |
| | | onLoad(val) { |
| | | this.routerVal = val; |
| | | this.actionParam.pageParams = JSON.stringify(val) |
| | | console.log('获取解密的参数',JSON.stringify(val),decodeURIComponent(this.routerVal.template)) |
| | | //初始化参数 |
| | | // #ifdef APP-PLUS |
| | | this.paymentType = "APP"; |
| | |
| | | parms.sn = this.sn; |
| | | parms.orderType = this.orderType; |
| | | parms.clientType = this.paymentType; |
| | | |
| | | if(this.routerVal.template){ |
| | | console.log('获取详情执行了') |
| | | const template = JSON.parse(decodeURIComponent(this.routerVal.template)) |
| | | console.log('获取详情执行了获取到的值-----------------------》',template) |
| | | parms.templateId = template.templateId; |
| | | parms.templateName = template.templateName; |
| | | parms.chooseImage = template.chooseImage; |
| | | parms.chooseImageId = template.chooseImageId; |
| | | parms.templateForm = template.templateForm; |
| | | } |
| | | console.log('--------------------->执行的参数为',parms) |
| | | API_Trade.getCashierData(parms).then((res) => { |
| | | |
| | | if(res.data.success){ |
| | | this.cashierParams = res.data.result; |
| | | |
| | | |
| | | console.log('获取订单信息------------------>',this.cashierParams.orderSns) |
| | | // #ifdef MP-WEIXIN |
| | | this.payList = res.data.result.support.filter((item) => { |
| | | return item != "ALIPAY"; |