diff --git a/src/api/modules/coupon.js b/src/api/modules/coupon.js new file mode 100644 index 0000000..a473bc9 --- /dev/null +++ b/src/api/modules/coupon.js @@ -0,0 +1,12 @@ +import $http from "@/utils/httpRequest.js"; + +export const coupon = { + //优惠券列表 + couponList: (data) => { + return $http.request({ + url: `/merchant-api/coupon/page`, + method: "get", + params: data, + }); + }, +}; diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index c4afa2b..cd63596 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -176,7 +176,7 @@ export const mer_admin = { }, //修改密码 changePassword: (data) => { - return $http.put(`/merchant-api/brand/admin_password`, data); + return $http.put(`/merchant-api/auth/change/pwd`, data); }, //修改管理员 editAdmin: (data) => { diff --git a/src/router/full-routers.js b/src/router/full-routers.js index d307d85..85bbd20 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -120,6 +120,19 @@ export default { }, ], }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "优惠卷管理", + url: "coupon/index", + perms: "", + type: 0, + elIcon: "el-icon-document-remove", + orderNum: 0, + open: null, + list: [], + }, // { // "menuId": getUUID(), // "parentId": 0, diff --git a/src/views/modules/brand/config/popup/change-password.vue b/src/views/modules/brand/config/popup/change-password.vue index 31b34be..3919803 100644 --- a/src/views/modules/brand/config/popup/change-password.vue +++ b/src/views/modules/brand/config/popup/change-password.vue @@ -3,7 +3,7 @@ :title="isAdd ? '修改管理员账号' : '修改密码'" :visible.sync="dialogFormVisible" > - + + + + + + + + + + + +