yujialong 3 months ago
parent f1fa775531
commit 4a011c51d7
  1. 1502
      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. 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: `
<div class="tiny-wrap">
<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">
<h6>谢明远 XIE Mingyuan</h6>
<div class="text">

@ -82,7 +82,7 @@
</div>
<ul class="news">
<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">
<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,
@ -92,7 +92,7 @@
</div>
</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">
<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,
@ -102,7 +102,7 @@
</div>
</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">
<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,
@ -112,7 +112,7 @@
</div>
</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">
<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,
@ -122,7 +122,7 @@
</div>
</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">
<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,
@ -132,7 +132,7 @@
</div>
</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">
<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,

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

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