From 6a20878b9b1e3460531b055d72d5d671f761abc3 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 16 十月 2025 15:36:20 +0800
Subject: [PATCH] 定制商品
---
pages/order/fillorder.vue | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/pages/order/fillorder.vue b/pages/order/fillorder.vue
index f5c108f..fe2921f 100644
--- a/pages/order/fillorder.vue
+++ b/pages/order/fillorder.vue
@@ -405,6 +405,7 @@
onLoad: function (val) {
this.routerVal = val;
this.actionParam.pageParams = JSON.stringify(val)
+ console.log('鑾峰彇鐨勫弬鏁�-----------銆�',JSON.stringify(decodeURIComponent(this.routerVal.template)))
},
components: {
invoices,
@@ -530,14 +531,14 @@
}
},
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)
@@ -545,9 +546,9 @@
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)
}
})
@@ -739,6 +740,20 @@
duration: 2000,
icon: "none",
});
+ debugger;
+ console.log('--------------缁戝畾妯℃澘------------------>',decodeURIComponent(this.routerVal.template))
+ //鍒ゆ柇濡傛灉鏈塼emplate閭d箞灏辩洿鎺ユ牴鎹畉rade鐨剆n缂栧彿鍘诲皢璁㈠崟涓庢ā鏉跨粦瀹�
+ 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({
--
Gitblit v1.8.0