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