token改成存sessionStorage里面(保证一个账号只能在一个浏览器的tab页保持登录状态,由此避免子系统的tab页多开)

dev_202412
yujialong 3 months ago
parent b7142db102
commit 961ed45cc3
  1. 28
      src/App.vue
  2. 62
      src/components/quill/index.vue
  3. 2
      src/components/upload/config.js
  4. 6
      src/layouts/header/index.vue
  5. 8
      src/layouts/home/index.vue
  6. 4
      src/layouts/navbar/index.vue
  7. 2
      src/pages/account/login/index.vue
  8. 2
      src/pages/account/redirect/index.vue
  9. 6
      src/pages/activity/details/index.vue
  10. 624
      src/pages/activity/list/index.vue
  11. 414
      src/pages/activity/manage/add/index.vue
  12. 97
      src/pages/activity/manage/manage/matchSignup.vue
  13. 67
      src/pages/activity/manage/manage/notice.vue
  14. 228
      src/pages/activity/manage/manage/noticeDetail.vue
  15. 2
      src/pages/ass/list/index.vue
  16. 512
      src/pages/cityPartner/list/index.vue
  17. 613
      src/pages/course/details/index.vue
  18. 2
      src/pages/course/list/index.vue
  19. 416
      src/pages/devPlatform/list/index.vue
  20. 1624
      src/pages/index/list/index.vue
  21. 2
      src/pages/index/zxy/index.vue
  22. 10
      src/pages/match/details/index.vue
  23. 10
      src/pages/match/list/index.vue
  24. 1034
      src/pages/product/list/index.vue
  25. 2
      src/pages/record/details/index.vue
  26. 2
      src/pages/record/list/index.vue
  27. 2
      src/pages/record/theoryReport/index.vue
  28. 2
      src/pages/screen/index.vue
  29. 94
      src/pages/setting/person/index.vue
  30. 6
      src/pages/station/preview/index.vue
  31. 4
      src/pages/theoryExam/index.vue
  32. 12
      src/pages/touristMatch/list/index.vue
  33. 2
      src/plugins/requests/index.js
  34. 2
      src/router/permission.js
  35. 2
      src/setting.js
  36. 2
      src/store/modules/user.js

@ -1,7 +1,7 @@
<template>
<div id="app">
<router-view></router-view>
</div>
<div id="app">
<router-view></router-view>
</div>
</template>
<script>
@ -9,17 +9,17 @@ import Setting from "@/setting";
import util from "@/libs/util";
export default {
name: "App",
created() {
//localStorage
if (util.local.get(Setting.storeKey)) {
this.$store.replaceState(Object.assign({}, this.$store.state, util.local.get(Setting.storeKey)));
}
//vuexlocalStorage
window.addEventListener("beforeunload", () => {
util.local.get(Setting.tokenKey) && util.local.set(Setting.storeKey, this.$store.state);
});
name: "App",
created () {
//localStorage
if (util.local.get(Setting.storeKey)) {
this.$store.replaceState(Object.assign({}, this.$store.state, util.local.get(Setting.storeKey)));
}
//vuexlocalStorage
window.addEventListener("beforeunload", () => {
util.session.get(Setting.tokenKey) && util.local.set(Setting.storeKey, this.$store.state);
});
}
};
</script>

@ -1,19 +1,11 @@
<template>
<div class="quill"
ref="quill"
:class="classes">
<div ref="editor"
:style="styles"
v-loading="loading"></div>
<div class="quill" ref="quill" :class="classes">
<div ref="editor" :style="styles" v-loading="loading"></div>
<Upload :max-size="1000"
:limit="100"
@beforeUpload="beforeUpload"
@onSuccess="editorUploadSuccess"
style="display: none">
<Upload :max-size="1000" :limit="100" @beforeUpload="beforeUpload" @onSuccess="editorUploadSuccess"
style="display: none">
<div slot="trigger">
<el-button :id="'editorUpload' + index"
type="primary">点击上传</el-button>
<el-button :id="'editorUpload' + index" type="primary">点击上传</el-button>
</div>
</Upload>
</div>
@ -75,7 +67,7 @@ export default {
const that = this
return {
headers: {
token: util.local.get(Setting.tokenKey)
token: util.session.get(Setting.tokenKey)
},
Quill: null,
currentValue: "",
@ -236,31 +228,33 @@ export default {
</script>
<style lang="scss" scoped>
.quill-no-border {
.ql-toolbar.ql-snow {
border: none;
border-bottom: 1px solid #e8eaec;
}
.ql-toolbar.ql-snow {
border: none;
border-bottom: 1px solid #e8eaec;
}
.ql-container.ql-snow {
border: none;
}
.ql-container.ql-snow {
border: none;
}
}
.else {
.ql-toolbar.ql-snow {
height: 0;
overflow: hidden;
padding: 0;
border-top: 0;
}
.ql-toolbar.ql-snow {
height: 0;
overflow: hidden;
padding: 0;
border-top: 0;
}
}
/deep/.ql-snow {
position: relative;
.ql-tooltip {
position: absolute !important;
top: 10px !important;
left: 10px !important;
transform: translateY(10px);
}
position: relative;
.ql-tooltip {
position: absolute !important;
top: 10px !important;
left: 10px !important;
transform: translateY(10px);
}
}
</style>

@ -12,7 +12,7 @@ export default async function () {
RE = JSON.parse(RE)
} else {
Util.local.remove(Setting.storeKey)
Util.local.remove(Setting.tokenKey)
Util.session.remove(Setting.tokenKey)
Util.errorMsg('登录过期,请重新登录!')
router.replace({
path: '/login'

@ -80,7 +80,7 @@ export default {
isDev: Setting.isDev,
isZj: location.host === '10.60.32.76', //
isSq: Setting.isSq,
token: Util.local.get(Setting.tokenKey), // token
token: Util.session.get(Setting.tokenKey), // token
serverToken: Util.local.get('oc_server_token'), // token
cName: Util.cookies.get('customerName'),
isIndex: Setting.whiteList.find(e => e === this.$route.path), //
@ -102,7 +102,7 @@ export default {
])
},
mounted () {
if (Util.local.get(Setting.tokenKey)) {
if (Util.session.get(Setting.tokenKey)) {
if (this.showHeader) {
this.getSystemDetail()
this.getNotice()
@ -178,7 +178,7 @@ export default {
//
heartbeatDetection () {
this.timer = setInterval(async () => {
Util.local.get(Setting.tokenKey) ? await this.$get(this.api.heartbeatDetection) : clearInterval(this.timer)
Util.session.get(Setting.tokenKey) ? await this.$get(this.api.heartbeatDetection) : clearInterval(this.timer)
}, 58 * 1000)
},

@ -123,7 +123,7 @@ export default {
this.autoLogout()
this.noticed || this.getMatchStatus() // 0
this.logView || this.getLogStatus() // logViewfalse
util.local.get(Setting.tokenKey) && this.handleRealName()
util.session.get(Setting.tokenKey) && this.handleRealName()
},
methods: {
...mapMutations("user", [
@ -146,7 +146,7 @@ export default {
},
// ()
getMatchStatus () {
util.local.get(Setting.tokenKey) && this.$post(this.api.promptRemoval).then(({ prompt }) => {
util.session.get(Setting.tokenKey) && this.$post(this.api.promptRemoval).then(({ prompt }) => {
this.SET_NOTICE()
prompt && util.errorMsg(prompt)
}).catch(res => { })
@ -164,7 +164,7 @@ export default {
},
//
getLogStatus () {
util.local.get(Setting.tokenKey) && this.$get(this.api.logNotification, {
util.session.get(Setting.tokenKey) && this.$get(this.api.logNotification, {
platformId: Setting.platformId
}).then(({ notification }) => {
if (notification) {
@ -200,7 +200,7 @@ export default {
};
setInterval(() => {
if (util.local.get(Setting.tokenKey) && (new Date().getTime() - lastTime) > Setting.autoLogoutTime) {
if (util.session.get(Setting.tokenKey) && (new Date().getTime() - lastTime) > Setting.autoLogoutTime) {
util.errorMsg("由于您已经有三个小时没有操作,系统自动登出,请重新登录。页面刷新到登录页。");
setTimeout(this.logout, 1500);
}

@ -30,7 +30,7 @@ export default {
},
data () {
return {
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
isTourist: false,
active: '/' + this.$route.path.split('/')[1] + '/list',
//
@ -169,7 +169,7 @@ export default {
//
window.open(this.$router.resolve('/screen').href)
} else {
const token = util.local.get(Setting.tokenKey)
const token = util.session.get(Setting.tokenKey)
//
if (!token && this.loginedMenu.find(e => e.id === id)) {
location.reload()

@ -393,7 +393,7 @@ export default {
},
//
setLogin () {
Util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires)
Util.session.set(Setting.tokenKey, this.token)
this.getOss()
Util.cookies.remove('serverLogin')
this.reloadIndex()

@ -143,7 +143,7 @@ export default {
},
//
setLogin () {
Util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires)
Util.session.set(Setting.tokenKey, this.token)
this.getOss()
Util.cookies.remove('serverLogin')
this.reloadIndex()

@ -107,7 +107,7 @@ export default {
data () {
return {
routes: [],
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
id: +this.$route.query.id,
end: '',
status: '',
@ -316,7 +316,7 @@ export default {
// python
toPython () {
const form = this.curStage
let token = util.local.get(Setting.tokenKey);
let token = util.session.get(Setting.tokenKey);
util.cookies.set('assessmentId', '', -1)
util.cookies.set('startTime', '', -1)
util.cookies.set('stopTime', '', -1)
@ -345,7 +345,7 @@ export default {
const { systemId, projectId, cid, stageId } = this.curStage
const competitionId = form.id
const teamId = form.competitionRegistration.teamId
let token = util.local.get(Setting.tokenKey);
let token = util.session.get(Setting.tokenKey);
if (systemId == 11) {
//
location.href = `${Setting.systemPath}/#/index/list?curriculumName=${this.curriculumName}&token=${token}&cid=${cid}&systemId=${systemId}&projectId=${projectId}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&assessmentId=&classId=&stopTime=&test=true`

@ -3,22 +3,16 @@
<div class="search">
<h6>创业活动</h6>
<div class="input">
<img src="@/assets/img/search.png"
alt="">
<input type="text"
placeholder="请输入关键词"
v-model="keyword">
<img src="@/assets/img/search.png" alt="">
<input type="text" placeholder="请输入关键词" v-model="keyword">
</div>
</div>
<div class="main">
<div class="center-wrap list-inner">
<ul v-if="token"
class="nav">
<li :class="{ active: form.whetherToSignUp === item.id }"
v-for="(item, index) in typeList"
:key="index"
@click="changeType(item.id)">{{ item.name }}
<ul v-if="token" class="nav">
<li :class="{ active: form.whetherToSignUp === item.id }" v-for="(item, index) in typeList" :key="index"
@click="changeType(item.id)">{{ item.name }}
</li>
</ul>
<div class="list-wrap">
@ -27,63 +21,55 @@
<div>
<dl>
<dt>筛选排序</dt>
<dd v-for="(item, i) in sorts"
:key="i"
:class="{active: form.filterSort == item.id}"
@click="changeSort(item.id)">{{ item.name }}</dd>
<dd v-for="(item, i) in sorts" :key="i" :class="{ active: form.filterSort == item.id }"
@click="changeSort(item.id)">{{ item.name }}</dd>
</dl>
</div>
<el-button type="primary"
@click="toManage">我的项目</el-button>
<el-button type="primary" @click="toManage">我的项目</el-button>
</div>
<div class="list">
<template v-if="listData.length">
<ul>
<li v-for="(item,index) in listData"
:key="index"
@click="toDetail(item)">
<li v-for="(item, index) in listData" :key="index" @click="toDetail(item)">
<div class="left">
<div class="cover">
<img :src="item.coverUrl || 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20230515/jpg/1657937339328520192.jpg'"
alt="">
<img
:src="item.coverUrl || 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20230515/jpg/1657937339328520192.jpg'"
alt="">
</div>
<div class="info">
<div class="title">{{ item.projectName }}</div>
<div class="metas">
<div>
<span class="label">报名时间</span><span class="val">{{ item.signUpStartTime}} ~ {{ item.signUpEndTime }}</span>
<span class="label">报名时间</span><span class="val">{{ item.signUpStartTime }} ~ {{
item.signUpEndTime }}</span>
</div>
<div>
<span class="label">项目时间</span><span class="val">{{ item.playStartTime}} ~ {{ item.playEndTime }}</span>
<span class="label">项目时间</span><span class="val">{{ item.playStartTime }} ~ {{
item.playEndTime }}</span>
</div>
<template v-if="item.initiator">
<div :class="{'flex-top': item.initiator.split(',').length > 1}">
<div :class="{ 'flex-top': item.initiator.split(',').length > 1 }">
<span class="label">发起方&emsp;</span>
<span class="val">{{ item.initiator }}</span>
</div>
</template>
<div class="m-t-20"
@click.stop="follow(item)">
<div class="m-t-20" @click.stop="follow(item)">
<template v-if="item.collectionStatus">
<img class="m-r-5"
src="@/assets/img/love2.png"
alt="">
<img class="m-r-5" src="@/assets/img/love2.png" alt="">
{{ item.collectorsNum }}人关注
</template>
<img v-else
src="@/assets/img/love1.png"
alt="">
<img v-else src="@/assets/img/love1.png" alt="">
</div>
</div>
</div>
</div>
<div class="right">
<p class="status"
:class="{wait: item.status == 0,signing: item.status == 2,signed: item.status == 1,playing: item.status == 4,finish: item.status == 3 || item.status == 4}"
@click.stop="signup(item)">{{ statusList[item.status] }}</p>
<p class="end-text"
v-if="item.end">
:class="{ wait: item.status == 0, signing: item.status == 2, signed: item.status == 1, playing: item.status == 4, finish: item.status == 3 || item.status == 4 }"
@click.stop="signup(item)">{{ statusList[item.status] }}</p>
<p class="end-text" v-if="item.end">
距离{{ endList[item.status] }}还有
<em>{{ item.end }}</em>
</p>
@ -91,20 +77,15 @@
</li>
</ul>
<div class="pagination">
<el-pagination background
layout="total, prev, pager, next"
:total="totals"
@current-change="handleCurrentChange"
:current-page="page"
:page-size="pageSize">
<el-pagination background layout="total, prev, pager, next" :total="totals"
@current-change="handleCurrentChange" :current-page="page" :page-size="pageSize">
</el-pagination>
</div>
</template>
<template v-else>
<div class="empty">
<div>
<img src="@/assets/img/none.png"
alt="">
<img src="@/assets/img/none.png" alt="">
<p>暂无赛事</p>
</div>
</div>
@ -114,24 +95,15 @@
</div>
</div>
<el-dialog title="报名"
:visible.sync="signupVisible"
:close-on-click-modal="false"
width="300px">
<el-dialog title="报名" :visible.sync="signupVisible" :close-on-click-modal="false" width="300px">
<el-form class="dia-form">
<el-form-item>
<el-input placeholder="请输入4位数大赛邀请码"
maxlength="4"
v-model="invitationCode"></el-input>
<el-input placeholder="请输入4位数大赛邀请码" maxlength="4" v-model="invitationCode"></el-input>
</el-form-item>
</el-form>
<span slot="footer"
class="dialog-footer">
<el-button size="small"
type="primary"
@click="signupSubmit">报名</el-button>
<el-button size="small"
@click="signupVisible = false">取消</el-button>
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="signupSubmit">报名</el-button>
<el-button size="small" @click="signupVisible = false">取消</el-button>
</span>
</el-dialog>
</div>
@ -146,7 +118,7 @@ export default {
data () {
return {
timer: null,
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
statusList: ["待报名", "取消报名", "马上报名", "报名截止", "已结束"],
endList: ["报名开始", "报名截止", "报名截止", "项目开始", "项目结束"],
typeList: [
@ -377,282 +349,314 @@ export default {
<style lang="scss" scoped>
.search {
position: relative;
padding: 100px 0 130px;
text-align: center;
background: url(../../../assets/img/activity-bg.jpg) 0 0/100% 100% no-repeat;
h6 {
margin-bottom: 25px;
font-size: 26px;
color: #fff;
}
.input {
position: relative;
padding: 100px 0 130px;
text-align: center;
background: url(../../../assets/img/activity-bg.jpg) 0 0/100% 100% no-repeat;
h6 {
margin-bottom: 25px;
font-size: 26px;
color: #fff;
}
.input {
position: relative;
width: 700px;
margin: 0 auto;
}
img {
position: absolute;
top: 19px;
left: 14px;
}
input {
width: 100%;
height: 62px;
line-height: 62px;
padding: 0 50px;
font-size: 18px;
color: #333;
border: 0;
outline: none;
border-radius: 4px;
}
width: 700px;
margin: 0 auto;
}
img {
position: absolute;
top: 19px;
left: 14px;
}
input {
width: 100%;
height: 62px;
line-height: 62px;
padding: 0 50px;
font-size: 18px;
color: #333;
border: 0;
outline: none;
border-radius: 4px;
}
}
.main {
background: url(../../../assets/img/match-bg1.png) (0px 95px) / auto auto no-repeat,
url(../../../assets/img/match-bg2.png) (98% bottom) / auto auto no-repeat;
.center-wrap {
width: 1078px;
}
background: url(../../../assets/img/match-bg1.png) (0px 95px) / auto auto no-repeat,
url(../../../assets/img/match-bg2.png) (98% bottom) / auto auto no-repeat;
.center-wrap {
width: 1078px;
}
}
.filter {
display: flex;
justify-content: space-between;
width: 100%;
padding: 0 20px;
margin-bottom: 20px;
background-color: #fff;
dl {
display: flex;
justify-content: space-between;
width: 100%;
padding: 0 20px;
margin-bottom: 20px;
background-color: #fff;
dl {
display: flex;
align-items: center;
margin: 20px 0;
dt {
color: #333;
font-size: 16px;
font-weight: 600;
white-space: nowrap;
}
dd {
padding: 5px 15px;
color: #6a6a6a;
font-size: 16px;
white-space: nowrap;
cursor: pointer;
border-radius: 4px;
&.active {
color: $main-color;
background-color: #e6f0ff;
}
}
}
}
.select-wrap {
display: inline-flex;
align-items: center;
margin: 0 10px;
.label {
margin-right: 10px;
white-space: nowrap;
margin: 20px 0;
dt {
color: #333;
font-size: 16px;
font-weight: 600;
white-space: nowrap;
}
.el-select {
width: 130px;
dd {
padding: 5px 15px;
color: #6a6a6a;
font-size: 16px;
white-space: nowrap;
cursor: pointer;
border-radius: 4px;
&.active {
color: $main-color;
background-color: #e6f0ff;
}
}
}
}
.select-wrap {
display: inline-flex;
align-items: center;
margin: 0 10px;
.label {
margin-right: 10px;
white-space: nowrap;
}
.el-select {
width: 130px;
}
}
.list-inner {
display: flex;
justify-content: center;
align-items: flex-start;
display: flex;
justify-content: center;
align-items: flex-start;
}
.nav {
width: 156px;
text-align: right;
overflow: hidden;
background-color: #fff;
width: 156px;
text-align: right;
overflow: hidden;
background-color: #fff;
li {
padding: 0 24px;
font-size: 16px;
color: #666;
line-height: 48px;
border-bottom: 2px solid #f3f6fa;
border-right: 2px solid transparent;
cursor: pointer;
&:before {
content: '';
display: inline-block;
width: 3px;
height: 3px;
margin-right: 10px;
vertical-align: middle;
border-radius: 50%;
background-color: #666;
}
&.active {
color: $main-color;
border-right-color: $main-color;
&:before {
background-color: $main-color;
}
}
}
}
.list-wrap {
width: calc(100% - 180px);
margin-left: 24px;
.list {
li {
padding: 0 24px;
font-size: 16px;
color: #666;
line-height: 48px;
border-bottom: 2px solid #f3f6fa;
border-right: 2px solid transparent;
cursor: pointer;
&:before {
content: '';
display: inline-block;
width: 3px;
height: 3px;
margin-right: 10px;
vertical-align: middle;
border-radius: 50%;
background-color: #666;
display: flex;
justify-content: space-between;
padding: 16px;
margin-bottom: 12px;
transition: all 0.3s;
cursor: pointer;
border-radius: 6px;
background-color: #fff;
.right {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
flex: 1;
.status {
max-width: 120px;
padding: 0 23px;
line-height: 34px;
font-size: 14px;
color: #fff;
white-space: nowrap;
background-color: #52c41a;
border-radius: 4px;
@include ellipsis();
&.wait {
background-color: #faad14;
}
&.signing {
background-color: $main-color;
}
&.signed {
background-color: #52c41a;
}
&.playing {
background-color: #f96d6d;
}
&.finish {
background-color: #ccc;
}
}
.btn {
padding: 12px 20px;
color: #fff;
background-color: #cb221c;
border-radius: 4px;
cursor: pointer;
&:hover {
opacity: 0.9;
}
&.disabled {
cursor: not-allowed;
background-color: #969696;
}
}
.end-text {
margin-top: 10px;
color: rgba(0, 0, 0, 0.65);
font-size: 12px;
white-space: nowrap;
em {
font-style: normal;
color: #f00;
}
}
&.active {
color: $main-color;
border-right-color: $main-color;
&:before {
background-color: $main-color;
}
&:hover {
.left {
.info {
.title {
color: $main-color;
}
}
}
}
}
}
.list-wrap {
width: calc(100% - 180px);
margin-left: 24px;
.list {
li {
.left {
position: relative;
display: inline-flex;
width: 430px;
.cover {
img {
width: 275px;
height: 175px;
border-radius: 6px;
}
}
.info {
margin-left: 16px;
.title {
margin-bottom: 10px;
font-size: 20px;
font-weight: 500;
color: #0b1d30;
word-break: break-all;
@include mul-ellipsis(2);
}
.metas {
font-size: 14px;
color: #666;
div {
display: flex;
justify-content: space-between;
padding: 16px;
margin-bottom: 12px;
transition: all 0.3s;
cursor: pointer;
border-radius: 6px;
background-color: #fff;
.right {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
flex: 1;
.status {
max-width: 120px;
padding: 0 23px;
line-height: 34px;
font-size: 14px;
color: #fff;
white-space: nowrap;
background-color: #52c41a;
border-radius: 4px;
@include ellipsis();
&.wait {
background-color: #faad14;
}
&.signing {
background-color: $main-color;
}
&.signed {
background-color: #52c41a;
}
&.playing {
background-color: #f96d6d;
}
&.finish {
background-color: #ccc;
}
}
.btn {
padding: 12px 20px;
color: #fff;
background-color: #cb221c;
border-radius: 4px;
cursor: pointer;
&:hover {
opacity: 0.9;
}
&.disabled {
cursor: not-allowed;
background-color: #969696;
}
}
.end-text {
margin-top: 10px;
color: rgba(0, 0, 0, 0.65);
font-size: 12px;
white-space: nowrap;
em {
font-style: normal;
color: #f00;
}
}
}
align-items: center;
margin-bottom: 5px;
&:hover {
.left {
.info {
.title {
color: $main-color;
}
}
}
&.flex-top {
align-items: flex-start;
}
}
.label,
.val {
font-size: 14px;
color: #666;
white-space: nowrap;
}
.val {
max-width: 350px;
text-overflow: ellipsis;
overflow: hidden;
}
.a-line {
display: block;
}
}
.left {
position: relative;
display: inline-flex;
width: 430px;
.cover {
img {
width: 275px;
height: 175px;
border-radius: 6px;
}
}
.info {
margin-left: 16px;
.title {
margin-bottom: 10px;
font-size: 20px;
font-weight: 500;
color: #0b1d30;
word-break: break-all;
@include mul-ellipsis(2);
}
.metas {
font-size: 14px;
color: #666;
div {
display: flex;
align-items: center;
margin-bottom: 5px;
&.flex-top {
align-items: flex-start;
}
}
.label,
.val {
font-size: 14px;
color: #666;
white-space: nowrap;
}
.val {
max-width: 350px;
text-overflow: ellipsis;
overflow: hidden;
}
.a-line {
display: block;
}
}
.desc {
font-size: 14px;
}
}
.desc {
font-size: 14px;
}
}
}
}
}
/deep/.dia-form {
.w-100 {
width: 100%;
}
.tips {
display: flex;
justify-content: center;
align-items: center;
}
.w-100 {
width: 100%;
}
.tips {
display: flex;
justify-content: center;
align-items: center;
}
}
</style>

@ -1,163 +1,96 @@
<template>
<div>
<breadcrumb v-if="!id"
:routes.sync="routes" />
<breadcrumb v-if="!id" :routes.sync="routes" />
<div class="page">
<div class="page-content">
<el-form label-width="170px"
label-suffix=":"
size="small">
<el-form label-width="170px" label-suffix=":" size="small">
<el-form-item label="项目封面(选填)">
<el-upload class="avatar-uploader"
accept=".jpg,.png,.jpeg,.gif"
:limit="1"
:on-exceed="handleExceed"
:before-remove="beforeRemove"
:on-remove="handleRemove"
:on-error="uploadError"
action=""
:http-request="handleRequest">
<img v-if="form.coverUrl"
:src="form.coverUrl"
class="avatar">
<div class="uploader-default"
v-else>
<el-upload class="avatar-uploader" accept=".jpg,.png,.jpeg,.gif" :limit="1" :on-exceed="handleExceed"
:before-remove="beforeRemove" :on-remove="handleRemove" :on-error="uploadError" action=""
:http-request="handleRequest">
<img v-if="form.coverUrl" :src="form.coverUrl" class="avatar">
<div class="uploader-default" v-else>
<i class="el-icon-plus"></i>
<p>上传封面</p>
</div>
<div slot="tip"
class="el-upload__tip">
<div slot="tip" class="el-upload__tip">
<p>展示宽度为220高度140JPG/PNG/GIF3MB以内</p>
</div>
</el-upload>
</el-form-item>
<el-form-item label="项目封面长图(选填)">
<el-upload class="avatar-uploader avatar-uploader-lg"
accept=".jpg,.png,.jpeg,.gif"
:limit="1"
:on-exceed="handleExceed"
:before-remove="beforeRemove"
:on-remove="handleCarouselRemove"
:on-error="uploadError"
action=""
:http-request="handleRequestLg">
<img v-if="form.carouselUrl"
:src="form.carouselUrl"
class="avatar-lg">
<div class="uploader-default"
v-else>
<el-upload class="avatar-uploader avatar-uploader-lg" accept=".jpg,.png,.jpeg,.gif" :limit="1"
:on-exceed="handleExceed" :before-remove="beforeRemove" :on-remove="handleCarouselRemove"
:on-error="uploadError" action="" :http-request="handleRequestLg">
<img v-if="form.carouselUrl" :src="form.carouselUrl" class="avatar-lg">
<div class="uploader-default" v-else>
<i class="el-icon-plus"></i>
<p>上传封面</p>
</div>
<div slot="tip"
class="el-upload__tip">
<div slot="tip" class="el-upload__tip">
<p>展示宽度为1920高度300JPG/PNG/GIF3MB以内</p>
</div>
</el-upload>
</el-form-item>
<el-form-item class="req"
label="项目名称">
<el-form-item class="req" label="项目名称">
<div class="d-inline-block">
<el-input placeholder="请输入项目名称"
v-model="form.projectName"
clearable></el-input>
<el-input placeholder="请输入项目名称" v-model="form.projectName" clearable></el-input>
</div>
</el-form-item>
<el-form-item class="req"
label="发起方">
<el-form-item class="req" label="发起方">
<div class="inline-input">
<div class="input-wrap"
v-for="(item,index) in sponsorList"
:key="index">
<el-input placeholder="发起方名称"
v-model="sponsorList[index]"></el-input>
<i v-if="sponsorList.length > 1"
class="remove"
@click="delSponsor(index)"></i>
<button v-if="index == 0"
class="add-btn"
type="button"
@click="addSponsor">
<div class="input-wrap" v-for="(item, index) in sponsorList" :key="index">
<el-input placeholder="发起方名称" v-model="sponsorList[index]"></el-input>
<i v-if="sponsorList.length > 1" class="remove" @click="delSponsor(index)"></i>
<button v-if="index == 0" class="add-btn" type="button" @click="addSponsor">
<i class="el-icon-plus"></i>
<span>添加</span>
</button>
</div>
</div>
</el-form-item>
<el-form-item class="req"
label="报名时间">
<el-date-picker v-model="signupTime"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"></el-date-picker>
<el-form-item class="req" label="报名时间">
<el-date-picker v-model="signupTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange"
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
:picker-options="pickerOptions"></el-date-picker>
</el-form-item>
<el-form-item class="req"
label="项目时间">
<el-date-picker v-model="playTime"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"></el-date-picker>
<el-form-item class="req" label="项目时间">
<el-date-picker v-model="playTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange"
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
:picker-options="pickerOptions"></el-date-picker>
</el-form-item>
<el-form-item class="req"
label="发布范围">
<el-form-item class="req" label="发布范围">
<div>
<el-radio v-model="scope"
:label="0"
disabled>本校内</el-radio>
<el-radio v-model="scope" :label="0" disabled>本校内</el-radio>
</div>
</el-form-item>
<el-form-item class="req"
label="报名人数上限">
<el-form-item class="req" label="报名人数上限">
<div class="input-center">
<el-input placeholder="请输入人数"
v-model.number="form.maximumNumber"
type="number"></el-input>
<el-input placeholder="请输入人数" v-model.number="form.maximumNumber" type="number"></el-input>
</div>
</el-form-item>
<el-form-item class="req"
label="报名邀请码">
<div class="input-center"
style="width: 550px;">
<el-radio v-model="form.isNeedCode"
:label="0">不需要</el-radio>
<el-radio v-model="form.isNeedCode"
:label="1">需要</el-radio>
<el-input style="width: 250px"
placeholder="请输入4位邀请码或点击随机生成"
v-model="form.invitationCode"
:disabled="form.isNeedCode === 0"></el-input>
<el-button v-if="form.isNeedCode === 1"
@click="randomInv">随机</el-button>
<el-form-item class="req" label="报名邀请码">
<div class="input-center" style="width: 550px;">
<el-radio v-model="form.isNeedCode" :label="0">不需要</el-radio>
<el-radio v-model="form.isNeedCode" :label="1">需要</el-radio>
<el-input style="width: 250px" placeholder="请输入4位邀请码或点击随机生成" v-model="form.invitationCode"
:disabled="form.isNeedCode === 0"></el-input>
<el-button v-if="form.isNeedCode === 1" @click="randomInv">随机</el-button>
</div>
</el-form-item>
<el-form-item class="req"
label="项目详情">
<quill ref="quill"
:border="true"
v-model="form.projectDescribe"
:height="400" />
<el-form-item class="req" label="项目详情">
<quill ref="quill" :border="true" v-model="form.projectDescribe" :height="400" />
</el-form-item>
<el-form-item label="附件">
<Upload :limit="5"
:file-list.sync="form.activityFileList"
:changeFileList="false"
:on-remove="handleAnnexRemove"
@onSuccess="uploadAnnexSuccess" />
<Upload :limit="5" :file-list.sync="form.activityFileList" :changeFileList="false"
:on-remove="handleAnnexRemove" @onSuccess="uploadAnnexSuccess" />
</el-form-item>
</el-form>
<div class="btns">
<el-button @click="save(0)">保存</el-button>
<el-button type="primary"
@click="save(1)">发布</el-button>
<el-button type="danger"
@click="preview">预览</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button type="danger" @click="preview">预览</el-button>
<el-button @click="back">取消</el-button>
</div>
</div>
@ -186,7 +119,7 @@ export default {
],
id: this.$route.query.id || '',
headers: {
token: util.local.get(Setting.tokenKey)
token: util.session.get(Setting.tokenKey)
},
scope: 0,
form: {
@ -458,169 +391,178 @@ export default {
$upload-width: 220px;
$upload-height: 140px;
$upload-lg-height: 150px;
/deep/ .avatar-uploader {
.el-upload {
position: relative;
width: $upload-width;
height: $upload-height;
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
overflow: hidden;
.el-upload {
position: relative;
width: $upload-width;
height: $upload-height;
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
overflow: hidden;
&:hover {
border-color: #cb221c;
}
&:hover {
border-color: #cb221c;
}
.uploader-default {
display: flex;
height: $upload-height;
flex-direction: column;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.04);
.uploader-default {
display: flex;
height: $upload-height;
flex-direction: column;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.04);
i {
font-size: 20px;
font-weight: bold;
color: #8c939d;
}
i {
font-size: 20px;
font-weight: bold;
color: #8c939d;
}
p {
margin-top: 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
line-height: 1;
}
}
p {
margin-top: 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
line-height: 1;
}
}
}
&.avatar-uploader-lg {
.el-upload {
width: 100%;
max-width: 960px;
height: $upload-lg-height;
&.avatar-uploader-lg {
.el-upload {
width: 100%;
max-width: 960px;
height: $upload-lg-height;
.uploader-default {
height: $upload-lg-height;
}
}
.uploader-default {
height: $upload-lg-height;
}
}
}
.avatar {
display: block;
width: $upload-width;
height: $upload-height;
}
.avatar {
display: block;
width: $upload-width;
height: $upload-height;
}
.avatar-lg {
display: block;
width: 100%;
height: $upload-lg-height;
}
.avatar-lg {
display: block;
width: 100%;
height: $upload-lg-height;
}
.el-upload__tip {
margin-top: 0;
.el-upload__tip {
margin-top: 0;
p {
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
line-height: 1;
p {
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
line-height: 1;
&:first-child {
margin-bottom: 5px;
}
}
&:first-child {
margin-bottom: 5px;
}
}
}
}
/deep/ .d-inline-block {
width: 216px;
width: 216px;
.el-select,
.el-input {
width: 100%;
}
.el-select,
.el-input {
width: 100%;
}
}
.inline-input {
.input-wrap {
display: flex;
align-items: center;
margin-bottom: 10px;
.el-input {
display: inline-block;
width: 216px;
margin-right: 8px;
}
.inline-input {
.input-wrap {
display: flex;
align-items: center;
margin-bottom: 10px;
.remove {
width: 16px;
height: 16px;
background: url('../../../../assets/img/close.png') 0 0 / cover no-repeat;
cursor: pointer;
}
.el-input {
display: inline-block;
width: 216px;
margin-right: 8px;
}
.add-btn {
margin-left: 32px;
.remove {
width: 16px;
height: 16px;
background: url('../../../../assets/img/close.png') 0 0 / cover no-repeat;
cursor: pointer;
}
}
.add-btn {
margin-left: 32px;
}
}
.add-btn {
display: flex;
justify-content: center;
align-items: center;
width: 216px;
line-height: 32px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
background-color: transparent;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
width: 216px;
line-height: 32px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
background-color: transparent;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
cursor: pointer;
i {
margin-right: 8px;
font-size: 14px;
font-weight: bold;
}
i {
margin-right: 8px;
font-size: 14px;
font-weight: bold;
}
}
.range-check {
display: inline-block;
margin: 0 0 10px 10px;
display: inline-block;
margin: 0 0 10px 10px;
}
/deep/.range-cas {
.el-tag {
display: none;
}
.el-tag {
display: none;
}
}
.input-center {
display: flex;
align-items: center;
width: 216px;
white-space: nowrap;
.el-input {
margin-right: 5px;
}
display: flex;
align-items: center;
width: 216px;
white-space: nowrap;
.el-input {
margin-right: 5px;
}
}
.el-steps {
justify-content: center;
justify-content: center;
}
/deep/.req {
.el-form-item__label {
&:before {
content: '*';
margin-right: 5px;
font-size: 18px;
vertical-align: middle;
color: #f00;
}
.el-form-item__label {
&:before {
content: '*';
margin-right: 5px;
font-size: 18px;
vertical-align: middle;
color: #f00;
}
}
}
.btns {
display: flex;
justify-content: center;
text-align: center;
display: flex;
justify-content: center;
text-align: center;
}
</style>

@ -1,90 +1,52 @@
<template>
<!-- 报名人员 -->
<div class="page-content"
style="padding: 24px">
<div class="page-content" style="padding: 24px">
<div class="tool">
<ul class="filter">
<li>
<label>搜索</label>
<el-input placeholder="请输入姓名/手机号/学号"
prefix-icon="el-icon-search"
v-model="keyword"
clearable
size="mini"
style="width: 250px"></el-input>
<el-input placeholder="请输入姓名/手机号/学号" prefix-icon="el-icon-search" v-model="keyword" clearable size="mini"
style="width: 250px"></el-input>
</li>
<li>
<label>报名人员状态</label>
<el-select v-model="isDisable"
@change="initData">
<el-option v-for="(item, i) in statusList"
:key="i"
:label="item.name"
:value="item.id"></el-option>
<el-select v-model="isDisable" @change="initData">
<el-option v-for="(item, i) in statusList" :key="i" :label="item.name" :value="item.id"></el-option>
</el-select>
</li>
</ul>
<div>
<el-button type="primary"
round
@click="exportAll">批量导出</el-button>
<el-button type="primary" round @click="exportAll">批量导出</el-button>
</div>
</div>
<el-table ref="table"
:data="listData"
class="table"
stripe
header-align="center"
@selection-change="handleSelectionChange"
row-key="id"
@sort-change="sortChange">
<el-table-column type="selection"
width="80"
align="center"
:reserve-selection="true"></el-table-column>
<el-table-column type="index"
width="60"
label="序号"
align="center">
<el-table ref="table" :data="listData" class="table" stripe header-align="center"
@selection-change="handleSelectionChange" row-key="id" @sort-change="sortChange">
<el-table-column type="selection" width="80" align="center" :reserve-selection="true"></el-table-column>
<el-table-column type="index" width="60" label="序号" align="center">
<template slot-scope="scope">
{{ scope.$index + (page - 1) * pageSize + 1 }}
</template>
</el-table-column>
<el-table-column prop="schoolName"
label="学校"
sortable="custom">
<el-table-column prop="schoolName" label="学校" sortable="custom">
</el-table-column>
<el-table-column prop="username"
label="学生姓名">
<el-table-column prop="username" label="学生姓名">
</el-table-column>
<el-table-column prop="workNumber"
label="学号">
<el-table-column prop="workNumber" label="学号">
</el-table-column>
<el-table-column prop="phone"
label="手机号">
<el-table-column prop="phone" label="手机号">
</el-table-column>
<el-table-column label="操作"
align="center"
width="320">
<el-table-column label="操作" align="center" width="320">
<template slot-scope="scope">
<el-button type="text"
@click="delData(scope.row)">删除</el-button>
<el-switch v-model="scope.row.isDisable"
:active-text="scope.row.isDisable ? '关' : '开'"
:active-value="0"
:inactive-value="1"
style="margin-left: 5px"
@change="switchOff($event,scope.row,scope.$index)"></el-switch>
<el-button type="text" @click="delData(scope.row)">删除</el-button>
<el-switch v-model="scope.row.isDisable" :active-text="scope.row.isDisable ? '' : ''" :active-value="0"
:inactive-value="1" style="margin-left: 5px" @change="switchOff($event, scope.row, scope.$index)"></el-switch>
</template>
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background
layout="total, prev, pager, next"
:total="total"
@current-change="handleCurrentChange"
:current-page="page">
<el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange"
:current-page="page">
</el-pagination>
</div>
</div>
@ -98,7 +60,7 @@ export default {
name: "matchSignup",
data () {
return {
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
id: +this.$route.query.id,
isDisable: '',
statusList: [
@ -212,13 +174,14 @@ export default {
<style lang="scss" scoped>
/deep/.dia-form {
.w-100 {
width: 100%;
}
.tips {
display: flex;
justify-content: center;
align-items: center;
}
.w-100 {
width: 100%;
}
.tips {
display: flex;
justify-content: center;
align-items: center;
}
}
</style>

@ -1,66 +1,40 @@
<template>
<div class="page-content"
style="padding: 24px">
<div class="tool"
style="justify-content: flex-end">
<el-button type="primary"
round
@click="add">新增</el-button>
<div class="page-content" style="padding: 24px">
<div class="tool" style="justify-content: flex-end">
<el-button type="primary" round @click="add">新增</el-button>
</div>
<el-table ref="table"
:data="listData"
class="table"
stripe
header-align="center"
@selection-change="handleSelectionChange"
row-key="id">
<el-table-column type="index"
width="60"
label="序号"
align="center">
<el-table ref="table" :data="listData" class="table" stripe header-align="center"
@selection-change="handleSelectionChange" row-key="id">
<el-table-column type="index" width="60" label="序号" align="center">
<template slot-scope="scope">
{{ scope.$index + (page - 1) * pageSize + 1 }}
</template>
</el-table-column>
<el-table-column prop="announcementTitle"
label="标题名称">
<el-table-column prop="announcementTitle" label="标题名称">
</el-table-column>
<el-table-column prop="createTime"
label="创建时间">
<el-table-column prop="createTime" label="创建时间">
</el-table-column>
<el-table-column prop="updateTime"
label="发布时间">
<el-table-column prop="updateTime" label="发布时间">
</el-table-column>
<el-table-column prop="phone"
label="状态">
<el-table-column prop="phone" label="状态">
<template slot-scope="scope">
{{ scope.row.status ? '已发布' : '草稿' }}
</template>
</el-table-column>
<el-table-column label="操作"
align="center"
width="250">
<el-table-column label="操作" align="center" width="250">
<template slot-scope="scope">
<el-button type="text"
@click="edit(scope.row)">编辑</el-button>
<el-button type="text"
@click="del(scope.row)">删除</el-button>
<el-switch v-model="scope.row.isOpen"
:active-text="scope.row.isOpen ? '关' : '开'"
:active-value="0"
:inactive-value="1"
style="margin: 0 10px 0 5px"
@change="switchOff($event,scope.row,scope.$index)"></el-switch>
<el-button type="text" @click="edit(scope.row)">编辑</el-button>
<el-button type="text" @click="del(scope.row)">删除</el-button>
<el-switch v-model="scope.row.isOpen" :active-text="scope.row.isOpen ? '' : ''" :active-value="0"
:inactive-value="1" style="margin: 0 10px 0 5px"
@change="switchOff($event, scope.row, scope.$index)"></el-switch>
</template>
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background
layout="total, prev, pager, next"
:total="totals"
@current-change="handleCurrentChange"
:current-page="page">
<el-pagination background layout="total, prev, pager, next" :total="totals" @current-change="handleCurrentChange"
:current-page="page">
</el-pagination>
</div>
</div>
@ -72,7 +46,7 @@ import Setting from "@/setting";
export default {
data () {
return {
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
id: this.$route.query.id,
listData: [],
multipleSelection: [],
@ -153,5 +127,4 @@ export default {
};
</script>
<style scoped>
</style>
<style scoped></style>

@ -1,40 +1,27 @@
<template>
<div>
<el-card shadow="hover"
style="margin-bottom: 20px">
<el-card shadow="hover" style="margin-bottom: 20px">
<div class="flex-between">
<el-page-header @back="back"
:content="(form.id ? '编辑' : '创建') + '公告'"></el-page-header>
<el-page-header @back="back" :content="(form.id ? '编辑' : '创建') + '公告'"></el-page-header>
</div>
</el-card>
<div class="page">
<div class="page-content">
<el-form label-width="170px"
label-suffix=":"
size="small">
<el-form label-width="170px" label-suffix=":" size="small">
<el-form-item label="公告标题">
<div class="d-inline-block">
<el-input placeholder="请输入公告名称"
v-model="form.announcementTitle"
clearable></el-input>
<el-input placeholder="请输入公告名称" v-model="form.announcementTitle" clearable></el-input>
</div>
</el-form-item>
<el-form-item label="正文">
<quill :border="true"
v-model="form.announcementText"
:height="400" />
<quill :border="true" v-model="form.announcementText" :height="400" />
</el-form-item>
<el-form-item label="附件">
<Upload :limit="5"
:file-list="fileList"
:on-remove="handleRemove"
@onSuccess="uploadSuccess" />
<Upload :limit="5" :file-list="fileList" :on-remove="handleRemove" @onSuccess="uploadSuccess" />
</el-form-item>
<el-form-item>
<el-button v-if="!form.id"
@click="save(0)">草稿</el-button>
<el-button type="primary"
@click="save(1)">发布</el-button>
<el-button v-if="!form.id" @click="save(0)">草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="back">取消</el-button>
</el-form-item>
</el-form>
@ -54,7 +41,7 @@ export default {
data () {
return {
headers: {
token: util.local.get(Setting.tokenKey)
token: util.session.get(Setting.tokenKey)
},
form: {
id: this.$route.query.id,
@ -169,133 +156,134 @@ export default {
$upload-width: 220px;
$upload-height: 140px;
$upload-lg-height: 150px;
/deep/ .avatar-uploader {
.el-upload {
position: relative;
width: $upload-width;
height: $upload-height;
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
overflow: hidden;
.el-upload {
position: relative;
width: $upload-width;
height: $upload-height;
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
overflow: hidden;
&:hover {
border-color: #cb221c;
}
&:hover {
border-color: #cb221c;
}
.uploader-default {
display: flex;
height: $upload-height;
flex-direction: column;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.04);
.uploader-default {
display: flex;
height: $upload-height;
flex-direction: column;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.04);
i {
font-size: 20px;
font-weight: bold;
color: #8c939d;
}
i {
font-size: 20px;
font-weight: bold;
color: #8c939d;
}
p {
margin-top: 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
line-height: 1;
}
}
p {
margin-top: 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
line-height: 1;
}
}
}
&.avatar-uploader-lg {
.el-upload {
width: 100%;
max-width: 960px;
height: $upload-lg-height;
&.avatar-uploader-lg {
.el-upload {
width: 100%;
max-width: 960px;
height: $upload-lg-height;
.uploader-default {
height: $upload-lg-height;
}
}
.uploader-default {
height: $upload-lg-height;
}
}
}
.avatar {
display: block;
width: $upload-width;
height: $upload-height;
}
.avatar {
display: block;
width: $upload-width;
height: $upload-height;
}
.avatar-lg {
display: block;
width: 100%;
height: $upload-lg-height;
}
.avatar-lg {
display: block;
width: 100%;
height: $upload-lg-height;
}
.el-upload__tip {
margin-top: 0;
.el-upload__tip {
margin-top: 0;
p {
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
line-height: 1;
p {
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
line-height: 1;
&:first-child {
margin-bottom: 5px;
}
}
&:first-child {
margin-bottom: 5px;
}
}
}
}
/deep/ .d-inline-block {
width: 216px;
width: 216px;
.el-select,
.el-input {
width: 100%;
}
.el-select,
.el-input {
width: 100%;
}
}
.inline-input {
.input-wrap {
display: flex;
align-items: center;
margin-bottom: 10px;
.el-input {
display: inline-block;
width: 216px;
margin-right: 8px;
}
.input-wrap {
display: flex;
align-items: center;
margin-bottom: 10px;
.remove {
width: 16px;
height: 16px;
background: url('../../../../assets/img/close.png') 0 0 / cover no-repeat;
cursor: pointer;
}
.el-input {
display: inline-block;
width: 216px;
margin-right: 8px;
}
.add-btn {
margin-left: 32px;
.remove {
width: 16px;
height: 16px;
background: url('../../../../assets/img/close.png') 0 0 / cover no-repeat;
cursor: pointer;
}
}
.add-btn {
margin-left: 32px;
}
}
.add-btn {
display: flex;
justify-content: center;
align-items: center;
width: 216px;
line-height: 32px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
background-color: transparent;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
width: 216px;
line-height: 32px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
background-color: transparent;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
cursor: pointer;
i {
margin-right: 8px;
font-size: 14px;
font-weight: bold;
}
i {
margin-right: 8px;
font-size: 14px;
font-weight: bold;
}
}
</style>

@ -382,7 +382,7 @@ export default {
this.invitationCode = "";
},
goSubSystem () {
const token = Util.local.get(Setting.tokenKey)
const token = Util.session.get(Setting.tokenKey)
const classId = this.classId
const classItem = this.classList.find(e => e.id == classId)
const row = this.curRow

@ -1,267 +1,299 @@
<template>
<div class="wrap index">
<div class="banner">
<h6>城市合伙人招募中</h6>
<p class="text">携手共创教育信息化新未来合伙共享产业互联领域新红利</p>
</div>
<!-- 关于城市合伙人 -->
<div class="about">
<div class="inner">
<h6>关于城市合伙人</h6>
<div class="text">城市合伙人主要为在各地具备高职本科等学校关系资源且在当地能够提供销售售前项目实施交付以及持续增值服务的团队</div>
</div>
</div>
<div class="bg">
<!-- 我们提供的支持 -->
<div class="intro">
<div class="inner">
<h6 class="i-title">我们提供的支持</h6>
<ul class="list">
<li>
<h6>
<img src="@/assets/img/city/sup1.png" alt="">
<span>产品</span>
</h6>
<p class="text">我们会为城市合伙人整合好不同的教育信息化解决方案所需的软件和硬件产品通过教育产业互联网平台和反向供应链为城市合伙人提供利润合适交付便捷质量有保障的产品</p>
</li>
<li>
<h6>
<img src="@/assets/img/city/sup2.png" alt="">
<span>培训</span>
</h6>
<p class="text">我们会有专业的培训团队为每一个城市合伙人提供教育信息化产业的创业辅导和专业培训帮助城市合伙人打造一支专业化的商务支持客户成功和售后运营服务的支撑型团队</p>
</li>
</ul>
<h6 class="i-title" style="margin-top: 60px">城市合伙人需要具备的条件</h6>
<ul class="list">
<li>
<h6>
<img src="@/assets/img/city/sup3.png" alt="">
<span>业务资源</span>
</h6>
<p class="text">城市合伙人要实现业务的快速成功需要在当地具备开展相应业务的客户资源包括但不限于在当地院校的二级学院的资产处实验室的相关领导与老师的关系资源</p>
</li>
<li>
<h6>
<img src="@/assets/img/city/sup4.png" alt="">
<span>服务团队</span>
</h6>
<p class="text">城市合伙人需要在当地具备独立开展业务和服务的能力因此需要配置最小的地区服务团队包括商务售前运营服务售后技术支持售后培训服务售后客户成功服务客户活动支持服务等</p>
</li>
</ul>
</div>
</div>
</div>
<!-- 城市合伙人的收益 -->
<div class="profit">
<div class="inner">
<h6 class="i-title">城市合伙人的收益</h6>
<ul class="list">
<li>
<img src="@/assets/img/city/profit1.png" alt="">
<h6>软件收益</h6>
<p class="text">对平台产品推广获利润分成</p>
</li>
<li>
<img src="@/assets/img/city/profit2.png" alt="">
<h6>续约分成</h6>
<p class="text">客户续约年年享分成</p>
</li>
<li>
<img src="@/assets/img/city/profit3.png" alt="">
<h6>媒体资源共享</h6>
<p class="text">各大主流媒体推广打造自己的引流平台</p>
</li>
</ul>
</div>
</div>
<!-- 业务开展方向 -->
<div class="profit bus">
<div class="inner">
<h6 class="i-title">业务开展方向</h6>
<ul class="list">
<li>
<img src="@/assets/img/city/bus1.png" alt="">
<h6>金融实验室</h6>
<p class="text">依据证券银行等金融机构实景配置相应的软硬件一体环境为高职本科院校的经管学院商学院提供金融实验室的建设解决方案</p>
</li>
<li>
<img src="@/assets/img/city/bus2.png" alt="">
<h6>金融科技实验室 </h6>
<p class="text">将金融交易信贷风控等模型和数据与Python编程相结合为高职侧重编程执行与本科院校侧重模型研究的经管学院和商学院提供金融科技实验的建设解决方案</p>
</li>
<li>
<img src="@/assets/img/city/bus3.png" alt="">
<h6>金融大数据实验室</h6>
<p class="text">通过高频数据与大数据平台结合为高职侧重编程执行与本科院校侧重模型研究的经管学院和商学院提供金融大数据实验室的建设解决方案</p>
</li>
</ul>
</div>
</div>
<!-- 联系 -->
<div class="contact">
<img class="love" src="@/assets/img/love.png" alt="">
<div class="wrap index">
<div class="banner">
<h6>城市合伙人招募中</h6>
<p class="text">携手共创教育信息化新未来合伙共享产业互联领域新红利</p>
</div>
<!-- 关于城市合伙人 -->
<div class="about">
<div class="inner">
<h6>关于城市合伙人</h6>
<div class="text">城市合伙人主要为在各地具备高职本科等学校关系资源且在当地能够提供销售售前项目实施交付以及持续增值服务的团队</div>
</div>
</div>
<div class="bg">
<!-- 我们提供的支持 -->
<div class="intro">
<div class="inner">
<h6 class="i-title">我们提供的支持</h6>
<ul class="list">
<li>
<h6>
<img src="@/assets/img/city/sup1.png" alt="">
<span>产品</span>
</h6>
<p class="text">我们会为城市合伙人整合好不同的教育信息化解决方案所需的软件和硬件产品通过教育产业互联网平台和反向供应链为城市合伙人提供利润合适交付便捷质量有保障的产品</p>
</li>
<li>
<h6>
<img src="@/assets/img/city/sup2.png" alt="">
<span>培训</span>
</h6>
<p class="text">我们会有专业的培训团队为每一个城市合伙人提供教育信息化产业的创业辅导和专业培训帮助城市合伙人打造一支专业化的商务支持客户成功和售后运营服务的支撑型团队</p>
</li>
</ul>
<h6 class="i-title" style="margin-top: 60px">城市合伙人需要具备的条件</h6>
<ul class="list">
<li>
<h6>
<img src="@/assets/img/city/sup3.png" alt="">
<span>业务资源</span>
</h6>
<p class="text">城市合伙人要实现业务的快速成功需要在当地具备开展相应业务的客户资源包括但不限于在当地院校的二级学院的资产处实验室的相关领导与老师的关系资源</p>
</li>
<li>
<h6>
<img src="@/assets/img/city/sup4.png" alt="">
<span>服务团队</span>
</h6>
<p class="text">城市合伙人需要在当地具备独立开展业务和服务的能力因此需要配置最小的地区服务团队包括商务售前运营服务售后技术支持售后培训服务售后客户成功服务客户活动支持服务等
</p>
</li>
</ul>
</div>
</div>
</div>
<!-- 城市合伙人的收益 -->
<div class="profit">
<div class="inner">
<h6 class="i-title">城市合伙人的收益</h6>
<ul class="list">
<li>
<img src="@/assets/img/city/profit1.png" alt="">
<h6>软件收益</h6>
<p class="text">对平台产品推广获利润分成</p>
</li>
<li>
<img src="@/assets/img/city/profit2.png" alt="">
<h6>续约分成</h6>
<p class="text">客户续约年年享分成</p>
</li>
<li>
<img src="@/assets/img/city/profit3.png" alt="">
<h6>媒体资源共享</h6>
<p class="text">各大主流媒体推广打造自己的引流平台</p>
</li>
</ul>
</div>
</div>
<!-- 业务开展方向 -->
<div class="profit bus">
<div class="inner">
<h6 class="i-title">业务开展方向</h6>
<ul class="list">
<li>
<img src="@/assets/img/city/bus1.png" alt="">
<h6>金融实验室</h6>
<p class="text">依据证券银行等金融机构实景配置相应的软硬件一体环境为高职本科院校的经管学院商学院提供金融实验室的建设解决方案</p>
</li>
<li>
<img src="@/assets/img/city/bus2.png" alt="">
<h6>金融科技实验室 </h6>
<p class="text">将金融交易信贷风控等模型和数据与Python编程相结合为高职侧重编程执行与本科院校侧重模型研究的经管学院和商学院提供金融科技实验的建设解决方案</p>
</li>
<li>
<img src="@/assets/img/city/bus3.png" alt="">
<h6>金融大数据实验室</h6>
<p class="text">通过高频数据与大数据平台结合为高职侧重编程执行与本科院校侧重模型研究的经管学院和商学院提供金融大数据实验室的建设解决方案</p>
</li>
</ul>
</div>
</div>
<!-- 联系 -->
<div class="contact">
<img class="love" src="@/assets/img/love.png" alt="">
</div>
</div>
</template>
<script>
import Setting from '@/setting'
import util from '@/libs/util'
export default {
name: 'cityPartner',
data() {
return {
token: util.local.get(Setting.tokenKey)
}
},
mounted() {},
methods: {}
name: 'cityPartner',
data () {
return {
token: util.session.get(Setting.tokenKey)
}
},
mounted () { },
methods: {}
};
</script>
<style lang="scss" scoped>
.wrap{
.wrap {
position: relative;
background-color: #fff;
.banner {
height: 350px;
padding: 100px 0 0 180px;
background: url(../../../assets/img/city/banner2.png) top right/auto no-repeat,
url(../../../assets/img/city/banner1.png) 0 0/100% 100% no-repeat;
h6 {
margin-bottom: 30px;
font-size: 42px;
}
.text {
font-size: 16px;
line-height: 30px;
}
}
.i-title {
position: relative;
background-color: #fff;
.banner {
height: 350px;
padding: 100px 0 0 180px;
background: url(../../../assets/img/city/banner2.png) top right/auto no-repeat,
url(../../../assets/img/city/banner1.png) 0 0/100% 100% no-repeat;
h6 {
margin-bottom: 30px;
font-size: 42px;
}
.text {
font-size: 16px;
line-height: 30px;
}
margin-bottom: 37px;
font-size: 30px;
text-align: center;
color: #0B1D30;
}
.inner {
width: 1200px;
padding: 67px 0;
margin: 0 auto;
}
.bg {
background: #fff url(../../../assets/img/city/sup-bg.png) 0 0/100% 100% no-repeat;
}
.about {
margin-top: -60px;
.inner {
padding: 40px 0 60px;
text-align: center;
background: url(../../../assets/img/city/about.png) 0 0/100% 100% no-repeat;
}
.i-title{
position: relative;
margin-bottom: 37px;
font-size: 30px;
text-align: center;
color: #0B1D30;
h6 {
margin-bottom: 20px;
font-size: 24px;
color: #fff;
}
.inner{
width: 1200px;
padding: 67px 0;
margin: 0 auto;
.text {
font-size: 14px;
color: #fff;
}
.bg {
background: #fff url(../../../assets/img/city/sup-bg.png) 0 0/100% 100% no-repeat;
}
.intro {
position: relative;
.i-title {
text-align: left;
}
.about {
margin-top: -60px;
.inner {
padding: 40px 0 60px;
text-align: center;
background: url(../../../assets/img/city/about.png) 0 0/100% 100% no-repeat;
}
h6 {
margin-bottom: 20px;
font-size: 24px;
color: #fff;
}
.text {
font-size: 14px;
color: #fff;
}
.list {
display: flex;
justify-content: space-between;
li {
width: 49%;
padding: 20px 30px;
border-radius: 6px;
border-left: 3px solid $main-color;
background-color: #fff;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
}
h6 {
display: flex;
align-items: center;
margin-bottom: 10px;
}
span {
margin-left: 12px;
font-size: 18px;
color: #0B1D30;
}
.text {
font-size: 14px;
color: #757F92;
}
}
.intro{
position: relative;
.i-title {
text-align: left;
}
.list{
display: flex;
justify-content: space-between;
li{
width: 49%;
padding: 20px 30px;
border-radius: 6px;
border-left: 3px solid $main-color;
background-color: #fff;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
}
h6{
display: flex;
align-items: center;
margin-bottom: 10px;
}
span {
margin-left: 12px;
font-size: 18px;
color: #0B1D30;
}
.text{
font-size: 14px;
color: #757F92;
}
}
}
.profit {
.inner {
background: url(../../../assets/img/city/profit-bg.png) 0 0/100% 100% no-repeat;
}
.profit{
.inner {
background: url(../../../assets/img/city/profit-bg.png) 0 0/100% 100% no-repeat;
}
.list {
display: flex;
flex: 1;
li {
padding: 9px 9px 20px;
margin-right: 24px;
text-align: center;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
&:last-child {
margin-right: 0;
}
}
img {
width: 100%;
}
h6 {
margin: 15px 0 10px;
font-size: 18px;
color: #0B1D30;
}
.text {
font-size: 14px;
color: #757F92;
}
.list {
display: flex;
flex: 1;
li {
padding: 9px 9px 20px;
margin-right: 24px;
text-align: center;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
&:last-child {
margin-right: 0;
}
}
img {
width: 100%;
}
h6 {
margin: 15px 0 10px;
font-size: 18px;
color: #0B1D30;
}
.text {
font-size: 14px;
color: #757F92;
}
}
.bus {
background-color: #F3F6FA;
.inner {
background: none;
}
.list {
li {
padding-bottom: 50px;
.text {
text-align: left;
}
}
img {
width: 366px;
height: 230px;
}
}
}
.bus {
background-color: #F3F6FA;
.inner {
background: none;
}
.contact {
position: relative;
height: 250px;
background: url(../../../assets/img/contact-info.png) center center/auto no-repeat,
url(../../../assets/img/contact-bg.png) 0 0/100% 100% no-repeat;
.love {
position: absolute;
top: -45px;
right: 10%;
.list {
li {
padding-bottom: 50px;
.text {
text-align: left;
}
}
img {
width: 366px;
height: 230px;
}
}
}
.contact {
position: relative;
height: 250px;
background: url(../../../assets/img/contact-info.png) center center/auto no-repeat,
url(../../../assets/img/contact-bg.png) 0 0/100% 100% no-repeat;
.love {
position: absolute;
top: -45px;
right: 10%;
}
}
}
</style>

@ -2,116 +2,65 @@
<div class="wrap pb">
<breadcrumb :routes.sync="routes" />
<div class="flex">
<div class="cover"
:class="{'is-word': showMask1}">
<img v-if="coverUrl"
:src="coverUrl"
alt=""
width="100%"
height="100%">
<div class="cover" :class="{ 'is-word': showMask1 }">
<img v-if="coverUrl" :src="coverUrl" alt="" width="100%" height="100%">
<template v-else-if="iframeSrc">
<iframe class="inner fileIframe"
id="fileIframe"
:src="iframeSrc"
frameborder="0"></iframe>
<iframe class="inner fileIframe" id="fileIframe" :src="iframeSrc" frameborder="0"></iframe>
<template v-if="showMask">
<div class="mask"
style="width: 500px;height: 30px;top: 53px;right: 320px"></div>
<div class="mask"
style="width: 175px;height: 30px;top: 53px;right: 5px"></div>
<div class="mask" style="width: 500px;height: 30px;top: 53px;right: 320px"></div>
<div class="mask" style="width: 175px;height: 30px;top: 53px;right: 5px"></div>
</template>
<template v-if="showMask1">
<div class="word-mask"
style="height: 40px;"></div>
<div class="word-mask2"
style="top: 55px;left: 28%;width: 44%;height: calc(100% - 80px);"></div>
<div class="word-mask" style="height: 40px;"></div>
<div class="word-mask2" style="top: 55px;left: 28%;width: 44%;height: calc(100% - 80px);"></div>
</template>
<template v-if="showMask2">
<div class="excel-mask1"
style="height: 48px;"></div>
<div class="excel-mask1" style="height: 48px;"></div>
</template>
</template>
<div class="pdf inner"
v-else-if="pdfSrc">
<div class="pdf inner" v-else-if="pdfSrc">
<p class="arrow">
<span @click="changePdfPage(0)"
class="turn el-icon-arrow-left"
:class="{grey: currentPage==1}"></span>
{{currentPage}} / {{pageCount}}
<span @click="changePdfPage(1)"
class="turn el-icon-arrow-right"
:class="{grey: currentPage==pageCount}"></span>
<span @click="changePdfPage(0)" class="turn el-icon-arrow-left" :class="{ grey: currentPage == 1 }"></span>
{{ currentPage }} / {{ pageCount }}
<span @click="changePdfPage(1)" class="turn el-icon-arrow-right"
:class="{ grey: currentPage == pageCount }"></span>
</p>
<pdf class="pdf-wrap"
:src="pdfSrc"
:page="currentPage"
@num-pages="pageCount=$event"
@page-loaded="currentPage=$event"
@loaded="loadPdfHandler">
<pdf class="pdf-wrap" :src="pdfSrc" :page="currentPage" @num-pages="pageCount = $event"
@page-loaded="currentPage = $event" @loaded="loadPdfHandler">
</pdf>
</div>
<div class="inner"
v-else-if="playAuth">
<div class="video_wid"
id="player"></div>
<div class="inner" v-else-if="playAuth">
<div class="video_wid" id="player"></div>
</div>
<div class="inner"
v-else-if="videoSrc">
<video class="video"
:key="videoSrc"
width="100%"
height="100%"
autoplay
controls>
<source :src="videoSrc"
type="video/mp4">
<div class="inner" v-else-if="videoSrc">
<video class="video" :key="videoSrc" width="100%" height="100%" autoplay controls>
<source :src="videoSrc" type="video/mp4">
您的浏览器不支持 video 标签
</video>
</div>
</div>
<div class="catalog">
<div class="list">
<h4 class="title">{{courseName}}</h4>
<h4 class="title">{{ courseName }}</h4>
<div class="desc-wrap">
<div class="desc"
:class="{active: desShrink}"
v-html="description"></div>
<i class="arrow"
:class="{active: desShrink}"
v-if="description && description.length > 40">
<div class="desc" :class="{ active: desShrink }" v-html="description"></div>
<i class="arrow" :class="{ active: desShrink }" v-if="description && description.length > 40">
</i>
</div>
<div class="chapters">
<template v-if="chapterList && chapterList.length">
<div class="chapter"
v-for="(item,index) in chapterList"
:key="index">
<div class="chapterName">{{item.name}}</div>
<div class="section"
v-if="item.subsectionList.length">
<div v-for="(section,i) in item.subsectionList"
:key="i"
@click="preview(section, item.name)">
<p class="sectionName"
:class="{active: curLink === `${item.name}${section.name}`}">
<img v-if="section.fileType === 'pptx'"
src="@/assets/img/exts/ppt.png"
alt="">
<img v-else-if="section.fileType === 'mp4'"
src="@/assets/img/exts/video.png"
alt="">
<div class="chapter" v-for="(item, index) in chapterList" :key="index">
<div class="chapterName">{{ item.name }}</div>
<div class="section" v-if="item.subsectionList.length">
<div v-for="(section, i) in item.subsectionList" :key="i" @click="preview(section, item.name)">
<p class="sectionName" :class="{ active: curLink === `${item.name}${section.name}` }">
<img v-if="section.fileType === 'pptx'" src="@/assets/img/exts/ppt.png" alt="">
<img v-else-if="section.fileType === 'mp4'" src="@/assets/img/exts/video.png" alt="">
<img v-else-if="section.fileType === 'doc' || section.fileType === 'docx'"
src="@/assets/img/exts/word.png"
alt="">
<img v-else-if="section.fileType === 'txt'"
src="@/assets/img/exts/txt.png"
alt="">
<img v-else-if="section.fileType === 'pdf'"
src="@/assets/img/exts/pdf.png"
alt="">
<img v-else
src="@/assets/img/exts/pic.png"
alt="">
src="@/assets/img/exts/word.png" alt="">
<img v-else-if="section.fileType === 'txt'" src="@/assets/img/exts/txt.png" alt="">
<img v-else-if="section.fileType === 'pdf'" src="@/assets/img/exts/pdf.png" alt="">
<img v-else src="@/assets/img/exts/pic.png" alt="">
{{ section.name }}
</p>
</div>
@ -181,7 +130,7 @@ export default {
},
destroyed () {
//
util.local.get(Setting.tokenKey) && this.$post(this.api.playRecordSave, {
util.session.get(Setting.tokenKey) && this.$post(this.api.playRecordSave, {
courseId: this.id,
courseType: 1,
playTime: Math.ceil((Date.now() - this.startTime) / 1000 / 60)
@ -240,7 +189,7 @@ export default {
},
preview (row, chapterName, showConfirm = 1) {
//
if (!util.local.get(Setting.tokenKey) && !util.local.get('oc_server_token') && showConfirm) {
if (!util.session.get(Setting.tokenKey) && !util.local.get('oc_server_token') && showConfirm) {
this.$confirm('请先登录,是否直接前往登录?', "提示", {
type: 'success',
closeOnClickModal: false
@ -360,289 +309,345 @@ export default {
</script>
<style>
.desc img {
width: 100%;
width: 100%;
}
</style>
<style lang="scss" scoped>
$height: 700px;
.video_wid,
.cover {
position: relative;
width: 76%;
height: $height !important;
border: 0;
position: relative;
width: 76%;
height: $height !important;
border: 0;
}
.page {
margin: 12px 0;
.intro {
font-size: 16px;
color: #333;
line-height: 24px;
}
margin: 12px 0;
.intro {
font-size: 16px;
color: #333;
line-height: 24px;
}
}
.cover {
flex: 1;
background-color: #252528;
img {
border-radius: 8px;
}
&.is-word {
overflow: hidden;
}
flex: 1;
background-color: #252528;
img {
border-radius: 8px;
}
&.is-word {
overflow: hidden;
}
}
.fileIframe {
height: $height !important;
height: $height !important;
}
.video_wid,
.inner {
width: 100%;
height: 100% !important;
border: 0;
overflow: auto;
width: 100%;
height: 100% !important;
border: 0;
overflow: auto;
}
.cover.is-word {
.inner {
height: calc(100% + 38px) !important;
margin-top: -38px;
}
.inner {
height: calc(100% + 38px) !important;
margin-top: -38px;
}
}
.video_wid:focus {
outline: none;
outline: none;
}
.catalog {
width: 296px;
padding: 16px;
margin-left: 12px;
background-color: #252528;
.entry {
display: block;
width: 100%;
height: 34px;
margin-bottom: 16px;
background: url(../../../assets/img/entry.png) 0 0/100% 100% no-repeat;
cursor: pointer;
&:hover {
opacity: 0.9;
}
width: 296px;
padding: 16px;
margin-left: 12px;
background-color: #252528;
.entry {
display: block;
width: 100%;
height: 34px;
margin-bottom: 16px;
background: url(../../../assets/img/entry.png) 0 0/100% 100% no-repeat;
cursor: pointer;
&:hover {
opacity: 0.9;
}
}
}
.list {
height: calc(700px - 82px);
overflow-y: auto;
.title {
margin-bottom: 11px;
color: #fff;
font-size: 16px;
height: calc(700px - 82px);
overflow-y: auto;
.title {
margin-bottom: 11px;
color: #fff;
font-size: 16px;
}
.desc-wrap {
position: relative;
.desc {
font-size: 12px;
color: #fff;
line-height: 22px;
@include mul-ellipsis(4);
&.active {
display: block;
overflow: visible;
}
}
.desc-wrap {
position: relative;
.desc {
font-size: 12px;
color: #fff;
line-height: 22px;
@include mul-ellipsis(4);
&.active {
display: block;
overflow: visible;
}
.arrow {
position: absolute;
bottom: 2px;
right: 0;
display: flex;
justify-content: space-between;
width: 46px;
background-color: #fff;
span {
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
img {
width: 16px;
cursor: pointer;
}
&.active {
span {
opacity: 0;
}
.arrow {
position: absolute;
bottom: 2px;
right: 0;
display: flex;
justify-content: space-between;
width: 46px;
background-color: #fff;
span {
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
img {
width: 16px;
cursor: pointer;
}
&.active {
span {
opacity: 0;
}
img {
transform: rotate(180deg);
}
}
img {
transform: rotate(180deg);
}
}
}
.chapters {
margin-top: 16px;
max-height: calc(100% - 53px);
overflow: auto;
}
.chapters {
margin-top: 16px;
max-height: calc(100% - 53px);
overflow: auto;
}
.chapter {
margin-bottom: 20px;
.chapterName {
color: #fff;
font-size: 14px;
}
.chapter {
margin-bottom: 20px;
.chapterName {
color: #fff;
font-size: 14px;
.section {
padding: 5px 15px;
margin-top: 12px;
background-color: #121214;
.sectionName {
margin: 12px 0;
font-size: 12px;
color: #999;
cursor: pointer;
@include ellipsis;
img {
margin-right: 8px;
}
.section {
padding: 5px 15px;
margin-top: 12px;
background-color: #121214;
.sectionName {
margin: 12px 0;
font-size: 12px;
color: #999;
cursor: pointer;
@include ellipsis;
img {
margin-right: 8px;
}
&.active {
color: #fff;
}
}
&.active {
color: #fff;
}
}
}
}
}
.el-image-viewer__wrapper {
transform: translateY(-10px);
transition: transform 0.5s;
transform: translateY(-10px);
transition: transform 0.5s;
&.active {
transform: translateY(0);
}
&.active {
transform: translateY(0);
}
}
.el-image-viewer__close {
z-index: 2000;
top: 15px;
right: 15px;
&.doc-close {
i {
color: #000 !important;
}
z-index: 2000;
top: 15px;
right: 15px;
&.doc-close {
i {
color: #000 !important;
}
}
}
.list::-webkit-scrollbar {
width: 4px;
width: 4px;
}
.list::-webkit-scrollbar-thumb {
border-radius: 10px;
background: rgba(0, 0, 0, 0.06);
border-radius: 10px;
background: rgba(0, 0, 0, 0.06);
}
.mask {
z-index: 9;
position: absolute;
background-color: rgb(57, 58, 61);
z-index: 9;
position: absolute;
background-color: rgb(57, 58, 61);
}
.word-mask {
z-index: 9;
position: absolute;
top: 0;
right: 0;
width: 100%;
background-color: rgb(243, 242, 241);
z-index: 9;
position: absolute;
top: 0;
right: 0;
width: 100%;
background-color: rgb(243, 242, 241);
}
.word-mask1 {
z-index: 9;
position: absolute;
top: 0;
right: 0;
width: 100%;
background-color: #185abd;
z-index: 9;
position: absolute;
top: 0;
right: 0;
width: 100%;
background-color: #185abd;
}
.word-mask2 {
z-index: 9;
position: absolute;
background-color: transparent;
z-index: 9;
position: absolute;
background-color: transparent;
}
.excel-mask1 {
z-index: 9;
position: absolute;
top: 0;
left: 20%;
width: 60%;
background-color: #107c41;
z-index: 9;
position: absolute;
top: 0;
left: 20%;
width: 60%;
background-color: #107c41;
}
/deep/.pdf-dia {
border-radius: 0 !important;
.el-dialog__header {
display: none;
}
.el-dialog__body {
padding: 0;
}
.el-dialog__headerbtn {
top: 10px;
.el-dialog__close {
color: #fff;
font-size: 16px;
}
border-radius: 0 !important;
.el-dialog__header {
display: none;
}
.el-dialog__body {
padding: 0;
}
.el-dialog__headerbtn {
top: 10px;
.el-dialog__close {
color: #fff;
font-size: 16px;
}
}
}
.pdf {
.arrow {
padding: 10px 0;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
color: #fff;
background-color: #333;
.turn {
margin: 0 10px;
font-size: 18px;
cursor: pointer;
}
}
.pdf-wrap {
width: 80%;
margin: 0 auto;
.arrow {
padding: 10px 0;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
color: #fff;
background-color: #333;
.turn {
margin: 0 10px;
font-size: 18px;
cursor: pointer;
}
}
.pdf-wrap {
width: 80%;
margin: 0 auto;
}
}
/deep/.project-dia {
.el-dialog__body {
padding: 28px 32px;
}
.el-dialog__body {
padding: 28px 32px;
}
}
.projects {
display: flex;
flex-wrap: wrap;
max-height: 400px;
overflow: auto;
li {
display: inline-flex;
align-items: center;
width: 238px;
padding: 16px;
margin: 0 20px 20px 0;
background-color: #f6f8fa;
border-radius: 16px;
cursor: pointer;
&:hover {
span {
color: #007eff;
}
}
&:nth-child(3n) {
margin-right: 0;
}
&.active {
background-color: #f2f7ff;
span {
color: #3988ff;
}
}
display: flex;
flex-wrap: wrap;
max-height: 400px;
overflow: auto;
li {
display: inline-flex;
align-items: center;
width: 238px;
padding: 16px;
margin: 0 20px 20px 0;
background-color: #f6f8fa;
border-radius: 16px;
cursor: pointer;
&:hover {
span {
color: #007eff;
}
}
span {
max-width: 140px;
margin-left: 14px;
font-size: 14px;
color: #333;
&:nth-child(3n) {
margin-right: 0;
}
&.active {
background-color: #f2f7ff;
span {
color: #3988ff;
}
}
}
span {
max-width: 140px;
margin-left: 14px;
font-size: 14px;
color: #333;
}
}
@media (max-width: 1430px) {
.wrap {
padding: 12px 100px 20px;
}
.wrap {
padding: 12px 100px 20px;
}
}
</style>

@ -80,7 +80,7 @@ export default {
data () {
return {
timer: null,
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
isTourist: !!Setting.whiteList.find(e => e === this.$route.path),
active: +this.$route.query.active || 0,
tabs: [

@ -1,220 +1,248 @@
<template>
<div class="wrap index">
<div class="banner">
<h6>教育数字化产品开发者平台</h6>
<p class="text">与3000所高校共建数字化教育产业未来</p>
</div>
<!-- 关于教育产业数字化开发者 -->
<div class="about">
<div class="inner">
<h6>关于教育产业数字化开发者</h6>
<div class="text">教育产业数字化开发者主要指从事高职本科市场相应数字化场景的软件硬件研发与生产的产品开发者</div>
</div>
</div>
<!-- 我们提供的支持 -->
<div class="sup">
<div class="inner">
<h6 class="i-title">我们提供的支持</h6>
<ul class="list">
<li>
<h6>生产力赋能</h6>
<p class="text">公司打造的产业中台将赋能联盟厂家高效地进行软件产品的开发与交付</p>
</li>
<li>
<h6>渠道与运营服务赋能</h6>
<p class="text">公司会为联盟厂家提供公共的渠道支撑和客户获取帮助厂家获得客户成交降低产品厂家的市场压力</p>
</li>
<li>
<h6>创业技术孵化服务</h6>
<p class="text">对于还在创业阶段的产品创业者我司还提供初始的技术外包支撑服务帮助产品创业者最小成本的完成产品的落地</p>
</li>
</ul>
</div>
</div>
<!-- 开发者需要具备的条件 -->
<div class="con">
<div class="inner">
<h6 class="i-title">开发者需要具备的条件</h6>
<ul class="list">
<li>
<img src="@/assets/img/dev/con1.png" alt="">
<h6>产品研发</h6>
<p class="text">具备独立设计开发教育产业数字化产品的能力</p>
</li>
<li>
<img src="@/assets/img/dev/con2.png" alt="">
<h6>产品运维 </h6>
<p class="text">具备独立的产品运维支持的能力</p>
</li>
<li>
<img src="@/assets/img/dev/con3.png" alt="">
<h6>专业服务</h6>
<p class="text">具备对产品内容专业支持的能力</p>
</li>
</ul>
</div>
</div>
<div class="profit">
<div class="item1">开发者受益</div>
<div class="item2">我们将与开发者共享教育产业数字化蓝海的巨大收益</div>
</div>
<!-- 联系 -->
<div class="contact">
<img class="love" src="@/assets/img/love.png" alt="">
</div>
<div class="wrap index">
<div class="banner">
<h6>教育数字化产品开发者平台</h6>
<p class="text">与3000所高校共建数字化教育产业未来</p>
</div>
<!-- 关于教育产业数字化开发者 -->
<div class="about">
<div class="inner">
<h6>关于教育产业数字化开发者</h6>
<div class="text">教育产业数字化开发者主要指从事高职本科市场相应数字化场景的软件硬件研发与生产的产品开发者</div>
</div>
</div>
<!-- 我们提供的支持 -->
<div class="sup">
<div class="inner">
<h6 class="i-title">我们提供的支持</h6>
<ul class="list">
<li>
<h6>生产力赋能</h6>
<p class="text">公司打造的产业中台将赋能联盟厂家高效地进行软件产品的开发与交付</p>
</li>
<li>
<h6>渠道与运营服务赋能</h6>
<p class="text">公司会为联盟厂家提供公共的渠道支撑和客户获取帮助厂家获得客户成交降低产品厂家的市场压力</p>
</li>
<li>
<h6>创业技术孵化服务</h6>
<p class="text">对于还在创业阶段的产品创业者我司还提供初始的技术外包支撑服务帮助产品创业者最小成本的完成产品的落地</p>
</li>
</ul>
</div>
</div>
<!-- 开发者需要具备的条件 -->
<div class="con">
<div class="inner">
<h6 class="i-title">开发者需要具备的条件</h6>
<ul class="list">
<li>
<img src="@/assets/img/dev/con1.png" alt="">
<h6>产品研发</h6>
<p class="text">具备独立设计开发教育产业数字化产品的能力</p>
</li>
<li>
<img src="@/assets/img/dev/con2.png" alt="">
<h6>产品运维 </h6>
<p class="text">具备独立的产品运维支持的能力</p>
</li>
<li>
<img src="@/assets/img/dev/con3.png" alt="">
<h6>专业服务</h6>
<p class="text">具备对产品内容专业支持的能力</p>
</li>
</ul>
</div>
</div>
<div class="profit">
<div class="item1">开发者受益</div>
<div class="item2">我们将与开发者共享教育产业数字化蓝海的巨大收益</div>
</div>
<!-- 联系 -->
<div class="contact">
<img class="love" src="@/assets/img/love.png" alt="">
</div>
</div>
</template>
<script>
import Setting from '@/setting'
import util from '@/libs/util'
export default {
name: 'cityPartner',
data() {
return {
token: util.local.get(Setting.tokenKey)
}
},
mounted() {},
methods: {}
name: 'cityPartner',
data () {
return {
token: util.session.get(Setting.tokenKey)
}
},
mounted () { },
methods: {}
};
</script>
<style lang="scss" scoped>
.wrap{
.wrap {
position: relative;
background-color: #fff;
.banner {
height: 350px;
padding: 100px 0 0 180px;
background: url(../../../assets/img/dev/banner2.png) (90% 32px)/auto no-repeat,
url(../../../assets/img/dev/banner1.png) 0 0/100% 100% no-repeat;
h6 {
margin-bottom: 30px;
font-size: 42px;
}
.text {
font-size: 16px;
line-height: 30px;
}
}
.i-title {
position: relative;
background-color: #fff;
.banner {
height: 350px;
padding: 100px 0 0 180px;
background: url(../../../assets/img/dev/banner2.png) (90% 32px)/auto no-repeat,
url(../../../assets/img/dev/banner1.png) 0 0/100% 100% no-repeat;
h6 {
margin-bottom: 30px;
font-size: 42px;
}
.text {
font-size: 16px;
line-height: 30px;
}
margin-bottom: 37px;
font-size: 30px;
text-align: center;
color: #0B1D30;
}
.inner {
width: 1200px;
padding: 67px 0;
margin: 0 auto;
}
.about {
margin: -60px 0 20px;
.inner {
padding: 40px 0 60px;
text-align: center;
background-color: #fff;
border-radius: 8px;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
}
.i-title{
position: relative;
margin-bottom: 37px;
font-size: 30px;
text-align: center;
color: #0B1D30;
h6 {
margin-bottom: 20px;
font-size: 24px;
color: #0B1D30;
}
.inner{
width: 1200px;
padding: 67px 0;
margin: 0 auto;
.text {
font-size: 14px;
color: #0B1D30;
}
.about {
margin: -60px 0 20px;
.inner {
padding: 40px 0 60px;
text-align: center;
background-color: #fff;
border-radius: 8px;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
}
h6 {
margin-bottom: 20px;
font-size: 24px;
color: #0B1D30;
}
.sup {
background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FE 100%);
.list {
display: flex;
justify-content: space-between;
li {
width: 33%;
padding: 140px 50px 50px;
background: url(../../../assets/img/dev/sup1.png) 0 0/100% 100% no-repeat;
&:nth-child(2) {
background-image: url(../../../assets/img/dev/sup2.png);
}
.text {
font-size: 14px;
color: #0B1D30;
&:last-child {
margin-right: 0;
background-image: url(../../../assets/img/dev/sup3.png);
}
}
h6 {
margin: 15px 0 10px;
font-size: 18px;
color: #0B1D30;
}
.text {
font-size: 14px;
color: #757F92;
}
}
.sup{
background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FE 100%);
.list {
display: flex;
justify-content: space-between;
li {
width: 33%;
padding: 140px 50px 50px;
background: url(../../../assets/img/dev/sup1.png) 0 0/100% 100% no-repeat;
&:nth-child(2) {
background-image: url(../../../assets/img/dev/sup2.png);
}
&:last-child {
margin-right: 0;
background-image: url(../../../assets/img/dev/sup3.png);
}
}
h6 {
margin: 15px 0 10px;
font-size: 18px;
color: #0B1D30;
}
.text {
font-size: 14px;
color: #757F92;
}
}
.con {
background: url(../../../assets/img/dev/con-bg.png) 0 0/100% 100% no-repeat;
.list {
display: flex;
flex: 1;
li {
padding-bottom: 40px;
margin-right: 24px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
&:last-child {
margin-right: 0;
}
}
img {
width: 100%;
}
h6 {
margin: 15px 24px 10px;
font-size: 18px;
color: #0B1D30;
}
.text {
margin: 0 24px;
font-size: 14px;
color: #757F92;
}
}
.con{
background: url(../../../assets/img/dev/con-bg.png) 0 0/100% 100% no-repeat;
.list {
display: flex;
flex: 1;
li {
padding-bottom: 40px;
margin-right: 24px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 5px 20px 0px rgba(98, 117, 163, 0.08);
&:last-child {
margin-right: 0;
}
}
img {
width: 100%;
}
h6 {
margin: 15px 24px 10px;
font-size: 18px;
color: #0B1D30;
}
.text {
margin: 0 24px;
font-size: 14px;
color: #757F92;
}
}
}
.profit {
margin-bottom: 70px;
text-align: center;
.item1 {
line-height: 250px;
font-size: 30px;
color: #fff;
background: url(../../../assets/img/dev/profit-bg1.png) 0 0/100% 100% no-repeat;
}
.profit {
margin-bottom: 70px;
text-align: center;
.item1 {
line-height: 250px;
font-size: 30px;
color: #fff;
background: url(../../../assets/img/dev/profit-bg1.png) 0 0/100% 100% no-repeat;
}
.item2 {
width: 70%;
margin: -100px auto 0;
line-height: 202px;
font-size: 30px;
color: #0B1D30;
background: url(../../../assets/img/dev/profit-bg2.png) 0 0/100% 100% no-repeat;
}
.item2 {
width: 70%;
margin: -100px auto 0;
line-height: 202px;
font-size: 30px;
color: #0B1D30;
background: url(../../../assets/img/dev/profit-bg2.png) 0 0/100% 100% no-repeat;
}
.contact {
position: relative;
height: 250px;
background: url(../../../assets/img/contact-info.png) center center/auto no-repeat,
url(../../../assets/img/contact-bg.png) 0 0/100% 100% no-repeat;
.love {
position: absolute;
top: -45px;
right: 10%;
}
}
.contact {
position: relative;
height: 250px;
background: url(../../../assets/img/contact-info.png) center center/auto no-repeat,
url(../../../assets/img/contact-bg.png) 0 0/100% 100% no-repeat;
.love {
position: absolute;
top: -45px;
right: 10%;
}
}
}
</style>

File diff suppressed because it is too large Load Diff

@ -256,7 +256,7 @@ export default {
name: 'index',
data () {
return {
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
active: ''
}
},

@ -627,9 +627,9 @@ export default {
return {
routes: [],
headers: {
token: Util.local.get(Setting.tokenKey)
token: Util.session.get(Setting.tokenKey)
},
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
id: +this.$route.query.id,
fromOffical: !!this.$route.query.q, //
end: '',
@ -1668,7 +1668,7 @@ export default {
signup () {
const { status, form } = this
//
if (Util.local.get(Setting.tokenKey)) {
if (Util.session.get(Setting.tokenKey)) {
const { competitionType } = form.completeCompetitionSetup
if (status == 4) { //
// 线(handleStatus)
@ -1761,7 +1761,7 @@ export default {
// python
toPython () {
const form = this.curStage
let token = Util.local.get(Setting.tokenKey);
let token = Util.session.get(Setting.tokenKey);
Util.cookies.set('assessmentId', '', -1)
Util.cookies.set('startTime', '', -1)
Util.cookies.set('stopTime', '', -1)
@ -1801,7 +1801,7 @@ export default {
if (method === 1) {
window.open(this.$router.resolve(`/theoryExam?competitionId=${form.id}&stageId=${stageId}&teamId=${teamId}`).href, 'theory')
} else {
let token = Util.local.get(Setting.tokenKey);
let token = Util.session.get(Setting.tokenKey);
if (systemId == 11) {
//
location.href = `${Setting.systemPath}/#/index/list?curriculumName=${this.curriculumName}&token=${token}&cid=${cid}&systemId=${systemId}&projectId=${projectId}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&assessmentId=&classId=&stopTime=&test=true`

@ -340,11 +340,11 @@ export default {
data () {
return {
headers: {
token: Util.local.get(Setting.tokenKey)
token: Util.session.get(Setting.tokenKey)
},
fromOffical: !!this.$route.query.q, //
timer: null,
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
statusList: ["待报名", "取消报名", "马上报名", "报名截止", "进入初赛", "已结束"],
endList: ["报名开始", "报名截止", "报名截止", "竞赛开始", "竞赛结束", ""],
typeList: [
@ -982,7 +982,7 @@ export default {
const { status, id } = item
const { competitionType } = item
//
if (Util.local.get(Setting.tokenKey)) {
if (Util.session.get(Setting.tokenKey)) {
this.curItem = item
if (status == 4) { //
// 线(handleStatus)
@ -1078,7 +1078,7 @@ export default {
// python
toPython () {
const form = this.curItem.curStage
let token = Util.local.get(Setting.tokenKey);
let token = Util.session.get(Setting.tokenKey);
Util.cookies.set('assessmentId', '', -1)
Util.cookies.set('classId', '', -1)
Util.cookies.set('startTime', '', -1)
@ -1121,7 +1121,7 @@ export default {
window.open(this.$router.resolve(`/theoryExam?competitionId=${form.id}&stageId=${stageId}&teamId=${teamId}`).href, 'theory')
this.choosing = false
} else {
let token = Util.local.get(Setting.tokenKey)
let token = Util.session.get(Setting.tokenKey)
if (systemId == 11) {
//
location.href = `${Setting.systemPath}/#/index/list?curriculumName=${this.curriculumName}&token=${token}&cid=${cid}&systemId=${systemId}&projectId=${projectId}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&assessmentId=&classId=&stopTime=&test=true`

File diff suppressed because it is too large Load Diff

@ -64,7 +64,7 @@ export default {
page: +this.$route.query.page || 1,
pageSize: 10,
multipleSelection: [],
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
}
},
components: {

@ -93,7 +93,7 @@ export default {
name: '考核'
},
],
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
};
},
created () {

@ -275,7 +275,7 @@ export default {
reportId: this.$route.query.reportId,
fromTheory: this.$route.query.theory, //
matchName: this.$route.query.matchName, //
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
title: "实验报告",
form: {
className: "",

@ -354,7 +354,7 @@ import Setting from '@/setting'
export default {
data () {
return {
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
time: 2,
times: [
{

@ -3,31 +3,22 @@
<div class="left">
<div class="inner">
<div class="text-center">
<img :src="avatar"
class="avatar" />
<el-upload :headers="{token}"
:action="this.api.uploadUserAvatars"
name="file"
:limit="10"
:show-file-list="false"
:on-success="changeAvatar">
<el-button type="text"
size="small">点击更换头像</el-button>
<img :src="avatar" class="avatar" />
<el-upload :headers="{ token }" :action="this.api.uploadUserAvatars" name="file" :limit="10"
:show-file-list="false" :on-success="changeAvatar">
<el-button type="text" size="small">点击更换头像</el-button>
</el-upload>
</div>
<ul class="menu">
<li v-for="item in typeList"
:key="item.index"
:class="{active: item.index == active}">
<li v-for="item in typeList" :key="item.index" :class="{ active: item.index == active }">
{{ item.title }}
</li>
</ul>
</div>
</div>
<div class="right">
<info ref="info"
@updateStatus="updateStatus"></info>
<info ref="info" @updateStatus="updateStatus"></info>
</div>
</div>
</template>
@ -40,7 +31,7 @@ import util from '@/libs/util'
export default {
data () {
return {
token: util.local.get(Setting.tokenKey),
token: util.session.get(Setting.tokenKey),
typeList: [
{
index: '1',
@ -94,39 +85,46 @@ export default {
<style lang="scss" scoped>
.main .wrap {
display: flex;
width: $min-width;
padding: 12px 0 0;
.left {
margin-right: 12px;
background-color: #fff;
box-shadow: 2px 0px 6px 0px #eeeeee;
.inner {
width: 170px;
padding: 20px 0;
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
}
.menu {
margin-top: 32px;
li {
padding: 0 20px;
color: #303133;
font-size: 14px;
line-height: 38px;
cursor: pointer;
&.active {
color: #fff;
background-color: #006eff;
}
}
}
display: flex;
width: $min-width;
padding: 12px 0 0;
.left {
margin-right: 12px;
background-color: #fff;
box-shadow: 2px 0px 6px 0px #eeeeee;
.inner {
width: 170px;
padding: 20px 0;
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
}
.right {
flex: 1;
.menu {
margin-top: 32px;
li {
padding: 0 20px;
color: #303133;
font-size: 14px;
line-height: 38px;
cursor: pointer;
&.active {
color: #fff;
background-color: #006eff;
}
}
}
}
.right {
flex: 1;
}
}
</style>

@ -432,7 +432,7 @@ export default {
},
destroyed () {
//
Util.local.get(Setting.tokenKey) && this.courseId && this.$post(this.api.playRecordSave, {
Util.session.get(Setting.tokenKey) && this.courseId && this.$post(this.api.playRecordSave, {
courseId: this.courseId,
courseType: 0,
playTime: Math.ceil((Date.now() - this.startTime) / 1000 / 60)
@ -899,7 +899,7 @@ export default {
// python
toPython (projectId) {
const id = this.systemIds
let token = Util.local.get(Setting.tokenKey);
let token = Util.session.get(Setting.tokenKey);
Util.cookies.set('assessmentId', '', -1)
Util.cookies.set('classId', '', -1)
Util.cookies.set('startTime', '', -1)
@ -940,7 +940,7 @@ export default {
this.curProject = curProject.projectId
}
const { systemId } = curProject
let token = Util.local.get(Setting.tokenKey)
let token = Util.session.get(Setting.tokenKey)
this.third = curProject.type === 2 ? (curProject.systemId === 28 ? 'low' : 'ai') : ''
if (systemId == 11) {
//

@ -174,9 +174,9 @@ export default {
numToLetter: Util.numToLetter,
arabicToChinese: Util.arabicToChinese,
headers: {
token: Util.local.get(Setting.tokenKey)
token: Util.session.get(Setting.tokenKey)
},
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
paperId: +this.$route.query.paperId, // id
cid: +this.$route.query.cid,
mallId: +this.$route.query.mallId || '',

@ -273,7 +273,7 @@ export default {
data () {
return {
timer: null,
token: Util.local.get(Setting.tokenKey),
token: Util.session.get(Setting.tokenKey),
fromOffical: !!this.$route.query.q, //
statusList: ["待报名", "取消报名", "马上报名", "报名截止", "进入初赛", "已结束"],
endList: ["报名开始", "报名截止", "报名截止", "竞赛开始", "竞赛结束", ""],
@ -409,7 +409,7 @@ export default {
sequence: form.sequence || null,
keyWord: this.keyword
}
this.$post(this.api[Util.local.get(Setting.tokenKey) ? 'competitionAfterLogin' : 'notLoggedInBeforeStudentEvents'], data).then(async ({ data }) => {
this.$post(this.api[Util.session.get(Setting.tokenKey) ? 'competitionAfterLogin' : 'notLoggedInBeforeStudentEvents'], data).then(async ({ data }) => {
const list = data.records
let result = []
// 4
@ -486,7 +486,7 @@ export default {
total = startTime - now
break
} else if (now >= startTime && now <= endTime) { //
if ((item.whetherToSignUp === 0 || !Util.local.get(Setting.tokenKey)) && (e.method !== 2 || this.offlineCanEntry(e))) this.$set(item, 'stageName', e.count ? '已提交' : '进入' + e.stageName) //
if ((item.whetherToSignUp === 0 || !Util.session.get(Setting.tokenKey)) && (e.method !== 2 || this.offlineCanEntry(e))) this.$set(item, 'stageName', e.count ? '已提交' : '进入' + e.stageName) //
this.$set(item, 'endText', '阶段结束')
curStage = e
total = endTime - now
@ -734,7 +734,7 @@ export default {
const { status, id } = item
const { competitionType } = item
//
if (Util.local.get(Setting.tokenKey)) {
if (Util.session.get(Setting.tokenKey)) {
this.curItem = item
if (status == 4) { //
//
@ -798,7 +798,7 @@ export default {
// python
toPython () {
const form = this.curItem.curStage
let token = Util.local.get(Setting.tokenKey);
let token = Util.session.get(Setting.tokenKey);
Util.cookies.set('assessmentId', '', -1)
Util.cookies.set('startTime', '', -1)
Util.cookies.set('stopTime', '', -1)
@ -841,7 +841,7 @@ export default {
window.open(this.$router.resolve(`/theoryExam?competitionId=${form.id}&stageId=${stageId}&teamId=${teamId}`).href, 'theory')
this.choosing = false
} else {
let token = Util.local.get(Setting.tokenKey)
let token = Util.session.get(Setting.tokenKey)
if (systemId == 11) {
//
location.href = `${Setting.systemPath}/#/index/list?curriculumName=${this.curriculumName}&token=${token}&cid=${cid}&systemId=${systemId}&projectId=${projectId}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&assessmentId=&classId=&stopTime=&test=true`

@ -15,7 +15,7 @@ service.defaults.headers.post["Content-Type"] = "application/json;charset=UTF-8"
// 请求拦截器
service.interceptors.request.use(config => {
Util.getToken();
let token = Util.local.get(Setting.tokenKey)
let token = Util.session.get(Setting.tokenKey)
if (token) config.headers.token = token
return config
}, err => {

@ -6,7 +6,7 @@ const whiteList = Setting.whiteList // 白名单
router.beforeEach((to, from, next) => {
const officalTag = from.query.q && !to.query.q ? ((to.fullPath.includes('?') ? '&' : '?') + `q=${Date.now()}`) : '' // 安财赛事专用标识
document.title = to.path === '/screenShow' || to.path === '/screenShowPro' ? '安徽省绿色食品全产业链数据可视化看板' : Setting.titleSuffix + '-' + to.meta.title
const role = util.local.get(Setting.tokenKey);
const role = util.session.get(Setting.tokenKey);
if (!role && !whiteList.includes(to.path)) {
next('/login' + officalTag)
} else if (role && to.path === '/login') {

@ -31,7 +31,7 @@ if (isDev) {
host = "http://118.31.167.228/"; // 测试服
// host = 'https://www.occupationlab.com/' // 正式服
const ip = localStorage.getItem('localIp')
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'http://118.31.167.228/']
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'https://www.occupationlab.com/']
host = ips[+ip]
// host = 'http://192.168.31.51:9000/'
} else if (isSq) {

@ -88,7 +88,7 @@ export default {
return new Promise((resolve, reject) => {
post(api.logout).then(() => {
util.local.remove(Setting.storeKey)
util.local.remove(Setting.tokenKey)
util.session.remove(Setting.tokenKey)
util.local.remove('oc_server_token')
util.local.remove('oc_server_store')
util.cookies.remove('customerName')

Loading…
Cancel
Save