diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2b7c7e4
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# 职站前台前端
\ No newline at end of file
diff --git a/src/assets/img/index/customer1.jpg b/src/assets/img/index/customer1.jpg
deleted file mode 100644
index 69cb274..0000000
Binary files a/src/assets/img/index/customer1.jpg and /dev/null differ
diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue
index e8a380c..0731ba2 100644
--- a/src/layouts/header/index.vue
+++ b/src/layouts/header/index.vue
@@ -25,7 +25,7 @@
-
+
登录
@@ -66,6 +66,7 @@ export default {
...mapActions("user", [
"logout", "setTitle", "setLogoUrl", "setAvatar", "setUserName"
]),
+ // 获取logo和平台名
getSystemDetail () {
this.$get(this.api.logoDetail).then(({ data }) => {
if (data) {
@@ -74,6 +75,7 @@ export default {
}
}).catch(res => {});
},
+ // 获取用户信息
getUserInfo() {
this.$get(this.api.queryUserInfoDetails).then(res => {
const {userAvatars, userName} = res.result.hrUserInfo || {}
@@ -89,25 +91,28 @@ export default {
// 用户名下拉回调
menuChange(e) {
if (e === 'index') {
- window.open(this.$router.resolve('/station').href)
+ this.toNew('/station')
} else if (e === 'info') {
window.open(this.$router.resolve('/setting/person').href)
} else if (e === 'logout') {
this.logout()
}
},
+ // 前往首页
toIndex() {
this.$refs.nav.jump({
index: this.isIndex ? '/index/list' : '/station/list'
})
},
- toLogin() {
+ // 打开新tab
+ toNew(path) {
+ // 如果缓存里有教师端的标识,则前往教师端,否则,打开学生端
if (util.cookies.get('serverLogin') === 'true' && util.local.get('oc_server_token')) {
window.open(process.env.NODE_ENV === 'development' ?
'http://192.168.31.125:8081/#/index' :
`${location.origin}/admin/#/index`)
} else {
- window.open(this.$router.resolve('/login').href)
+ window.open(this.$router.resolve(path).href)
}
}
}
diff --git a/src/pages/course/list/index.vue b/src/pages/course/list/index.vue
index aba0427..2fa68b1 100644
--- a/src/pages/course/list/index.vue
+++ b/src/pages/course/list/index.vue
@@ -206,6 +206,7 @@ export default {
img {
width: 100%;
height: 165px;
+ transition: .3s;
}
.title {
@@ -242,6 +243,9 @@ export default {
&:hover {
box-shadow: 0px 5px 12px 4px rgba(142, 123, 253, 0.09), 0px 3px 6px 0px rgba(142, 123, 253, 0.12), 0px 1px 2px -2px rgba(142, 123, 253, 0.16);
+ img {
+ transform: scale(1.05);
+ }
}
}
}
diff --git a/src/pages/match/details/index.vue b/src/pages/match/details/index.vue
index e1b490e..abb7b95 100644
--- a/src/pages/match/details/index.vue
+++ b/src/pages/match/details/index.vue
@@ -263,7 +263,7 @@ export default {
this.$message.success('报名成功')
this.status = 1;
}).catch(res => {})
- } else if (status === 1) {
+ } else if (status == 1) {
// 已报名,点击取消报名
this.$confirm('是否要取消报名?', '提示', {
type: 'success'
diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue
index 51c0d81..6d6cfb2 100644
--- a/src/pages/match/list/index.vue
+++ b/src/pages/match/list/index.vue
@@ -135,6 +135,7 @@