调整API
This commit is contained in:
parent
8fd627b98f
commit
8647e8dfb4
150
src/core/apis.js
150
src/core/apis.js
|
@ -1,145 +1,173 @@
|
|||
export default {
|
||||
system: {
|
||||
complaint: {
|
||||
url: "/wxapp/user/complaint",
|
||||
showLoading: true,
|
||||
},
|
||||
uploadFile: {
|
||||
url: "/wxapp/index/one",
|
||||
showLoading: true,
|
||||
},
|
||||
},
|
||||
index: {
|
||||
banner: {
|
||||
url: "/index/banner",
|
||||
url: "/wxapp/index/banner",
|
||||
},
|
||||
notify: {
|
||||
url: "/index/message",
|
||||
url: "/wxapp/index/message",
|
||||
},
|
||||
},
|
||||
user: {
|
||||
sendCode: {
|
||||
url: "/public/send",
|
||||
url: "/wxapp/public/send",
|
||||
},
|
||||
openId: {
|
||||
url: "/public/getopenid",
|
||||
url: "/wxapp/public/getopenid",
|
||||
},
|
||||
register: {
|
||||
url: "/public/register",
|
||||
url: "/wxapp/public/register",
|
||||
},
|
||||
login: {
|
||||
url: "/public/login",
|
||||
url: "/wxapp/public/login",
|
||||
},
|
||||
info: {
|
||||
url: "/user/getuserinfo",
|
||||
url: "/wxapp/user/getuserinfo",
|
||||
auth: true,
|
||||
},
|
||||
address: {
|
||||
list: {
|
||||
url: "/Useraddress/getalladdress",
|
||||
url: "/wxapp/Useraddress/getalladdress",
|
||||
showLoading: true,
|
||||
},
|
||||
edit: {
|
||||
url: "/Useraddress/applyaddress"
|
||||
url: "/wxapp/Useraddress/applyaddress"
|
||||
},
|
||||
detail: {
|
||||
url: "/Useraddress/addressinfo",
|
||||
url: "/wxapp/Useraddress/addressinfo",
|
||||
showLoading: true,
|
||||
},
|
||||
delete: {
|
||||
url: "/Useraddress/deleteaddress"
|
||||
url: "/wxapp/Useraddress/deleteaddress"
|
||||
}
|
||||
}
|
||||
},
|
||||
service: {
|
||||
cart: {
|
||||
count: {
|
||||
url: "/wxapp/order/myshoppingcarcount",
|
||||
},
|
||||
toCart: {
|
||||
url: "/wxapp/order/addshoppingcar",
|
||||
showLoading: true,
|
||||
},
|
||||
add: {
|
||||
url: "/wxapp/order/shoppingcarpush",
|
||||
},
|
||||
sub: {
|
||||
url: "/wxapp/order/shoppingcarsend",
|
||||
},
|
||||
delete: {
|
||||
url: "/wxapp/order/deleteshoppingcar",
|
||||
},
|
||||
list: {
|
||||
url: "/wxapp/order/myshoppingcar",
|
||||
showLoading: true,
|
||||
},
|
||||
},
|
||||
insurance: {
|
||||
url: "/index/getyiwai",
|
||||
url: "/wxapp/index/getyiwai",
|
||||
},
|
||||
aftermarket: {
|
||||
url: "/index/category2",
|
||||
url: "/wxapp/index/category2",
|
||||
},
|
||||
hotCate: {
|
||||
url: "/index/hotcategory",
|
||||
url: "/wxapp/index/hotcategory",
|
||||
},
|
||||
cate: {
|
||||
url: "/index/category1",
|
||||
url: "/wxapp/index/category1",
|
||||
},
|
||||
list: {
|
||||
url: "/index/getcategorybyid"
|
||||
url: "/wxapp/index/getcategorybyid"
|
||||
},
|
||||
goodsDetail: {
|
||||
url: "/index/goodsinfobyid",
|
||||
detail: {
|
||||
url: "/wxapp/index/goodsinfobyid",
|
||||
showLoading: true,
|
||||
},
|
||||
project: {
|
||||
url: "/project/applyinfo",
|
||||
url: "/wxapp/project/applyinfo",
|
||||
showLoading: true,
|
||||
},
|
||||
business: {
|
||||
url: "/project/applyinfob",
|
||||
url: "/wxapp/project/applyinfob",
|
||||
showLoading: true,
|
||||
},
|
||||
afterMarket: {
|
||||
url: "/project/applyguarantee",
|
||||
url: "/wxapp/project/applyguarantee",
|
||||
showLoading: true,
|
||||
},
|
||||
distribution: {
|
||||
config: {
|
||||
url: "/index/getdistributionmoney"
|
||||
url: "/wxapp/index/getdistributionmoney"
|
||||
},
|
||||
carType: {
|
||||
url: "/index/getallcar"
|
||||
url: "/wxapp/index/getallcar"
|
||||
},
|
||||
submit: {
|
||||
url: "/project/distribution"
|
||||
url: "/wxapp/project/distribution"
|
||||
},
|
||||
pay: {
|
||||
url: "/wxpay/payorderd"
|
||||
url: "/wxapp/wxpay/payorderd"
|
||||
}
|
||||
},
|
||||
projectList: {
|
||||
url: "/project/alllist",
|
||||
},
|
||||
businessList: {
|
||||
url: "/project/alllistb",
|
||||
},
|
||||
afterMarketList: {
|
||||
url: "/project/allguaranteelist"
|
||||
}
|
||||
},
|
||||
order: {
|
||||
cart: {
|
||||
count: {
|
||||
url: "/order/myshoppingcarcount",
|
||||
},
|
||||
toCart: {
|
||||
url: "/order/addshoppingcar",
|
||||
showLoading: true,
|
||||
},
|
||||
add: {
|
||||
url: "/order/shoppingcarpush",
|
||||
},
|
||||
sub: {
|
||||
url: "/order/shoppingcarsend",
|
||||
},
|
||||
delete: {
|
||||
url: "/order/deleteshoppingcar",
|
||||
},
|
||||
list: {
|
||||
url: "/order/myshoppingcar",
|
||||
showLoading: true,
|
||||
},
|
||||
},
|
||||
pay: {
|
||||
url: "/wxpay/payordera",
|
||||
url: "/wxapp/wxpay/payordera",
|
||||
showLoading: true,
|
||||
},
|
||||
createOrder: {
|
||||
url: "/order/submitordera",
|
||||
url: "/wxapp/order/submitordera",
|
||||
},
|
||||
list: {
|
||||
// 购买订单
|
||||
t1: {
|
||||
url: "/order/getmyorder",
|
||||
url: "/wxapp/order/getmyorder",
|
||||
showLoading: true,
|
||||
},
|
||||
// 报/议价订单
|
||||
t2: {
|
||||
url: "/orderb/getmyorderblist",
|
||||
url: "/wxapp/orderb/getmyorderblist",
|
||||
showLoading: true,
|
||||
},
|
||||
// 货运订单
|
||||
t3: {
|
||||
url: "/project/freightorder",
|
||||
url: "/wxapp/project/freightorder",
|
||||
showLoading: true,
|
||||
},
|
||||
// 退款订单
|
||||
t4: {
|
||||
url: "/wxapp/order/getmyorder",
|
||||
showLoading: true,
|
||||
},
|
||||
},
|
||||
detail: {
|
||||
// 购买订单
|
||||
t1: {
|
||||
url: "/user/workerorderb/orderinfo",
|
||||
showLoading: true,
|
||||
},
|
||||
// 报/议价订单
|
||||
t2: {
|
||||
url: ""
|
||||
},
|
||||
// 货运订单
|
||||
t3: {
|
||||
url: ""
|
||||
},
|
||||
// 退款
|
||||
t4: {
|
||||
url: ""
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue