diff --git a/src/component/HomePage/UpgradePlan.vue b/src/component/HomePage/UpgradePlan.vue index 8526e420..d5a05d3a 100644 --- a/src/component/HomePage/UpgradePlan.vue +++ b/src/component/HomePage/UpgradePlan.vue @@ -25,7 +25,7 @@ -->
-
+ +
-
+
-
{{ price.credits * price.num }} {{ $t('upgradePlan.credits') }}
-
${{ price.price * price.num }} HKD
+
{{ item.credits * price.num }} {{ $t('upgradePlan.credits') }}
+
${{ item.price * price.num }} HKD
-
@@ -99,7 +100,7 @@
{{ $t('upgradePlan.Cancel') }}
- +
{{ $t('upgradePlan.Payment') }}
@@ -142,7 +143,7 @@ export default defineComponent({ }) let modeOfPayment = ref('paypal') let clause = ref(false)//同意条款 - let productList = ref([]) + let productList:any = ref([]) let payIndex = ref(0) let isShowMark = ref(false) let newWindow:any = ref() diff --git a/src/lang/en.ts b/src/lang/en.ts index 823498a9..7a20fab6 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -32,7 +32,7 @@ export default { Expend:'Expend', }, payOrder:{ - + OrderInformation:'Order Information', CreditsInformation:'Credits Information', }, @@ -60,7 +60,7 @@ export default { }, upgradePlan:{ - BuyCredlts:'Buy credlts', + BuyCredlts:'Buy credits', credits:'credits', organization:'All credits are shared within the name organization', Continue:'Continue', diff --git a/src/tool/cookie.js b/src/tool/cookie.js index 230cd4be..8ee0d1ae 100644 --- a/src/tool/cookie.js +++ b/src/tool/cookie.js @@ -23,9 +23,19 @@ function WriteCookie(name) { document.cookie = "expires=" + now.toUTCString() + ";Path=/"; // document.write("Setting Cookies : " + "name=" + cookievalue ); } - +function clonAllCookie(){ + var cookies = document.cookie.split(";"); + + for (var i = 0; i < cookies.length; i++) { + var cookie = cookies[i]; + var eqPos = cookie.indexOf("="); + var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; + document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; + } +} export { setCookie, getCookie, - WriteCookie + WriteCookie, + clonAllCookie } \ No newline at end of file diff --git a/src/tool/https.js b/src/tool/https.js index 2b4e73bf..405f9ac5 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -2,7 +2,7 @@ import axios from 'axios' // import qs from 'qs' // import message from '@/components/public/message/src' import router from '@/router/index' -import {getCookie} from '@/tool/cookie' +import {getCookie,clonAllCookie} from '@/tool/cookie' // import cookie from '@/tools/cookie.js' axios.defaults.timeout = 60000; //响应时间 @@ -87,6 +87,7 @@ axios.interceptors.response.use((res) =>{ }, function(error) { if(error?.response?.status === 401 && router.currentRoute._value.name != 'setIdentification'){//如果是记录浏览器页面就不跳转login router.replace('/login') + clonAllCookie() return Promise.reject() } let data_new = error?.response?.data diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index 2b6a955b..50f08da2 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -97,7 +97,7 @@