Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/Aida_Purchaser_Front
This commit is contained in:
@@ -87,12 +87,17 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
> .text {
|
> .text {
|
||||||
color: #232323;
|
color: #232323;
|
||||||
|
overflow: hidden;
|
||||||
> .name {
|
> .name {
|
||||||
font-family: 'KaiseiOpti-Regular';
|
font-family: 'KaiseiOpti-Regular';
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: var(--commodity-name-fontSize, 2rem);
|
font-size: var(--commodity-name-fontSize, 2rem);
|
||||||
line-height: var(--commodity-name-lineHeight, 2.3rem);
|
line-height: var(--commodity-name-lineHeight, 2.3rem);
|
||||||
margin-bottom: var(--commodity-name-marginBottom, 0rem);
|
margin-bottom: var(--commodity-name-marginBottom, 0rem);
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
> .price {
|
> .price {
|
||||||
font-family: 'KaiseiOpti-Regular';
|
font-family: 'KaiseiOpti-Regular';
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
export const UrlList = {
|
export const UrlList = {
|
||||||
aida: 'https://www.aida.com.hk/',
|
aida: 'https://www.aida.com.hk/',
|
||||||
codeCreate: 'https://www.code-create.com/',
|
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) => {
|
export const openView = (url) => {
|
||||||
@@ -175,7 +175,7 @@ defineExpose({})
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
> .filter-item{
|
> .filter-item{
|
||||||
:deep(.el-select) {
|
:deep(.el-select) {
|
||||||
width: 15rem;
|
width: 18rem;
|
||||||
--el-border-radius-base: 0;
|
--el-border-radius-base: 0;
|
||||||
--el-select-input-color: rgba(0, 0, 0, 0.5);
|
--el-select-input-color: rgba(0, 0, 0, 0.5);
|
||||||
--el-select-input-font-size: 1rem;
|
--el-select-input-font-size: 1rem;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { UrlList, openView } from './UrlList'
|
import { UrlList, openView } from '../../utils/UrlList'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
import HomeFooter from '@/components/Footer.vue'
|
import HomeFooter from '@/components/Footer.vue'
|
||||||
import { UrlList, openView } from './UrlList'
|
import { UrlList, openView } from '../../utils/UrlList'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, reactive, ref } from 'vue'
|
import { computed, reactive, ref } from 'vue'
|
||||||
import { validateEmail, validatePassLength, validatePrivacy } from './tools'
|
import { validateEmail, validatePass, validatePrivacy } from './tools'
|
||||||
import OtherLogin from './other-login.vue'
|
import OtherLogin from './other-login.vue'
|
||||||
const emit = defineEmits(['retrieve-password', 'login'])
|
const emit = defineEmits(['retrieve-password', 'login'])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
})
|
})
|
||||||
const ruleForm = reactive({
|
const ruleForm = reactive({
|
||||||
email: [{ validator: validateEmail, trigger: 'change' }],
|
email: [{ validator: validateEmail, trigger: 'change' }],
|
||||||
password: [{ validator: validatePassLength, trigger: 'change' }],
|
password: [{ validator: validatePass, trigger: 'change' }],
|
||||||
privacy: [{ validator: validatePrivacy, trigger: 'change' }]
|
privacy: [{ validator: validatePrivacy, trigger: 'change' }]
|
||||||
})
|
})
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
|
|||||||
@@ -14,7 +14,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="agreement">
|
<div class="agreement">
|
||||||
<el-checkbox v-model="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>
|
></el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
@@ -90,6 +98,17 @@
|
|||||||
import { CreateOrder, ORDER_STATUS, GetOrderStatus } from '@/api/shoppingCart'
|
import { CreateOrder, ORDER_STATUS, GetOrderStatus } from '@/api/shoppingCart'
|
||||||
import { useRouter, useRoute } from 'vue-router'
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
import { ElMessage } from 'element-plus'
|
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 onBack = () => router.back()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@@ -124,7 +143,7 @@
|
|||||||
const createOrderCall = (res: any) => {
|
const createOrderCall = (res: any) => {
|
||||||
const url = res.paymentLink
|
const url = res.paymentLink
|
||||||
const paymentId = res.paymentId
|
const paymentId = res.paymentId
|
||||||
openView(url)
|
openPayView(url)
|
||||||
router.replace({
|
router.replace({
|
||||||
query: {
|
query: {
|
||||||
list: query.value.list,
|
list: query.value.list,
|
||||||
@@ -143,7 +162,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const viewTime = ref(null)
|
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 left = (screen.width - width) / 2
|
||||||
const top = (screen.height - height) / 2
|
const top = (screen.height - height) / 2
|
||||||
const view = window.open(
|
const view = window.open(
|
||||||
|
|||||||
@@ -53,10 +53,10 @@ const {} = toRefs(data);
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="img-list">
|
<div class="img-list">
|
||||||
<div class="img-box">
|
<div class="img-box">
|
||||||
<img :src="img" alt="">
|
<!-- <img :src="img" alt=""> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="img-box">
|
<div class="img-box">
|
||||||
<img :src="img" alt="">
|
<!-- <img :src="img" alt=""> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="img-box">
|
<div class="img-box">
|
||||||
<img :src="cover" alt="">
|
<img :src="cover" alt="">
|
||||||
|
|||||||
Reference in New Issue
Block a user