|
|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
ConfigGetAction,
|
|
|
|
|
HospitalExtraInfoAction,
|
|
|
|
|
$image,
|
|
|
|
|
$response,$chat_url
|
|
|
|
|
$response,$chat_url,$service_platform_appid
|
|
|
|
|
} from '@/api'
|
|
|
|
|
import {
|
|
|
|
|
onShow
|
|
|
|
|
@ -71,6 +71,7 @@
|
|
|
|
|
const getUserInfo = () => {
|
|
|
|
|
uni.$lu.user((info) => {
|
|
|
|
|
user_info.value = info
|
|
|
|
|
console.log('-----',user_info.value)
|
|
|
|
|
getHospitalInfo(info)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
@ -136,9 +137,10 @@
|
|
|
|
|
icon: '/storage/assets/mp/user/会员卡信息@2x.png',
|
|
|
|
|
show: true,
|
|
|
|
|
jump_type: 3,
|
|
|
|
|
jump_path: $chat_url+'/h5/#/pages/main/login/login?page=chat&token=[TOKEN]',
|
|
|
|
|
jump_path:'servicePlatform' ,
|
|
|
|
|
login_type: 1
|
|
|
|
|
}])
|
|
|
|
|
|
|
|
|
|
const quitShow = () => {
|
|
|
|
|
quit_show.value = true
|
|
|
|
|
}
|
|
|
|
|
@ -184,6 +186,10 @@
|
|
|
|
|
getUserInfo()
|
|
|
|
|
}
|
|
|
|
|
const userButtonClick = (info) => {
|
|
|
|
|
if(info.jump_path =='servicePlatform'){
|
|
|
|
|
if(user_info.value.id=='' || user_info.value.id==undefined || user_info.value.id==null) return false
|
|
|
|
|
info.jump_path=$chat_url+'/h5/#/pages/login/login?appid='+$service_platform_appid+'&userid='+$service_platform_appid+'_'+user_info.value.id+'&objtype=chat&page=list'
|
|
|
|
|
}
|
|
|
|
|
uni.$lu.jump(info)
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|