send.js
1.4 KB
import {
request
} from '@/utils/request.js'
// 全部分类 /api/product/sort_all
export const getCategory = () => request({url: 'product/sort_all',method: 'post',data: {}})
// 发布/编辑产品 /api/product/product_publish
export const sendProduct = (data) => request({url: 'product/product_publish',method: 'post',data})
// 实名认证 /api/user/user_cert
export const realAuthentication = (name,identity,image_front,image_back) => request({url: 'user/user_cert',method: 'post',data:{name,identity,image_front,image_back}})
// 获取上次发布填写的卖家信息 /api/product/last_fabu_data
export const getLastInfo = () => request({url: 'product/last_fabu_data',method: 'post',})
// 缴纳保证金 /api/user/user_cert_withdraw
export const payGuarantee = (openid) => request({url: 'user/user_cert_withdraw',method: 'post',data:{openid}})
// 获取微信授权登录页面 /api/user/getAuthorizeUrl
export const authorization = (redirect_uri) => request({url: 'user/getAuthorizeUrl',method: 'post',data:{redirect_uri}})
// 获取微信用户openid /api/user/getOpenid
export const getOpenid = (code) => request({url: 'user/getOpenid',method: 'post',data:{code}})
// 缴纳保证金 /api/user/user_cert_withdraw
export const userCertWithdraw = (openid) => request({url: 'user/user_cert_withdraw',method: 'post',data:{openid}})