调整API

This commit is contained in:
TOP糯米 2023-03-11 22:41:46 +08:00
parent 8fd627b98f
commit 8647e8dfb4
1 changed files with 89 additions and 61 deletions

View File

@ -1,145 +1,173 @@
export default { export default {
system: {
complaint: {
url: "/wxapp/user/complaint",
showLoading: true,
},
uploadFile: {
url: "/wxapp/index/one",
showLoading: true,
},
},
index: { index: {
banner: { banner: {
url: "/index/banner", url: "/wxapp/index/banner",
}, },
notify: { notify: {
url: "/index/message", url: "/wxapp/index/message",
}, },
}, },
user: { user: {
sendCode: { sendCode: {
url: "/public/send", url: "/wxapp/public/send",
}, },
openId: { openId: {
url: "/public/getopenid", url: "/wxapp/public/getopenid",
}, },
register: { register: {
url: "/public/register", url: "/wxapp/public/register",
}, },
login: { login: {
url: "/public/login", url: "/wxapp/public/login",
}, },
info: { info: {
url: "/user/getuserinfo", url: "/wxapp/user/getuserinfo",
auth: true, auth: true,
}, },
address: { address: {
list: { list: {
url: "/Useraddress/getalladdress", url: "/wxapp/Useraddress/getalladdress",
showLoading: true, showLoading: true,
}, },
edit: { edit: {
url: "/Useraddress/applyaddress" url: "/wxapp/Useraddress/applyaddress"
}, },
detail: { detail: {
url: "/Useraddress/addressinfo", url: "/wxapp/Useraddress/addressinfo",
showLoading: true, showLoading: true,
}, },
delete: { delete: {
url: "/Useraddress/deleteaddress" url: "/wxapp/Useraddress/deleteaddress"
} }
} }
}, },
service: { 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: { insurance: {
url: "/index/getyiwai", url: "/wxapp/index/getyiwai",
}, },
aftermarket: { aftermarket: {
url: "/index/category2", url: "/wxapp/index/category2",
}, },
hotCate: { hotCate: {
url: "/index/hotcategory", url: "/wxapp/index/hotcategory",
}, },
cate: { cate: {
url: "/index/category1", url: "/wxapp/index/category1",
}, },
list: { list: {
url: "/index/getcategorybyid" url: "/wxapp/index/getcategorybyid"
}, },
goodsDetail: { detail: {
url: "/index/goodsinfobyid", url: "/wxapp/index/goodsinfobyid",
showLoading: true, showLoading: true,
}, },
project: { project: {
url: "/project/applyinfo", url: "/wxapp/project/applyinfo",
showLoading: true, showLoading: true,
}, },
business: { business: {
url: "/project/applyinfob", url: "/wxapp/project/applyinfob",
showLoading: true, showLoading: true,
}, },
afterMarket: { afterMarket: {
url: "/project/applyguarantee", url: "/wxapp/project/applyguarantee",
showLoading: true, showLoading: true,
}, },
distribution: { distribution: {
config: { config: {
url: "/index/getdistributionmoney" url: "/wxapp/index/getdistributionmoney"
}, },
carType: { carType: {
url: "/index/getallcar" url: "/wxapp/index/getallcar"
}, },
submit: { submit: {
url: "/project/distribution" url: "/wxapp/project/distribution"
}, },
pay: { pay: {
url: "/wxpay/payorderd" url: "/wxapp/wxpay/payorderd"
} }
},
projectList: {
url: "/project/alllist",
},
businessList: {
url: "/project/alllistb",
},
afterMarketList: {
url: "/project/allguaranteelist"
} }
}, },
order: { 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: { pay: {
url: "/wxpay/payordera", url: "/wxapp/wxpay/payordera",
showLoading: true, showLoading: true,
}, },
createOrder: { createOrder: {
url: "/order/submitordera", url: "/wxapp/order/submitordera",
}, },
list: { list: {
// 购买订单
t1: { t1: {
url: "/order/getmyorder", url: "/wxapp/order/getmyorder",
showLoading: true, showLoading: true,
}, },
// 报/议价订单
t2: { t2: {
url: "/orderb/getmyorderblist", url: "/wxapp/orderb/getmyorderblist",
showLoading: true, showLoading: true,
}, },
// 货运订单
t3: { t3: {
url: "/project/freightorder", url: "/wxapp/project/freightorder",
showLoading: true,
},
// 退款订单
t4: {
url: "/wxapp/order/getmyorder",
showLoading: true, showLoading: true,
}, },
}, },
detail: {
// 购买订单
t1: {
url: "/user/workerorderb/orderinfo",
showLoading: true,
},
// 报/议价订单
t2: {
url: ""
},
// 货运订单
t3: {
url: ""
},
// 退款
t4: {
url: ""
},
}
} }
} }