Compare commits

...

2 Commits

Author SHA1 Message Date
yujialong e76b1bc44b fix 3 weeks ago
yujialong 4a011c51d7 fix 3 months ago
  1. 1516
      src/const/modules.js
  2. 2
      src/pages/article/add/editor.js
  3. 12
      src/pages/column/page/application.vue
  4. 4
      src/pages/column/page/contactUs.vue
  5. 26
      src/pages/column/page/governance.vue
  6. 56
      src/store/modules/user.js

File diff suppressed because it is too large Load Diff

@ -309,7 +309,7 @@ export default {
title: '人物详情', description: '', content: ` title: '人物详情', description: '', content: `
<div class="tiny-wrap"> <div class="tiny-wrap">
<div class="people"> <div class="people">
<img class="pic" src="https://new.iasf.ac.cn/images/team/5.png"/> <img class="pic" src="https://www.iasf.ac.cn/images/team/5.png"/>
<div class="texts"> <div class="texts">
<h6>谢明远 XIE Mingyuan</h6> <h6>谢明远 XIE Mingyuan</h6>
<div class="text"> <div class="text">

@ -82,7 +82,7 @@
</div> </div>
<ul class="news"> <ul class="news">
<li> <li>
<img src="https://new.iasf.ac.cn/images/home/3.png" alt=""> <img src="https://www.iasf.ac.cn/images/home/3.png" alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities,
@ -92,7 +92,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="https://new.iasf.ac.cn/images/home/3.png" alt=""> <img src="https://www.iasf.ac.cn/images/home/3.png" alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities,
@ -102,7 +102,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="https://new.iasf.ac.cn/images/home/3.png" alt=""> <img src="https://www.iasf.ac.cn/images/home/3.png" alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities,
@ -112,7 +112,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="https://new.iasf.ac.cn/images/home/3.png" alt=""> <img src="https://www.iasf.ac.cn/images/home/3.png" alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities,
@ -122,7 +122,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="https://new.iasf.ac.cn/images/home/3.png" alt=""> <img src="https://www.iasf.ac.cn/images/home/3.png" alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities,
@ -132,7 +132,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="https://new.iasf.ac.cn/images/home/3.png" alt=""> <img src="https://www.iasf.ac.cn/images/home/3.png" alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities,

@ -91,8 +91,8 @@ export default {
.block { .block {
padding: 2rem 0; padding: 2rem 0;
background: url(https://new.iasf.ac.cn/images/contactUs/3.png) 0 130px no-repeat, background: url(https://www.iasf.ac.cn/images/contactUs/3.png) 0 130px no-repeat,
url(https://new.iasf.ac.cn/images/contactUs/4.png) bottom right no-repeat; url(https://www.iasf.ac.cn/images/contactUs/4.png) bottom right no-repeat;
background-color: #f7f8fa; background-color: #f7f8fa;
} }

@ -34,21 +34,23 @@
</div> </div>
</div> </div>
<div class="cards"> <div class="c-wrap">
<ul> <div class="cards">
<li v-for="(item, i) in modules[2].list" :key="i">{{ item.title }}</li> <ul>
<div class="cover" @click="toSet(2)">点击配置文本</div> <li v-for="(item, i) in modules[2].list" :key="i">{{ item.title }}</li>
</ul> </ul>
</div> </div>
<div class="block committee gray"> <div class="block committee gray">
<div class="inner c-wrap"> <div class="inner c-wrap">
<div class="left"> <div class="left">
<h2>{{ modules[2].list[curYear].list[0].title }}</h2> <h2>{{ modules[2].list[curYear].list[0].title }}</h2>
<div class="text" v-html="modules[2].list[curYear].list[0].des"></div> <div class="text" v-html="modules[2].list[curYear].list[0].des"></div>
</div>
<img class="pic" :src="modules[2].list[curYear].list[0].pic" alt="">
</div> </div>
<img class="pic" :src="modules[2].list[curYear].list[0].pic" alt="">
</div> </div>
<div class="cover" @click="toSet(2)">点击配置文本</div>
</div> </div>
</div> </div>

@ -6,35 +6,35 @@ import addRoutes from '@/libs/route/addRoutes'
* 用户信息 * 用户信息
* */ * */
export default { export default {
namespaced: true, namespaced: true,
state: { state: {
avatar: 'https://new.iasf.ac.cn/images/avatar.png', avatar: 'https://www.iasf.ac.cn/images/avatar.png',
userId: '', userId: '',
userName: '', userName: '',
crumbs: '' crumbs: ''
},
mutations: {
setAvatar: (state, avatar) => {
if (avatar) state.avatar = avatar
}, },
mutations: { setUserId: (state, userId) => {
setAvatar: (state, avatar) => { state.userId = userId
if (avatar) state.avatar = avatar
},
setUserId: (state, userId) => {
state.userId = userId
},
setUserName: (state, userName) => {
state.userName = userName
},
setCrumbs: (state, crumbs) => {
state.crumbs = crumbs
}
}, },
actions: { setUserName: (state, userName) => {
logout({ commit, state, dispatch }) { state.userName = userName
return new Promise((resolve, reject) => { },
util.local.remove(Setting.storeKey) setCrumbs: (state, crumbs) => {
util.local.remove(Setting.tokenKey) state.crumbs = crumbs
location.reload() }
resolve() },
}) actions: {
} logout ({ commit, state, dispatch }) {
return new Promise((resolve, reject) => {
util.local.remove(Setting.storeKey)
util.local.remove(Setting.tokenKey)
location.reload()
resolve()
})
} }
}
}; };
Loading…
Cancel
Save