import request from '@/utils/request' //查看子点位 export function lookSubpoints(data,id){ return request({ url:'/api/tree/children/'+id, method:'get', data }) } // * 推广数据 export function spreadInfo() { return request({ url:'/api/commission', method:'get', }) } //查看自己的点位 export function lookOneself(data){ return request({ url:'/api/tree/points', method:'get', data }) } //下级浏览记录 export function getbrowse(data){ return request({ url:'/api/getbrowse', method:'get', data }) } /* * 获取推广人排行 * */ export function getRankList(data) { return request({ url:'/api/rank', method:'get', data }) } /* * 获取佣金排名 * */ export function getBrokerageRank(data) { return request({ url:'/api/brokerage_rank', method:'get', data }) } /** * * 推广订单 * @param object data */ export function spreadOrder(data) { return request({ url:'/api/spread/order', method:'post', data }) } //绑定上级 export function spread(data) { return request({ url:'/api/user/spread', method: 'post', data }) } //我的推广 export function myspread(data) { return request({ url: '/api/spread/people', method: 'POST', data }); } //我的信息 export function myuser(data) { return request({ url: '/api/user', method: 'GET', data }); } // 订单统计信息 export function orderData(data) { return request({ url: '/api/order/data', method: 'get', data }); } // 获取用户信息 export function getUserInfo(data) { return request({ url: '/api/userinfo', method: 'get', data }); } // 获取用户信息 export function userinfo(data) { return request({ url: '/api/userinfo', method: 'get', data }); } // 用户分享图 export function spreadBanner(data) { return request({ url: '/api/spread/banner', method: 'get', data }); } // 获取地址列表 export function getAddressList(data) { return request({ url: '/api/address/list', method: 'get', data }); } // 修改地址 export function addressEdit(data) { return request({ url: '/api/address/edit', method: 'post', data }); } // 删除地址 export function addressDel(data) { return request({ url: '/api/address/del', method: 'post', data }); } // 设为默认地址 export function setAddressDefault(data) { return request({ url: '/api/address/default/set', method: 'post', data }); } // 购物车列表 export function getCartList(data) { return request({ url: '/api/cart/list', method: 'get', data }); } // 修改购物车数量 export function getCartNum(data) { return request({ url: '/api/cart/num', method: 'post', data }); } //删除购物车 export function cartDel(data) { return request({ url: '/api/cart/del', method: 'post', data }); } //获取收藏夹列表 export function getcollectList(data) { return request({ url: '/api/collect/user', method: 'get', data }); } // 取消收藏 export function delcollect(data) { return request({ url: '/api/collect/del', method: 'post', data }); } //积分转账 export function transfer(data) { return request({ url:'/api/trade', method: 'post', data }) } // 提现信息 export function extractBank(data) { return request({ url: '/api/extract/bank', method: 'get', data }); } //余额转账 export function yuetransfer(data) { return request({ url:'/api/yue/trade', method: 'post', data }) } //现金转账 export function cashtransfer(data) { return request({ url:'/api/cash/trade', method: 'post', data }) } // 我的分红积分 export function share(data) { return request({ url:'/api/game', method: 'get', data }) } //上传图片 export function upload(data) { return request({ url: '/api/upload/image', method: 'post', data }) } //用户修改信息 export function edit(data) { return request({ url: '/api/user/edit', method: 'post', data }); } //核销优惠券 export function orderVerific(data) { return request({ url: '/api/coupon/writeoff', method: 'post', data }); }