From d3fb7827f15dbbe4dfa5a058e0538546978b0cf7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?=
<2291200076@qq.com>
Date: Mon, 24 Apr 2023 22:45:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/api/shop-order.js | 1 -
frontend/src/api/user.js | 18 ++
frontend/src/views/user.vue | 315 ++++++++++++++++-----------------
3 files changed, 167 insertions(+), 167 deletions(-)
diff --git a/frontend/src/api/shop-order.js b/frontend/src/api/shop-order.js
index 3f4bd7e..98396b6 100644
--- a/frontend/src/api/shop-order.js
+++ b/frontend/src/api/shop-order.js
@@ -29,7 +29,6 @@ export function getOrderDetail(params) {
* @returns
*/
export function deliverOrder(params) {
- console.log("params", params)
return send_request({
url: '/shop/order/manage/deliverOrder',
method: 'POST',
diff --git a/frontend/src/api/user.js b/frontend/src/api/user.js
index 5b93289..bfb2ee2 100644
--- a/frontend/src/api/user.js
+++ b/frontend/src/api/user.js
@@ -24,6 +24,24 @@ export function userLogout() {
return null;
};
+/**
+ * 修改密码
+ * @returns
+ */
+export function updatePwd({ oldpwd, newpwd }) {
+ let userId = localStorage.getItem("ms_user_id")
+ return send_request({
+ url: '/user/updatePwd',
+ method: 'POST',
+ useQS: true,
+ params: {
+ "userId": userId,
+ "oldpwd": oldpwd,
+ "newpwd": newpwd,
+ },
+ });
+};
+
/**
* 获取用户列表
* @returns
diff --git a/frontend/src/views/user.vue b/frontend/src/views/user.vue
index 0ad1b2f..8f00808 100644
--- a/frontend/src/views/user.vue
+++ b/frontend/src/views/user.vue
@@ -1,67 +1,63 @@
-
-
-
-
-
-
- 基础信息
-
-
-
-
-
-
-
-
-
-
{{ name }}
-
-
-
-
-
-
-
-
- 账户编辑
-
-
-
- {{ name }}
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
{{ name }}
+
+
+
+
+
+
+
+ 账户编辑
+
+
+
+ {{ name }}
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+