mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 18:46:43 +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'
|
||||
// YB_APP = 'http://10.10.100.98:7001'
|
||||
// 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
|
||||
break
|
||||
case 'uat':
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
<div style="margin-left:15px;">
|
||||
<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">
|
||||
</p>
|
||||
<p style="color:#e9e9e9;padding: 3px;">
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<script>
|
||||
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'
|
||||
export default {
|
||||
name: 'mine',
|
||||
@@ -70,16 +70,35 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
messages:false,
|
||||
userInfo:{},
|
||||
menu1:[],
|
||||
imagePath: imagePath //新头像URL
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
this.messages = this.$store.state.messageStatus
|
||||
console.log(this.$store.state.messageStatus)
|
||||
this.getHomeConfigYB()
|
||||
this.getMineConfigYB()
|
||||
window['getMessage'] = (data) => {
|
||||
this.getMessage(data)
|
||||
}
|
||||
},
|
||||
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(){
|
||||
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>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -74,14 +74,16 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
|
||||
this.$nextTick(()=>{
|
||||
window.getMessage(1)
|
||||
this.messages = this.$store.state.messageStatus
|
||||
})
|
||||
this.getHomeConfigYB()
|
||||
window['getMessage'] = (data) => {
|
||||
this.getMessage(data)
|
||||
}
|
||||
|
||||
},
|
||||
methods:{
|
||||
getMessage(data){
|
||||
this.$store.commit('updateMessageStatus',data )
|
||||
},
|
||||
getHomeConfigYB(){
|
||||
let params = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user