You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

178 lines
6.1 KiB

export default {
// 获取首页banner
getBanner : {url : '/api/get/banner', method : 'get', auth : false},
// 获取首页商品分类
getClassList : {url : '/api/get/classList', method : 'get', auth : false},
// 获取首页商品列表
getShopPage : {url : '/api/get/shopPage', method : 'get', auth : false},
// 获取首页热门商品
getShopHost : {url : '/api/get/host', method : 'get', auth : false},
// 获取商品详情
getShopOne : {url : '/api/get/shopOne', method : 'get', auth : false},
// 加入购物车
saveCart : {url : '/api/save/cart', method : 'post', auth : true},
// 收藏
saveCollection : {url : '/api/save/collection', method : 'post', auth : true},
// 创建订单
createOrder : {url : '/api/save/createOrder', method : 'post', auth : true},
// 查看订单详情
getOrderOne : {url : '/api/get/getOrderOne', method : 'get', auth : true},
// 订单列表
getOrderPage : {url : '/api/save/getOrderPage', method : 'get', auth : true},
// 确认收货
confirm : {url : '/api/save/confirm', method : 'post', auth : true},
// 取消订单
delOrder : {url : '/api/delete/order', method : 'post', auth : true},
// 回购
return : {url : '/api/save/return', method : 'post', auth : true},
// 购物车列表
getCartList : {url : '/api/get/cartPage', method : 'get', auth : true},
// 个人信息
getInfo : {url : '/api/get/info', method : 'get', auth : true},
// 个人信息修改
editInfo : {url : '/api/save/editInfo', method : 'get', auth : true},
// 钱包流水
waterPage : {url : '/api/get/waterPage', method : 'get', auth : true},
// 提现/充值
water : {url : '/api/save/water', method : 'post', auth : true},
// 银行卡列表
bankCardPage : {url : '/api/get/bankCardPage', method : 'get', auth : true},
// 增加银行卡
saveBankCardPage : {url : '/api/save/withdrawal', method : 'post', auth : true},
// 订单支付
payOrder : {url : '/api/pay/order', method : 'post', auth : true},
// 获取客服
getKeFu : {url : '/api/get/kefu', method : 'get', auth : false},
// 公告
getNotice : {url : '/api/get/notice', method : 'get', auth : false},
// 首页静态广告长图
getIndexImage : {url : '/api/get/indexImage', method : 'get', auth : false},
// 注册
register : {url : '/api/register', method : 'post', auth : false},
// 登录
login : {url : '/api/login', method : 'post', auth : false},
// 地址信息列表
addressPage : {url : '/api/get/addressPage', method : 'get', auth : true},
// 查看地址
addressOne : {url : '/api/get/addressOne', method : 'get', auth : true},
// 添加地址
saveAddress : {url : '/api/save/address', method : 'post', auth : true},
// 修改地址
editAddress : {url : '/api/edit/address', method : 'post', auth : true},
// 删除地址
deleAddress : {url : '/api/delete/address', method : 'post', auth : true},
// 修改密码
editPass : {url : '/api/edit/pass', method : 'post', auth : true},
// 修改支付密码
editPayPass : {url : '/api/edit/payPass', method : 'post', auth : true},
// 交易流水
waterList : {url : '/api/waterList', method : 'get', auth : true},
// 增加或者修改实名认证
saveShopNo : {url : '/api/save/shopNo', method : 'post', auth : true},
// 获得实名认证
getShopNo : {url : '/api/get/shopNo', method : 'get', auth : true},
// 修改购物车商品数量
editCartNum : {url : '/api/edit/cartNum', method : 'post', auth : true},
// 删除购物车
delCartNum : {url : '/api/delete/cart', method : 'post', auth : true},
// 收藏/取消收藏
collectionShop : {url : '/api/save/collectionShop', method : 'post', auth : true},
// 收藏列表
collectionPage : {url : '/api/get/collectionPage', method : 'get', auth : true},
//获取提现银行卡的提示
tiShi : {url : '/get/tiShi', method : 'get', auth : false},
}
// /api/save/shopNo 增加或者修改证件/api/get/shopN /save/collectionShop
//  {
//     "name": "小老头",
//     "no_type": "美国通信证",
//     "no_num": "1231231241241241",
//     "uid": 1
//   }
// {
//     "account":"admin",
//     "pass":"123456"
// }
// /api/login 登录
// 注册
// 请求地址:/api/register
// 请求方式:post
//  {
//     "account": "admin2",
//     "pass": "123456",
//     "pay_pass": "123456"
//   }
// 接口文档(初稿,都是空的,先给出,后续更新)
// 请求头:http://124.71.12.219:8085/
// 获取首页banner
// 请求方式:get
// 请求头 + api/get/banner
// 获取首页商品分类
// 请求方式:get
// 请求头 + api/get/classList
// 获取首页商品列表
// 请求方式:get
// 请求头 + api/get/shopPage
// 获取商品详情
// 请求方式:get
// 请求头 + api/get/shopOne
// 加入购物车
// 请求方式:post
// 请求头 + api/save/cart
// 收藏
// 请求方式:post
// 请求头 + api/save/collection
// 创建订单
// 请求方式:post
// 请求头 + api/save/createOrder
// 查看订单详情
// 请求方式:get
// 请求头 + api/save/getOrderOne
// 立即购买
// 请求方式:post
// 请求头 + api/save/payOrder
// 订单列表
// 请求方式:get
// 请求头 + api/save/getOrderPage
// 确认收货
// 请求方式:post
// 请求头 + api/save/confirm
// 回购
// 请求方式:post
// 请求头 + api/save/return
// 购物车列表
// 请求方式:get
// 请求头 + api/save/getCartList
// 个人信息
// 请求方式:get
// 请求头 + api/save/getInfo
// 个人信息修改
// 请求方式:get
// 请求头 + api/get/editInfo
// 钱包流水
// 请求方式:get
// 请求头 + api/get/waterPage
// 充值
// 请求方式:post
// 请求头 + api/save/recharge
// 提现
// 请求方式:post
// 请求头 + api/save/withdrawal
// 银行卡列表
// 请求方式:get
// 请求头 + api/get/bankCardPage
// 增加银行卡
// 求方式:post
// 请求头 + api/save/bankCardPage
// 地址列表
// 请求方式:get
// 请求头 + api/get/addressPage
// 增加地址修改地址
// 求方式:post
// 请求头 + api/saveOrUpdate/addressPage
// 收藏列表
// 请求方式:get
// 请求头 + api/get/collectionPage