feat: 会员中心 hgcloud 主题初始化 + drone 部署步骤
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 解压官方默认主题 default_yfMBA.tar.gz 到 clientarea/hgcloud/ - .gitignore 排除压缩包和临时解压目录 - drone 新增步骤: 同步 hgcloud 到 /clientarea/template/pc/
This commit is contained in:
88
clientarea/hgcloud/api/account.js
Normal file
88
clientarea/hgcloud/api/account.js
Normal file
@@ -0,0 +1,88 @@
|
||||
// 获取国家列表
|
||||
function getCountry (params) {
|
||||
return Axios.get(`/country`, params);
|
||||
}
|
||||
|
||||
// 账户详情
|
||||
function account () {
|
||||
return Axios.get(`/account`);
|
||||
}
|
||||
// 获取国家列表
|
||||
function country (params) {
|
||||
return Axios.get(`/country`, { params });
|
||||
}
|
||||
|
||||
// 编辑账户
|
||||
function updateAccount (params) {
|
||||
return Axios.put(`/account`, params);
|
||||
}
|
||||
// 修改密码
|
||||
function updatePassword (params) {
|
||||
return Axios.put(`/account/password`, params);
|
||||
}
|
||||
|
||||
// 忘记密码
|
||||
function forgetPass (params) {
|
||||
return Axios.post("/account/password_reset", params);
|
||||
}
|
||||
|
||||
// 发送手机验证码
|
||||
function phoneCode (params) {
|
||||
return Axios.post(`/phone/code`, params);
|
||||
}
|
||||
// 发送邮箱验证码
|
||||
function emailCode (params) {
|
||||
return Axios.post(`/email/code`, params);
|
||||
}
|
||||
|
||||
// 验证原手机
|
||||
function verifiedPhone (params) {
|
||||
return Axios.put(`/account/phone/old`, params);
|
||||
}
|
||||
// 修改手机
|
||||
function updatePhone (params) {
|
||||
return Axios.put(`/account/phone`, params);
|
||||
}
|
||||
|
||||
// 验证原邮箱
|
||||
function verifiedEmail (params) {
|
||||
return Axios.put(`/account/email/old`, params);
|
||||
}
|
||||
// 修改邮箱
|
||||
function updateEmail (params) {
|
||||
return Axios.put(`/account/email`, params);
|
||||
}
|
||||
|
||||
// 阿里云修改邮箱
|
||||
function updateAliEmail (params) {
|
||||
return Axios.put(`/aliyun_agency/account/email`, params);
|
||||
}
|
||||
|
||||
// 操作日志
|
||||
function getLog (params) {
|
||||
return Axios.get(`/log`, { params });
|
||||
}
|
||||
|
||||
// 取消关联
|
||||
function cancelOauth (name) {
|
||||
return Axios.post(`/oauth/unbind/${name}`);
|
||||
}
|
||||
|
||||
// 获取用户自定义字段和值
|
||||
function clientCustomFieldValue () {
|
||||
return Axios.get(`/client_custom_field_value`);
|
||||
}
|
||||
|
||||
// 修改操作密码
|
||||
function updateOperationPassword (params) {
|
||||
return Axios.put(`/account/operate_password`, params);
|
||||
}
|
||||
|
||||
// 获取微信公众号用户关联信息
|
||||
function getWxInfo () {
|
||||
return Axios.get(`/mp_weixin_notice/client`);
|
||||
}
|
||||
// 修改允许推送
|
||||
function changePushStatus (params) {
|
||||
return Axios.put(`/mp_weixin_notice/accept_push`, params);
|
||||
}
|
||||
34
clientarea/hgcloud/api/certification.js
Normal file
34
clientarea/hgcloud/api/certification.js
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
// 获取实名认证信息
|
||||
function certificationInfo() {
|
||||
return Axios.get(`/certification/info`)
|
||||
}
|
||||
|
||||
// 获取实名认证方式
|
||||
function certificationPlugin() {
|
||||
return Axios.get(`/certification/plugin`)
|
||||
}
|
||||
|
||||
//获取实名认证自定义字段
|
||||
function custom_fields(params) {
|
||||
return Axios.get(`/certification/custom_fields`, { params })
|
||||
}
|
||||
|
||||
// 个人认证
|
||||
function uploadPerson(params) {
|
||||
return Axios.post(`/certification/person`, params)
|
||||
}
|
||||
|
||||
// 实名认证验证页面
|
||||
function certificationAuth() {
|
||||
return Axios.get(`/certification/auth`)
|
||||
}
|
||||
|
||||
// 获取系统状态
|
||||
function certificationStatus() {
|
||||
return Axios.get(`certification/status`)
|
||||
}
|
||||
//企业认证
|
||||
function uploadCompany(params) {
|
||||
return Axios.post(`/certification/company`, params)
|
||||
}
|
||||
530
clientarea/hgcloud/api/common.js
Normal file
530
clientarea/hgcloud/api/common.js
Normal file
@@ -0,0 +1,530 @@
|
||||
/* 通用接口API */
|
||||
|
||||
// 获取国家列表
|
||||
function getCountry(params) {
|
||||
return Axios.get(`/country`, params);
|
||||
}
|
||||
// 获取支付接口
|
||||
function getPayList() {
|
||||
return Axios.get("/gateway");
|
||||
}
|
||||
// 获取公共配置
|
||||
function getCommon(params) {
|
||||
return Axios.get("/common", { params });
|
||||
}
|
||||
// 获取登录信息
|
||||
function getLoginInfo() {
|
||||
return Axios.get("/login");
|
||||
}
|
||||
// 获取图形验证码
|
||||
function getNewCaptcha() {
|
||||
return Axios.get("/captcha");
|
||||
}
|
||||
|
||||
// 编辑账户
|
||||
function updateAccount(params) {
|
||||
return Axios.put(`/account`, params);
|
||||
}
|
||||
// 验证图形验证码
|
||||
function checkCaptcha(params) {
|
||||
return Axios.post("/captcha", params);
|
||||
}
|
||||
|
||||
// 注册
|
||||
function regist(params) {
|
||||
return Axios.post("/register", params);
|
||||
}
|
||||
|
||||
// 注册页面获取用户自定义字段
|
||||
function registCustomField() {
|
||||
return Axios.get("/register/custom_field");
|
||||
}
|
||||
|
||||
// 登录
|
||||
function logIn(params) {
|
||||
return Axios.post("/login", params);
|
||||
}
|
||||
|
||||
// 忘记密码
|
||||
function forgetPass(params) {
|
||||
return Axios.post("/account/password_reset", params);
|
||||
}
|
||||
|
||||
// 退出登录
|
||||
function logout() {
|
||||
return Axios.post("/logout");
|
||||
}
|
||||
|
||||
// 获取权限
|
||||
function getAuthRole() {
|
||||
return Axios.get("/auth");
|
||||
}
|
||||
// 发送短信验证码
|
||||
function phoneCode(params) {
|
||||
return Axios.post("/phone/code", params);
|
||||
}
|
||||
|
||||
// 获取邮箱验证码
|
||||
function emailCode(params) {
|
||||
return Axios.post("/email/code", params);
|
||||
}
|
||||
|
||||
// 全局搜索
|
||||
function globalSearch(params) {
|
||||
return Axios.get("/global_search", { params });
|
||||
}
|
||||
|
||||
// 获取前台导航
|
||||
function getMenu() {
|
||||
return Axios.get("/menu");
|
||||
}
|
||||
|
||||
/* 停用相关 */
|
||||
// 获取停用页面
|
||||
function refundPage(params) {
|
||||
return Axios.get(`/refund`, { params });
|
||||
}
|
||||
// 申请停用
|
||||
function refund(params) {
|
||||
return Axios.post(`/refund`, params);
|
||||
}
|
||||
// 取消停用
|
||||
function cancel(params) {
|
||||
return Axios.put(`/refund/${params.id}/cancel`, params);
|
||||
}
|
||||
// 获取产品停用信息
|
||||
function refundMsg(params) {
|
||||
return Axios.get(`/refund/host/${params.id}/refund`, { params });
|
||||
}
|
||||
|
||||
// 账户详情
|
||||
function account() {
|
||||
return Axios.get(`/account`);
|
||||
}
|
||||
// 支付方式
|
||||
function gatewayList() {
|
||||
return Axios.get(`/gateway`);
|
||||
}
|
||||
// 支付
|
||||
function pay(params) {
|
||||
return Axios.post(`/pay`, params);
|
||||
}
|
||||
// 支付状态
|
||||
function getPayStatus(id) {
|
||||
return Axios.get(`/pay/${id}/status`);
|
||||
}
|
||||
|
||||
// 使用/取消余额
|
||||
function creditPay(params) {
|
||||
return Axios.post(`/credit`, params);
|
||||
}
|
||||
// 订单详情
|
||||
function orderDetails(id) {
|
||||
return Axios.get(`/order/${id}`);
|
||||
}
|
||||
/* 续费相关 */
|
||||
// 续费页面
|
||||
function renewPage(params) {
|
||||
return Axios.get(`/host/${params.id}/renew`, { params });
|
||||
}
|
||||
// 续费提交
|
||||
function renew(params) {
|
||||
return Axios.post(`/host/${params.id}/renew`, params);
|
||||
}
|
||||
// 商品列表
|
||||
function productList(params) {
|
||||
return Axios.get(`/product`, { params });
|
||||
}
|
||||
// 商品详情
|
||||
function productInfo(id) {
|
||||
return Axios.get(`/product/${id}`);
|
||||
}
|
||||
// 获取购物车
|
||||
function cartList() {
|
||||
return Axios.get(`/cart`);
|
||||
}
|
||||
|
||||
// 会员中心首页
|
||||
function indexData() {
|
||||
return Axios.get(`/index`);
|
||||
}
|
||||
|
||||
// 应用优惠码
|
||||
function applyPromoCode(params) {
|
||||
return Axios.post(`/promo_code/apply`, params);
|
||||
}
|
||||
|
||||
// 获取提现设置
|
||||
function withdrawConfig(params) {
|
||||
return Axios.get(`/withdraw/rule/credit`, { params });
|
||||
}
|
||||
// 申请提现
|
||||
function applyWithdraw(params) {
|
||||
return Axios.post(`/withdraw`, params);
|
||||
}
|
||||
|
||||
// 账户详情
|
||||
function accountDetail() {
|
||||
return Axios.get(`/account`);
|
||||
}
|
||||
|
||||
// 账户权限
|
||||
function accountPermissions(id) {
|
||||
return Axios.get(`/sub_account/${id}/auth`);
|
||||
}
|
||||
|
||||
/**
|
||||
* @获取在线客服代码
|
||||
*/
|
||||
function queryCustomerServiceCode(id) {
|
||||
return Axios.get(`/online_service`);
|
||||
}
|
||||
|
||||
// 获取实名认证信息
|
||||
function certificationInfo() {
|
||||
return Axios.get(`/certification/info`);
|
||||
}
|
||||
|
||||
// 帮助文档详情
|
||||
function helpDetails(params) {
|
||||
return Axios.get(`/help/${params.id}`, { params });
|
||||
}
|
||||
|
||||
// 获取返现信息
|
||||
function getCashbackInfo(params) {
|
||||
return Axios.get(`/host/${params.id}/product_cashback`);
|
||||
}
|
||||
// 申请返现
|
||||
function apllyCashback(params) {
|
||||
return Axios.post(`/host/${params.id}/product_cashback`);
|
||||
}
|
||||
|
||||
// 授信详情
|
||||
function creditDetail() {
|
||||
return Axios.get(`/credit_limit`);
|
||||
}
|
||||
|
||||
// 信用额支付
|
||||
function payCreditLimit(params) {
|
||||
return Axios.post(`/credit_limit/pay`, params);
|
||||
}
|
||||
|
||||
// 流量包列表
|
||||
function getFlowPacket(params) {
|
||||
return Axios.get(`/host/${params.id}/flow_packet`, { params });
|
||||
}
|
||||
|
||||
// 根据模块获取流量包
|
||||
function getFlowPacketByModule(module, params) {
|
||||
return Axios.get(`/${module}/${params.id}/traffic_package`, { params });
|
||||
}
|
||||
|
||||
// 订购流量包
|
||||
function buyFlowPacket(params) {
|
||||
return Axios.post(`/host/${params.id}/flow_packet_order`, params);
|
||||
}
|
||||
|
||||
// 站内信
|
||||
function messageInfo() {
|
||||
return Axios.get(`/client_care/mail`);
|
||||
}
|
||||
|
||||
// 站内信列表
|
||||
function messageList(params) {
|
||||
return Axios.get(`/client_care/mail/list`, { params });
|
||||
}
|
||||
|
||||
// 删除站内信
|
||||
function deleteMessage(params) {
|
||||
return Axios.delete(`/client_care/mail`, { params });
|
||||
}
|
||||
|
||||
// 标记已读站内信
|
||||
function readMessage(params) {
|
||||
return Axios.put(`/client_care/mail/read`, params);
|
||||
}
|
||||
|
||||
// 验证oauthtoken
|
||||
function oauthToken() {
|
||||
return Axios.get(`/oauth/token`);
|
||||
}
|
||||
|
||||
// 关联账户
|
||||
|
||||
function bindOauthAccount(params) {
|
||||
return Axios.post(`/oauth/client/bind`, params);
|
||||
}
|
||||
|
||||
//跳转到登录授权网址
|
||||
function oauthUrl(name) {
|
||||
return Axios.get(`/oauth/${name}`);
|
||||
}
|
||||
|
||||
// 获取商品活动促销信息
|
||||
function eventPromotion(params) {
|
||||
return Axios.get(`/event_promotion/product/${params.id}/event_promotion`, {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 应用活动促销
|
||||
|
||||
function applyEventPromotion(params) {
|
||||
return Axios.post(`/event_promotion/apply`, params);
|
||||
}
|
||||
|
||||
// 商品订单页自定义字段
|
||||
function customFieldsProduct(id) {
|
||||
return Axios.get(`/product/${id}/self_defined_field/order_page`);
|
||||
}
|
||||
|
||||
// 批量续费页面
|
||||
function batchRenewList(params) {
|
||||
return Axios.get(`/host/renew/batch`, { params });
|
||||
}
|
||||
|
||||
// 批量续费
|
||||
function aipBatchRenew(params) {
|
||||
return Axios.post(`/host/renew/batch`, params);
|
||||
}
|
||||
|
||||
// 产品IP详情
|
||||
function getHostIpDetails(id) {
|
||||
return Axios.get(`/host/${id}/ip`);
|
||||
}
|
||||
|
||||
// 批量操作
|
||||
function batchOperation(module, params) {
|
||||
return Axios.post(`/${module}/batch_operate`, params);
|
||||
}
|
||||
|
||||
// 银行转账提交申请
|
||||
function submitApplication(id) {
|
||||
return Axios.post(`/order/${id}/submit_application`);
|
||||
}
|
||||
// 上传凭证
|
||||
function uploadProof(params) {
|
||||
return Axios.put(`/order/${params.id}/voucher`, params);
|
||||
}
|
||||
// 变更支付方式
|
||||
function changePayType(id) {
|
||||
return Axios.put(`/order/${id}/gateway`);
|
||||
}
|
||||
|
||||
// 产品是否正在转移
|
||||
function hostIsTransfer(params) {
|
||||
return Axios.get(`/host_transfer/host/${params.id}/is_transfer`);
|
||||
}
|
||||
|
||||
// 自动续费开关
|
||||
function rennewAuto(params) {
|
||||
return Axios.put(`/host/${params.id}/renew/auto`, params);
|
||||
}
|
||||
// 产品列表获取产品详情-用于自动续费显示
|
||||
function getHostSpecific(params) {
|
||||
return Axios.get(`/host/${params.id}/specific_info`);
|
||||
}
|
||||
|
||||
// 获取升级防御配置
|
||||
function apiGetUpDefenceConfig(params, module) {
|
||||
return Axios.get(`/${module}/${params.id}/upgrade_defence_config`, {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 计算升级防御价格
|
||||
function apiCalculateUpDefencePrice(params, module) {
|
||||
return Axios.get(`/${module}/${params.id}/upgrade_defence/price`, {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 生成升级防御订单
|
||||
function apiGenerateUpDefenceOrder(params, module) {
|
||||
return Axios.post(`/${module}/${params.id}/upgrade_defence/order`, params);
|
||||
}
|
||||
|
||||
// 防火墙用户统计(首页产品列表)
|
||||
function apiProductGetHostIp(params, module) {
|
||||
switch (module) {
|
||||
case "mf_cloud":
|
||||
case "mf_dcim":
|
||||
case "mf_dcim_cabinet":
|
||||
return Axios.get(`/aodun_firewall/host_ip`, { params });
|
||||
case "remf_cloud":
|
||||
case "remf_dcim":
|
||||
return Axios.get(`/aodun_firewall_agent/host_ip`, { params });
|
||||
}
|
||||
}
|
||||
|
||||
// 防火墙用户统计刷新状态(首页产品列表)
|
||||
function apiProductRefreshHostIpStatus(params, module) {
|
||||
switch (module) {
|
||||
case "mf_cloud":
|
||||
case "mf_dcim":
|
||||
case "mf_dcim_cabinet":
|
||||
return Axios.get(`/aodun_firewall/host_ip/${params.id}/refresh_status`, {
|
||||
params,
|
||||
});
|
||||
case "remf_cloud":
|
||||
case "remf_dcim":
|
||||
return Axios.get(
|
||||
`/aodun_firewall_agent/host_ip/${params.id}/refresh_status`,
|
||||
{
|
||||
params,
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 用户流量预警详情
|
||||
function getTrafficWarning(params) {
|
||||
return Axios.get(`/account/traffic_warning`, { params });
|
||||
}
|
||||
// 保存用户流量预警
|
||||
function saveTrafficWarning(params) {
|
||||
return Axios.put(`/account/traffic_warning`, params);
|
||||
}
|
||||
|
||||
// 获取微信二维码
|
||||
function apiGetWeixinQrCode(params) {
|
||||
return Axios.get(`/mp_weixin_notice/qrcode`, { params });
|
||||
}
|
||||
|
||||
// 获取二维码状态
|
||||
function apiGetQrCodeStatus(params) {
|
||||
return Axios.get(`/mp_weixin_notice/qrcode/status`, { params });
|
||||
}
|
||||
|
||||
// 关联账户
|
||||
function apiBindWxAccount(params) {
|
||||
return Axios.post(`/mp_weixin_notice/qrcode/bind_client`, params);
|
||||
}
|
||||
|
||||
// 选择用户登录
|
||||
function apiSelectClientLogin(params) {
|
||||
return Axios.post(`/mp_weixin_notice/qrcode/select_client_login`, params);
|
||||
}
|
||||
|
||||
// 充值
|
||||
function apiRecharge(params) {
|
||||
return Axios.post(`/recharge`, params);
|
||||
}
|
||||
|
||||
// 用户可用平台币详情
|
||||
function apiCoinClientCoupon(params) {
|
||||
return Axios.get(`/coin/client/coupon`, { params });
|
||||
}
|
||||
|
||||
// 平台币充值页面详情
|
||||
function apiCoinRechargeDetail(params) {
|
||||
return Axios.get(`/coin/recharge`, { params });
|
||||
}
|
||||
|
||||
// 应用平台币
|
||||
function apiApplyCoin(params) {
|
||||
return Axios.post(`/coin/pay`, params);
|
||||
}
|
||||
|
||||
// 支付页面可用平台币列表
|
||||
function apiCoinPayList(params) {
|
||||
return Axios.get(`/coin/pay`, { params });
|
||||
}
|
||||
|
||||
// 余额提醒
|
||||
function apiCreateCreditRemind(params) {
|
||||
return Axios.post(`/account/credit/remind`, params);
|
||||
}
|
||||
|
||||
// 平台币发放规则列表
|
||||
function apiCoinActiveList(params) {
|
||||
return Axios.get(`/coin/rules`, { params });
|
||||
}
|
||||
|
||||
// 续费页面
|
||||
function getRenewApi(params) {
|
||||
return Axios.get(`/host/${params.id}/renew`, { params });
|
||||
}
|
||||
// 续费提交
|
||||
function apiRenew(params) {
|
||||
return Axios.post(`/host/${params.id}/renew`, params);
|
||||
}
|
||||
|
||||
// 获取产品按需转包年包月周期价格
|
||||
function apiGetDemandToPrepaymentPrice(params) {
|
||||
return Axios.get(`/host/${params.id}/on_demand_to_recurring_prepayment`);
|
||||
}
|
||||
// 产品按需转包年包月
|
||||
function apiDemandToPrepayment(params) {
|
||||
return Axios.post(
|
||||
`/host/${params.id}/on_demand_to_recurring_prepayment`,
|
||||
params
|
||||
);
|
||||
}
|
||||
|
||||
// 获取用户等级折扣金额
|
||||
function apiClientLevelAmount(params) {
|
||||
return Axios.get(`/client_level/product/${params.id}/amount`, { params });
|
||||
}
|
||||
|
||||
/* 重置授权 */
|
||||
// 提交授权重置申请
|
||||
function apiRestAuth(params) {
|
||||
return Axios.post(`/authreset/applications`, params);
|
||||
}
|
||||
// 获取实名信息
|
||||
function apiGetRealName(params) {
|
||||
return Axios.get(`/authreset/certificate`, { params });
|
||||
}
|
||||
// 获取实名状态
|
||||
function apiGetRealNameStatus(params) {
|
||||
return Axios.get(`/authreset/certificate/status`, { params });
|
||||
}
|
||||
// 自助重置确认
|
||||
function apiAutoResetSure(params) {
|
||||
return Axios.post(`/authreset/reset/sure`, params);
|
||||
}
|
||||
// 撤销重置
|
||||
function apiCancelRest(params) {
|
||||
return Axios.post(`/authreset/reset/cancel`, params);
|
||||
}
|
||||
|
||||
// 批量续费使用优惠码
|
||||
function applyBatchRenewCode(params) {
|
||||
return Axios.post(`/promo_code/apply_batch`, params);
|
||||
}
|
||||
|
||||
// 修改语言
|
||||
function changeLanguage(params) {
|
||||
return Axios.put(`/language`, params);
|
||||
}
|
||||
|
||||
// 异常登录创建实名认证
|
||||
function apiCreateCertification(params) {
|
||||
return Axios.post(`/login/exception/certification/create`, params);
|
||||
}
|
||||
|
||||
// 异常登录查询实名认证状态
|
||||
function apiGetCertificationStatus(params) {
|
||||
return Axios.get(`/login/exception/certification/status`, { params });
|
||||
}
|
||||
|
||||
// 前台产品列表(跨模块)
|
||||
function apiCrossModuleList(params) {
|
||||
return Axios.get(`/home/host`, { params });
|
||||
}
|
||||
|
||||
// 支付页面可用代金券列表
|
||||
function apiVoucherPayList(params) {
|
||||
return Axios.get(`/voucher/pay`, { params });
|
||||
}
|
||||
|
||||
// 应用代金券
|
||||
function apiApplyVoucher(params) {
|
||||
return Axios.post(`/voucher/pay`, params);
|
||||
}
|
||||
|
||||
// 批量修改产品备注
|
||||
function apiBatchUpdateHostNotes(params) {
|
||||
return Axios.put(`/host/notes/batch`, params);
|
||||
}
|
||||
202
clientarea/hgcloud/api/finance.js
Normal file
202
clientarea/hgcloud/api/finance.js
Normal file
@@ -0,0 +1,202 @@
|
||||
// 订单列表
|
||||
function orderList(params) {
|
||||
return Axios.get("/order", {params});
|
||||
}
|
||||
|
||||
// 交易记录列表
|
||||
function transactionList(params) {
|
||||
return Axios.get(`/transaction`, {params});
|
||||
}
|
||||
|
||||
// 订单详情
|
||||
function orderDetails(id) {
|
||||
return Axios.get(`/order/${id}`);
|
||||
}
|
||||
|
||||
// 余额记录列表
|
||||
function creditList(params) {
|
||||
return Axios.get(`/credit`, {params});
|
||||
}
|
||||
// 公共配置
|
||||
function common() {
|
||||
return Axios.get(`/common`);
|
||||
}
|
||||
|
||||
// 账户详情
|
||||
function account() {
|
||||
return Axios.get(`/account`);
|
||||
}
|
||||
|
||||
// 提现申请
|
||||
function withdraw(params) {
|
||||
return Axios.post(`/withdraw`, params);
|
||||
}
|
||||
|
||||
// 提现规则详情
|
||||
function withdrawRule(params) {
|
||||
return Axios.get(`/withdraw/rule/credit`, {params});
|
||||
}
|
||||
|
||||
// 充值
|
||||
function recharge(params) {
|
||||
return Axios.post(`/recharge`, params);
|
||||
}
|
||||
|
||||
// 支付方式
|
||||
function gatewayList() {
|
||||
return Axios.get(`/gateway`);
|
||||
}
|
||||
|
||||
// 支付
|
||||
function pay(params) {
|
||||
return Axios.post(`/pay`, params);
|
||||
}
|
||||
|
||||
// 支付状态
|
||||
function getPayStatus(id) {
|
||||
return Axios.get(`/pay/${id}/status`);
|
||||
}
|
||||
|
||||
// 获取待审核金额
|
||||
function unAmount() {
|
||||
return Axios.get(`/refund/pending/amount`);
|
||||
}
|
||||
|
||||
// 使用/取消余额
|
||||
function creditPay(params) {
|
||||
return Axios.post(`/credit`, params);
|
||||
}
|
||||
// 删除订单
|
||||
function delete_order(id) {
|
||||
return Axios.delete(`/order/${id}`);
|
||||
}
|
||||
|
||||
// 批量删除订单
|
||||
function batchDeleteOrder(params) {
|
||||
return Axios.delete(`/order`, {params});
|
||||
}
|
||||
|
||||
// // 使用余额支付
|
||||
// function onlinePay(params) {
|
||||
// return Axios.post(`/pay`, params);
|
||||
// }
|
||||
|
||||
// 代金券
|
||||
// 可领代金券列表
|
||||
function voucherAvailable({params}) {
|
||||
return Axios.get(`/voucher`, {params});
|
||||
}
|
||||
|
||||
function voucherMine(params) {
|
||||
return Axios.get(`/voucher/mine`, {params});
|
||||
}
|
||||
|
||||
function voucherGet(params) {
|
||||
return Axios.post(`/voucher/${params.id}/get`, params);
|
||||
}
|
||||
|
||||
function combineOrder(params) {
|
||||
return Axios.post(`/order/combine`, params);
|
||||
}
|
||||
|
||||
/* 申请合同列表 */
|
||||
function contractOrder(params) {
|
||||
return Axios.get(`/e_contract/order`, {params});
|
||||
}
|
||||
/* 合同管理列表 */
|
||||
function contractList(params) {
|
||||
return Axios.get(`/e_contract`, {params});
|
||||
}
|
||||
|
||||
/* 保存甲方信息 */
|
||||
function editPartInfo(params) {
|
||||
return Axios.put(`/e_contract/first_part_info`, params);
|
||||
}
|
||||
/* 获取甲方信息 */
|
||||
function getPartInfo() {
|
||||
return Axios.get(`/e_contract/first_part_info`);
|
||||
}
|
||||
|
||||
// 下载PDF
|
||||
function downloadContract(id) {
|
||||
return Axios.post(`/e_contract/${id}/download`);
|
||||
}
|
||||
|
||||
// 预览PDF
|
||||
function viewContract(id) {
|
||||
return Axios.get(`/e_contract/${id}/preview`);
|
||||
}
|
||||
|
||||
//取消合同
|
||||
function cancelContrat(id) {
|
||||
return Axios.post(`/e_contract/${id}/cancel`);
|
||||
}
|
||||
|
||||
//邮递纸质合同
|
||||
function mailContract(params) {
|
||||
return Axios.post(`/e_contract/${params.id}/mail`, params);
|
||||
}
|
||||
|
||||
// 获取实名认证信息
|
||||
function certificationInfo() {
|
||||
return Axios.get(`/certification/info`);
|
||||
}
|
||||
|
||||
// 出账列表
|
||||
function creditLimtList(params) {
|
||||
return Axios.get(`/credit_limit/account`, {params});
|
||||
}
|
||||
|
||||
// 授信详情
|
||||
function creditDetail() {
|
||||
return Axios.get(`/credit_limit`);
|
||||
}
|
||||
|
||||
//出账周期订单列表
|
||||
function creditOrderList(params) {
|
||||
return Axios.get(`/credit_limit/account/${params.id}/order`, {params});
|
||||
}
|
||||
|
||||
// 信用额提前还款
|
||||
function prePayment() {
|
||||
return Axios.post(`/credit_limit/prepayment`);
|
||||
}
|
||||
|
||||
// 冻结记录
|
||||
function apiFreezeList(params) {
|
||||
return Axios.get(`/account/credit/freeze`, {params});
|
||||
}
|
||||
|
||||
// 用户可用平台币详情
|
||||
function apiCoinCoupon(params) {
|
||||
return Axios.get(`/coin/client/coupon`, {params});
|
||||
}
|
||||
|
||||
// 待领取平台币列表
|
||||
function apiCoinWaitList(params) {
|
||||
return Axios.get(`/coin/wait_get`, {params});
|
||||
}
|
||||
|
||||
// 领取平台币
|
||||
function apiCoinGet(params) {
|
||||
return Axios.post(`/coin/${params.id}/get`, params);
|
||||
}
|
||||
|
||||
// 平台币列表
|
||||
function apiCoinList(params) {
|
||||
return Axios.get(`/coin/coupon`, {params});
|
||||
}
|
||||
|
||||
// 获取平台币使用详情
|
||||
function apiCoinUseDetail(params) {
|
||||
return Axios.get(`/coin/coupon/${params.id}/use_detail`, {params});
|
||||
}
|
||||
|
||||
// 订单列表导出EXCEL
|
||||
function apiExportOrder(params) {
|
||||
return Axios.get(`/export_excel/order`, {
|
||||
params,
|
||||
responseType: "blob",
|
||||
timeout: 0,
|
||||
});
|
||||
}
|
||||
16
clientarea/hgcloud/api/goods.js
Normal file
16
clientarea/hgcloud/api/goods.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// 产品订购地址
|
||||
function goodsUrl(params) {
|
||||
return Axios.get(`/baidu_cloud/goods`, { params });
|
||||
}
|
||||
// 获取token
|
||||
function goodsToken() {
|
||||
return Axios.get(`/baidu_cloud/token`);
|
||||
}
|
||||
// 产品订购
|
||||
function goodsSettle(params) {
|
||||
return Axios.get(`/baidu_cloud/settle`, { params });
|
||||
}
|
||||
// 产品列表地址
|
||||
function goodsList(params) {
|
||||
return Axios.get(`/baidu_cloud/list`, { params });
|
||||
}
|
||||
112
clientarea/hgcloud/api/goodsList.js
Normal file
112
clientarea/hgcloud/api/goodsList.js
Normal file
@@ -0,0 +1,112 @@
|
||||
// 获取商品一级分组
|
||||
function productGroupFirst() {
|
||||
return Axios.get(`/product/group/first`);
|
||||
}
|
||||
|
||||
//获取商品二级分组
|
||||
function productGroupSecond(id) {
|
||||
return Axios.get(`/product/group/second?id=${id}`, id);
|
||||
}
|
||||
|
||||
// 商品列表
|
||||
function productGoods(params) {
|
||||
return Axios.get(`/product`, { params });
|
||||
}
|
||||
|
||||
// 获取可用域名后缀
|
||||
function domainSuffix(id) {
|
||||
return Axios.get(`/idcsmart_domain/domain_suffix?host_id=${id}`);
|
||||
}
|
||||
|
||||
// 域名查询
|
||||
function domainSearch(params) {
|
||||
return Axios.get(`/idcsmart_domain/check_domain`, { params });
|
||||
}
|
||||
|
||||
// 获取域名价格
|
||||
function domainPrice(params) {
|
||||
return Axios.get(`/idcsmart_domain/get_price`, { params });
|
||||
}
|
||||
|
||||
// 获取whois信息
|
||||
function domainWhois(params) {
|
||||
return Axios.get(`/idcsmart_domain/whois`, { params });
|
||||
}
|
||||
|
||||
// 加入购物车
|
||||
function addToCart(params) {
|
||||
return Axios.post(`/cart`, params, { timeout: 1000 * 60 * 20 });
|
||||
}
|
||||
|
||||
// 结算购物车
|
||||
function cartCheckout(params) {
|
||||
return Axios.post(`/cart/settle`, params);
|
||||
}
|
||||
|
||||
// 获取商品活动促销信息
|
||||
function eventPromotion(params) {
|
||||
return Axios.get(`/event_promotion/product/${params.id}/event_promotion`, {
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 编辑购物车商品
|
||||
function updateCart(params) {
|
||||
return Axios.put(`/cart/${params.position}`, params);
|
||||
}
|
||||
|
||||
// 删除购物车商品
|
||||
function deleteCart(params) {
|
||||
return Axios.delete(`/cart/${params.position}`, params);
|
||||
}
|
||||
|
||||
// 批量删除购物车商品
|
||||
function deleteCartBatch(params) {
|
||||
return Axios.delete(`/cart/batch`, { params });
|
||||
}
|
||||
|
||||
// 信息模板列表
|
||||
function templateList(params) {
|
||||
return Axios.get(`/idcsmart_domain/info_template`, { params });
|
||||
}
|
||||
|
||||
// 信息模板详情
|
||||
function templateDetails(id) {
|
||||
return Axios.get(`/idcsmart_domain/info_template/${id}`);
|
||||
}
|
||||
|
||||
// 新建信息模板
|
||||
function templateAdd(params) {
|
||||
return Axios.post(`/idcsmart_domain/info_template`, params);
|
||||
}
|
||||
|
||||
// 删除信息模板
|
||||
function templateDelete(id) {
|
||||
return Axios.delete(`/idcsmart_domain/info_template/${id}`);
|
||||
}
|
||||
|
||||
// 信息模板实名认证
|
||||
function templateAuth(params) {
|
||||
return Axios.post(
|
||||
`/idcsmart_domain/info_template/${params.id}/certifications`,
|
||||
params
|
||||
);
|
||||
}
|
||||
|
||||
// 支持的信息模板
|
||||
function templateSupport(params) {
|
||||
return Axios.get(`/idcsmart_domain/info_template/support`, { params });
|
||||
}
|
||||
|
||||
// 批量查询域名
|
||||
function domainBatch(params) {
|
||||
return Axios.get(`/idcsmart_domain/bulk_check`, {
|
||||
params,
|
||||
timeout: 1000 * 60 * 20
|
||||
});
|
||||
}
|
||||
|
||||
// 获取域名设置
|
||||
function domainSetting() {
|
||||
return Axios.get(`/idcsmart_domain/config`);
|
||||
}
|
||||
48
clientarea/hgcloud/api/home.js
Normal file
48
clientarea/hgcloud/api/home.js
Normal file
@@ -0,0 +1,48 @@
|
||||
// 会员中心首页
|
||||
function indexData() {
|
||||
return Axios.get(`/index`);
|
||||
}
|
||||
|
||||
//会员中心首页产品列表
|
||||
function indexHost(params) {
|
||||
return Axios.get(`/index/host`, { params });
|
||||
}
|
||||
// 获取实名认证信息
|
||||
function certificationInfo() {
|
||||
return Axios.get(`/certification/info`);
|
||||
}
|
||||
//工单列表
|
||||
function ticket_list(params) {
|
||||
return Axios.get(`/ticket`, { params });
|
||||
}
|
||||
//会员中心首页新闻列表
|
||||
function newsList(params) {
|
||||
return Axios.get(`/news/index`, { params });
|
||||
}
|
||||
// 推广者统计信息
|
||||
function promoter_statistic() {
|
||||
return Axios.get(`/referral/promoter/statistic`);
|
||||
}
|
||||
|
||||
// 开启推介计划
|
||||
function openRecommend() {
|
||||
return Axios.post(`recommend/promoter`);
|
||||
}
|
||||
// 推广者基础信息
|
||||
function promoterInfo() {
|
||||
return Axios.get(`/recommend/promoter`);
|
||||
}
|
||||
|
||||
// 获取微信公众号用户关联信息
|
||||
function getWxInfo() {
|
||||
return Axios.get(`/mp_weixin_notice/client`);
|
||||
}
|
||||
// 获取二维码
|
||||
function getWxQrcode() {
|
||||
return Axios.get(`/mp_weixin_notice/qrcode`);
|
||||
}
|
||||
|
||||
// 授信详情
|
||||
function creditDetail() {
|
||||
return Axios.get(`/credit_limit`);
|
||||
}
|
||||
19
clientarea/hgcloud/api/orderDetail.js
Normal file
19
clientarea/hgcloud/api/orderDetail.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// 订单详情
|
||||
function orderDetail(id) {
|
||||
return Axios.get(`/order/${id}`);
|
||||
}
|
||||
|
||||
// 交易记录
|
||||
function transactionDetail(params) {
|
||||
return Axios.get(`/transaction`, { params });
|
||||
}
|
||||
|
||||
// 余额变更记录列表
|
||||
function creditList(params) {
|
||||
return Axios.get(`/credit`, { params });
|
||||
}
|
||||
|
||||
// 订单交易记录
|
||||
function apiTransactionRecord(params) {
|
||||
return Axios.get(`/order/${params.id}/transaction_record`, { params });
|
||||
}
|
||||
25
clientarea/hgcloud/api/product.js
Normal file
25
clientarea/hgcloud/api/product.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// 获取商品列表页
|
||||
function getProduct(id) {
|
||||
return Axios.get(`/menu/${id}/host`);
|
||||
}
|
||||
// 获取详情
|
||||
function getProductDetail(id) {
|
||||
return Axios.get(`/host/${id}/view`);
|
||||
}
|
||||
// 获取订购页
|
||||
function getOrederConfig(params) {
|
||||
return Axios.get(`/product/${params.id}/config_option`, {params});
|
||||
}
|
||||
// 产品详情
|
||||
function hostDetail(params) {
|
||||
return Axios.get(`/host/${params.id}`, {params});
|
||||
}
|
||||
// 产品合同是否逾期
|
||||
function timeoutStatus(id) {
|
||||
return Axios.get(`/e_contract/host/${id}/timeout`);
|
||||
}
|
||||
|
||||
// 会员中心已订购产品列表
|
||||
function clientHost(params) {
|
||||
return Axios.get(`/client/host`, {params});
|
||||
}
|
||||
38
clientarea/hgcloud/api/security.js
Normal file
38
clientarea/hgcloud/api/security.js
Normal file
@@ -0,0 +1,38 @@
|
||||
// api 秘钥列表
|
||||
function apiList(params) {
|
||||
return Axios.get(`/api`, { params })
|
||||
}
|
||||
// 创建api秘钥
|
||||
function createApi(params) {
|
||||
return Axios.post(`/api`, params)
|
||||
}
|
||||
// APi白名单设置
|
||||
function whiteApi(params) {
|
||||
return Axios.put(`/api/${params.id}/white_list`, params)
|
||||
}
|
||||
// 删除API秘钥
|
||||
function delApi(params) {
|
||||
return Axios.delete(`/api/${params.id}`, params)
|
||||
}
|
||||
|
||||
// ssh 密钥列表
|
||||
function sshList(params) {
|
||||
return Axios.get(`/ssh_key`, { params })
|
||||
}
|
||||
// 创建SSH密钥
|
||||
function createSsh(params) {
|
||||
return Axios.post(`/ssh_key`, params)
|
||||
}
|
||||
// 编辑SSH密钥
|
||||
function editSsh(params) {
|
||||
return Axios.put(`/ssh_key/${params.id}`, params)
|
||||
}
|
||||
// 删除SSH秘钥
|
||||
function delSsh(params) {
|
||||
return Axios.delete(`/ssh_key/${params.id}`, params)
|
||||
}
|
||||
|
||||
// 日志列表
|
||||
function logList(params) {
|
||||
return Axios.get(`/log`, { params })
|
||||
}
|
||||
64
clientarea/hgcloud/api/security_group.js
Normal file
64
clientarea/hgcloud/api/security_group.js
Normal file
@@ -0,0 +1,64 @@
|
||||
/* 安全组 */
|
||||
function getGroup(params) {
|
||||
return Axios.get(`/security_group`, {params});
|
||||
}
|
||||
function getGroupDetail(id) {
|
||||
return Axios.get(`/security_group/${id}`);
|
||||
}
|
||||
function addAndUpdateGroup(type, params) {
|
||||
if (type === "add") {
|
||||
return Axios.post(`/security_group`, params);
|
||||
} else if (type === "update") {
|
||||
return Axios.put(`/security_group/${params.id}`, params);
|
||||
}
|
||||
}
|
||||
function deleteGroup(id) {
|
||||
return Axios.delete(`/security_group/${id}`);
|
||||
}
|
||||
|
||||
/* 安全组规则 */
|
||||
function getGroupRules(params) {
|
||||
return Axios.get(`/security_group/${params.id}/rule`, {params});
|
||||
}
|
||||
function addAndUpdateGroupRules(type, params) {
|
||||
if (type === "add") {
|
||||
return Axios.post(`/security_group/${params.id}/rule`, params);
|
||||
} else if (type === "update") {
|
||||
return Axios.put(`/security_group/rule/${params.id}`, params);
|
||||
}
|
||||
}
|
||||
function deleteGroupRules(id) {
|
||||
return Axios.delete(`/security_group/rule/${id}`);
|
||||
}
|
||||
// 批量添加安全组规则
|
||||
function batchRules(params) {
|
||||
return Axios.post(`/security_group/${params.id}/rule/batch`, params);
|
||||
}
|
||||
|
||||
// 安全组实例列表
|
||||
function getGroupCloud(params) {
|
||||
return Axios.get(`/security_group/${params.id}/host`, {params});
|
||||
}
|
||||
// 关联安全组
|
||||
function concatCloud(params) {
|
||||
return Axios.post(
|
||||
`/security_group/${params.id}/host/${params.host_id}`,
|
||||
params
|
||||
);
|
||||
}
|
||||
// 取消关联实例
|
||||
function cancelConcatCloud(params) {
|
||||
return Axios.delete(`/security_group/${params.id}/host/${params.host_id}`);
|
||||
}
|
||||
// 获取所有可用实例
|
||||
// function getAllCloud () {
|
||||
// return Axios.get(`/idcsmart_cloud/all`);
|
||||
// }
|
||||
function getAllCloud(params) {
|
||||
return Axios.get(`/host`, {params});
|
||||
}
|
||||
|
||||
// 批量关联安全组
|
||||
function apiLinkGroup(params) {
|
||||
return Axios.post(`/security_group/${params.id}/host`, params);
|
||||
}
|
||||
48
clientarea/hgcloud/api/shopping.js
Normal file
48
clientarea/hgcloud/api/shopping.js
Normal file
@@ -0,0 +1,48 @@
|
||||
// 获取购物车
|
||||
function cartList() {
|
||||
return Axios.get(`/cart`);
|
||||
}
|
||||
|
||||
//修改购物车商品数量
|
||||
function editGoodsNum(index, num) {
|
||||
return Axios.put(`/cart/${index}/qty`, {qty: num});
|
||||
}
|
||||
|
||||
//批量删除购物车商品
|
||||
function deleteGoods(arr) {
|
||||
const params = {positions: arr};
|
||||
return Axios.delete(`/cart/batch`, {data: params});
|
||||
}
|
||||
|
||||
// 修改配置计算价格
|
||||
function configOption(id, params) {
|
||||
return Axios.post(`/product/${id}/config_option`, params);
|
||||
}
|
||||
|
||||
// 结算购物车
|
||||
function cart_settle(params) {
|
||||
return Axios.post(`/cart/settle`, params);
|
||||
}
|
||||
|
||||
// 获取商品折扣金额
|
||||
function clientLevelAmount(params) {
|
||||
return Axios.get(`/client_level/product/${params.id}/amount`, {params});
|
||||
}
|
||||
|
||||
// 结算商品
|
||||
function product_settle(params) {
|
||||
return Axios.post(`/product/settle`, params);
|
||||
}
|
||||
//支付接口
|
||||
function payLisy() {
|
||||
return Axios.get(`/gateway`);
|
||||
}
|
||||
// 修改购物车
|
||||
function updateCart(params) {
|
||||
return Axios.put(`/cart/${params.position}`, params);
|
||||
}
|
||||
|
||||
// 商品列表
|
||||
function productDetail(id) {
|
||||
return Axios.get(`/product/${id}`);
|
||||
}
|
||||
0
clientarea/hgcloud/api/template.js
Normal file
0
clientarea/hgcloud/api/template.js
Normal file
8
clientarea/hgcloud/api/withdraw.js
Normal file
8
clientarea/hgcloud/api/withdraw.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @获取提现列表
|
||||
* @param {*} params
|
||||
* @returns
|
||||
*/
|
||||
function queryWithdrawIistAPI(params) {
|
||||
return Axios.get(`/withdraw`, { params });
|
||||
}
|
||||
Reference in New Issue
Block a user