From a53ce6d40299834a759635d811a13c592f308857 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Thu, 23 Oct 2025 10:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AE=A2=E9=98=85=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Detail/DesignDetail.vue | 2 +- src/component/Detail/model/modelPosition.vue | 12 ++++++++++++ src/component/HomePage/renew.vue | 17 +++++++++-------- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue index ffd06964..f3391727 100644 --- a/src/component/Detail/DesignDetail.vue +++ b/src/component/Detail/DesignDetail.vue @@ -254,7 +254,7 @@ export default defineComponent({ // sessionStorage.setItem('oppositeRevocation',JSON.stringify([])); revocation = [] } - revocation.push(itemDetail) + revocation.push({designData:itemDetail,position:null}) detailData.revocationShow = revocation?.length detailData.oppositeRevocationShow = 0 sessionStorage.setItem('revocation', JSON.stringify(revocation)); diff --git a/src/component/Detail/model/modelPosition.vue b/src/component/Detail/model/modelPosition.vue index fa016168..189a44fc 100644 --- a/src/component/Detail/model/modelPosition.vue +++ b/src/component/Detail/model/modelPosition.vue @@ -179,6 +179,7 @@ export default defineComponent({ const sizeTouchmove = (event:any)=>{ let e = getMousePosition(event,true) sizeMouseMoveOperation(e) + } const sizeMouseup = (e:any)=>{ detailData.frontBack.front[selectItem.imgDomIndex].style={ @@ -196,6 +197,15 @@ export default defineComponent({ document.removeEventListener('touchmove',sizeTouchmove) document.removeEventListener('mouseup',sizeMouseup) document.removeEventListener('touchend',sizeMouseup) + //鼠标抬起 + console.log(11) + } + const setRevocation = ()=>{ + let frontBack = JSON.parse(JSON.stringify(detailData.frontBack)) + let revocation:any = JSON.parse((sessionStorage.getItem("revocation") as any)) + revocation.push({designData:null,position:frontBack}) + sessionStorage.setItem('revocation', JSON.stringify(revocation)); + } const sizeMouseMoveOperation = (e:any)=> { let imgDomWH = selectItem.imgDom.getBoundingClientRect() @@ -251,6 +261,8 @@ export default defineComponent({ document.removeEventListener('touchmove',touchmove) document.removeEventListener('mouseup',mouseup) document.removeEventListener('touchend',mouseup) + ///鼠标抬起 + console.log(11) } const mouseMoveOperation = (e:any)=>{ let imgDomWH = selectItem.imgDom.getBoundingClientRect() diff --git a/src/component/HomePage/renew.vue b/src/component/HomePage/renew.vue index de626e08..7bdebe93 100644 --- a/src/component/HomePage/renew.vue +++ b/src/component/HomePage/renew.vue @@ -187,7 +187,7 @@ name="payment" type="radio" value="CreditCard" - v-model="current.PaymentType" + v-model="PaymentType" @change="setPaymentType('CreditCard')" /> {{ $t("Renew.CreditCard") }} @@ -197,7 +197,7 @@ name="payment" type="radio" value="Alipay" - v-model="current.PaymentType" + v-model="PaymentType" @change="setPaymentType('Alipay')" /> {{ $t("Renew.Alipay") }} @@ -304,7 +304,7 @@ export default defineComponent({ value: "EcoMonth", label: computed(()=>t("Renew.Monthly")), }, - PaymentType: "CreditCard", + // PaymentType: "CreditCard", promotionData: { code: "", error: "", @@ -320,7 +320,7 @@ export default defineComponent({ value: "Month", label: computed(()=>t("Renew.Monthly")), }, - PaymentType: "CreditCard", + // PaymentType: "CreditCard", promotionData: { code: "", error: "", @@ -337,7 +337,7 @@ export default defineComponent({ value: "Year", label: computed(()=>t("Renew.Yearly")), }, - PaymentType: "CreditCard", + // PaymentType: "CreditCard", promotionData: { code: "", error: "", @@ -401,6 +401,7 @@ export default defineComponent({ }), current: {} as any, payMethod: null as any, + PaymentType: "CreditCard", }); const init = () => { renew.renewModel = true; @@ -411,7 +412,7 @@ export default defineComponent({ store.dispatch('getUserDetail') }; const setPaymentType = (str: any) => { - renewData.current.PaymentType = str; + renewData.PaymentType = str; }; const payment = () => { // if (!payMethodData.clause) { @@ -424,11 +425,11 @@ export default defineComponent({ // } // return; // } - if (!renewData.current.PaymentType) + if (!renewData.PaymentType) return message.info(t("Renew.PleaseSelectPayment")); let url = window.location.origin + "/paySucceed"; let data = { - autoRenewal: renewData.current.PaymentType != "Alipay", //false为不自动续费 + autoRenewal: renewData.PaymentType != "Alipay", //false为不自动续费 productName: "Subscription", quantity: 1, returnUrl: url,