feat:接口联调

This commit is contained in:
2026-07-21 11:09:17 +08:00
parent eea6319c41
commit 538194d8a5
39 changed files with 3553 additions and 3386 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ function validate() {
if (!form.value.name.trim()) nextErrors.name = '请填写您的姓名'
if (!form.value.company.trim()) nextErrors.company = '请填写公司名称'
if (!form.value.contact.trim()) {
nextErrors.contact = '请填写手机号或邮箱'
nextErrors.contact = '请填写手机号'
} else if (
!/^(1\d{10}|[\w.+-]+@[\w.-]+\.[A-Za-z]{2,}|[\d\s()+-]{6,})$/.test(form.value.contact.trim())
) {
@@ -143,7 +143,7 @@ onBeforeUnmount(() => {
v-model="form.contact"
type="text"
autocomplete="tel"
placeholder="手机号或工作邮箱"
placeholder="手机号"
/>
<small v-if="errors.contact">{{ errors.contact }}</small>
</label>
+128
View File
@@ -0,0 +1,128 @@
<script setup>
defineProps({
content: {
type: String,
default: ''
}
})
</script>
<template>
<div class="ueditor-content" v-html="content"></div>
</template>
<style scoped>
.ueditor-content {
color: #334155;
font-size: 16px;
line-height: 2;
word-break: break-word;
}
.ueditor-content :deep(*) {
box-sizing: border-box;
}
.ueditor-content :deep(h1),
.ueditor-content :deep(h2),
.ueditor-content :deep(h3),
.ueditor-content :deep(h4),
.ueditor-content :deep(h5),
.ueditor-content :deep(h6) {
margin: 46px 0 18px;
color: #0f1e33;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.42;
}
.ueditor-content :deep(h2) {
font-size: clamp(22px, 2.1vw, 28px);
}
.ueditor-content :deep(h3) {
font-size: 22px;
}
.ueditor-content :deep(h4) {
font-size: 19px;
}
.ueditor-content :deep(p) {
margin: 0 0 22px;
}
.ueditor-content :deep(a) {
color: #2f74ff;
text-decoration: none;
}
.ueditor-content :deep(a:hover) {
text-decoration: underline;
}
.ueditor-content :deep(strong),
.ueditor-content :deep(b) {
color: #132238;
font-weight: 700;
}
.ueditor-content :deep(ul),
.ueditor-content :deep(ol) {
display: grid;
gap: 12px;
margin: 18px 0 28px;
padding-left: 1.35em;
}
.ueditor-content :deep(li) {
padding-left: 4px;
line-height: 1.9;
}
.ueditor-content :deep(blockquote) {
margin: 34px 0;
padding: 24px 28px;
border-left: 4px solid #3d7cff;
border-radius: 0 14px 14px 0;
color: #24364f;
background: #f4f7ff;
}
.ueditor-content :deep(img) {
max-width: 100%;
height: auto;
display: block;
margin: 34px auto;
border-radius: 16px;
}
.ueditor-content :deep(table) {
width: 100%;
margin: 32px 0;
overflow: hidden;
border-collapse: collapse;
border-radius: 12px;
background: #fff;
box-shadow: 0 0 0 1px #e7edf8;
}
.ueditor-content :deep(th),
.ueditor-content :deep(td) {
padding: 15px 18px;
border: 1px solid #e7edf8;
text-align: left;
vertical-align: top;
}
.ueditor-content :deep(th) {
color: #14233a;
background: #f3f6fc;
font-weight: 700;
}
.ueditor-content :deep(hr) {
height: 1px;
margin: 42px 0;
border: 0;
background: #e6edf8;
}
@media (max-width: 640px) {
.ueditor-content {
font-size: 15px;
line-height: 1.9;
}
.ueditor-content :deep(h2) {
font-size: 21px;
}
.ueditor-content :deep(h3) {
font-size: 19px;
}
.ueditor-content :deep(blockquote) {
padding: 20px;
}
}
</style>
+1 -1
View File
@@ -50,7 +50,7 @@ const sourceLabel = computed(() => {
<div>
<strong>联系我们</strong>
<span class="contact-line"
><AppIcon name="location" />成都市武侯区芯通科技大厦 B 9 </span
><AppIcon name="location" />成都市武侯区芯通科技大厦B座9</span
>
<span class="contact-line"><AppIcon name="phone" />联系电话待补充</span>
<span class="contact-line"><AppIcon name="message" />商务邮箱待补充</span>