From a8a3ce85b50ab37482a556bfdf3c093e1b3e9373 Mon Sep 17 00:00:00 2001 From: zhangqi <727393967@qq.com> Date: Tue, 9 Sep 2025 15:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E8=B5=84?= =?UTF-8?q?=E6=96=99=E5=92=8C=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 19 +++ src/views/home.vue | 12 +- src/views/personalCenter.vue | 297 +++++++++++++++++++++++++++++++---- 3 files changed, 291 insertions(+), 37 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index c6b62d8..d1a7519 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -30,3 +30,22 @@ export function initInfo(data) { }) } +// 修改密码 +export function updatePassword(data) { + return request({ + url: '/frame/optr/passwd.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 修改资料 +export function updateInfo(data) { + return request({ + url: '/frame/optr/edit.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} diff --git a/src/views/home.vue b/src/views/home.vue index 59d8215..acacfc5 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -112,11 +112,11 @@
  • {{ item.voyage_end_date.slice(8, 10) }}

    - {{ item.voyage_end_date.slice(0, 7) }} + {{ item.voyage_end_date.slice(0, 7) }}

    {{ item.voyage_name }}

    - {{ item.voyage_remark }} + {{ item.voyage_remark }}
  • @@ -124,11 +124,11 @@
  • {{ item.create_time.slice(8, 10) }}

    - {{ item.create_time.slice(0, 7) }} + {{ item.create_time.slice(0, 7) }}

    {{ item.dataset_name }}

    - {{ item.job_type }} + {{ item.job_type }}
  • @@ -1289,9 +1289,9 @@ export default { position: relative; } -.text-ellipsis--4-lines { +.text-ellipsis--3-lines { /* 限制显示的行数 */ - -webkit-line-clamp: 4; + -webkit-line-clamp: 3; /* 将对象作为弹性伸缩盒子模型显示(必要) */ display: -webkit-box; /* 设置或检索伸缩盒对象的子元素的排列方式为垂直(必要) */ diff --git a/src/views/personalCenter.vue b/src/views/personalCenter.vue index 8c709a1..2dc503b 100644 --- a/src/views/personalCenter.vue +++ b/src/views/personalCenter.vue @@ -19,16 +19,16 @@

    我的信息

    -
    - - -

    我的收藏

    -
    -
    - - -

    我的订单

    -
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.dict_text }} + + + + + + + + + + + + + + {{ item.dict_text }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +