图片上传到服务器

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. 10
      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

@ -58,6 +58,16 @@ export default {
id: 7,
path: 'newsProcurement',
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">
<h6 @click="jump(item)">{{ item.columnName }}</h6>
<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>
</div>
</div>
@ -48,7 +48,6 @@ export default {
//
jump(to) {
const { id } = to
this.active = to.id
const { typeId } = to
//
if (typeId === 2) {
@ -76,7 +75,7 @@ export default {
}
} else if (typeId !== 4 || (typeId === 4 && !to.children.length)) {
// 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>
<ul class="list">
<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>
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p>
<span class="date">2022-08-09</span>
<li v-for="(item, i) in hots" :key="i" :title="item.title" @click="toArtice(item)">
<p class="text">{{ item.title }}</p>
<span class="date">{{ item.createTime }}</span>
</li>
</ul>
<p class="l-title">最新资讯</p>
<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>
<span class="date">{{ item.createTime }}</span>
</li>
@ -74,6 +66,7 @@ export default {
label: 'columnName'
},
news: [],
hots: []
}
},
components: {
@ -139,6 +132,10 @@ export default {
this.columns = data
this.getInfo()
}).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() {
@ -153,6 +150,10 @@ export default {
//
download(e) {
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 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>
<ul class="list">
@ -220,7 +220,8 @@ export default {
this.curColumn = 0
this.columns = data
this.$nextTick(() => {
this.$refs.leftColumn.setCurrentKey(this.id)
const el = this.$refs.leftColumn
el && el.setCurrentKey(this.id)
})
}).catch(err => {})
},
@ -257,7 +258,6 @@ export default {
},
//
columnClick(to) {
console.log("🚀 ~ file: index.vue ~ line 268 ~ columnClick ~ data", to)
const { typeId } = to
//
if (typeId === 2) {
@ -283,12 +283,9 @@ export default {
} else {
location.href = href
}
} else if (typeId === 3) {
// path
this.$router.push(`/${to.path}?id=${to.id}`).catch(err => {})
} else {
this.page = 1
this.getArticle([to.id])
} else if (typeId !== 4 || (typeId === 4 && !to.children.length)) {
// columnpath
this.$router.push(`/${typeId === 3 ? to.path : 'column'}?id=${to.id}`).catch(err => {})
}
},
//

Loading…
Cancel
Save