flat: 压缩图片,添加消息控制
282
App.vue
@@ -1,143 +1,139 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
||||||
@import "@/uni_modules/uview-ui/index.scss";
|
@import '@/uni_modules/uview-ui/index.scss';
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import website from '@/config/website.js'
|
import website from '@/config/website.js';
|
||||||
import {
|
import { mapGetters } from 'vuex';
|
||||||
mapGetters
|
import { GoLogin } from '@/untils/AxiosUtils.js';
|
||||||
} from 'vuex'
|
// #ifdef H5
|
||||||
import {
|
import { setPlatformByHostName } from '@/untils/customized.js';
|
||||||
GoLogin
|
import { reject } from 'lodash';
|
||||||
} from '@/untils/AxiosUtils.js';
|
// #endif
|
||||||
// #ifdef H5
|
|
||||||
import {
|
export default {
|
||||||
setPlatformByHostName
|
onLaunch: function (options) {
|
||||||
} from '@/untils/customized.js'
|
this.$store.dispatch('InitArea');
|
||||||
import {
|
if (options.query.token) {
|
||||||
reject
|
this.tokenlogin(options.query.token).then(() => {
|
||||||
} from 'lodash';
|
this.$store.dispatch('getUserLocation');
|
||||||
// #endif
|
this.$store.dispatch('getNoticeState');
|
||||||
|
this.$store.dispatch('getMobileIsCms');
|
||||||
export default {
|
this.$store.dispatch('getResumeInfo');
|
||||||
onLaunch: function(options) {
|
});
|
||||||
this.$store.dispatch('InitArea')
|
} else {
|
||||||
if (options.query.token) {
|
this.$store.dispatch('FedLogOut');
|
||||||
this.tokenlogin(options.query.token).then(() => {
|
}
|
||||||
this.$store.dispatch('getUserLocation')
|
// if (options.query.token) {
|
||||||
this.$store.dispatch('getMobileIsCms')
|
// // uni.reLaunch({
|
||||||
this.$store.dispatch('getResumeInfo')
|
// // url: '/pages/login/blank?token=' + options.query.token
|
||||||
})
|
// // })
|
||||||
} else {
|
// this.tokenlogin(options.query.token)
|
||||||
this.$store.dispatch('FedLogOut')
|
// } else if (this.$api.haslogin()) {
|
||||||
}
|
// this.$store.dispatch('startRefreshTokenTimer')
|
||||||
// if (options.query.token) {
|
// this.$store.dispatch('startRefreshNewsTimer')
|
||||||
// // uni.reLaunch({
|
// this.$store.dispatch('refreshAuthState')
|
||||||
// // url: '/pages/login/blank?token=' + options.query.token
|
// this.$store.dispatch('getUserLocation')
|
||||||
// // })
|
// this.$store.dispatch('getMobileIsCms')
|
||||||
// this.tokenlogin(options.query.token)
|
// }
|
||||||
// } else if (this.$api.haslogin()) {
|
// #ifdef H5
|
||||||
// this.$store.dispatch('startRefreshTokenTimer')
|
// 企业定制
|
||||||
// this.$store.dispatch('startRefreshNewsTimer')
|
setPlatformByHostName(this.$store);
|
||||||
// this.$store.dispatch('refreshAuthState')
|
// #endif
|
||||||
// this.$store.dispatch('getUserLocation')
|
},
|
||||||
// this.$store.dispatch('getMobileIsCms')
|
onShow: function () {},
|
||||||
// }
|
onHide: function () {},
|
||||||
// #ifdef H5
|
computed: {
|
||||||
// 企业定制
|
...mapGetters(['news', 'auth']),
|
||||||
setPlatformByHostName(this.$store)
|
allUnread() {
|
||||||
// #endif
|
return this.news.allUnread;
|
||||||
},
|
},
|
||||||
onShow: function() {},
|
},
|
||||||
onHide: function() {},
|
mounted() {
|
||||||
computed: {
|
this.$config.showTitle && document.documentElement.style.setProperty('--hide-title', 'block');
|
||||||
...mapGetters(['news', 'auth']),
|
},
|
||||||
allUnread() {
|
methods: {
|
||||||
return this.news.allUnread
|
tokenlogin(token) {
|
||||||
}
|
return new Promise((resolve, reject) => {
|
||||||
},
|
uni.showLoading({
|
||||||
mounted() {
|
title: '登录中',
|
||||||
this.$config.showTitle && document.documentElement.style.setProperty('--hide-title', 'block');
|
});
|
||||||
},
|
if (token) {
|
||||||
methods: {
|
const that = this;
|
||||||
tokenlogin(token) {
|
this.$store
|
||||||
return new Promise((resolve, reject) => {
|
.dispatch('LoginByUsername', {
|
||||||
uni.showLoading({
|
username: 'admin',
|
||||||
title: '登录中'
|
password: 'admin',
|
||||||
})
|
key: '',
|
||||||
if (token) {
|
code: '1111',
|
||||||
const that = this
|
type: 'account',
|
||||||
this.$store.dispatch("LoginByUsername", {
|
token: token,
|
||||||
username: 'admin',
|
tenantId: website.tenantId,
|
||||||
password: "admin",
|
})
|
||||||
key: '',
|
.then((resp) => {
|
||||||
code: '1111',
|
this.$store.dispatch('refreshAuthState').then(() => {
|
||||||
type: "account",
|
uni.hideLoading();
|
||||||
token: token,
|
resolve();
|
||||||
tenantId: website.tenantId
|
});
|
||||||
}).then((resp) => {
|
})
|
||||||
this.$store.dispatch('refreshAuthState').then(() => {
|
.catch((err) => {
|
||||||
uni.hideLoading()
|
uni.hideLoading();
|
||||||
resolve()
|
});
|
||||||
})
|
} else {
|
||||||
}).catch((err) => {
|
GoLogin();
|
||||||
uni.hideLoading()
|
}
|
||||||
});
|
});
|
||||||
} else {
|
},
|
||||||
GoLogin()
|
},
|
||||||
}
|
watch: {
|
||||||
})
|
allUnread(value) {
|
||||||
|
console.log('allUnread', value);
|
||||||
}
|
if (!this.$api.haslogin()) {
|
||||||
},
|
} else if (value > 0) {
|
||||||
watch: {
|
uni.showTabBarRedDot({
|
||||||
allUnread(value) {
|
index: 2,
|
||||||
console.log('allUnread', value)
|
});
|
||||||
if (!this.$api.haslogin()) {} else if (value > 0) {
|
uni.$once('newsReadChange', () => {
|
||||||
uni.showTabBarRedDot({
|
uni.showTabBarRedDot({
|
||||||
index: 2
|
index: 2,
|
||||||
})
|
});
|
||||||
uni.$once('newsReadChange', () => {
|
});
|
||||||
uni.showTabBarRedDot({
|
} else {
|
||||||
index: 2
|
uni.hideTabBarRedDot({
|
||||||
})
|
index: 2,
|
||||||
})
|
});
|
||||||
} else {
|
uni.$once('newsReadChange', () => {
|
||||||
uni.hideTabBarRedDot({
|
uni.hideTabBarRedDot({
|
||||||
index: 2
|
index: 2,
|
||||||
})
|
});
|
||||||
uni.$once('newsReadChange', () => {
|
});
|
||||||
uni.hideTabBarRedDot({
|
}
|
||||||
index: 2
|
},
|
||||||
})
|
},
|
||||||
})
|
};
|
||||||
}
|
</script>
|
||||||
},
|
|
||||||
}
|
<style lang="scss">
|
||||||
};
|
/*每个页面公共css */
|
||||||
</script>
|
/* tabbar 字体大小 */
|
||||||
|
/* .uni-tabbar__label{
|
||||||
<style lang="scss">
|
font-size: 14px !important;
|
||||||
/*每个页面公共css */
|
} */
|
||||||
/* tabbar 字体大小 */
|
@font-face {
|
||||||
/* .uni-tabbar__label{
|
font-family: 'uicon-iconfont';
|
||||||
font-size: 14px !important;
|
font-weight: mormal;
|
||||||
} */
|
font-style: mormal;
|
||||||
@font-face {
|
src: url('/static/font/font_2225171_8kdcwk4po24.ttf') format('truetype');
|
||||||
font-family: 'uicon-iconfont';
|
}
|
||||||
font-weight: mormal;
|
|
||||||
font-style: mormal;
|
:root {
|
||||||
src: url('/static/font/font_2225171_8kdcwk4po24.ttf') format('truetype');
|
--hide-title: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
/* #ifdef H5 */
|
||||||
--hide-title: none;
|
uni-page-head {
|
||||||
}
|
display: var(--hide-title);
|
||||||
|
}
|
||||||
/* #ifdef H5 */
|
|
||||||
uni-page-head {
|
/* #endif */
|
||||||
display: var(--hide-title);
|
</style>
|
||||||
}
|
|
||||||
|
|
||||||
/* #endif */
|
|
||||||
</style>
|
|
||||||
|
|||||||
242
api/auth.js
@@ -1,118 +1,124 @@
|
|||||||
import {
|
import {
|
||||||
request
|
request
|
||||||
} from '@/untils/AxiosUtils.js';
|
} from '@/untils/AxiosUtils.js';
|
||||||
import website from "@/config/website";
|
import website from "@/config/website";
|
||||||
|
|
||||||
const authUrl = '/api/jobslink-api/user/user/auth/auth'
|
const authUrl = '/api/jobslink-api/user/user/auth/auth'
|
||||||
|
|
||||||
export const findAuth = () => request({
|
export const findAuth = () => request({
|
||||||
url: '/api/jobslink-api/user/user/find',
|
url: '/api/jobslink-api/user/user/find',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
|
|
||||||
export const cheakValue = () => request({
|
export const cheakValue = () => request({
|
||||||
url: authUrl,
|
url: authUrl,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
cheakvalue: 1,
|
cheakvalue: 1,
|
||||||
bakvalue: 0
|
bakvalue: 0
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export const realName = (realName, idNumber) => request({
|
export const realName = (realName, idNumber) => request({
|
||||||
url: authUrl,
|
url: authUrl,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
cheakvalue: 2,
|
cheakvalue: 2,
|
||||||
realName,
|
realName,
|
||||||
idNumber
|
idNumber
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export const bank = (bankName, realName, cardNumber, def, id) => request({
|
export const bank = (bankName, realName, cardNumber, def, id) => request({
|
||||||
url: authUrl,
|
url: authUrl,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
cheakvalue: 3,
|
cheakvalue: 3,
|
||||||
bankName,
|
bankName,
|
||||||
cardNumber,
|
cardNumber,
|
||||||
realName,
|
realName,
|
||||||
def,
|
def,
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export const insure = (bakvalue) => request({
|
export const insure = (bakvalue) => request({
|
||||||
url: authUrl,
|
url: authUrl,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
cheakvalue: 4,
|
cheakvalue: 4,
|
||||||
bakvalue
|
bakvalue
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// 判断当前用户是否采集签名
|
// 判断当前用户是否采集签名
|
||||||
export const isGather = () => request({
|
export const isGather = () => request({
|
||||||
url: "/api/jobslink-api/doc/docUserSeal/isGather",
|
url: "/api/jobslink-api/doc/docUserSeal/isGather",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
});
|
});
|
||||||
// 个人端签名采集
|
// 个人端签名采集
|
||||||
export const signGather = (signSrcUrl, password, confirmPassword) => request({
|
export const signGather = (signSrcUrl, password, confirmPassword) => request({
|
||||||
url: "/api/jobslink-api/doc/docUserSeal/signGather",
|
url: "/api/jobslink-api/doc/docUserSeal/signGather",
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
signSrcUrl,
|
signSrcUrl,
|
||||||
password,
|
password,
|
||||||
confirmPassword
|
confirmPassword
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// 获取短信接口
|
// 获取短信接口
|
||||||
export const sendValidate = (mobile) => request({
|
export const sendValidate = (mobile) => request({
|
||||||
url: "/api/jobslink-api/doc/docUserCert/resetPass/sendValidate",
|
url: "/api/jobslink-api/doc/docUserCert/resetPass/sendValidate",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
mobile
|
mobile
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// 密码重置接口
|
// 密码重置接口
|
||||||
export const resetPass = (mobile, code, password) => request({
|
export const resetPass = (mobile, code, password) => request({
|
||||||
url: "/api/jobslink-api/doc/docUserCert/resetPass",
|
url: "/api/jobslink-api/doc/docUserCert/resetPass",
|
||||||
method: 'post',
|
method: 'post',
|
||||||
headers: {
|
headers: {
|
||||||
'SCaptcha-Key': mobile,
|
'SCaptcha-Key': mobile,
|
||||||
'SCaptcha-Code': code,
|
'SCaptcha-Code': code,
|
||||||
'password': password
|
'password': password
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// 我的合同
|
// 我的合同
|
||||||
export const contractList = (params) => request({
|
export const contractList = (params) => request({
|
||||||
url: "/api/jobslink-api/doc/contract/personal/contractList",
|
url: "/api/jobslink-api/doc/contract/personal/contractList",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: params
|
data: params
|
||||||
});
|
});
|
||||||
// 签名密码 /jobslink-api/doc/docUserCert/checkPass
|
// 签名密码 /jobslink-api/doc/docUserCert/checkPass
|
||||||
export const checkPass = (params) => request({
|
export const checkPass = (params) => request({
|
||||||
url: "/api/jobslink-api/doc/docUserCert/checkPass",
|
url: "/api/jobslink-api/doc/docUserCert/checkPass",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: params
|
data: params
|
||||||
});
|
});
|
||||||
// 返回的是base64格式的pdf
|
// 返回的是base64格式的pdf
|
||||||
export const viewContract = (params) => request({
|
export const viewContract = (params) => request({
|
||||||
url: "/api/jobslink-api/doc/contract/viewContract",
|
url: "/api/jobslink-api/doc/contract/viewContract",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: params
|
data: params
|
||||||
});
|
});
|
||||||
|
|
||||||
//新实名认证api
|
//新实名认证api
|
||||||
export const newCertification = (bakvalue, realName, idNumber, cardNumber, bankCode,def,bankName) => request({
|
export const newCertification = (bakvalue, realName, idNumber, cardNumber, bankCode, def, bankName) => request({
|
||||||
url: '/api/jobslink-api/user/user/auth/authNew',
|
url: '/api/jobslink-api/user/user/auth/authNew',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
bakvalue,
|
bakvalue,
|
||||||
realName,
|
realName,
|
||||||
idNumber,
|
idNumber,
|
||||||
cardNumber,
|
cardNumber,
|
||||||
bankCode,
|
bankCode,
|
||||||
def,
|
def,
|
||||||
bankName
|
bankName
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 电话联系
|
||||||
|
export const getPhoneCountNumber = (params) => request({
|
||||||
|
url: "/api/jobslink-api/serve/phone",
|
||||||
|
method: 'get',
|
||||||
|
data: params
|
||||||
|
});
|
||||||
@@ -1,47 +1,55 @@
|
|||||||
import {
|
import {
|
||||||
request
|
request
|
||||||
} from '@/untils/AxiosUtils.js';
|
} from '@/untils/AxiosUtils.js';
|
||||||
import website from "../config/website.js"
|
import website from "../config/website.js"
|
||||||
import store from '@/store/';
|
import store from '@/store/';
|
||||||
// 设置民族政治面貌 jobslink-api/user/user/setInfo
|
// 设置民族政治面貌 jobslink-api/user/user/setInfo
|
||||||
export const setInfo = (params) => request({
|
export const setInfo = (params) => request({
|
||||||
url: "/api/jobslink-api/user/user/setInfo",
|
url: "/api/jobslink-api/user/user/setInfo",
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params
|
data: params
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取用户工会状态 /jobslink-api/doc/user/labourUnion/info
|
// 获取用户工会状态 /jobslink-api/doc/user/labourUnion/info
|
||||||
export const labourUnionInfo = () => request({
|
export const labourUnionInfo = () => request({
|
||||||
url: "/api/jobslink-api/doc/user/labourUnion/info",
|
url: "/api/jobslink-api/doc/user/labourUnion/info",
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
|
|
||||||
// 申请入会
|
// 申请入会
|
||||||
export const contract = (params) => request({
|
export const contract = (params) => request({
|
||||||
url: "/api/jobslink-api/doc/user/labourUnion/apply",
|
url: "/api/jobslink-api/doc/user/labourUnion/apply",
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params
|
data: params
|
||||||
});
|
});
|
||||||
|
|
||||||
//会员信息--判断用户是否加入工会
|
//会员信息--判断用户是否加入工会
|
||||||
export const labourUnionDetail = (no) => request({
|
export const labourUnionDetail = (no) => request({
|
||||||
url: "/api/jobslink-api/doc/jkLabourUnionAppl/list",
|
url: "/api/jobslink-api/doc/jkLabourUnionAppl/list",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params:{no}
|
params: {
|
||||||
});
|
no
|
||||||
//提交会员申请
|
}
|
||||||
export const saveApplication = (labourunionId,applType,applComment) =>{
|
});
|
||||||
applComment=applComment.substring(0,200)
|
//提交会员申请
|
||||||
return request({
|
export const saveApplication = (labourunionId, applType, applComment) => {
|
||||||
url: "/api/jobslink-api/doc/jkLabourUnionDetail/save",
|
applComment = applComment.substring(0, 200)
|
||||||
method: 'post',
|
return request({
|
||||||
data:{labourunionId,applType,applComment}
|
url: "/api/jobslink-api/doc/jkLabourUnionDetail/save",
|
||||||
});
|
method: 'post',
|
||||||
}
|
data: {
|
||||||
|
labourunionId,
|
||||||
//查询提交的申请内容
|
applType,
|
||||||
export const applicationInfo = (no) => request({
|
applComment
|
||||||
url: "/api/jobslink-api/doc/jkLabourUnionDetail/list",
|
}
|
||||||
method: 'get',
|
});
|
||||||
params:{no}
|
}
|
||||||
});
|
|
||||||
|
//查询提交的申请内容
|
||||||
|
export const applicationInfo = (no) => request({
|
||||||
|
url: "/api/jobslink-api/doc/jkLabourUnionDetail/list",
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
no
|
||||||
|
}
|
||||||
|
});
|
||||||
12
api/user.js
@@ -72,4 +72,14 @@ export const clearCache = () => request({
|
|||||||
export const mobileIsCms = () => request({
|
export const mobileIsCms = () => request({
|
||||||
url: '/api/jobslink-api/mobile/isCms',
|
url: '/api/jobslink-api/mobile/isCms',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const noticeIsEnable = () => request({
|
||||||
|
url: "/api/jobslink-api/desk/notice/isEnable",
|
||||||
|
method: 'get',
|
||||||
|
});
|
||||||
|
|
||||||
|
export const setNoticeIsEnable = (state) => request({
|
||||||
|
url: "/api/jobslink-api/desk/notice/isEnable/" + state,
|
||||||
|
method: 'PUT',
|
||||||
|
});
|
||||||
@@ -78,6 +78,11 @@
|
|||||||
投诉建议
|
投诉建议
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btnList">
|
||||||
|
<image src="../../static/img/vip.svg" mode=""></image>
|
||||||
|
消息提醒
|
||||||
|
<switch class="imgswitch" :checked="user.isEnbleNotice" @change="switch1Change" />
|
||||||
|
</view>
|
||||||
<template v-if="user.userIsCms">
|
<template v-if="user.userIsCms">
|
||||||
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
||||||
<image src="../../static/img/check1.png" mode=""></image>
|
<image src="../../static/img/check1.png" mode=""></image>
|
||||||
@@ -160,6 +165,13 @@ export default {
|
|||||||
// this.labourUnionInfoInit()
|
// this.labourUnionInfoInit()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
switch1Change(e) {
|
||||||
|
if (e.detail.value) {
|
||||||
|
this.$store.dispatch('setNoticeOpen');
|
||||||
|
} else {
|
||||||
|
this.$store.dispatch('setNoticeClose');
|
||||||
|
}
|
||||||
|
},
|
||||||
labourUnionInfoInit() {
|
labourUnionInfoInit() {
|
||||||
labourUnionInfo().then((e) => {
|
labourUnionInfo().then((e) => {
|
||||||
this.federationStatus = e.data.data.joined;
|
this.federationStatus = e.data.data.joined;
|
||||||
@@ -247,6 +259,11 @@ page {
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imgswitch {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.btnList image {
|
.btnList image {
|
||||||
width: 52rpx;
|
width: 52rpx;
|
||||||
height: 52rpx;
|
height: 52rpx;
|
||||||
@@ -353,4 +370,4 @@ page {
|
|||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #F46161;
|
color: #F46161;
|
||||||
} */
|
} */
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 563 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 401 B |
|
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 389 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 679 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 560 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 489 B |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 508 B |
|
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 538 B |
|
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 628 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 881 B After Width: | Height: | Size: 856 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 864 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 843 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 975 B After Width: | Height: | Size: 962 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 808 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 875 B After Width: | Height: | Size: 865 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1007 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 462 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 798 B |
|
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 142 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 478 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 481 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 421 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 463 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 660 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 522 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 783 B |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 895 B |
@@ -8,7 +8,9 @@ import {
|
|||||||
getUserInfo,
|
getUserInfo,
|
||||||
logout,
|
logout,
|
||||||
refreshToken,
|
refreshToken,
|
||||||
mobileIsCms
|
mobileIsCms,
|
||||||
|
noticeIsEnable,
|
||||||
|
setNoticeIsEnable
|
||||||
} from '@/api/user'
|
} from '@/api/user'
|
||||||
import md5 from 'js-md5'
|
import md5 from 'js-md5'
|
||||||
import {
|
import {
|
||||||
@@ -71,8 +73,42 @@ const user = {
|
|||||||
userLocation: null,
|
userLocation: null,
|
||||||
userIsCms: false,
|
userIsCms: false,
|
||||||
resumeInfo: {},
|
resumeInfo: {},
|
||||||
|
isEnbleNotice: false,
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
getNoticeState({
|
||||||
|
commit,
|
||||||
|
dispatch
|
||||||
|
}) {
|
||||||
|
noticeIsEnable().then(res => {
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
const data = res.data.data ? true : false
|
||||||
|
commit('upDateNoticeState', data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
setNoticeOpen({
|
||||||
|
commit,
|
||||||
|
dispatch
|
||||||
|
}) {
|
||||||
|
setNoticeIsEnable(1).then(res => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
const data = res.data
|
||||||
|
commit('upDateNoticeState', true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
setNoticeClose({
|
||||||
|
commit,
|
||||||
|
dispatch
|
||||||
|
}) {
|
||||||
|
setNoticeIsEnable(0).then(res => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
const data = res.data
|
||||||
|
commit('upDateNoticeState', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getResumeInfo({
|
getResumeInfo({
|
||||||
commit,
|
commit,
|
||||||
dispatch
|
dispatch
|
||||||
@@ -242,6 +278,9 @@ const user = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
upDateNoticeState(state, payload) {
|
||||||
|
state.isEnbleNotice = payload
|
||||||
|
},
|
||||||
upDataResumeInfo(state, payload) {
|
upDataResumeInfo(state, payload) {
|
||||||
state.resumeInfo = payload
|
state.resumeInfo = payload
|
||||||
},
|
},
|
||||||
|
|||||||