xx-applets/src/core/apis.js

234 lines
5.9 KiB
JavaScript

export default {
system: {
complaint: {
url: "/wxapp/user/complaint",
showLoading: true,
},
uploadFile: {
url: "/wxapp/index/one",
showLoading: true,
},
},
index: {
banner: {
url: "/wxapp/index/banner",
},
notify: {
url: "/wxapp/index/message",
},
},
user: {
sendCode: {
url: "/wxapp/public/send",
},
openId: {
url: "/wxapp/public/getopenid",
},
register: {
url: "/wxapp/public/register",
},
login: {
url: "/wxapp/public/login",
},
resetPassword: {
url: "/wxapp/public/passwordReset",
},
info: {
url: "/wxapp/user/getuserinfo",
auth: true,
},
address: {
list: {
url: "/wxapp/Useraddress/getalladdress",
showLoading: true,
auth: true,
},
edit: {
url: "/wxapp/Useraddress/applyaddress",
auth: true,
},
detail: {
url: "/wxapp/Useraddress/addressinfo",
showLoading: true,
auth: true,
},
delete: {
url: "/wxapp/Useraddress/deleteaddress",
auth: true,
}
}
},
service: {
cart: {
count: {
url: "/wxapp/order/myshoppingcarcount",
auth: true,
},
toCart: {
url: "/wxapp/order/addshoppingcar",
showLoading: true,
auth: true,
},
add: {
url: "/wxapp/order/shoppingcarpush",
auth: true,
},
sub: {
url: "/wxapp/order/shoppingcarsend",
auth: true,
},
delete: {
url: "/wxapp/order/deleteshoppingcar",
auth: true,
},
list: {
url: "/wxapp/order/myshoppingcar",
showLoading: true,
auth: true,
},
},
insurance: {
url: "/wxapp/index/getyiwai",
},
aftermarket: {
url: "/wxapp/index/category2",
},
hotCate: {
url: "/wxapp/index/hotcategory",
},
cate: {
url: "/wxapp/index/category1",
},
list: {
url: "/wxapp/index/getcategorybyid"
},
detail: {
url: "/wxapp/index/goodsinfobyid",
showLoading: true,
},
project: {
url: "/wxapp/project/applyinfo",
showLoading: true,
auth: true,
},
business: {
url: "/wxapp/project/applyinfob",
showLoading: true,
auth: true,
},
afterMarket: {
url: "/wxapp/project/applyguarantee",
showLoading: true,
auth: true,
},
distribution: {
config: {
url: "/wxapp/index/getdistributionmoney"
},
carType: {
url: "/wxapp/index/getallcar"
},
}
},
order: {
create: {
t1: {
url: "/wxapp/order/submitordera",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/orderb/addorder",
showLoading: true,
auth: true,
},
t3: {
url: "/wxapp/project/distribution",
showLoading: true,
auth: true,
}
},
pay: {
t1: {
url: "/wxapp/wxpay/payordera",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/wxpay/payorderc",
showLoading: true,
auth: true,
},
t3: {
url: "/wxapp/wxpay/payorderd",
showLoading: true,
auth: true,
}
},
retainage: {
t1: {
url: "/wxapp/wxpay/payorderb",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/wxpay/payorderce",
showLoading: true,
auth: true,
}
},
list: {
t1: {
url: "/wxapp/order/getmyorder",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/orderb/getmyorderblist",
showLoading: true,
auth: true,
},
t3: {
url: "/wxapp/project/freightorder",
showLoading: true,
auth: true,
},
},
detail: {
t1: {
url: "/user/workerorderb/orderinfo",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/orderb/getmyorderbbyid",
showLoading: true,
auth: true,
},
t3: {
url: ""
},
},
finish: {
t1: {
url: "/wxapp/order/orderok",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/orderb/orderok",
showLoading: true,
auth: true,
},
t3: {
url: ""
}
},
chooseWorker: {
url: "/wxapp/orderb/chooseshifu",
showLoading: true,
auth: true,
}
}
}