mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 01:46:43 +08:00
120 lines
2.5 KiB
JavaScript
120 lines
2.5 KiB
JavaScript
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
|
|
})
|
|
} |