图片上传到服务器

mobile
yujialong 2 years ago
parent e19b6b68c3
commit 66c61d9120
  1. BIN
      src/assets/images/careers/1.png
  2. BIN
      src/assets/images/careers/10.png
  3. BIN
      src/assets/images/careers/11.png
  4. BIN
      src/assets/images/careers/2.png
  5. BIN
      src/assets/images/careers/3.png
  6. BIN
      src/assets/images/careers/4.png
  7. BIN
      src/assets/images/careers/5.png
  8. BIN
      src/assets/images/careers/6.png
  9. BIN
      src/assets/images/careers/7.png
  10. BIN
      src/assets/images/careers/8.png
  11. BIN
      src/assets/images/careers/9.png
  12. BIN
      src/assets/images/edu/1.png
  13. BIN
      src/assets/images/edu/2.png
  14. BIN
      src/assets/images/edu/3.png
  15. BIN
      src/assets/images/edu/4.png
  16. BIN
      src/assets/images/edu/5.png
  17. BIN
      src/assets/images/news/1.png
  18. BIN
      src/assets/images/newsPress/1.png
  19. BIN
      src/assets/images/newsPress/2.png
  20. BIN
      src/assets/images/newsPress/3.png
  21. 12
      src/const/column.js
  22. 5
      src/layouts/footer/index.vue
  23. 25
      src/pages/article/index.vue
  24. 15
      src/pages/column/index.vue

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 828 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 982 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 776 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 825 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

@ -2,7 +2,7 @@
* 栏目配置 * 栏目配置
* */ * */
export default { export default {
// 栏目类型 // 栏目类型
types: [ types: [
{ {
@ -58,6 +58,16 @@ export default {
id: 7, id: 7,
path: 'newsProcurement', path: 'newsProcurement',
name: 'NEWS&EVENTS-PROCUREMENT' name: 'NEWS&EVENTS-PROCUREMENT'
},
{
id: 8,
path: 'research',
name: 'RESEARCH'
},
{
id: 9,
path: 'application',
name: 'APPLICATION'
} }
], ],
} }

@ -11,7 +11,7 @@
<div v-for="(item, i) in columns" :key="i" class="column"> <div v-for="(item, i) in columns" :key="i" class="column">
<h6 @click="jump(item)">{{ item.columnName }}</h6> <h6 @click="jump(item)">{{ item.columnName }}</h6>
<ul v-if="item.children.length" class="children"> <ul v-if="item.children.length" class="children">
<li v-for="(column, j) in item.children" :key="j" @click="jump(item)">{{ column.columnName }}</li> <li v-for="(column, j) in item.children" :key="j" @click="jump(column)">{{ column.columnName }}</li>
</ul> </ul>
</div> </div>
</div> </div>
@ -48,7 +48,6 @@ export default {
// //
jump(to) { jump(to) {
const { id } = to const { id } = to
this.active = to.id
const { typeId } = to const { typeId } = to
// //
if (typeId === 2) { if (typeId === 2) {
@ -76,7 +75,7 @@ export default {
} }
} else if (typeId !== 4 || (typeId === 4 && !to.children.length)) { } else if (typeId !== 4 || (typeId === 4 && !to.children.length)) {
// columnpath // columnpath
this.$router.push(`/${typeId === 3 ? row.path : 'column'}?id=${id}`).catch(err => {}) this.$router.push(`/${typeId === 3 ? to.path : 'column'}?id=${id}`).catch(err => {})
} }
} }
}, },

@ -27,23 +27,15 @@
<p class="l-title">热点内容</p> <p class="l-title">热点内容</p>
<ul class="list"> <ul class="list">
<li> <li v-for="(item, i) in hots" :key="i" :title="item.title" @click="toArtice(item)">
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p> <p class="text">{{ item.title }}</p>
<span class="date">2022-08-09</span> <span class="date">{{ item.createTime }}</span>
</li>
<li>
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p>
<span class="date">2022-08-09</span>
</li>
<li>
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p>
<span class="date">2022-08-09</span>
</li> </li>
</ul> </ul>
<p class="l-title">最新资讯</p> <p class="l-title">最新资讯</p>
<ul class="list"> <ul class="list">
<li v-for="(item, i) in news" :key="i"> <li v-for="(item, i) in news" :key="i" :title="item.title" @click="toArtice(item)">
<p class="text">{{ item.title }}</p> <p class="text">{{ item.title }}</p>
<span class="date">{{ item.createTime }}</span> <span class="date">{{ item.createTime }}</span>
</li> </li>
@ -74,6 +66,7 @@ export default {
label: 'columnName' label: 'columnName'
}, },
news: [], news: [],
hots: []
} }
}, },
components: { components: {
@ -139,6 +132,10 @@ export default {
this.columns = data this.columns = data
this.getInfo() this.getInfo()
}).catch(err => {}) }).catch(err => {})
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`).then(({ data }) => {
this.hots = data
}).catch(err => {})
}, },
// //
getArticle() { getArticle() {
@ -153,6 +150,10 @@ export default {
// //
download(e) { download(e) {
Util.downloadFile(e.fileName, e.filePath) Util.downloadFile(e.fileName, e.filePath)
},
//
toArtice(item) {
this.$router.push(`/article?id=${item.id}&site=${this.$route.query.siteId || this.site}`)
} }
} }
}; };

@ -88,7 +88,7 @@
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<el-tree class="column" ref="column" :data="infoColumns" highlight-current :expand-on-click-node="false" :props="defaultProps" node-key="id" ></el-tree> <el-tree class="column" ref="column" :data="infoColumns" highlight-current :expand-on-click-node="false" :props="defaultProps" node-key="id" @node-click="columnClick"></el-tree>
<p class="l-title">热点内容</p> <p class="l-title">热点内容</p>
<ul class="list"> <ul class="list">
@ -220,7 +220,8 @@ export default {
this.curColumn = 0 this.curColumn = 0
this.columns = data this.columns = data
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.leftColumn.setCurrentKey(this.id) const el = this.$refs.leftColumn
el && el.setCurrentKey(this.id)
}) })
}).catch(err => {}) }).catch(err => {})
}, },
@ -257,7 +258,6 @@ export default {
}, },
// //
columnClick(to) { columnClick(to) {
console.log("🚀 ~ file: index.vue ~ line 268 ~ columnClick ~ data", to)
const { typeId } = to const { typeId } = to
// //
if (typeId === 2) { if (typeId === 2) {
@ -283,12 +283,9 @@ export default {
} else { } else {
location.href = href location.href = href
} }
} else if (typeId === 3) { } else if (typeId !== 4 || (typeId === 4 && !to.children.length)) {
// path // columnpath
this.$router.push(`/${to.path}?id=${to.id}`).catch(err => {}) this.$router.push(`/${typeId === 3 ? to.path : 'column'}?id=${to.id}`).catch(err => {})
} else {
this.page = 1
this.getArticle([to.id])
} }
}, },
// //

Loading…
Cancel
Save