import request from '@/utils/request' import { upFilse } from '@/utils/request'; // 获取用户信息 export function getUserInfo(data) { return request({ url: '/api/user', method: 'get', data }); } // 获取用户节点信息 export function myPiont(data) { return request({ url: '/api/my_point', 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 uploads(data){ return upFilse({ url:'/api/upload/image', method:'post', data }); } // 获取首页信息 export function loadIndexs(data) { return request({ url: '/api/index', method: 'get', data }); } // 获取首页信息 export function dhList(data) { return request({ url: '/api/exchange/list', method: 'get', data }); } //获取版本 export function version(data) { return request({ url: '/api/version', method: 'GET', data }) } //获取二维码 export function service(data) { return request({ url: '/api/service', method: 'GET', data }) } export function gitExtension(data) { return request({ url: '/api/bill_info', method: 'GET', data }) } export function article(data,id) { return request({ url: '/api/article/list/'+id, method: 'GET', 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 }); }