适配修改后的api

master
paulGao 2022-02-12 15:20:48 +08:00
parent ab4015d0e0
commit 38d8d2e1ca
3 changed files with 16 additions and 16 deletions

View File

@ -43,7 +43,7 @@ export function getGoodsRelated(params) {
*/ */
export function getGoodsDistribution(distributionId) { export function getGoodsDistribution(distributionId) {
return http.request({ return http.request({
url: `/distribution/bindingDistribution/${distributionId}`, url: `/distribution/distribution/bindingDistribution/${distributionId}`,
method: Method.GET, method: Method.GET,
}); });
} }
@ -126,7 +126,7 @@ export function getCategoryList(id) {
*/ */
export function distribution() { export function distribution() {
return http.request({ return http.request({
url: `/distribution`, url: `/distribution/distribution`,
method: Method.GET, method: Method.GET,
}); });
} }
@ -136,7 +136,7 @@ export function distribution() {
*/ */
export function applyDistribution(params) { export function applyDistribution(params) {
return http.request({ return http.request({
url: `/distribution`, url: `/distribution/distribution`,
method: Method.POST, method: Method.POST,
params, params,
}); });
@ -170,7 +170,7 @@ export function cashLog(params) {
*/ */
export function distributionOrderList(params) { export function distributionOrderList(params) {
return http.request({ return http.request({
url: `/distribution/distributionOrder`, url: `/distribution/distribution/distributionOrder`,
method: Method.GET, method: Method.GET,
params params
}); });
@ -181,7 +181,7 @@ export function distributionOrderList(params) {
*/ */
export function distributionGoods(params) { export function distributionGoods(params) {
return http.request({ return http.request({
url: `/distributionGoods`, url: `/distribution/goods`,
method: Method.GET, method: Method.GET,
params, params,
}); });
@ -191,7 +191,7 @@ export function distributionGoods(params) {
*/ */
export function checkedDistributionGoods(params) { export function checkedDistributionGoods(params) {
return http.request({ return http.request({
url: `/distributionGoods/checked/${params.id}`, url: `/distribution/goods/checked/${params.id}`,
method: Method.GET, method: Method.GET,
params params
}); });
@ -202,7 +202,7 @@ export function checkedDistributionGoods(params) {
*/ */
export function getMpCode(params){ export function getMpCode(params){
return http.request({ return http.request({
url:`/mini-program/mp/unlimited`, url:`/passport/connect/miniProgram/mp/unlimited`,
method:Method.GET, method:Method.GET,
params params
}) })
@ -213,7 +213,7 @@ export function checkedDistributionGoods(params) {
*/ */
export function getMpScene(id){ export function getMpScene(id){
return http.request({ return http.request({
url:`/mini-program/mp/unlimited/scene?id=${id}`, url:`/passport/connect/miniProgram/mp/unlimited/scene?id=${id}`,
method:Method.GET, method:Method.GET,
}) })

View File

@ -8,7 +8,7 @@ import api from "@/config/api.js";
*/ */
export function resetByMobile(params) { export function resetByMobile(params) {
return http.request({ return http.request({
url: `/members/resetByMobile`, url: `/passport/member/resetByMobile`,
method: "POST", method: "POST",
params, params,
}); });
@ -20,7 +20,7 @@ export function resetByMobile(params) {
*/ */
export function sendMobile(mobile,type='LOGIN') { export function sendMobile(mobile,type='LOGIN') {
return http.request({ return http.request({
url: `${api.common}/sms/${type}/${mobile}`, url: `${api.common}/common/sms/${type}/${mobile}`,
method: "GET", method: "GET",
}); });
} }
@ -32,7 +32,7 @@ export function sendMobile(mobile,type='LOGIN') {
*/ */
export function smsLogin(params, clientType) { export function smsLogin(params, clientType) {
return http.request({ return http.request({
url: `/members/smsLogin`, url: `/passport/member/smsLogin`,
method: "POST", method: "POST",
data: params, data: params,
header: { header: {
@ -50,7 +50,7 @@ export function smsLogin(params, clientType) {
export function modifyPass(params) { export function modifyPass(params) {
return http.request({ return http.request({
url: `/members/modifyPass`, url: `/passport/member/modifyPass`,
method: "PUT", method: "PUT",
params, params,
}); });
@ -61,7 +61,7 @@ export function modifyPass(params) {
*/ */
export function refreshTokenFn(refresh_token) { export function refreshTokenFn(refresh_token) {
return http.request({ return http.request({
url: `/members/refresh/${refresh_token}`, url: `/passport/member/refresh/${refresh_token}`,
method: "GET", method: "GET",
}); });
} }
@ -69,7 +69,7 @@ export function refreshTokenFn(refresh_token) {
// 获取密码状态 // 获取密码状态
export function logout () { export function logout () {
return http.request({ return http.request({
url: '/members/logout', url: '/passport/member/logout',
method: "POST", method: "POST",
needToken: true, needToken: true,
}) })

View File

@ -275,7 +275,7 @@ export function collectionStore(store_id) {
*/ */
export function getUserInfo() { export function getUserInfo() {
return http.request({ return http.request({
url: "/members", url: "/passport/member",
method: Method.GET, method: Method.GET,
needToken: true, needToken: true,
}); });
@ -300,7 +300,7 @@ export function getUserWallet() {
*/ */
export function saveUserInfo(params) { export function saveUserInfo(params) {
return http.request({ return http.request({
url: "/passport/members/editOwn", url: "/passport/member/editOwn",
method: Method.PUT, method: Method.PUT,
header: { "content-type": "application/x-www-form-urlencoded" }, header: { "content-type": "application/x-www-form-urlencoded" },
needToken: true, needToken: true,