UI_2022-02-10
yujialong 3 years ago
parent 944781a3ee
commit 67494f65b2
  1. 3
      src/layouts/header/index.vue
  2. 15
      src/pages/account/login/index.vue
  3. 2
      src/pages/course/details/index.vue
  4. 2
      src/pages/station/preview/index.vue
  5. 6
      src/setting.js

@ -1,7 +1,6 @@
<template>
<div class="header">
<div v-if="this.$route.path=='/setting/person'" class="goBack" @click="back"><i class="el-icon-arrow-left"></i>返回
</div>
<div v-if="this.$route.path=='/setting/person'" class="goBack" @click="back"><i class="el-icon-arrow-left"></i>返回</div>
<template v-else>
<img class="logo hh" v-if="isHh" src="@/assets/img/logo-hh.png" />
<img class="logo" v-else src="@/assets/img/logo.png">

@ -72,7 +72,7 @@
<script>
import vFooter from "@/layouts/footer";
import { mapState, mapActions } from "vuex";
import { mapActions } from "vuex";
import util from "@/libs/util";
import Setting from "@/setting";
@ -90,7 +90,7 @@ export default {
platform: Setting.platformId
},
loginRules: {
account: [{ required: true, message: "请输入用户名", trigger: "blur" }],
account: [{ required: true, message: "请输入账号", trigger: "blur" }],
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
code: [{ required: true, message: "请输入验证码", trigger: "blur" }]
},
@ -117,8 +117,12 @@ export default {
},
methods: {
...mapActions("user", [
"login", "setInfo", "setCustomer"
"login"
]),
getVerImg() { //
this.loginForm.random = Math.floor(Math.random() * 999999999);
this.verificationIMG = this.api.verification + "?random=" + `${this.loginForm.random}`;
},
handleClick(tab, event) { //
this.loginForm.account = "";
this.$refs.loginForm.clearValidate();
@ -143,10 +147,6 @@ export default {
}
});
},
getVerImg() { //
this.loginForm.random = Math.floor(Math.random() * 999999999);
this.verificationIMG = this.api.verification + "?random=" + `${this.loginForm.random}`;
},
phoneCountdown() {
let count = 60;
if (!this.phoneTimer) {
@ -169,6 +169,7 @@ export default {
if (!this.phone) return util.warningMsg("请输入手机号");
if (!/^1[3456789]\d{9}$/.test(this.phone)) return util.warningMsg("请输入正确的手机号");
let data = {
platform: Setting.platformId,
phone: this.phone,
types: 2
};

@ -160,7 +160,7 @@ export default {
this.isExcel = false
if(this.transferType(row.fileType) == '视频'){
this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => {
this.playAuth = res.playAuth
this.playAuth = res.data.playAuth
this.$nextTick(() => {
if(this.player){
this.player.replayByVidAndPlayAuth(row.fileId,this.playAuth)

@ -193,7 +193,7 @@ export default {
this.isExcel = false;
if (this.transferType(row.fileType) == "视频") {
this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => {
this.playAuth = res.playAuth;
this.playAuth = res.data.playAuth;
this.$nextTick(() => {
if (this.player) {
this.player.replayByVidAndPlayAuth(row.fileId, this.playAuth);

@ -71,12 +71,12 @@ const Setting = {
isCH, // 是否是巢湖版本
isBeta, // 是否职站测试服
schoolId,// 学校id
// 测评做完后跳转的默认子系统
defaultSubSystem,
systemId: systemList.length && systemList[0].id, // 默认系统id
defaultSubSystem, // 测评做完后跳转的默认子系统
// 子系统列表.改的时候留意要改的是哪个环境,别影响到了其他环境
// 以后如果卖给了其他学校,要给该学校单独开放子系统的话,就在下面这个数组里加判断就行,然后把需要开放的子系统放出来。不要复制这个职站项目另起一个项目,这样学校一多就很难维护了
systemList,
systemId: systemList.length && systemList[0].id, // 默认系统id
autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间
modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒
errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice

Loading…
Cancel
Save