mine.js
1.1 KB
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}})