Compare commits

..

1 Commits
dev ... master

Author SHA1 Message Date
e21fc48161 增加AI 2024-11-15 13:50:29 +08:00
3 changed files with 32 additions and 27 deletions

View File

@ -161,7 +161,6 @@
}
]
},
{
"name": "开源镜像",
"en_name": "Product",

View File

@ -1,30 +1,30 @@
<template>
<div>
<h4 class="text-gray">
<i class="lni lni-tag" :id="transName(item)"></i>{{ transName(item) }}
<i class="lni lni-tag" :id="transName(item)"></i>{{transName(item)}}
</h4>
<div class="row">
<div class="col-sm-3" v-for="(webitem, idx) in item.web" :key="idx">
<div class="col-sm-3" v-for="(web, idx) in item.web" :key="idx">
<div class="xe-widget xe-conversations box2 label-info" title=""
@click="openweb(webitem.url)"
@click="openweb(web.url)"
data-toggle="tooltip"
data-placement="bottom"
:data-original-title="webitem.url">
:data-original-title="web.url">
<div class="xe-comment-entry">
<a class="xe-user-img">
<img :src="webitem.logo" class="lozad img-circle" width="40" alt="">
<img :src="web.logo" class="lozad img-circle" width="40">
</a>
<div class="xe-comment">
<a href="#" class="xe-user-name overflowClip_1">
<strong>{{ webitem.title }}</strong>
<strong>{{web.title}}</strong>
</a>
<p class="overflowClip_2">{{ webitem.desc }}</p>
<p class="overflowClip_2">{{web.desc}}</p>
</div>
</div>
</div>
</div>
</div>
<br/>
<br />
</div>
</template>
@ -32,7 +32,7 @@
export default {
name: 'WebItem',
props: {
item: {web: []},
item: Object,
transName: Function
},
methods: {

View File

@ -6,10 +6,14 @@
<!-- logo -->
<div class="logo">
<a href="javascript:void(0)" class="logo-expanded">
<img src="../assets/images/logo@2x.png" width="100%" alt=""/>
<img src="../assets/images/logo@2x.png" width="100%" alt="" />
</a>
<a href="javascript:void(0)" class="logo-collapsed">
<img src="../assets/images/logo-collapsed@2x.png" width="40" alt=""/>
<img
src="../assets/images/logo-collapsed@2x.png"
width="40"
alt=""
/>
</a>
</div>
<div class="mobile-menu-toggle visible-xs">
@ -46,7 +50,9 @@
<router-link to="/about">
<i class="lni lni-heart"></i>
<span class="tooltip-blue">关于本站</span>
<span class="label label-Primary pull-right hidden-collapsed"></span>
<span class="label label-Primary pull-right hidden-collapsed"
></span
>
</router-link>
</li>
</ul>
@ -61,7 +67,7 @@
</li>
<li class="dropdown hover-line language-switcher">
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
<img :src="lang.flag"/> {{ lang.name }}
<img :src="lang.flag" /> {{ lang.name }}
</a>
<ul class="dropdown-menu languages">
<li
@ -70,7 +76,7 @@
:key="langItem.key"
>
<a href="javascript:void(0)" @click="lang = langItem">
<img :src="langItem.flag"/> {{ langItem.name }}
<img :src="langItem.flag" /> {{ langItem.name }}
</a>
</li>
</ul>
@ -87,14 +93,14 @@
<div v-for="(item, idx) in items" :key="idx">
<div v-if="item.web">
<WebItem :item="item" :transName="transName"/>
<WebItem :item="item" :transName="transName" />
</div>
<div v-else v-for="(subItem, idx) in item.children" :key="idx">
<WebItem :item="subItem" :transName="transName"/>
<WebItem :item="subItem" :transName="transName" />
</div>
</div>
<Footer/>
<Footer />
</div>
</div>
</template>
@ -103,7 +109,7 @@
import WebItem from "../components/WebItem.vue";
import Footer from "../components/Footer.vue";
import itemsData from "../assets/data.json";
import {loadJs} from '../assets/js/app.js'
import { loadJs } from '../assets/js/app.js'
export default {
name: "Index",