diff --git a/dist.zip b/dist.zip deleted file mode 100644 index d37039b..0000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 782a686..98a5115 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -69,8 +69,8 @@ export default { data() { return { formData: { - zhanghu: 'admin', - password: 'qinze731344.', + zhanghu: '', + password: '', }, FORM_RULES: { zhanghu: [{required: true, message: '账号必填', type: 'error'}], diff --git a/src/pages/news/news_index.vue b/src/pages/news/news_index.vue index 03beff6..eccfbf9 100644 --- a/src/pages/news/news_index.vue +++ b/src/pages/news/news_index.vue @@ -35,8 +35,8 @@ - - + + @@ -52,7 +52,7 @@ - +
+ + + + +
@@ -150,6 +155,16 @@ :format-response="(response) => formatResponse(response, 3)" > + + + @@ -363,10 +378,14 @@ export default { documents_file_show: [], introduction: '', enterprise_name: '', + company_image:'', + company_image_show:[], + region_id:null, }, id: 0, info: '', plan_list: [], + region_list:[], industry_list: [] }; }, @@ -375,6 +394,7 @@ export default { this.getInfo(); this.getPlan(); this.getIndustry(); + this.getRegion(); }, methods: { onSubmit() { @@ -460,12 +480,27 @@ export default { this.formData.cardf_image = res.data.url; } else if (type == 3) { this.formData.business_license_image = res.data.url; - } else { + } else if(type==4){ this.formData.documents_file = res.data.url; + }else{ + this.formData.company_image = res.data.url; } return {url: res.data.fullurl}; }, +getRegion() { + this.$request + .post("/region") + .then((res) => { + console.log(res); + if (res.code == 1) { + this.region_list = res.data; + } + }) + .catch((e) => { + console.log(e); + }); +}, getIndustry() { this.$request .post("/industry") @@ -502,6 +537,7 @@ export default { this.formData.phone = res.data.phone; this.formData.position_id = res.data.position_id; this.formData.industry_id = res.data.industry_id; + this.formData.region_id = res.data.region_id; this.formData.password = res.data.password; this.formData.nikename = res.data.nikename; this.formData.gender = res.data.gender; @@ -537,7 +573,11 @@ export default { } else { this.formData.photo_image_show = [{url: store.state.user.apiUrl + res.data.photo_image}]; } - + if (res.data.company_image == '') { + this.formData.company_image_show = []; + } else { + this.formData.company_image_show = [{url: store.state.user.apiUrl + res.data.company_image}]; + } this.formData.cardf_image = res.data.cardf_image; this.formData.cardz_image = res.data.cardz_image; this.formData.photo_image = res.data.photo_image; diff --git a/src/pages/user/user_edit_shen.vue b/src/pages/user/user_edit_shen.vue index 3d8edad..ce57f2f 100644 --- a/src/pages/user/user_edit_shen.vue +++ b/src/pages/user/user_edit_shen.vue @@ -40,24 +40,24 @@
-
+ width="1000px" top="50px"> +
- +
类别
- +
原信息
- + - +
新信息
- +
名片背景图:
形象照:
@@ -70,10 +70,10 @@
公司名称:
公司行业:
公司地址:
-
公司介绍:
+
公司介绍:
- +
{{ updateInfo.member.nikename }}
{{ updateInfo.member.gender_name }}
{{ updateInfo.member.phone }}
-
{{ updateInfo.member.introduction }}
+
{{ updateInfo.member.introduction }}
{{ updateInfo.member.enterprise_name }}
{{ updateInfo.member.industry_name }}
{{ updateInfo.member.enterprise_location==''?'无':updateInfo.member.enterprise_location }}
-
{{ updateInfo.member.enterprise_Introduction }}
+
{{ updateInfo.member.enterprise_Introduction }}
- +
- +
{{ updateInfo.member_log.nikename }}
{{ updateInfo.member_log.gender_name }}
{{ updateInfo.member_log.phone }}
-
{{ updateInfo.member_log.introduction }}
+
{{ updateInfo.member_log.introduction }}
{{ updateInfo.member_log.enterprise_name }}
{{ updateInfo.member_log.industry_name }}
{{ updateInfo.member_log.enterprise_location }}
-
{{ updateInfo.member_log.enterprise_Introduction }}
+
{{ updateInfo.member_log.enterprise_Introduction }}
@@ -271,6 +271,22 @@ export default { diff --git a/src/pages/user/user_index.vue b/src/pages/user/user_index.vue index 0daf250..a27a4a4 100644 --- a/src/pages/user/user_index.vue +++ b/src/pages/user/user_index.vue @@ -9,7 +9,7 @@ :style="{ marginBottom: '30px' }" > - + @@ -41,6 +41,14 @@ + + + + + + + + @@ -111,6 +119,7 @@ export default { { colKey: 'photo_image', title: '形象照'}, { colKey: 'nikename', title: '会员姓名'}, { colKey: 'position_name', title: '职位'}, + { colKey: 'region_name', title: '区域'}, { colKey: 'phone', title: '手机号'}, { colKey: 'nation', title: '民族'}, { colKey: 'if_xianshi', title: '状态'}, @@ -121,10 +130,12 @@ export default { size:10, formData:{ position_id:'', + region_id:'', nikename: '', phone: '' }, positionList:[], + region_list:[], } }, mounted() { @@ -135,8 +146,22 @@ export default { } this.getList(); this.getPositionList(); + this.getRegion(); }, methods: { + getRegion() { + this.$request + .post("/region") + .then((res) => { + console.log(res); + if (res.code == 1) { + this.region_list = res.data; + } + }) + .catch((e) => { + console.log(e); + }); + }, getPositionList() { this.$request .post("/position") diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue index 65b9bf0..51f474e 100644 --- a/src/pages/user/user_info.vue +++ b/src/pages/user/user_info.vue @@ -16,6 +16,7 @@ +
@@ -29,7 +30,11 @@ - + +
+ {{info.introduction}} +
+
@@ -80,6 +85,17 @@
+ +
+ + + +
+
@@ -94,7 +110,11 @@ - + +
+ {{info.enterprise_Introduction}} +
+
@@ -147,6 +167,7 @@ export default { visibleZm:false, visibleFm:false, visiblePf:false, + visiblelogo:false, info:{}, member_id:0, } diff --git a/src/pages/user/user_region.vue b/src/pages/user/user_region.vue new file mode 100644 index 0000000..bfea732 --- /dev/null +++ b/src/pages/user/user_region.vue @@ -0,0 +1,128 @@ + + + diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index cc9d98a..9b1b23b 100644 --- a/src/router/modules/components.ts +++ b/src/router/modules/components.ts @@ -28,6 +28,12 @@ export default [ component: () => import('@/pages/user/user_line.vue'), meta: { title: '行业管理' }, }, + { + path: 'user_region', + name: 'userRegion', + component: () => import('@/pages/user/user_region.vue'), + meta: { title: '区域管理' }, + }, { path: 'user_info', name: 'userInfo', @@ -68,13 +74,13 @@ export default [ name: 'news', component: Layout, redirect: '/news/news_index', - meta: { title: '新闻管理', icon: ViewListIcon }, + meta: { title: '新闻文章', icon: ViewListIcon }, children: [ { path: 'news_index', name: 'newsIndex', component: () => import('@/pages/news/news_index.vue'), - meta: { title: '新闻列表' }, + meta: { title: '新闻内容管理' }, } ], },{