diff --git a/src/assets/images/article-banner.png b/src/assets/images/article-banner.png new file mode 100644 index 0000000..18ea33b Binary files /dev/null and b/src/assets/images/article-banner.png differ diff --git a/src/assets/images/dot.png b/src/assets/images/dot.png new file mode 100644 index 0000000..93c729d Binary files /dev/null and b/src/assets/images/dot.png differ diff --git a/src/assets/images/map.png b/src/assets/images/map.png new file mode 100644 index 0000000..fb82f9a Binary files /dev/null and b/src/assets/images/map.png differ diff --git a/src/assets/images/none.png b/src/assets/images/none.png new file mode 100644 index 0000000..5b055af Binary files /dev/null and b/src/assets/images/none.png differ diff --git a/src/assets/images/result-bg1.png b/src/assets/images/result-bg1.png new file mode 100644 index 0000000..82aba31 Binary files /dev/null and b/src/assets/images/result-bg1.png differ diff --git a/src/assets/images/result-bg2.png b/src/assets/images/result-bg2.png new file mode 100644 index 0000000..70a847d Binary files /dev/null and b/src/assets/images/result-bg2.png differ diff --git a/src/assets/images/tel.png b/src/assets/images/tel.png new file mode 100644 index 0000000..0a8e8c0 Binary files /dev/null and b/src/assets/images/tel.png differ diff --git a/src/i18n/index.js b/src/i18n/index.js index a35ee1e..8fffa21 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -1,30 +1,50 @@ export const messages = { - "zh": { - i18n: { - breadcrumb: "国际化产品", - tips: "通过切换语言按钮,来改变当前内容的语言。", - btn: "切换英文", - title1: "常用用法", - p1: "要是你把你的秘密告诉了风,那就别怪风把它带给树。", - p2: "没有什么比信念更能支撑我们度过艰难的时光了。", - p3: "只要能把自己的事做好,并让自己快乐,你就领先于大多数人了。", - title2: "组件插值", - info: "Element组件需要国际化,请参考 {action}。", - value: "文档" - } - }, - "en": { - i18n: { - breadcrumb: "International Products", - tips: "Click on the button to change the current language. ", - btn: "Switch Chinese", - title1: "Common usage", - p1: "If you reveal your secrets to the wind you should not blame the wind for revealing them to the trees.", - p2: "Nothing can help us endure dark times better than our faith. ", - p3: "If you can do what you do best and be happy, you're further along in life than most people.", - title2: "Component interpolation", - info: "The default language of Element is Chinese. If you wish to use another language, please refer to the {action}.", - value: "documentation" - } + 'zh': { + column: { + classification: '所属分类', + label: '主题', + titlePlaceholder: '请输入搜索内容', + selectPlaceholder: '请选择', + all: '不限', + hot: '热点内容', + latestNews: '最新资讯', + views: '浏览', + download: '下载', + attachmentDownload: '附件下载', + editor: '编辑', + auditor: '审核', + comingSoon: '即将召开', + alreadyHeld: '已经召开', + content: '内容介绍', + time: '时间', + address: '地址', + online: '线上', + speaker: '主讲人', + series: '演讲系列', } + }, + 'en': { + column: { + classification: 'Type', + label: 'Topic', + titlePlaceholder: 'Please enter the search content', + selectPlaceholder: 'Please Select', + all: 'All', + hot: 'Most View', + latestNews: 'Latest News', + views: 'Views', + download: 'Download', + attachmentDownload: 'Attachment Download', + edit: 'Editor', + auditor: 'Auditor', + comingSoon: 'Coming Soon', + alreadyHeld: 'Already Held', + content: 'Abstract', + time: 'Time', + address: 'Location', + online: 'Online', + speaker: 'Speaker', + series: 'Series' + } + } }; \ No newline at end of file diff --git a/src/layouts/footer/index.vue b/src/layouts/footer/index.vue index ad3b571..56a9295 100644 --- a/src/layouts/footer/index.vue +++ b/src/layouts/footer/index.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 124326e..42b33d9 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -11,10 +11,10 @@
- +
- - + +
@@ -22,7 +22,6 @@ + + \ No newline at end of file diff --git a/src/pages/news/index.vue b/src/pages/news/index.vue index aea4ae9..0ae77ac 100644 --- a/src/pages/news/index.vue +++ b/src/pages/news/index.vue @@ -52,7 +52,7 @@

{{ modules[2].form.title }}

{{ modules[2].form.des }}

-
+
{{ articles[0].title }}
@@ -92,7 +92,7 @@

{{ modules[4].form.title }}

{{ modules[4].form.des }}

-
+
@@ -146,7 +146,8 @@ export default { articles: [], articles1: [], curInd: 0, - curArticle: {} + curArticle: {}, + timer: null } }, mounted() { @@ -197,9 +198,19 @@ export default { } this.modules = json + this.carouselInterval() } }).catch(err => {}) }, + // 自动轮播 + carouselInterval() { + clearInterval(this.timer) + this.timer = setInterval(() => { + this.curInd++ + if (this.curInd > 2) this.curInd = 0 + this.curArticle = this.modules[1].list[this.curColumn].articles[this.curInd] + }, 5000) + }, // 手动轮播切换 switchCarousel(i) { if (this.curInd !== i) { @@ -400,6 +411,7 @@ export default { width: 660px; margin-right: 20px; background-color: #fff; + cursor: pointer; .texts { padding: 40px 30px; } @@ -497,6 +509,7 @@ export default { width: 688px; margin-right: 20px; background-color: #fff; + cursor: pointer; .texts { display: flex; padding: 40px 30px; diff --git a/src/router/modules/column.js b/src/router/modules/column.js index 1bd7a04..85c9344 100644 --- a/src/router/modules/column.js +++ b/src/router/modules/column.js @@ -9,6 +9,12 @@ export default { path: `/${name}`, component: () => import(`@/pages/${name}`), meta: { title: '' } + }, + { + name: `${name}-result`, + path: `/${name}/result`, + component: () => import(`@/pages/${name}/result`), + meta: { title: '' } } ] }; diff --git a/src/setting.js b/src/setting.js index b26ab4b..d17ac60 100644 --- a/src/setting.js +++ b/src/setting.js @@ -1,67 +1,38 @@ /** * 业务配置 * */ - const url = location.host; - const isDev = process.env.NODE_ENV === 'development' // 开发环境 - let host = `${location.origin}/` - if (isDev) { - host = 'http://192.168.31.136:10000/' // 测试服 - // host = 'https://31k70639y6.zicp.fun/' // 测试服 - // host = 'http://192.168.31.51:10000/' // 榕 - // host = 'http://192.168.31.137:10000/' // 赓 - } - - const Setting = { - /** - * 基础配置 - * */ - titleSuffix: '粒子研究院', // 网页标题的后缀 - routerMode: "hash", // 路由模式,可选值为 history 或 hash - showProgressBar: true, // 页面切换时,是否显示模拟的进度条 - apiBaseURL: host, // 接口请求地址 - autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间 - modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒 - errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice - cookiesExpires: 1, // Cookies 默认保存时间,单位:天 - tokenExpires: 1296000000, // token在localStorage的时间(毫秒) - isDev, - /** - * 路由白名单 - * */ - whiteList: ['/login', '/redirect'], - /** - * localStorage里保存的token的key - */ - tokenKey: "IASF_client_token", - /** - * localStorage里保存的vuex的key - */ - storeKey: "IASF_client_store", - /** - * 默认密码 - */ - initialPassword: "111aaa", - /** - * 多语言配置 - * */ - i18n: { - // 默认语言 - default: "zh", - // 是否根据用户电脑配置自动设置语言(仅第一次有效) - auto: false - }, - /** - * 布局配置 - * */ - layout: {}, - /** - * 功能配置 - * */ - // 相同路由,不同参数间进行切换,是否强力更新 - sameRouteForceUpdate: false, - // 是否使用动态路由(即角色权限,开启了的话就会取后端返回的权限树来显示头部导肮和页面按钮) - dynamicRoute: true - }; - - export default Setting; - \ No newline at end of file +const isDev = process.env.NODE_ENV === 'development' // 开发环境 +let host = `${location.origin}/` +if (isDev) { + host = 'http://192.168.31.136:10000/' // 测试服 + // host = 'https://31k70639y6.zicp.fun/' // 测试服 + // host = 'http://192.168.31.51:10000/' // 榕 + host = 'http://192.168.31.116:10000/' // 赓 +} + +const Setting = { + /** + * 基础配置 + * */ + titleSuffix: '粒子研究院', // 网页标题的后缀 + routerMode: "hash", // 路由模式,可选值为 history 或 hash + apiBaseURL: host, // 接口请求地址 + autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间 + modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒 + errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice + isDev, + /** + * 路由白名单 + * */ + whiteList: [], + /** + * 英文站点id数组 + * */ + enIds: [1, 4, 6], + /** + * localStorage里保存的vuex的key + */ + storeKey: "IASF_client_store" +}; + +export default Setting; diff --git a/src/styles/common.scss b/src/styles/common.scss index 4e25614..265f5ee 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -25,6 +25,10 @@ font-family: toppan; src: url('font/toppan.otf'); } +@font-face { + font-family: ProximaNova; + src: url('font/ProximaNova-Regular.otf'); +} [v-cloak] { display: none; diff --git a/src/styles/font/ProximaNova-Regular.otf b/src/styles/font/ProximaNova-Regular.otf new file mode 100644 index 0000000..27c8d8f Binary files /dev/null and b/src/styles/font/ProximaNova-Regular.otf differ