mine.js
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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 = (user_article_id) => request({url: 'user/arc_detail',method: 'post',data:{user_article_id}})
// 个人中心四个资讯 分类列表
export const arc_sort_list = (data) => request({url: 'user/arc_sort_list',method: 'post',data})
// 个人中心四个资讯列表
export const article_list = (data) => request({url: 'user/article_list',method: 'post',data})