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 }}
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+