diff --git a/src/api/incomePaymentsApi.js b/src/api/incomePaymentsApi.js index 88a45ee..ae842d7 100644 --- a/src/api/incomePaymentsApi.js +++ b/src/api/incomePaymentsApi.js @@ -1,13 +1,19 @@ -import {getAction} from '@api/manage' +import { getAction, postAction } from '@api/manage' // 普通项目管理-通过项目id查询其他的信息 const queryCommonProjectById = (param) => getAction('/project/payCommonProject/queryById', param) // 通过会议id获取会议的详细信息 const getMeetInfoById = (params) => getAction('/meeting/payMeeting/queryById',params) // 通过id获取参会人详细信息 const getSingUpUserInfo = (params) => getAction('/meeting/payMeetingSituation/queryById',params) +// 通过id获取用户信息(联系人) +const getContactUserInfo = (param) => getAction('/company/payContactsManagement/queryByIdMeeting', param) +// 编辑用户信息 +const editUserInfo = (param) => postAction('', param) export { queryCommonProjectById, getMeetInfoById, - getSingUpUserInfo + getSingUpUserInfo, + getContactUserInfo, + editUserInfo } diff --git a/src/assets/imgs/icon/icon-edit.png b/src/assets/imgs/icon/icon-edit.png new file mode 100644 index 0000000..166e5ae Binary files /dev/null and b/src/assets/imgs/icon/icon-edit.png differ diff --git a/src/config/router.config.js b/src/config/router.config.js index f56fb76..0954c1b 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -177,5 +177,19 @@ export const routerData = [ }, name: 'user-announcement-list', id: '9' - } + }, + { + path: "/system/AccountCenter", + component: 'system/AccountCenter', + redirect: null, + hidden: true, + route: '9', + meta: { + icon: 'user', // 菜单前图标 + componentName: 'AccountCenter', + title: '个人中心' // 菜单名称 + }, + name: 'account-center', + id: '9' + }, ] \ No newline at end of file diff --git a/src/main.js b/src/main.js index 3870c01..f6932dc 100644 --- a/src/main.js +++ b/src/main.js @@ -30,6 +30,7 @@ import vTrim from '@/utils/vTrim' import '@/components/iconfont/common.less' // 使用 symbol模式 支持多色 import '@/components/iconfont/iconfont.js' +import preventClick from '@/utils/preventClick' Vue.config.productionTip = false Vue.use(Storage, config.storageOptions) @@ -39,6 +40,7 @@ Vue.use(router) Vue.use(JeroComponents) Vue.use(JDictSelectTag) Vue.use(vTrim) +Vue.use(preventClick) new Vue({ router, diff --git a/src/utils/preventClick.js b/src/utils/preventClick.js new file mode 100644 index 0000000..1aab922 --- /dev/null +++ b/src/utils/preventClick.js @@ -0,0 +1,19 @@ +export default { + + install (Vue) { + // 防重复点击(指令实现) + Vue.directive('preventclick', { + inserted (el, binding) { + el.addEventListener('click', () => { + if (!el.disabled) { + el.disabled = true + setTimeout(() => { + el.disabled = false + }, binding.value || 1000) + } + }) + } + }) + } + +} diff --git a/src/utils/validate.js b/src/utils/validate.js index 9e51ac7..6214f1a 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -44,3 +44,12 @@ export function phoneReg(s) { export function chineseReg(s){ return /[\u4E00-\u9FA5]/g.test(s) } + +/** + * 邮编 + * @param s + * @returns {boolean} + */ +export function postcode(s) { + return /^[0-9]\d{5}$/.test(s) +} diff --git a/src/views/system/AccountCenter.vue b/src/views/system/AccountCenter.vue new file mode 100644 index 0000000..39aad67 --- /dev/null +++ b/src/views/system/AccountCenter.vue @@ -0,0 +1,227 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/modules/AccountCenterModel.vue b/src/views/system/modules/AccountCenterModel.vue new file mode 100644 index 0000000..f071b35 --- /dev/null +++ b/src/views/system/modules/AccountCenterModel.vue @@ -0,0 +1,223 @@ + + + + + \ No newline at end of file diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index e35ebb5..fbaa0c9 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -16,7 +16,7 @@ size="large" v-decorator="['username',{initialValue:'', rules: validatorRules.username.rules,validateTrigger: 'blur'}]" type="text" - placeholder="请输入帐号"> + placeholder="请输入手机号">