Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite
This commit is contained in:
@@ -254,7 +254,7 @@ export default defineComponent({
|
|||||||
// sessionStorage.setItem('oppositeRevocation',JSON.stringify([]));
|
// sessionStorage.setItem('oppositeRevocation',JSON.stringify([]));
|
||||||
revocation = []
|
revocation = []
|
||||||
}
|
}
|
||||||
revocation.push(itemDetail)
|
revocation.push({designData:itemDetail,position:null})
|
||||||
detailData.revocationShow = revocation?.length
|
detailData.revocationShow = revocation?.length
|
||||||
detailData.oppositeRevocationShow = 0
|
detailData.oppositeRevocationShow = 0
|
||||||
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ export default defineComponent({
|
|||||||
const sizeTouchmove = (event:any)=>{
|
const sizeTouchmove = (event:any)=>{
|
||||||
let e = getMousePosition(event,true)
|
let e = getMousePosition(event,true)
|
||||||
sizeMouseMoveOperation(e)
|
sizeMouseMoveOperation(e)
|
||||||
|
|
||||||
}
|
}
|
||||||
const sizeMouseup = (e:any)=>{
|
const sizeMouseup = (e:any)=>{
|
||||||
detailData.frontBack.front[selectItem.imgDomIndex].style={
|
detailData.frontBack.front[selectItem.imgDomIndex].style={
|
||||||
@@ -196,6 +197,15 @@ export default defineComponent({
|
|||||||
document.removeEventListener('touchmove',sizeTouchmove)
|
document.removeEventListener('touchmove',sizeTouchmove)
|
||||||
document.removeEventListener('mouseup',sizeMouseup)
|
document.removeEventListener('mouseup',sizeMouseup)
|
||||||
document.removeEventListener('touchend',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)=> {
|
const sizeMouseMoveOperation = (e:any)=> {
|
||||||
let imgDomWH = selectItem.imgDom.getBoundingClientRect()
|
let imgDomWH = selectItem.imgDom.getBoundingClientRect()
|
||||||
@@ -251,6 +261,8 @@ export default defineComponent({
|
|||||||
document.removeEventListener('touchmove',touchmove)
|
document.removeEventListener('touchmove',touchmove)
|
||||||
document.removeEventListener('mouseup',mouseup)
|
document.removeEventListener('mouseup',mouseup)
|
||||||
document.removeEventListener('touchend',mouseup)
|
document.removeEventListener('touchend',mouseup)
|
||||||
|
///鼠标抬起
|
||||||
|
console.log(11)
|
||||||
}
|
}
|
||||||
const mouseMoveOperation = (e:any)=>{
|
const mouseMoveOperation = (e:any)=>{
|
||||||
let imgDomWH = selectItem.imgDom.getBoundingClientRect()
|
let imgDomWH = selectItem.imgDom.getBoundingClientRect()
|
||||||
|
|||||||
@@ -187,7 +187,7 @@
|
|||||||
name="payment"
|
name="payment"
|
||||||
type="radio"
|
type="radio"
|
||||||
value="CreditCard"
|
value="CreditCard"
|
||||||
v-model="current.PaymentType"
|
v-model="PaymentType"
|
||||||
@change="setPaymentType('CreditCard')"
|
@change="setPaymentType('CreditCard')"
|
||||||
/>
|
/>
|
||||||
{{ $t("Renew.CreditCard") }}
|
{{ $t("Renew.CreditCard") }}
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
name="payment"
|
name="payment"
|
||||||
type="radio"
|
type="radio"
|
||||||
value="Alipay"
|
value="Alipay"
|
||||||
v-model="current.PaymentType"
|
v-model="PaymentType"
|
||||||
@change="setPaymentType('Alipay')"
|
@change="setPaymentType('Alipay')"
|
||||||
/>
|
/>
|
||||||
{{ $t("Renew.Alipay") }}
|
{{ $t("Renew.Alipay") }}
|
||||||
@@ -304,7 +304,7 @@ export default defineComponent({
|
|||||||
value: "EcoMonth",
|
value: "EcoMonth",
|
||||||
label: computed(()=>t("Renew.Monthly")),
|
label: computed(()=>t("Renew.Monthly")),
|
||||||
},
|
},
|
||||||
PaymentType: "CreditCard",
|
// PaymentType: "CreditCard",
|
||||||
promotionData: {
|
promotionData: {
|
||||||
code: "",
|
code: "",
|
||||||
error: "",
|
error: "",
|
||||||
@@ -320,7 +320,7 @@ export default defineComponent({
|
|||||||
value: "Month",
|
value: "Month",
|
||||||
label: computed(()=>t("Renew.Monthly")),
|
label: computed(()=>t("Renew.Monthly")),
|
||||||
},
|
},
|
||||||
PaymentType: "CreditCard",
|
// PaymentType: "CreditCard",
|
||||||
promotionData: {
|
promotionData: {
|
||||||
code: "",
|
code: "",
|
||||||
error: "",
|
error: "",
|
||||||
@@ -337,7 +337,7 @@ export default defineComponent({
|
|||||||
value: "Year",
|
value: "Year",
|
||||||
label: computed(()=>t("Renew.Yearly")),
|
label: computed(()=>t("Renew.Yearly")),
|
||||||
},
|
},
|
||||||
PaymentType: "CreditCard",
|
// PaymentType: "CreditCard",
|
||||||
promotionData: {
|
promotionData: {
|
||||||
code: "",
|
code: "",
|
||||||
error: "",
|
error: "",
|
||||||
@@ -401,6 +401,7 @@ export default defineComponent({
|
|||||||
}),
|
}),
|
||||||
current: {} as any,
|
current: {} as any,
|
||||||
payMethod: null as any,
|
payMethod: null as any,
|
||||||
|
PaymentType: "CreditCard",
|
||||||
});
|
});
|
||||||
const init = () => {
|
const init = () => {
|
||||||
renew.renewModel = true;
|
renew.renewModel = true;
|
||||||
@@ -411,7 +412,7 @@ export default defineComponent({
|
|||||||
store.dispatch('getUserDetail')
|
store.dispatch('getUserDetail')
|
||||||
};
|
};
|
||||||
const setPaymentType = (str: any) => {
|
const setPaymentType = (str: any) => {
|
||||||
renewData.current.PaymentType = str;
|
renewData.PaymentType = str;
|
||||||
};
|
};
|
||||||
const payment = () => {
|
const payment = () => {
|
||||||
// if (!payMethodData.clause) {
|
// if (!payMethodData.clause) {
|
||||||
@@ -424,11 +425,11 @@ export default defineComponent({
|
|||||||
// }
|
// }
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
if (!renewData.current.PaymentType)
|
if (!renewData.PaymentType)
|
||||||
return message.info(t("Renew.PleaseSelectPayment"));
|
return message.info(t("Renew.PleaseSelectPayment"));
|
||||||
let url = window.location.origin + "/paySucceed";
|
let url = window.location.origin + "/paySucceed";
|
||||||
let data = {
|
let data = {
|
||||||
autoRenewal: renewData.current.PaymentType != "Alipay", //false为不自动续费
|
autoRenewal: renewData.PaymentType != "Alipay", //false为不自动续费
|
||||||
productName: "Subscription",
|
productName: "Subscription",
|
||||||
quantity: 1,
|
quantity: 1,
|
||||||
returnUrl: url,
|
returnUrl: url,
|
||||||
|
|||||||
Reference in New Issue
Block a user