import {
	request
} from '@/utils/request.js'

 // 会员中心 /api/user/index
export const getUserInfo = () => request({url: 'user/index',method: 'post',data: {}})

// 退出登录 /api/user/logout
export const logotLogin = () => request({url: 'user/logout',method: 'post',data: {}})

// 联系客服、品牌入驻 /api/common/contact
export const getContactQrcode = (type) => request({url: 'common/contact',method: 'post',data: {type}})

// 常见问题分类 /api/common/problem_sort
export const  problemSort = () => request({url: 'common/problem_sort',method: 'post',data: {}})

// 常见问题列表 /api/common/problem_list
export const  problemList = (sort_id,page,pagenum) => request({url: 'common/problem_list',method: 'post',data: {sort_id,page,pagenum}})

// 常见问题详情 /api/common/problem_detail
export const  problemDetail = (problem_id) => request({url: 'common/problem_detail',method: 'post',data: {problem_id}})

// 意见反馈 /api/user/feedback
export const  doFeedback = (content,image) => request({url: 'user/feedback',method: 'post',data: {content,image}})

// 余额提现 /api/user/user_withdraw
export const  takeMoney = (data) => request({url: 'user/user_withdraw',method: 'post',data})

// 保证金提现 /api/user/user_cert_withdraw_sub
export const  takeBail = (data) => request({url: 'user/user_cert_withdraw_sub',method: 'post',data})

// 账户流水 /api/user/user_money_log
export const moneyLog  = (page) => request({url: 'user/user_money_log',method: 'post',data:{page}})

// 我的收藏 /api/user/my_fav
export const myFav  = (page,pagenum) => request({url: 'user/my_fav',method: 'post',data:{page,pagenum}})

// 我的物品 /api/user/my_product
export const myProduct  = (status,page,pagenum) => request({url: 'user/my_product',method: 'post',data:{status,page,pagenum}})

// 删除我的物品 /api/user/product_del
export const delProduct  = (product_id) => request({url: 'user/product_del',method: 'post',data:{product_id}})

// 个人中心资讯 /api/user/arc_list
export const getCenterList  = () => request({url: 'user/arc_list',method: 'post',data:{}})

// 个人中心资讯详情 /api/user/arc_detail
export const arcDetail  = (arc_id) => request({url: 'user/arc_detail',method: 'post',data:{arc_id}})