mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 01:46:43 +08:00
调试个人收入接口
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# env
|
# env
|
||||||
NODE_ENV = 'development'
|
NODE_ENV = 'production'
|
||||||
|
|
||||||
# flag
|
# flag
|
||||||
VUE_APP_FLAG='development'
|
VUE_APP_FLAG='development'
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ Vue.prototype.$jump = Jump
|
|||||||
Vue.prototype.$utils = utils
|
Vue.prototype.$utils = utils
|
||||||
|
|
||||||
//混合开发调试工具
|
//混合开发调试工具
|
||||||
if (process.env.NODE_ENV == 'development') {
|
if (process.env.VUE_APP_FLAG == 'development') {
|
||||||
// let Eruda = require('eruda')
|
// let Eruda = require('eruda')
|
||||||
// Eruda.init()
|
// Eruda.init()
|
||||||
Vue.prototype.$rootUrl = location.origin
|
Vue.prototype.$rootUrl = location.origin
|
||||||
} else if (process.env.NODE_ENV == 'production') {
|
} else if (process.env.VUE_APP_FLAG == 'production') {
|
||||||
Vue.prototype.$rootUrl = location.origin + '/ebiz-h5'
|
Vue.prototype.$rootUrl = location.origin + '/ebiz-h5'
|
||||||
}
|
}
|
||||||
let Eruda = require('eruda')
|
let Eruda = require('eruda')
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { Collapse, CollapseItem, Cell, CellGroup, DatetimePicker, Popup, Row, Col, Tab, Tabs } from 'vant'
|
import { Collapse, CollapseItem, Cell, CellGroup, DatetimePicker, Popup, Row, Col, Tab, Tabs } from 'vant'
|
||||||
import { getAgentIncome } from '@/api/ebiz/my/my.js'
|
import { getAgentIncome } from '@/api/ebiz/my/my.js'
|
||||||
export default {
|
export default {
|
||||||
@@ -256,12 +256,12 @@ export default {
|
|||||||
this.showDatePicker = false
|
this.showDatePicker = false
|
||||||
},
|
},
|
||||||
async getIncomeInfo(monthDate) {
|
async getIncomeInfo(monthDate) {
|
||||||
console.log(monthDate)
|
// console.log('--获取代理人收入明细,请求:', monthDate)
|
||||||
// 获取代理人收入明细
|
// 获取代理人收入明细
|
||||||
const res = await getAgentIncome({
|
const res = await getAgentIncome({
|
||||||
monthDate
|
monthDate
|
||||||
})
|
})
|
||||||
console.log(res)
|
// console.log('--获取代理人收入明细,响应:', JSON.stringify(res))
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
// 当月实收
|
// 当月实收
|
||||||
this.monthActualPay = res.monthActualPay
|
this.monthActualPay = res.monthActualPay
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export default {
|
|||||||
// let number = window.localStorage.getItem('idNo')
|
// let number = window.localStorage.getItem('idNo')
|
||||||
// console.log(that.saleInsuredInfo.idNo)
|
// console.log(that.saleInsuredInfo.idNo)
|
||||||
// marked by panglizong:跳过人脸识别 begin...
|
// marked by panglizong:跳过人脸识别 begin...
|
||||||
console.log('--跳过人脸识别...')
|
console.log('--投保人-跳过人脸识别...')
|
||||||
// EWebBridge.webCallAppInJs('face_auth', {
|
// EWebBridge.webCallAppInJs('face_auth', {
|
||||||
// number: that.saleInsuredInfo.idNo, //身份证号码
|
// number: that.saleInsuredInfo.idNo, //身份证号码
|
||||||
// name: that.saleInsuredInfo.name //姓名
|
// name: that.saleInsuredInfo.name //姓名
|
||||||
@@ -312,11 +312,18 @@ export default {
|
|||||||
window.localStorage.setItem('sign-val', val)
|
window.localStorage.setItem('sign-val', val)
|
||||||
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
||||||
|
|
||||||
EWebBridge.webCallAppInJs('face_auth', {
|
// marked by panglizong:跳过人脸识别 begin...
|
||||||
//身份证号码
|
console.log('--被保人-跳过人脸识别...')
|
||||||
number: that.saleInsuredPersonInfo.idNo,
|
// EWebBridge.webCallAppInJs('face_auth', {
|
||||||
//姓名
|
// //身份证号码
|
||||||
name: that.saleInsuredPersonInfo.name
|
// number: that.saleInsuredPersonInfo.idNo,
|
||||||
|
// //姓名
|
||||||
|
// name: that.saleInsuredPersonInfo.name
|
||||||
|
// })
|
||||||
|
// marked by panglizong:跳过人脸识别 end
|
||||||
|
new Promise(resolve => {
|
||||||
|
console.log('--被保人-跳过人脸识别--返回识别成功')
|
||||||
|
resolve(JSON.stringify({ state: '1' }))
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
if (JSON.parse(data).state == '1') {
|
if (JSON.parse(data).state == '1') {
|
||||||
if (that.insuredSign.readStatus == '0') {
|
if (that.insuredSign.readStatus == '0') {
|
||||||
@@ -481,6 +488,7 @@ export default {
|
|||||||
orderNo: window.localStorage.getItem('orderNo')
|
orderNo: window.localStorage.getItem('orderNo')
|
||||||
}
|
}
|
||||||
getOrderDetail(data).then(res => {
|
getOrderDetail(data).then(res => {
|
||||||
|
console.log('--签名确认页-获取订单详情,结果', JSON.stringify(res))
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
that.recmd = res.orderDTO.recmdDTO
|
that.recmd = res.orderDTO.recmdDTO
|
||||||
@@ -494,7 +502,6 @@ export default {
|
|||||||
|
|
||||||
res.orderDTO.signDTOS.map(item => {
|
res.orderDTO.signDTOS.map(item => {
|
||||||
if (item.signType == '0') {
|
if (item.signType == '0') {
|
||||||
console.log(item)
|
|
||||||
that.appntSign = item
|
that.appntSign = item
|
||||||
} else if (item.signType == '1') {
|
} else if (item.signType == '1') {
|
||||||
that.insuredSign = item
|
that.insuredSign = item
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ export default {
|
|||||||
|
|
||||||
// 获取投保人信息
|
// 获取投保人信息
|
||||||
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
||||||
console.log(this.detailJump)
|
console.log('--投保单签名页-detailJump:', this.detailJump)
|
||||||
|
|
||||||
if (this.detailJump != '1') {
|
if (this.detailJump != '1') {
|
||||||
// 投被保人是否同人
|
// 投被保人是否同人
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ const autoprefixer = require('autoprefixer')
|
|||||||
const pxtoviewport = require('postcss-px-to-viewport')
|
const pxtoviewport = require('postcss-px-to-viewport')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
publicPath: process.env.VUE_APP_FLAG === 'production' ? '/' : '/',
|
||||||
lintOnSave: process.env.NODE_ENV === 'development', //是否开启代码检查
|
lintOnSave: process.env.VUE_APP_FLAG === 'development', //是否开启代码检查
|
||||||
outputDir: 'dist', //打包输出目录
|
outputDir: 'dist', //打包输出目录
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
css: {
|
css: {
|
||||||
|
|||||||
Reference in New Issue
Block a user