Files
ebiz-h5/src/api/ebiz/common/common.js
2024-08-07 18:34:48 +08:00

131 lines
3.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from '@/assets/js/utils/request'
import getUrl from '@/assets/js/utils/get-url'
// 初始化试算因子
export function calculatePremium(data) {
return request({
url: getUrl(`/${localStorage.isFrom}/product/getDetail`, 1), //根据来源 判断 调用建议书接口/电投接口
method: 'post',
data
})
}
// 主险列表
export function mainRiskList(data) {
return request({
url: getUrl(`/sale/product/getMainRiskLst`, 1),
// url: getUrl(`/${localStorage.isFrom}/product/getMainRiskLst`, 1),
method: 'post',
data
})
}
// 主险列表--建议书
export function mainRiskListProposal(data) {
return request({
url: getUrl(`/proposal/product/getMainRiskLst`, 1),
// url: getUrl(`/${localStorage.isFrom}/product/getMainRiskLst`, 1),
method: 'post',
data
})
}
//移动端活动对应产品列表
export function getActProductList(data) {
return request({
url: getUrl(`/sale/activity/getActProductList`, 1),
// url: getUrl(`/${localStorage.isFrom}/product/getMainRiskLst`, 1),
method: 'post',
data
})
}
//试算
export function trial(data) {
return request({
url: getUrl(`/${localStorage.isFrom}/insure/trial`, 1),
method: 'post',
data
})
}
//产品售卖权限校验
export function productCheck(data) {
return request({
url: getUrl('/sale/product/check', 1),
method: 'post',
data
})
}
//订单详情
export function orderDetail(data) {
return request({
url: getUrl('/sale/order/orderDetail', 1),
method: 'post',
data
})
}
//删除已选产品
export function deleteOrderInfo(data) {
return request({
url: getUrl('/sale/order/deleteOrderInfo', 1),
method: 'post',
data
})
}
//获取微信分享
export function wxShare(data) {
return request({
url: getUrl('/ppf/wx/config', 1),
method: 'post',
data
})
}
//验证代理人访问
export function checkEnterPower(data) {
return request({
url: getUrl('/customer/agent/checkEnterPower', 1),
method: 'post',
data
})
}
// 获取验证码
export function getAuthCode(data) {
return request({
url: getUrl('/customer/authcode/loginedSend', 1),
method: 'post',
data
})
}
// 获取代理人信息
export function getCheckModelAgentInfo(data) {
return request({
// url: getUrl('/agent/agent/info', 0),
url: getUrl('/customer/agent/info', 1),
method: 'post',
data
})
}
// 校验当前用户权限
export function funcPermCheck(data) {
return request({
url: getUrl('/agent/funcPerm/check', 1),
method: 'post',
data
})
}
/** add by zhangweiwei FCRS-764 国富无忧两全保险B款新增主险职业校验逻辑 start at 20240807 */
// 校验职业是否符合产品要求
export function occupationCodeCheck(data) {
return request({
url: getUrl('/sale/product/occupationCodeCheck', 1),
method: 'post',
data
})
}
/** add by zhangweiwei FCRS-764 国富无忧两全保险B款新增主险职业校验逻辑 end at 20240807 */