You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
493 lines
8.2 KiB
493 lines
8.2 KiB
3 years ago
|
import request from "@/utils/request.js";
|
||
|
import { host } from './config.js'
|
||
|
//域名
|
||
|
// let host='http://192.168.0.109:8080'
|
||
|
// let host='http://192.168.0.112:8080'
|
||
|
|
||
|
/**
|
||
|
* 账号密码登录
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function login(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progressionLogin/logins`,
|
||
|
method: "post",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 注册
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function register(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progressionLogin/register`,
|
||
|
method: "post",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 注册发送验证码
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function getTencent(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progressionLogin/getTencent`,
|
||
|
method: "post",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 忘记密码发送验证码
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function getVerify(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progressionLogin/getDynamic`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 忘记密码修改密码
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function forgetPassword(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progressionLogin/forgetPassword`,
|
||
|
method: "PUT",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 邀请人员排行榜
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function invitation(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/invitation`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 轮播图
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionslideshow(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/slideshow`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 查询作品分类
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionclassification(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/classification`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 分类作品
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionnewWorks(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/newWorks`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 查询藏品名人
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressioncriticism(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/criticism`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 查询轮播图详情
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionslideshowDetails(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/slideshowDetails`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 邀请人员排行
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressioninvitation(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/invitation`,
|
||
|
method: "get",
|
||
|
data
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 藏品详情
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function controllerdetails(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/detailsColl`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 邀请人数查询
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticisminvite(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/invite`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 我的订单
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismorder(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/order`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 我的藏品
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismmycollection(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/mycollection`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 抢购接口
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismsendDemoQueue(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/sendDemoQueue`,
|
||
|
method: "post",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 重新发起支付
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function paypayreload(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/pay/payreload?id=${data.id}`,
|
||
|
method: "post",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 修改订单
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function paypayResult(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/pay/payResult?id=${data.id}&orderStatus=${data.orderStatus}`,
|
||
|
method: "post",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 支付购买
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function paypurchase(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/purchase`,
|
||
|
method: "post",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 查询开放的支付方式
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function paypayway(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/pay/payway`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 订单详情
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismdetails(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/details`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 修改个人资料
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismmaterial(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/material`,
|
||
|
method: "put",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 实名认证
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismnotAutonym(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/notAutonym`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 我的藏品详情
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismmydetails(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/mydetails`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 联系我们
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressioncontactUs(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/contactUs`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 用户协议
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionUserAgreement(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/UserAgreement`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 隐私政策
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionPrivacy(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/Privacy`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 邀请人生成图片
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismgetInviteCodePoster(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/getInviteCodePoster`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 下载接口
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismdownload(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/download`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 首页所有数据
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function progressionhomepage(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progression/homepage`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 获取二维码
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function captchaImage(data) {
|
||
|
return request({
|
||
|
url: `${host}/open/progressionLogin/captchaImage`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 查询我的盲盒
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function mycollectionBox(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/mycollectionBox`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 开启盲盒
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function criticismopenBox(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/openBox`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 转赠
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function donation(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/donation`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 转赠记录
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function mygift(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/mygift`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 受赠记录
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function Regifts(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/Regifts`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 获取合成列表
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function compoundlist(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/compound/list`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* id查询合成规则
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function compoundlistid(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/compound/list/${data.id}`,
|
||
|
method: "get",
|
||
|
// data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* id查询我已有的藏品
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function compoundelect(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/compound/elect/${data.id}`,
|
||
|
method: "get",
|
||
|
// data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 合成操作
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function compoundcomposition(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/compound/composition`,
|
||
|
method: "post",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 我的藏品类型列表
|
||
|
* @param {Object} data
|
||
|
*/
|
||
|
export function mycollectionxx(data) {
|
||
|
return request({
|
||
|
url: `${host}/api/criticism/mycollectionxx`,
|
||
|
method: "get",
|
||
|
data,
|
||
|
isfa:true
|
||
|
});
|
||
|
}
|