绿满眶商城微信小程序-uniapp
peng
2025-10-13 3a2524692711cf35fc142881b2837368ae2c3d25
pages/cart/payment/payOrder.vue
@@ -111,6 +111,7 @@
      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";
@@ -185,12 +186,23 @@
            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";