fix: 添加微信群二维码
This commit is contained in:
@@ -3,6 +3,14 @@ import { CircleCheck } from '@element-plus/icons-vue';
|
|||||||
import { ElMessageBox } from 'element-plus';
|
import { ElMessageBox } from 'element-plus';
|
||||||
import SupportModelProducts from '@/components/SupportModelProducts/indexl.vue';
|
import SupportModelProducts from '@/components/SupportModelProducts/indexl.vue';
|
||||||
|
|
||||||
|
const wxSrc = computed(
|
||||||
|
() => `${import.meta.env.VITE_WEB_BASE_API}/wwwroot/aihub/wx.png`,
|
||||||
|
);
|
||||||
|
// 微信群二维码
|
||||||
|
const wxGroupQD = 'https://ai.ccnetcore.com/prod-api/wwwroot/aihub/jlq.png';
|
||||||
|
const srcList = [
|
||||||
|
wxGroupQD,
|
||||||
|
];
|
||||||
const pricing = [
|
const pricing = [
|
||||||
{
|
{
|
||||||
name: 'VIP',
|
name: 'VIP',
|
||||||
@@ -87,9 +95,6 @@ const faqs = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const wxSrc = computed(
|
|
||||||
() => `${import.meta.env.VITE_WEB_BASE_API}/wwwroot/aihub/wx.png`,
|
|
||||||
);
|
|
||||||
function openContact() {
|
function openContact() {
|
||||||
ElMessageBox.alert(
|
ElMessageBox.alert(
|
||||||
`
|
`
|
||||||
@@ -114,12 +119,27 @@ function openContact() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-center mb-4">
|
<div class="flex justify-center mb-4">
|
||||||
|
<div>
|
||||||
|
<h4>
|
||||||
|
站长微信
|
||||||
|
</h4>
|
||||||
<img
|
<img
|
||||||
src="${wxSrc.value}"
|
src="${wxSrc.value}"
|
||||||
class="w-50 h-70 border border-gray-200 rounded-lg shadow-md cursor-pointer hover:shadow-lg transition-transform hover:scale-105"
|
class="w-50 h-70 border border-gray-200 rounded-lg shadow-md cursor-pointer hover:shadow-lg transition-transform hover:scale-105"
|
||||||
onclick="document.getElementById('wechat-qrcode-fullscreen').style.display = 'flex'"
|
onclick="document.getElementById('wechat-qrcode-fullscreen').style.display = 'flex'"
|
||||||
alt="微信二维码"
|
alt="微信二维码"
|
||||||
>
|
>
|
||||||
|
</div><div>
|
||||||
|
<h4>
|
||||||
|
微信交流群
|
||||||
|
</h4>
|
||||||
|
<img
|
||||||
|
src="${wxGroupQD}"
|
||||||
|
class="w-50 h-70 border border-gray-200 rounded-lg shadow-md cursor-pointer hover:shadow-lg transition-transform hover:scale-105"
|
||||||
|
onclick="document.getElementById('wx-group-qrcode-fullscreen').style.display = 'flex'"
|
||||||
|
alt="微信二维码"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-sm text-gray-600">
|
<div class="text-sm text-gray-600">
|
||||||
@@ -137,6 +157,16 @@ function openContact() {
|
|||||||
style="max-width:90%; max-height:90%; border:8px solid white; border-radius:16px; box-shadow:0 0 40px rgba(255,255,255,0.2);"
|
style="max-width:90%; max-height:90%; border:8px solid white; border-radius:16px; box-shadow:0 0 40px rgba(255,255,255,0.2);"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
id="wx-group-qrcode-fullscreen"
|
||||||
|
style="display:none; position:fixed; inset:0; background:rgba(0,0,0,0.8); z-index:9999; justify-content:center; align-items:center;"
|
||||||
|
onclick="this.style.display='none'"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src="${wxGroupQD}"
|
||||||
|
style="max-width:90%; max-height:90%; border:8px solid white; border-radius:16px; box-shadow:0 0 40px rgba(255,255,255,0.2);"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -237,6 +267,22 @@ function openContact() {
|
|||||||
</p>
|
</p>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
|
<el-divider class="my-16">
|
||||||
|
加入群聊
|
||||||
|
</el-divider>
|
||||||
|
<el-collapse class="max-w-3xl mx-auto" accordion>
|
||||||
|
<el-image
|
||||||
|
style="width: 500px; height: auto"
|
||||||
|
:src="url"
|
||||||
|
:zoom-rate="1.2"
|
||||||
|
:max-scale="7"
|
||||||
|
:min-scale="0.2"
|
||||||
|
:preview-src-list="srcList"
|
||||||
|
show-progress
|
||||||
|
:initial-index="4"
|
||||||
|
fit="cover"
|
||||||
|
/>
|
||||||
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -247,4 +293,14 @@ function openContact() {
|
|||||||
.el-card:hover {
|
.el-card:hover {
|
||||||
transform: scale(1.02);
|
transform: scale(1.02);
|
||||||
}
|
}
|
||||||
|
.demo-image__error .image-slot {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.demo-image__error .image-slot .el-icon {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.demo-image__error .el-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user