整理个人主页不对的,或未完善的地方

This commit is contained in:
daihh
2022-10-14 16:17:18 +08:00
parent 394352ef3d
commit 216ac6b0a3
13 changed files with 342 additions and 187 deletions

View File

@@ -1,8 +1,8 @@
<template>
<div class="errPage-container">
<el-button icon="arrow-left" class="pan-back-btn" @click="back">
返回
</el-button>
<div>
<portal-header current="article"></portal-header>
<div class="errPage-container">
<el-row>
<el-col :span="12">
<h1 class="text-jumbo text-ginormous">
@@ -12,27 +12,30 @@
<h6>对不起您没有访问权限请不要进行非法操作您可以返回主页面</h6>
<ul class="list-unstyled">
<li class="link-type">
<router-link to="/">
<router-link to="/index">
回首页
</router-link>
</li>
</ul>
</el-col>
<el-col :span="12">
</el-col>
</el-row>
</div>
</div>
</template>
<script>
import portalHeader from '@/components/PortalHeader.vue';
import portalFooter from '@/components/PortalFooter.vue';
export default {
name: 'Page401',
components: { portalHeader, portalFooter},
data() {
return {
}
},
methods: {

View File

@@ -1,31 +1,37 @@
<template>
<div class="wscn-http404-container">
<div class="wscn-http404">
<div class="pic-404">
</div>
<div class="bullshit">
<div class="bullshit__oops">
404错误!
<div>
<portal-header current="article"></portal-header>
<div class="wscn-http404-container">
<div class="wscn-http404">
<div class="pic-404">
</div>
<div class="bullshit">
<div class="bullshit__oops">
404错误!
</div>
<div class="bullshit__headline">
{{ message }}
</div>
<div class="bullshit__info">
对不起您正在寻找的页面不存在尝试检查URL的错误然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容
</div>
<router-link to="/index" class="bullshit__return-home">
返回首页
</router-link>
</div>
</div>
</div>
<div class="bullshit__headline">
{{ message }}
</div>
<div class="bullshit__info">
对不起您正在寻找的页面不存在尝试检查URL的错误然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容
</div>
<router-link to="/" class="bullshit__return-home">
返回首页
</router-link>
</div>
</div>
</div>
</template>
<script>
import portalHeader from '@/components/PortalHeader.vue';
import portalFooter from '@/components/PortalFooter.vue';
export default {
name: 'Page404',
components: { portalHeader, portalFooter},
computed: {
message() {
return '找不到网页!'
@@ -36,14 +42,12 @@ export default {
<style lang="scss" scoped>
.wscn-http404-container{
transform: translate(-50%,-50%);
position: absolute;
top: 40%;
left: 50%;
width: 500px;
margin: 0px auto;
padding-top: 100px;
}
.wscn-http404 {
position: relative;
width: 1200px;
padding: 0 50px;
overflow: hidden;
.pic-404 {

View File

@@ -1,33 +1,36 @@
<template>
<div class="errPage-container">
<el-button icon="arrow-left" class="pan-back-btn" @click="back">
返回
</el-button>
<el-row>
<el-col :span="12">
<h1 class="text-jumbo text-ginormous">
500错误!
</h1>
<h2>系统访问错误</h2>
<h6>对不起系统无法连接请检查网络或咨询管理人员</h6>
<ul class="list-unstyled">
<li class="link-type">
<a href="/web/">转向登录</a>
</li>
</ul>
</el-col>
<el-col :span="12">
<div>
<portal-header current="article"></portal-header>
<div class="errPage-container">
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<h1 class="text-jumbo text-ginormous">
页面路径错误或500错误!
</h1>
<h2>系统访问错误</h2>
<h6>对不起系统无法连接请检查网络或咨询管理人员</h6>
<ul class="list-unstyled">
<li class="link-type">
<a href="/pc/login">转向登录</a>
</li>
</ul>
</el-col>
<el-col :span="12">
</el-col>
</el-row>
</div>
<portal-footer></portal-footer>
</div>
</template>
<script>
import portalHeader from '@/components/PortalHeader.vue';
import portalFooter from '@/components/PortalFooter.vue';
export default {
name: 'Page401',
name: 'Page500',
components: { portalHeader, portalFooter},
data() {
return {

View File

@@ -3,7 +3,6 @@
<top></top>
<div style="height:72px"></div>
<UcHeader></UcHeader>
<div class="home-page-box">
<router-view />
<div class="home-page-right">
@@ -46,7 +45,7 @@
</div>
</div>
</template>
<script>
import top from '../../layout/components/TopNav/Index.vue'
import UcHeader from '@/components/HomePage/homePage.vue'
@@ -70,17 +69,28 @@
interestedList:[],
follow:{
initiative: 0,
passive: 0
passive: 0
}
}
},
created() {
if(!this.$route.query.id){
this.$router.push({path:'/404'})
}else{
this.init();
}
this.pageId = this.$route.query.id;
},
mounted() {
this.pageId = this.$route.query.id;
this.getMedal();
this.userhobbyInfo();
this.getFollow();
},
},
methods:{
init(){
this.getMedal();
this.userhobbyInfo();
this.getFollow();
},
getFollow(){
apiFollow.counts(this.pageId).then(res=>{
if(res.status == 200) {
@@ -117,7 +127,7 @@
}
}
</script>
<style lang="scss" scoped>
.home-page{
::v-deep .el-tabs__active-bar{
@@ -201,7 +211,7 @@
color: #666666;
}
}
}
.ach-title{
font-size: 18px;
@@ -265,4 +275,3 @@
}
}
</style>

View File

@@ -126,8 +126,17 @@
// }
// }
// },
mounted() {
created(){
if(this.$route.query.id && this.$route.query.id!=''){
this.init();
}else{
//this.$message.error("参数错误");
//跳转到错误页面
this.$router.push({path:'/404'})
}
},
mounted() {
},
methods:{
init(){

View File

@@ -18,7 +18,7 @@
<div class="title">{{articleDetailData.title}}</div>
<div class="label">
<div style="margin-top: 5px;">
<author :avatar="articleDetailData.avatar" :name="articleDetailData.name" :sex="articleDetailData.sex"></author>
<author :aid="articleDetailData.sysCreateAid" :avatar="articleDetailData.avatar" :name="articleDetailData.name" :sex="articleDetailData.sex"></author>
</div>
<div style="margin-top: 8px;padding-left: 15px;font-size: 14px;">
{{authorSign}}
@@ -147,6 +147,7 @@ export default {
articleId:'',
shareUsers:[],
articleDetailData:{
sysCreateAid:'',
avatar:'',
name:'',
orgInfo:'',

View File

@@ -18,7 +18,7 @@
<span style="text-align: right;" v-if="caseDetail.sysCreateTime"> <i class="el-icon-time"></i> {{ caseDetail.sysCreateTime.substring(0,10) }}</span>
</div>
<div class="label">
<author :onlyAvatar="true" :avatar="authorInfo.avatar" :sex="authorInfo.sex" ></author>
<author :aid="caseDetail.sysCreateAid" :onlyAvatar="true" :avatar="authorInfo.avatar" :sex="authorInfo.sex" ></author>
<span>案主{{ authorInfo.name }} ({{authorInfo.orgInfo}})</span>
<!-- <span>案主{{ authorInfo.name }}</span>
<span>工号{{ authorInfo.code }}</span>
@@ -205,6 +205,7 @@ export default {
basePath:process.env.VUE_APP_FILE_BASE_URL,
pdfPath:'',
caseDetail: {
sysCreateAid:'',
id:'',
filePath:''
},