mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 05:32:52 +08:00
安全性问题处理:axios 个性化处理调整-统一拦截 --提交人:阳华祥
This commit is contained in:
@@ -53,7 +53,7 @@ import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
|||||||
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||||
import areaList from '@/assets/js/utils/area'
|
import areaList from '@/assets/js/utils/area'
|
||||||
import { getTokenForAgent, agentInfowxSubmit } from '@/api/ebiz/agentEenter/agentEenter'
|
import { getTokenForAgent, agentInfowxSubmit, getTokenForUserModel } from '@/api/ebiz/agentEenter/agentEenter'
|
||||||
import utilsAge from '@/assets/js/utils/age'
|
import utilsAge from '@/assets/js/utils/age'
|
||||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
import getAreaName from '@/assets/js/utils/get-area-name'
|
||||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||||
@@ -65,6 +65,7 @@ import axios from 'axios'
|
|||||||
import index from '@/config/index'
|
import index from '@/config/index'
|
||||||
import { getAuthCode } from '@/api/ebiz/sale/sale'
|
import { getAuthCode } from '@/api/ebiz/sale/sale'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'insuredInfo',
|
name: 'insuredInfo',
|
||||||
components: {
|
components: {
|
||||||
@@ -152,32 +153,20 @@ export default {
|
|||||||
loadingType: 'spinner',
|
loadingType: 'spinner',
|
||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
axios
|
getTokenForUserModel({
|
||||||
.get(index.apiDomain + `/agent/enter/getTokenForAgent`, {
|
token: this.$CacheUtils.getLocItem('token')
|
||||||
params: {
|
}).then(function(response) {
|
||||||
token: localStorage.token
|
self.$toast.clear()
|
||||||
},
|
console.log('response', response)
|
||||||
headers: {
|
if (response.result == '0') {
|
||||||
token: localStorage.token
|
self.recommender = response
|
||||||
}
|
} else {
|
||||||
})
|
this.$toast.fail(response.resultMessage)
|
||||||
.then(function(response) {
|
}
|
||||||
self.$toast.clear()
|
})
|
||||||
console.log('response', response)
|
.catch(function(error) {
|
||||||
if (response.data.code == '0') {
|
// this.$toast.fail(error)
|
||||||
console.log('response.data.content', response.data.content)
|
})
|
||||||
if (response.data.content.result == '0') {
|
|
||||||
self.recommender = response.data.content
|
|
||||||
} else {
|
|
||||||
this.$toast.fail(response.data.content.resultMessage)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$toast.fail(response.data.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(function(error) {
|
|
||||||
// this.$toast.fail(error)
|
|
||||||
})
|
|
||||||
// var self = this
|
// var self = this
|
||||||
// //获取推荐人信息
|
// //获取推荐人信息
|
||||||
// let data = {
|
// let data = {
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { List, Tab, Tabs, Tag, Row, Col, Dialog, Sticky } from 'vant'
|
import { List, Tab, Tabs, Tag, Row, Col, Dialog, Sticky } from 'vant'
|
||||||
import { progress } from '@/api/ebiz/claims/claims'
|
import { progress, deleteClaim } from '@/api/ebiz/claims/claims'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import index from '@/config/index'
|
import index from '@/config/index'
|
||||||
|
|
||||||
@@ -209,15 +209,9 @@ export default {
|
|||||||
cancelButtonColor: '#4FC6B3',
|
cancelButtonColor: '#4FC6B3',
|
||||||
confirmButtonColor: '#FFFFFF'
|
confirmButtonColor: '#FFFFFF'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
axios
|
deleteClaim({
|
||||||
.get(index.apiDomain + `/claim/claimApply/delete`, {
|
businessNo: businessNo
|
||||||
params: {
|
})
|
||||||
businessNo: businessNo
|
|
||||||
},
|
|
||||||
headers: {
|
|
||||||
token: localStorage.token
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
let data = {
|
let data = {
|
||||||
progressStatus: 'applying'
|
progressStatus: 'applying'
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Search, List, Tag, Row, Col } from 'vant'
|
import { Search, List, Tag, Row, Col } from 'vant'
|
||||||
import { history } from '@/api/ebiz/claims/claims'
|
import { history, historyDetail } from '@/api/ebiz/claims/claims'
|
||||||
// import { getPolicyList } from '@/api/ebiz/serve/serve'
|
// import { getPolicyList } from '@/api/ebiz/serve/serve'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import index from '@/config/index'
|
import index from '@/config/index'
|
||||||
@@ -140,15 +140,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击选择去被保人信息
|
// 点击选择去被保人信息
|
||||||
goToDetail(data) {
|
goToDetail(data) {
|
||||||
axios
|
historyDetail({
|
||||||
.get(index.apiDomain + `/claim/claimReport/historyDetail`, {
|
insuredNo: that.insuredNo
|
||||||
params: {
|
})
|
||||||
insuredNo: this.insuredNo
|
|
||||||
},
|
|
||||||
headers: {
|
|
||||||
token: localStorage.token
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user