mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 11:36:45 +08:00
【银保app】原生调用方法 添加到每个需要的页面 增加调用个人信息的接口
This commit is contained in:
@@ -9,3 +9,10 @@ export function homeConfigYB(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function mineConfigYB(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/app/mineConfigYB', 1,3),
|
||||||
|
method: 'get',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ switch (process.env.VUE_APP_FLAG) {
|
|||||||
CACHE_ENCRYP = '41424344454631323334353637383930'
|
CACHE_ENCRYP = '41424344454631323334353637383930'
|
||||||
// YB_APP = 'http://10.10.100.98:7001'
|
// YB_APP = 'http://10.10.100.98:7001'
|
||||||
// YB_APP = 'https://iagentsales.e-guofu.com/api/' + apiVersion
|
// YB_APP = 'https://iagentsales.e-guofu.com/api/' + apiVersion
|
||||||
YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/v1'
|
YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/v2'
|
||||||
API_VERSION = apiVersion
|
API_VERSION = apiVersion
|
||||||
break
|
break
|
||||||
case 'uat':
|
case 'uat':
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="margin-left:15px;">
|
<div style="margin-left:15px;">
|
||||||
<p style="color:#fff;padding: 3px;display: flex;align-items: center;">
|
<p style="color:#fff;padding: 3px;display: flex;align-items: center;">
|
||||||
<span style="font-size:20px;margin-right: 15px;font-weight: bold;">*萌</span>
|
<span style="font-size:20px;margin-right: 15px;font-weight: bold;">{{ userInfo.agentName | encryCheckModelName }}</span>
|
||||||
<img style="width:70px;" src="@/assets/YB_APP/images/31.png">
|
<img style="width:70px;" src="@/assets/YB_APP/images/31.png">
|
||||||
</p>
|
</p>
|
||||||
<p style="color:#e9e9e9;padding: 3px;">
|
<p style="color:#e9e9e9;padding: 3px;">
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Icon, Cell } from 'vant'
|
import { Icon, Cell } from 'vant'
|
||||||
import { homeConfigYB } from '@/api/YB_APP/index'
|
import { homeConfigYB, mineConfigYB } from '@/api/YB_APP/index'
|
||||||
import imagePath from '@/assets/YB_APP/images/25.png'
|
import imagePath from '@/assets/YB_APP/images/25.png'
|
||||||
export default {
|
export default {
|
||||||
name: 'mine',
|
name: 'mine',
|
||||||
@@ -70,16 +70,35 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
messages:false,
|
messages:false,
|
||||||
|
userInfo:{},
|
||||||
menu1:[],
|
menu1:[],
|
||||||
imagePath: imagePath //新头像URL
|
imagePath: imagePath //新头像URL
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.messages = this.$store.state.messageStatus
|
|
||||||
console.log(this.$store.state.messageStatus)
|
|
||||||
this.getHomeConfigYB()
|
this.getHomeConfigYB()
|
||||||
|
this.getMineConfigYB()
|
||||||
|
window['getMessage'] = (data) => {
|
||||||
|
this.getMessage(data)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
getMessage(data){
|
||||||
|
this.$store.commit('updateMessageStatus',data )
|
||||||
|
},
|
||||||
|
getMineConfigYB(){
|
||||||
|
let params = {
|
||||||
|
|
||||||
|
}
|
||||||
|
mineConfigYB(params).then(res=>{
|
||||||
|
if(res.result == 0){
|
||||||
|
console.log(res)
|
||||||
|
this.userInfo = res.content
|
||||||
|
}else{
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getHomeConfigYB(){
|
getHomeConfigYB(){
|
||||||
let params = {
|
let params = {
|
||||||
|
|
||||||
@@ -117,6 +136,15 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
filters: {
|
||||||
|
encryCheckModelName(code) {
|
||||||
|
if(code.length > 2){
|
||||||
|
return code.replace(/(?<=[\u4e00-\u9fa5]).*(?=[\u4e00-\u9fa5])/, "*")
|
||||||
|
}else{
|
||||||
|
return code.replace(/.*(?=[\u4e00-\u9fa5])/, "*")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -74,14 +74,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
window.getMessage(1)
|
|
||||||
this.messages = this.$store.state.messageStatus
|
|
||||||
})
|
|
||||||
this.getHomeConfigYB()
|
this.getHomeConfigYB()
|
||||||
|
window['getMessage'] = (data) => {
|
||||||
|
this.getMessage(data)
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
getMessage(data){
|
||||||
|
this.$store.commit('updateMessageStatus',data )
|
||||||
|
},
|
||||||
getHomeConfigYB(){
|
getHomeConfigYB(){
|
||||||
let params = {
|
let params = {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user