123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- import request from '@/utils/request'
- import {
- upFilse
- } from '@/utils/request';
- // 订单统计信息
- export function orderData(data) {
- return request({
- url: '/api/order/data',
- method: 'get',
- data
- });
- }
- // 获取用户信息
- export function getUserInfo(data) {
- return request({
- url: '/api/user',
- 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 upload(data) {
- return upFilse({
- url: '/api/upload/image',
- method: 'post',
- data
- })
- }
- //用户修改信息
- export function edit(data) {
- return request({
- url: '/api/user/edit',
- method: 'post',
- data
- });
- }
- // 推广的人数
- export function getSpreadPeople(data) {
- return request({
- url: '/api/spread/people',
- method: 'post',
- data
- })
- }
- //推广佣金/提现总和
- //3=佣金,4=提现
- export function getSpreadCount(data, type) {
- return request({
- url: '/api/spread/count/' + type,
- method: 'get',
- data
- })
- }
- //接点人信息
- export function getjiedian(data, uid) {
- return request({
- url: '/api/children/parent/' + uid,
- method: 'get',
- data
- })
- }
- //推荐人列表
- // export function getReferralList(data,uid){
- // return request({
- // url:'api/children/spread/'+uid,
- // method:'get',
- // data
- // })
- // }
- //佣金转账
- export function trade(data) {
- return request({
- url: '/api/trade',
- method: 'post',
- data
- })
- }
- //报单列表
- export function getRegisterList(data) {
- return request({
- url: '/api/register/list',
- method: 'get',
- data
- })
- }
- //取消报单register/cancel/14
- export function cancelRegister(data,id) {
- return request({
- url: '/api/register/cancel/' + id,
- method: 'post',
- data
- })
- }
- //支付报单register/pay/15
- export function payRegister(data,id) {
- return request({
- url: '/api/register/pay/' + id,
- method: 'post',
- data
- })
- }
- //未设置接点的报单下级
- export function getChooseList(data){
- return request({
- url:'/api/spread/order_people',
- method:'get',
- data
- })
- }
- //添加下级接点
- export function addJiedian(data){
- return request({
- url:'/api/parent/set',
- method:'post',
- data
- })
- }
|