订阅页面交互调整
This commit is contained in:
@@ -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,
|
||||||
@@ -959,3 +960,4 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
Reference in New Issue
Block a user