Commit cce550be authored by 杨梦雪's avatar 杨梦雪

11

parent 21f26f0d
...@@ -24,8 +24,7 @@ export default { ...@@ -24,8 +24,7 @@ export default {
}, },
validateid_card: function (rule, value, callback) { validateid_card: function (rule, value, callback) {
console.log(value, 'sss') // console.log(value, 'sss')
if (!/(^\d{15}$)|(^\d{17}(\d|X|x)$)/.test(value)) { if (!/(^\d{15}$)|(^\d{17}(\d|X|x)$)/.test(value)) {
callback(new Error("你输入的身份证长度或格式错误")); callback(new Error("你输入的身份证长度或格式错误"));
} }
...@@ -49,6 +48,7 @@ export default { ...@@ -49,6 +48,7 @@ export default {
}, },
// 邮箱验证 // 邮箱验证
validateEmail: function (rule, value, callback) { validateEmail: function (rule, value, callback) {
console.log(value,'ssss')
if (!emailReg.test(value)) { if (!emailReg.test(value)) {
callback(new Error('邮箱格式错误!')) callback(new Error('邮箱格式错误!'))
} else { } else {
......
...@@ -115,6 +115,7 @@ export default { ...@@ -115,6 +115,7 @@ export default {
window.localStorage.removeItem("examine_reason" + code); window.localStorage.removeItem("examine_reason" + code);
window.localStorage.removeItem("sign_up_file_18355151517" + code); window.localStorage.removeItem("sign_up_file_18355151517" + code);
window.localStorage.removeItem("schoolName" + code); window.localStorage.removeItem("schoolName" + code);
// window.localStorage.removeItem("restet_code_time" + code, )
this.isLogin = false; this.isLogin = false;
}, },
onMouserEnter(val) { onMouserEnter(val) {
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
v-model="phone" v-model="phone"
placeholder="请输入手机号" placeholder="请输入手机号"
size="small" size="small"
:disabled="true" disabled="true"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
v-model="referForm.email" v-model="referForm.email"
placeholder="填写电子邮箱" placeholder="填写电子邮箱"
size="small" size="small"
clearable disabled="true"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -563,6 +563,7 @@ export default { ...@@ -563,6 +563,7 @@ export default {
created() { created() {
const code = this.$store.state.indexIdentity; const code = this.$store.state.indexIdentity;
this.phone = window.localStorage.getItem("phone" + code); //本地取用户手机号 this.phone = window.localStorage.getItem("phone" + code); //本地取用户手机号
this.referForm.email = window.localStorage.getItem("email" + code); //本地取用户手机号
let signUpFile = window.localStorage.getItem( let signUpFile = window.localStorage.getItem(
"sign_up_file_" + window.localStorage.getItem("phone" + code) + code "sign_up_file_" + window.localStorage.getItem("phone" + code) + code
); );
...@@ -917,7 +918,7 @@ export default { ...@@ -917,7 +918,7 @@ export default {
// 下载证明资料图片 // 下载证明资料图片
handleDownload(file) { handleDownload(file) {
// console.log(file,'file22'); // console.log(file,'file22');
window.location.href=file.url window.location.href = file.url;
}, },
//删除图片 //删除图片
handleRemove(file) { handleRemove(file) {
......
...@@ -71,3 +71,4 @@ export function changePassCode(data) { ...@@ -71,3 +71,4 @@ export function changePassCode(data) {
data data
}) })
} }
...@@ -109,6 +109,7 @@ export function request(config) { ...@@ -109,6 +109,7 @@ export function request(config) {
const passMsgOld = '/web/auth/changePassOld'; const passMsgOld = '/web/auth/changePassOld';
const getCam = '/web/auth/getCam'; const getCam = '/web/auth/getCam';
const registerCode = '/web/code/registerCode'; const registerCode = '/web/code/registerCode';
const passwordEmailCode = 'web/code/passwordEmailCode';
const passwordCode = '/web/code/passwordCode'; const passwordCode = '/web/code/passwordCode';
const changePassCode = '/web/auth/changePassCode'; const changePassCode = '/web/auth/changePassCode';
const loginOut = '/web/auth/loginOut'; const loginOut = '/web/auth/loginOut';
...@@ -120,6 +121,7 @@ export function request(config) { ...@@ -120,6 +121,7 @@ export function request(config) {
config.url.indexOf(passMsgOld) != -1 || config.url.indexOf(passMsgOld) != -1 ||
config.url.indexOf(getCam) != -1 || config.url.indexOf(getCam) != -1 ||
config.url.indexOf(registerCode) != -1 || config.url.indexOf(registerCode) != -1 ||
config.url.indexOf(passwordEmailCode) != -1 ||
config.url.indexOf(changePassCode) != -1 || config.url.indexOf(changePassCode) != -1 ||
config.url.indexOf(passwordCode) != -1 || config.url.indexOf(passwordCode) != -1 ||
config.url.indexOf(loginOut) != -1 config.url.indexOf(loginOut) != -1
...@@ -182,7 +184,7 @@ export function request(config) { ...@@ -182,7 +184,7 @@ export function request(config) {
instance.interceptors.response.use( instance.interceptors.response.use(
(res) => { (res) => {
// console.log(res, '11111') console.log(res, '11111')
// console.log(res.data.code, 'res.data.code') // console.log(res.data.code, 'res.data.code')
if (res.data.code == 400034 || if (res.data.code == 400034 ||
res.data.code == 400035 || res.data.code == 400035 ||
...@@ -201,7 +203,7 @@ export function request(config) { ...@@ -201,7 +203,7 @@ export function request(config) {
}); });
return return
} }
if (res.data.code == 400023 ) { if (res.data.code == 400023) {
// console.log(store.state.indexIdentity, 'store.state.indexIdentity') // console.log(store.state.indexIdentity, 'store.state.indexIdentity')
let code = store.state.indexIdentity; let code = store.state.indexIdentity;
window.localStorage.removeItem("doubt_code" + code); window.localStorage.removeItem("doubt_code" + code);
...@@ -221,6 +223,7 @@ export function request(config) { ...@@ -221,6 +223,7 @@ export function request(config) {
window.localStorage.removeItem("examine_reason" + code); window.localStorage.removeItem("examine_reason" + code);
window.localStorage.removeItem("sign_up_file_18355151517" + code); window.localStorage.removeItem("sign_up_file_18355151517" + code);
window.localStorage.removeItem("schoolName" + code); window.localStorage.removeItem("schoolName" + code);
window.localStorage.removeItem("restet_code_time" + code, )
router.push({ router.push({
path: '/' + store.state.indexIdentity, path: '/' + store.state.indexIdentity,
...@@ -274,7 +277,8 @@ export function request(config) { ...@@ -274,7 +277,8 @@ export function request(config) {
return res return res
}, },
(error) => { (error) => {
console.log(error.response.status, '5555') // console.log(error, 'err')
// console.log(error.response.status, '5555')
Message.closeAll() Message.closeAll()
if (error.response.status === 404) { if (error.response.status === 404) {
// return this.$message.error("营地报名已结束") // return this.$message.error("营地报名已结束")
......
...@@ -5,14 +5,22 @@ import { ...@@ -5,14 +5,22 @@ import {
} from './network' } from './network'
import store from '@/store' import store from '@/store'
// 通过邮箱验证码找回密码
export function passwordEmailCode(data) {
data['identity'] = store.state.indexIdentity;
return request({
method: 'post',
url: 'web/code/passwordEmailCode',
params: data
})
}
// 发送注册时候验证码 // 发送注册时候验证码
export function registerCode(data) { export function registerCode(data) {
data['identity'] = store.state.indexIdentity; data['identity'] = store.state.indexIdentity;
return request({ return request({
method: 'post', method: 'post',
url: '/web/code/registerCode', url: '/web/code/registerCode',
params:data params: data
}) })
} }
export function passwordCode(data) { export function passwordCode(data) {
...@@ -20,7 +28,7 @@ export function passwordCode(data) { ...@@ -20,7 +28,7 @@ export function passwordCode(data) {
return request({ return request({
method: 'post', method: 'post',
url: '/web/code/passwordCode', url: '/web/code/passwordCode',
params:data params: data
}) })
} }
......
...@@ -30,8 +30,8 @@ const routes = [{ ...@@ -30,8 +30,8 @@ const routes = [{
component: () => component: () =>
import('v/index/login/Index.vue'), import('v/index/login/Index.vue'),
children: [...indexLogin] children: [...indexLogin]
}, },
{ {
path: '/', path: '/',
name: 'cerificateIndex', name: 'cerificateIndex',
meta: { meta: {
...@@ -41,8 +41,8 @@ const routes = [{ ...@@ -41,8 +41,8 @@ const routes = [{
component: () => component: () =>
import('v/index/camp/Index.vue'), import('v/index/camp/Index.vue'),
children: [...indexCamp] children: [...indexCamp]
}, },
{ {
path: '/:code', path: '/:code',
name: 'recruit', name: 'recruit',
meta: { meta: {
...@@ -51,16 +51,16 @@ const routes = [{ ...@@ -51,16 +51,16 @@ const routes = [{
component: () => component: () =>
import('v/index/recruit/Index.vue') import('v/index/recruit/Index.vue')
}, },
{ {
path: "/404", path: "/404",
name: "notFound", name: "notFound",
component: () => component: () =>
import('v/index/notFound.vue'), import('v/index/notFound.vue'),
}, { }, {
path: "*", // 此处需特别注意置于最底部 path: "*", // 此处需特别注意置于最底部
redirect: "/404" redirect: "/404"
} }
] ]
...@@ -95,7 +95,7 @@ function checkCam(code, cb) { ...@@ -95,7 +95,7 @@ function checkCam(code, cb) {
// console.log(cb, 'cb') // console.log(cb, 'cb')
// const code=store.status.indexIdentity // const code=store.status.indexIdentity
store.state.indexIdentity = code; store.state.indexIdentity = code;
console.log(code, 'code') // console.log(code, 'code11111')
if (!code) { if (!code) {
Message({ Message({
message: "请访问正确的营地链接地址", message: "请访问正确的营地链接地址",
...@@ -106,7 +106,7 @@ function checkCam(code, cb) { ...@@ -106,7 +106,7 @@ function checkCam(code, cb) {
} }
getCam(code).then((res) => { getCam(code).then((res) => {
console.log(res) // console.log(res)
// if (res.data.code != 200) { // if (res.data.code != 200) {
// Message({ // Message({
// message: "请访问正确的营地链接地址", // message: "请访问正确的营地链接地址",
......
...@@ -52,9 +52,11 @@ ...@@ -52,9 +52,11 @@
<el-button @click="submitForm()">登 录</el-button> <el-button @click="submitForm()">登 录</el-button>
</el-form-item> </el-form-item>
<div class="box"> <div class="box">
<div>
<div class="fr" @click="register()">还没有账号?立即注册</div> <div class="fr" @click="register()">还没有账号?立即注册</div>
<div class="fl" @click="forgetPwd()">忘记密码?</div>
</div>
<div class="fc">忘记密码请联系管理员邮箱:ydhdservice@163.com</div> <div class="fc">忘记密码请联系管理员邮箱:ydhdservice@163.com</div>
<!-- <div class="fl" @click="forgetPwd()">忘记密码?</div> -->
</div> </div>
</el-form> </el-form>
</div> </div>
...@@ -164,6 +166,7 @@ export default { ...@@ -164,6 +166,7 @@ export default {
// token存储 // token存储
window.localStorage.setItem("index-token" + code, res.data.token); window.localStorage.setItem("index-token" + code, res.data.token);
window.localStorage.setItem("phone" + code, this.loginForm.phone); window.localStorage.setItem("phone" + code, this.loginForm.phone);
window.localStorage.setItem("email" + code, res.data.email);
// 报名信息 // 报名信息
window.localStorage.setItem("camp_name" + code, res.data.cam.name); window.localStorage.setItem("camp_name" + code, res.data.cam.name);
//获取主题色 //获取主题色
...@@ -261,18 +264,18 @@ export default { ...@@ -261,18 +264,18 @@ export default {
// display: block; // display: block;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
// .fl { .fl {
// float: right; float: right;
// height: 18px; height: 18px;
// line-height: 18px; line-height: 18px;
// color: #999999; color: #999999;
// margin-top: -10px; margin-top: -10px;
// cursor: pointer; cursor: pointer;
// &:hover { &:hover {
// color: #563279; color: var(--color);
// text-decoration: underline; text-decoration: underline;
// } }
// } }
.fr { .fr {
float: left; float: left;
height: 18px; height: 18px;
......
...@@ -19,6 +19,15 @@ ...@@ -19,6 +19,15 @@
autocomplete="off" autocomplete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="email">
<img class="img_l" src="@/assets/img/reset/username.png" alt="" />
<el-input
v-model="registerForm.email"
placeholder="请输入邮箱"
maxlength="20"
autocomplete="off"
></el-input>
</el-form-item>
<!-- <el-form-item prop="code"> <!-- <el-form-item prop="code">
<img class="img_l" src="@/assets/img/reset/code.png" alt="" /> <img class="img_l" src="@/assets/img/reset/code.png" alt="" />
<el-input <el-input
...@@ -83,11 +92,10 @@ ...@@ -83,11 +92,10 @@
<script> <script>
/* eslint-disable */ /* eslint-disable */
// 请求接口 // 请求接口
import Cookie from "js-cookie";
import { registerCode, setAccountInfo } from "r/index/register"; import { registerCode, setAccountInfo } from "r/index/register";
import { mobileCheck, checkStrong } from "@/common/utils.js"; import { mobileCheck, checkStrong } from "@/common/utils.js";
import { validatePassword } from "@/common/validator"; import validator from "common/validator";
import { intervalTime } from "store/time";
export default { export default {
name: "index-register", name: "index-register",
...@@ -109,7 +117,8 @@ export default { ...@@ -109,7 +117,8 @@ export default {
isShowPwd: true, // 控制密码显示隐藏 isShowPwd: true, // 控制密码显示隐藏
registerForm: { registerForm: {
phone: "", phone: "",
code: "", // code: "",
email: "",
password: "", password: "",
rq_password: "", rq_password: "",
}, },
...@@ -129,6 +138,14 @@ export default { ...@@ -129,6 +138,14 @@ export default {
trigger: "blur", trigger: "blur",
}, },
], ],
// 对邮箱验证
email: [
{ required: true, message: "请输入邮箱", trigger: "blur" },
{
validator: validator.validateEmail,
trigger: "blur",
},
],
// 对验证码进行校验 // 对验证码进行校验
// code: [ // code: [
// { required: true, message: "请输入验证码", trigger: "blur" }, // { required: true, message: "请输入验证码", trigger: "blur" },
...@@ -248,6 +265,7 @@ export default { ...@@ -248,6 +265,7 @@ export default {
if (!valid) return; if (!valid) return;
setAccountInfo({ setAccountInfo({
phone: this.registerForm.phone, phone: this.registerForm.phone,
email: this.registerForm.email,
// code: this.registerForm.code, // code: this.registerForm.code,
password: this.registerForm.password, password: this.registerForm.password,
rq_password: this.registerForm.rq_password, rq_password: this.registerForm.rq_password,
...@@ -261,6 +279,7 @@ export default { ...@@ -261,6 +279,7 @@ export default {
// token存储 // token存储
window.localStorage.setItem("index-token" + code, res.data.token); window.localStorage.setItem("index-token" + code, res.data.token);
window.localStorage.setItem("phone" + code, this.registerForm.phone); window.localStorage.setItem("phone" + code, this.registerForm.phone);
window.localStorage.setItem("email" + code, this.registerForm.email);
// 报名信息 // 报名信息
window.localStorage.setItem("camp_name" + code, res.data.cam.name); window.localStorage.setItem("camp_name" + code, res.data.cam.name);
//获取主题色 //获取主题色
......
...@@ -19,18 +19,43 @@ ...@@ -19,18 +19,43 @@
autocomplete="off" autocomplete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="code"> <el-form-item prop="email">
<img class="img_l" src="@/assets/img/reset/username.png" alt="" />
<el-input
v-model="resetForm.email"
placeholder="请输入邮箱"
maxlength="20"
autocomplete="off"
></el-input>
</el-form-item>
<!-- <el-form-item prop="code">
<img class="img_l" src="@/assets/img/reset/code.png" alt="" /> <img class="img_l" src="@/assets/img/reset/code.png" alt="" />
<el-input <el-input
v-model="resetForm.code" v-model="resetForm.code"
placeholder="请输入短信验证码" placeholder="请输入短信验证码"
maxlength="20" maxlength="20"
autocomplete="off" autocomplete="off"
></el-input> -->
<!-- 短信验证码 -->
<!-- <div class="phoneCode">
<span class="code" v-show="showCode" @click="getCode"
>获取验证码</span
>
<span v-show="!showCode" class="count">{{ count }} s</span>
</div>
</el-form-item> -->
<el-form-item prop="code">
<img class="img_l" src="@/assets/img/reset/code.png" alt="" />
<el-input
v-model="resetForm.code"
placeholder="请输入邮箱验证码"
maxlength="20"
autocomplete="off"
></el-input> ></el-input>
<!-- 短信验证码 --> <!-- 短信验证码 -->
<div class="phoneCode"> <div class="phoneCode">
<span class="code" v-show="showCode" @click="getCode" <span class="code" v-show="showCode" @click="getCode"
>获取验证码</span >获取邮箱验证码</span
> >
<span v-show="!showCode" class="count">{{ count }} s</span> <span v-show="!showCode" class="count">{{ count }} s</span>
</div> </div>
...@@ -83,13 +108,11 @@ ...@@ -83,13 +108,11 @@
<script> <script>
/* eslint-disable */ /* eslint-disable */
// 请求接口 // 请求接口
import Cookie from "js-cookie" import { passwordEmailCode } from "r/index/register";
import { passwordCode } from "r/index/register";
import { changePassCode } from "r/index/login"; import { changePassCode } from "r/index/login";
import { mobileCheck } from "@/common/utils.js"; import { mobileCheck } from "@/common/utils.js";
import { parseTime } from "common/utils";
import { intervalTime } from "store/time"; import { intervalTime } from "store/time";
import { timeSpan } from "common/utils"; import validator from "common/validator";
export default { export default {
name: "index-reset", name: "index-reset",
...@@ -110,6 +133,7 @@ export default { ...@@ -110,6 +133,7 @@ export default {
codeTime: "", //手机验证码倒计时时间 codeTime: "", //手机验证码倒计时时间
resetForm: { resetForm: {
phone: "", phone: "",
email: "",
code: "", code: "",
password: "", password: "",
rq_password: "", rq_password: "",
...@@ -130,11 +154,19 @@ export default { ...@@ -130,11 +154,19 @@ export default {
trigger: "blur", trigger: "blur",
}, },
], ],
// 对验证码进行校验 // 对邮箱验证
code: [ email: [
{ required: true, message: "请输入验证码", trigger: "blur" }, { required: true, message: "请输入邮箱", trigger: "blur" },
{ min: 6, max: 20, message: "请输入正确的验证码", trigger: "blur" }, {
validator: validator.validateEmail,
trigger: "blur",
},
], ],
// 对验证码进行校验
// code: [
// { required: true, message: "请输入验证码", trigger: "blur" },
// { min: 6, max: 20, message: "请输入正确的验证码", trigger: "blur" },
// ],
// 对密码进行校验 // 对密码进行校验
password: [ password: [
{ {
...@@ -180,8 +212,9 @@ export default { ...@@ -180,8 +212,9 @@ export default {
}; };
}, },
created() { created() {
const endTime = window.localStorage.getItem("restet_code_time"); const code = this.$store.state.indexIdentity;
const phone = window.localStorage.getItem("restet_code_phone"); const endTime = window.localStorage.getItem("restet_code_time" + code);
const phone = window.localStorage.getItem("restet_code_phone" + code);
if (endTime && Number(endTime) > new Date().getTime()) { if (endTime && Number(endTime) > new Date().getTime()) {
this.resetForm.phone = phone; this.resetForm.phone = phone;
this.intervalHandle(new Date(), Number(endTime)); this.intervalHandle(new Date(), Number(endTime));
...@@ -191,7 +224,7 @@ export default { ...@@ -191,7 +224,7 @@ export default {
// 去注册 // 去注册
toLogin() { toLogin() {
let code = this.$store.state.indexIdentity; let code = this.$store.state.indexIdentity;
this.$router.push("/login?code="+code); this.$router.push("/login?code=" + code);
}, },
// 改变密码显示状态 // 改变密码显示状态
changePwdStatus() { changePwdStatus() {
...@@ -203,7 +236,7 @@ export default { ...@@ -203,7 +236,7 @@ export default {
const timeLag = intervalTime(startTime, endTime); const timeLag = intervalTime(startTime, endTime);
console.log(timeLag); console.log(timeLag);
if (!this.timer) { if (!this.timer) {
this.count = timeLag-1; this.count = timeLag - 1;
this.showCode = false; this.showCode = false;
this.timer = setInterval(() => { this.timer = setInterval(() => {
if (this.count > 0 && this.count <= timeLag) { if (this.count > 0 && this.count <= timeLag) {
...@@ -218,28 +251,28 @@ export default { ...@@ -218,28 +251,28 @@ export default {
}, },
// 获取手机验证短信 // 获取手机验证短信
getCode() { getCode() {
if (!this.resetForm.phone) { if (!this.resetForm.email) {
return this.$message.error("请输入手机号"); return this.$message.error("请输入邮箱");
} }
// if (!this.codeTime) {
// return this.$message.error("您已经获取验证码,请去邮箱中进行查看");
// }
// 接口获得验证码 // 接口获得验证码
passwordCode({ passwordEmailCode({
phone: this.resetForm.phone, email: this.resetForm.email,
}).then((res) => { }).then((res) => {
console.log(res, "passwordCode"); console.log(res, "passwordCode");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
this.$message.success(res.data.message); this.$message.success(res.data.message);
// this.codeTime = parseTime(res.data.data.now);
this.codeTime = res.data.data.now * 1000; this.codeTime = res.data.data.now * 1000;
// console.log(this.codeTime)
let code = this.$store.state.indexIdentity;
window.localStorage.setItem( window.localStorage.setItem(
"restet_code_time", "restet_code_time" + code,
res.data.data.now * 1000 res.data.data.now * 1000
); );
window.localStorage.setItem(
"restet_code_phone",
this.resetForm.phone
);
this.intervalHandle(new Date(), res.data.data.now * 1000); this.intervalHandle(new Date(), res.data.data.now * 1000);
}); });
}, },
...@@ -250,6 +283,7 @@ export default { ...@@ -250,6 +283,7 @@ export default {
if (!valid) return; if (!valid) return;
changePassCode({ changePassCode({
phone: this.resetForm.phone, phone: this.resetForm.phone,
email: this.resetForm.email,
code: this.resetForm.code, code: this.resetForm.code,
password: this.resetForm.password, password: this.resetForm.password,
rq_password: this.resetForm.rq_password, rq_password: this.resetForm.rq_password,
...@@ -258,11 +292,15 @@ export default { ...@@ -258,11 +292,15 @@ export default {
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
// this.$message.success(res.data.message); this.$message.success(res.data.message);
// token存储 // token存储
let code = this.$store.state.indexIdentity; let code = this.$store.state.indexIdentity;
window.localStorage.setItem("index-token"+code, res.token); // window.localStorage.setItem("index-token" + code, res.token);
this.$router.push("/login?code="+code); window.localStorage.setItem(
"restet_code_phone" + code,
this.resetForm.phone
);
this.$router.push("/login?code=" + code);
}); });
}); });
}, },
...@@ -271,7 +309,6 @@ export default { ...@@ -271,7 +309,6 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
// 注册输入 // 注册输入
.container { .container {
background: #ffffff; background: #ffffff;
...@@ -353,7 +390,7 @@ export default { ...@@ -353,7 +390,7 @@ export default {
border-bottom: 2px solid #d9d9d9; border-bottom: 2px solid #d9d9d9;
&:focus { &:focus {
border-bottom-color:var(--color); border-bottom-color: var(--color);
} }
} }
...@@ -391,7 +428,7 @@ export default { ...@@ -391,7 +428,7 @@ export default {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: #563279; color: var(--color);
text-decoration: underline; text-decoration: underline;
} }
} }
......
...@@ -64,8 +64,8 @@ export default { ...@@ -64,8 +64,8 @@ export default {
this.info = this.$store.state.info; this.info = this.$store.state.info;
let code =this.$store.state.indexIdentity let code =this.$store.state.indexIdentity
getCamInfo(code).then((res) => { getCamInfo(code).then((res) => {
console.log(res, '33333') // console.log(res, '33333')
console.log(res.data.name, 'res.name') // console.log(res.data.name, 'res.name')
document.title = res.data.name document.title = res.data.name
return false; return false;
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment