xx-applets/src/core/apis.js

132 lines
3.0 KiB
JavaScript

export default {
index: {
banner: {
url: "/index/banner",
},
notify: {
url: "/index/message",
},
},
user: {
sendCode: {
url: "/public/send",
},
openId: {
url: "/public/getopenid",
},
register: {
url: "/public/register",
},
login: {
url: "/public/login",
},
info: {
url: "/user/getuserinfo",
auth: true,
},
address: {
list: {
url: "/Useraddress/getalladdress",
showLoading: true,
},
edit: {
url: "/Useraddress/applyaddress"
},
detail: {
url: "/Useraddress/addressinfo",
showLoading: true,
},
delete: {
url: "/Useraddress/deleteaddress"
}
}
},
service: {
insurance: {
url: "/index/getyiwai",
},
aftermarket: {
url: "/index/category2",
},
hotCate: {
url: "/index/hotcategory",
},
cate: {
url: "/index/category1",
},
list: {
url: "/index/getcategorybyid"
},
goodsDetail: {
url: "/index/goodsinfobyid",
showLoading: true,
},
project: {
url: "/project/applyinfo",
showLoading: true,
},
business: {
url: "/project/applyinfob",
showLoading: true,
},
afterMarket: {
url: "/project/applyguarantee",
showLoading: true,
},
distribution: {
config: {
url: "/index/getdistributionmoney"
},
carType: {
url: "/index/getallcar"
},
submit: {
url: "/project/distribution"
},
pay: {
url: "/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",
showLoading: true,
},
createOrder: {
url: "/order/submitordera",
},
}
}