From 38d8d2e1caf884e003f2be54d23c064197aec2ca Mon Sep 17 00:00:00 2001 From: paulGao Date: Sat, 12 Feb 2022 15:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E4=BF=AE=E6=94=B9=E5=90=8E?= =?UTF-8?q?=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/goods.js | 16 ++++++++-------- api/login.js | 12 ++++++------ api/members.js | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/api/goods.js b/api/goods.js index f453c13..bc8ae30 100644 --- a/api/goods.js +++ b/api/goods.js @@ -43,7 +43,7 @@ export function getGoodsRelated(params) { */ export function getGoodsDistribution(distributionId) { return http.request({ - url: `/distribution/bindingDistribution/${distributionId}`, + url: `/distribution/distribution/bindingDistribution/${distributionId}`, method: Method.GET, }); } @@ -126,7 +126,7 @@ export function getCategoryList(id) { */ export function distribution() { return http.request({ - url: `/distribution`, + url: `/distribution/distribution`, method: Method.GET, }); } @@ -136,7 +136,7 @@ export function distribution() { */ export function applyDistribution(params) { return http.request({ - url: `/distribution`, + url: `/distribution/distribution`, method: Method.POST, params, }); @@ -170,7 +170,7 @@ export function cashLog(params) { */ export function distributionOrderList(params) { return http.request({ - url: `/distribution/distributionOrder`, + url: `/distribution/distribution/distributionOrder`, method: Method.GET, params }); @@ -181,7 +181,7 @@ export function distributionOrderList(params) { */ export function distributionGoods(params) { return http.request({ - url: `/distributionGoods`, + url: `/distribution/goods`, method: Method.GET, params, }); @@ -191,7 +191,7 @@ export function distributionGoods(params) { */ export function checkedDistributionGoods(params) { return http.request({ - url: `/distributionGoods/checked/${params.id}`, + url: `/distribution/goods/checked/${params.id}`, method: Method.GET, params }); @@ -202,7 +202,7 @@ export function checkedDistributionGoods(params) { */ export function getMpCode(params){ return http.request({ - url:`/mini-program/mp/unlimited`, + url:`/passport/connect/miniProgram/mp/unlimited`, method:Method.GET, params }) @@ -213,7 +213,7 @@ export function checkedDistributionGoods(params) { */ export function getMpScene(id){ return http.request({ - url:`/mini-program/mp/unlimited/scene?id=${id}`, + url:`/passport/connect/miniProgram/mp/unlimited/scene?id=${id}`, method:Method.GET, }) diff --git a/api/login.js b/api/login.js index 294867f..64df2b7 100644 --- a/api/login.js +++ b/api/login.js @@ -8,7 +8,7 @@ import api from "@/config/api.js"; */ export function resetByMobile(params) { return http.request({ - url: `/members/resetByMobile`, + url: `/passport/member/resetByMobile`, method: "POST", params, }); @@ -20,7 +20,7 @@ export function resetByMobile(params) { */ export function sendMobile(mobile,type='LOGIN') { return http.request({ - url: `${api.common}/sms/${type}/${mobile}`, + url: `${api.common}/common/sms/${type}/${mobile}`, method: "GET", }); } @@ -32,7 +32,7 @@ export function sendMobile(mobile,type='LOGIN') { */ export function smsLogin(params, clientType) { return http.request({ - url: `/members/smsLogin`, + url: `/passport/member/smsLogin`, method: "POST", data: params, header: { @@ -50,7 +50,7 @@ export function smsLogin(params, clientType) { export function modifyPass(params) { return http.request({ - url: `/members/modifyPass`, + url: `/passport/member/modifyPass`, method: "PUT", params, }); @@ -61,7 +61,7 @@ export function modifyPass(params) { */ export function refreshTokenFn(refresh_token) { return http.request({ - url: `/members/refresh/${refresh_token}`, + url: `/passport/member/refresh/${refresh_token}`, method: "GET", }); } @@ -69,7 +69,7 @@ export function refreshTokenFn(refresh_token) { // 获取密码状态 export function logout () { return http.request({ - url: '/members/logout', + url: '/passport/member/logout', method: "POST", needToken: true, }) diff --git a/api/members.js b/api/members.js index b6541a7..989af85 100644 --- a/api/members.js +++ b/api/members.js @@ -275,7 +275,7 @@ export function collectionStore(store_id) { */ export function getUserInfo() { return http.request({ - url: "/members", + url: "/passport/member", method: Method.GET, needToken: true, }); @@ -300,7 +300,7 @@ export function getUserWallet() { */ export function saveUserInfo(params) { return http.request({ - url: "/passport/members/editOwn", + url: "/passport/member/editOwn", method: Method.PUT, header: { "content-type": "application/x-www-form-urlencoded" }, needToken: true,