From a95cd4cfc856d5861c57c82034f874ee27a3ef13 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期一, 13 十月 2025 12:00:55 +0800
Subject: [PATCH] 定制商品

---
 pages/cart/payment/payOrder.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue
index a3db881..6cdba46 100644
--- a/pages/cart/payment/payOrder.vue
+++ b/pages/cart/payment/payOrder.vue
@@ -101,9 +101,9 @@
 		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)
 			}
 		})		
@@ -111,6 +111,7 @@
 		onLoad(val) {
 			this.routerVal = val;
 			this.actionParam.pageParams = JSON.stringify(val)
+			console.log('鑾峰彇瑙e瘑鐨勫弬鏁�',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";

--
Gitblit v1.8.0