diff --git a/src/App.vue b/src/App.vue index 13db56d..566ea6a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1695,7 +1695,7 @@ textarea::-webkit-input-placeholder{ color: #3844ce; } .report-list>li span{ - width: 2.1rem; + width: 2.5rem; font-size: .24rem; text-align: right; color: #999999; @@ -1909,11 +1909,11 @@ textarea::-webkit-input-placeholder{ border-bottom: .02rem solid #333fc9; } .exponent-item-son{ - margin-top: .15rem; + margin-top: .25rem; } .exponent-item-son span{ display: block; - font-size: .28rem; + font-size: .26rem; line-height: 1.2; margin: .15rem 0; text-align: center; diff --git a/src/views/consultant/index.vue b/src/views/consultant/index.vue index 4eba282..7f783d7 100644 --- a/src/views/consultant/index.vue +++ b/src/views/consultant/index.vue @@ -8,22 +8,22 @@
- +

- 姓名:李四 - 职称:高级咨询师 - 电话:18683958573 + 姓名:{{experObj.name}} + 职称:{{experObj.tags_text}} + 电话:{{experObj.phone}}

修改基本资料

-

重点服务区域:北京、上海

-

区域1的服务价格:3000-12000

-

区域2的服务价格:3000-12000

-

区域3的服务价格:3000-12000

-

其他区域的服务价格:3000-12000

-

服务口号:教会孩子规划人生旅程,重要的是帮助TA构建终身学习的生活态度。

+

重点服务区域:{{experObj.service_area_text}}

+

区域1的服务价格:{{experObj.price_area_a}}

+

区域2的服务价格:{{experObj.price_area_b}}

+

区域3的服务价格:{{experObj.price_area_c}}

+

其他区域的服务价格:{{experObj.price_area_other}}

+

服务口号:{{experObj.slogan}}

案例管理

@@ -36,47 +36,14 @@ 主案例 操作 -
  • - -

    完美的与湖北工业相遇完美的与湖北业相遇

    - +
  • + +

    {{item.title}}

    + {{item.is_main==1?"是":"否"}} - 编辑 - 删除 - - -
  • -
  • - -

    完美的与湖北工业相遇

    - - - - 编辑 - 删除 - - -
  • -
  • - -

    完美的与湖北工业相遇

    - - - - 编辑 - 删除 - - -
  • -
  • - -

    完美的与湖北工业相遇

    - - - - 编辑 - 删除 + 编辑 + 删除
  • @@ -91,25 +58,98 @@ data(){ return { isScrollTop: false, + id: '', + page: 1,//页数 + size: 10,//条数 + is_main: -1,//主案件筛选 + allowLoad:true,//是否允许加载 默认:允许 + experObj: [],//咨询师详情 + expertCase: [],//咨询师案例 } }, created() { this.isScroll = true; window.addEventListener("scroll", this.eventScrollTop); }, + mounted() { + this.checkExperInfo(); + }, methods:{ + // 查询咨询师信息 + checkExperInfo(){ + let that = this; + this.axios + .post(this.HOME + "/api/user/center-info", { + }) + .then(function(res) { + console.log(res,123) + that.experObj = res.data.data.expert + // that.id = that.experObj.id; + // 查询咨询师案例 + that.getExpertCase(that.id) + }); + }, + + // 获取案例列表 + getExpertCase(id){ + let that = this; + let anId = id; + this.axios + .post(this.HOME + "/api/expert/get-expert-case-list", { + page: that.page, + size: that.size, + expert_id: anId, + is_main: that.is_main + }) + .then(function(res) { + let list = res.data.data.list; + let newArray = []; + that.expertCase = []; + list.forEach(item=>{ + let obj = { + id:item.id, + cover: item.cover, + title: item.title, + result_remarks: item.result_remarks, + location_remarks: item.location_remarks, + other_remarks: item.other_remarks, + account_remarks: item.account_remarks, + is_main:item.is_main, + student_name:item.student_name + } + newArray.push(obj); + }) + that.expertCase = that.expertCase.concat(newArray); + }); + }, + + // 编辑案例 + editCase(index){ + let editIndex = index; + localStorage.anliObj = JSON.stringify(editIndex); + this.$router.push('/case'); + }, + + + // 删除案例 + deleteCase(idk){ + let that = this; + let anId = idk; + this.axios + .post(this.HOME + "/api/expert/get-expert-case-list", { + ids:anId + }) + .then(function(res) { + console.log(res,2525) + alert('删除成功'); + that.getExpertCase(that.id); + }); + }, + // 修改基本资料 editInformation(){ this.$router.push('/edit'); }, - // 新增案例 - addCase(){ - this.$router.push('/case'); - }, - // 编辑案例 - editCase(){ - this.$router.push('/case'); - }, // 页面跳转 goPage(path){ this.$router.push(path); diff --git a/src/views/user/feedback/index.vue b/src/views/user/feedback/index.vue index 4af4240..2a63027 100644 --- a/src/views/user/feedback/index.vue +++ b/src/views/user/feedback/index.vue @@ -1,84 +1,85 @@ \ No newline at end of file + diff --git a/src/views/user/info/index.vue b/src/views/user/info/index.vue index 4b90d80..ffa81dd 100644 --- a/src/views/user/info/index.vue +++ b/src/views/user/info/index.vue @@ -1,96 +1,133 @@ \ No newline at end of file + .inputB { + width: 1.1rem; + height: 1.1rem; + position: absolute; + left: 0px; + z-index: 5; + top: 0px; + opacity: 0; + } + + .ps { + position: relative; + } + diff --git a/src/views/user/report/index.vue b/src/views/user/report/index.vue index 05c648b..dbc9874 100644 --- a/src/views/user/report/index.vue +++ b/src/views/user/report/index.vue @@ -1,680 +1,471 @@ diff --git a/src/views/user/ucenter/index.vue b/src/views/user/ucenter/index.vue index 51f7ea6..2dfd3f8 100644 --- a/src/views/user/ucenter/index.vue +++ b/src/views/user/ucenter/index.vue @@ -1,205 +1,206 @@