支付跳转隐私政策
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export const UrlList = {
|
||||
aida: 'https://www.aida.com.hk/',
|
||||
codeCreate: 'https://www.code-create.com/',
|
||||
terms: 'https://www.code-create.com.hk/terms-of-use/',
|
||||
privacy: 'https://www.code-create.com.hk/privacy-policy/',
|
||||
|
||||
}
|
||||
export const openView = (url) => {
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue'
|
||||
import { UrlList, openView } from './UrlList'
|
||||
import { UrlList, openView } from '../../utils/UrlList'
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
import { useRouter } from 'vue-router'
|
||||
const router = useRouter()
|
||||
import HomeFooter from '@/components/Footer.vue'
|
||||
import { UrlList, openView } from './UrlList'
|
||||
import { UrlList, openView } from '../../utils/UrlList'
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
|
||||
@@ -14,7 +14,15 @@
|
||||
</div>
|
||||
<div class="agreement">
|
||||
<el-checkbox v-model="agreement">
|
||||
<div class="text" v-html="$t('Pay.AgreementText')"></div
|
||||
<div
|
||||
class="text"
|
||||
v-html="
|
||||
$t('Pay.AgreementText', {
|
||||
onTermsClick: 'openTermsView()',
|
||||
onPrivacyClick: 'openPrivacyView()'
|
||||
})
|
||||
"
|
||||
></div
|
||||
></el-checkbox>
|
||||
</div>
|
||||
<div class="title">
|
||||
@@ -90,6 +98,17 @@
|
||||
import { CreateOrder, ORDER_STATUS, GetOrderStatus } from '@/api/shoppingCart'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { UrlList, openView } from '@/utils/UrlList'
|
||||
window['openTermsView'] = () => {
|
||||
const e = window.event as Event
|
||||
e.preventDefault()
|
||||
openView(UrlList.terms)
|
||||
}
|
||||
window['openPrivacyView'] = () => {
|
||||
const e = window.event as Event
|
||||
e.preventDefault()
|
||||
openView(UrlList.privacy)
|
||||
}
|
||||
const onBack = () => router.back()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
@@ -124,7 +143,7 @@
|
||||
const createOrderCall = (res: any) => {
|
||||
const url = res.paymentLink
|
||||
const paymentId = res.paymentId
|
||||
openView(url)
|
||||
openPayView(url)
|
||||
router.replace({
|
||||
query: {
|
||||
list: query.value.list,
|
||||
@@ -143,7 +162,7 @@
|
||||
})
|
||||
}
|
||||
const viewTime = ref(null)
|
||||
const openView = (url, width = 600, height = 800) => {
|
||||
const openPayView = (url, width = 600, height = 800) => {
|
||||
const left = (screen.width - width) / 2
|
||||
const top = (screen.height - height) / 2
|
||||
const view = window.open(
|
||||
|
||||
Reference in New Issue
Block a user