Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
036269a4
Commit
036269a4
authored
Nov 07, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix: 查看应用对应发布者信息 See merge request
!51
parents
78b9993e
a33a5cb7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
6 deletions
+26
-6
user.ts
src/apis/user.ts
+4
-0
web-page-header.vue
src/views/share/components/web-page-header.vue
+4
-6
share-application-web.vue
src/views/share/share-application-web.vue
+18
-0
No files found.
src/apis/user.ts
View file @
036269a4
...
...
@@ -20,3 +20,7 @@ export function fetchEmailCode<T>(emailAddress: string) {
export
function
fetchUserDetailInfo
<
T
>
()
{
return
request
.
post
<
T
>
(
'/bizMemberInfoRest/getCurrentMemberInfo.json'
)
}
export
function
fetchGetMemberInfoById
<
T
>
(
memberId
:
number
)
{
return
request
.
post
<
T
>
(
`/bizMemberInfoRest/getMemberNickName.json?memberId=
${
memberId
}
`
)
}
src/views/share/components/web-page-header.vue
View file @
036269a4
...
...
@@ -5,9 +5,11 @@ import CustomIcon from '@/components/custom-icon/custom-icon.vue'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
PersonalAppConfigState
}
from
'@/store/types/personal-app-config'
import
{
formatDateTime
}
from
'@/utils/date-formatter'
import
{
UserInfo
}
from
'@/store/types/user'
interface
Props
{
agentApplicationConfig
:
PersonalAppConfigState
agentMemberInfo
:
UserInfo
}
const
{
t
}
=
useI18n
()
...
...
@@ -22,10 +24,6 @@ const emit = defineEmits<{
const
userStore
=
useUserStore
()
const
useAvatar
=
computed
(()
=>
{
return
userStore
.
userInfo
.
avatarUrl
||
'https://gsst-poe-sit.gz.bcebos.com/data/20240910/1725952917468.png'
})
const
isLogin
=
computed
(()
=>
{
return
userStore
.
isLogin
})
...
...
@@ -56,9 +54,9 @@ function handleToLogin() {
<div
class=
"flex flex-col items-start justify-center"
>
<span
class=
"mb-1 line-clamp-1 max-w-[200px] break-all"
>
{{
agentApplicationConfig
.
baseInfo
.
agentTitle
}}
</span>
<div
class=
"flex items-center text-xs text-[#84868c]"
>
<img
v-show=
"isLogin"
:src=
"
useAvatar
"
class=
"mr-2 h-5 w-5 rounded-full"
/>
<img
v-show=
"isLogin"
:src=
"
agentMemberInfo.avatarUrl
"
class=
"mr-2 h-5 w-5 rounded-full"
/>
<p
v-show=
"isLogin"
class=
"mr-4 line-clamp-1 max-w-[120px] break-words break-all"
>
{{
userStore
.
us
erInfo
.
nickName
}}
{{
agentMemb
erInfo
.
nickName
}}
</p>
<span>
{{
t
(
'common_module.publish_time_in'
)
}}
...
...
src/views/share/share-application-web.vue
View file @
036269a4
...
...
@@ -11,6 +11,8 @@ import { PersonalAppConfigState } from '@/store/types/personal-app-config'
import
{
defaultPersonalAppConfigState
}
from
'@/store/modules/personal-app-config'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useLayoutConfig
}
from
'@/composables/useLayoutConfig'
import
{
fetchGetMemberInfoById
}
from
'@/apis/user'
import
{
UserInfo
}
from
'@/store/types/user'
const
{
t
}
=
useI18n
()
...
...
@@ -23,6 +25,12 @@ const { isMobile } = useLayoutConfig()
const
fullScreenLoading
=
ref
(
false
)
const
agentId
=
ref
(
''
)
const
dialogsId
=
ref
(
''
)
const
agentMemberInfo
=
ref
<
UserInfo
>
({
avatarUrl
:
'https://gsst-poe-sit.gz.bcebos.com/data/20240910/1725952917468.png'
,
memberId
:
null
,
mobilePhone
:
''
,
nickName
:
'---'
,
})
const
agentApplicationConfig
=
ref
<
PersonalAppConfigState
>
(
defaultPersonalAppConfigState
())
...
...
@@ -63,12 +71,21 @@ async function handleGetApplicationDetail() {
agentApplicationConfig
.
value
=
res
.
data
continuousQuestionStatus
.
value
=
res
.
data
.
commConfig
.
continuousQuestionStatus
document
.
title
=
agentApplicationConfig
.
value
.
baseInfo
.
agentTitle
handleGetMemberInfo
()
})
.
catch
(()
=>
{
router
.
replace
({
name
:
'Home'
})
})
}
async
function
handleGetMemberInfo
()
{
const
res
=
await
fetchGetMemberInfoById
<
UserInfo
>
(
agentApplicationConfig
.
value
.
baseInfo
.
memberId
)
if
(
res
.
code
===
0
)
{
agentMemberInfo
.
value
=
res
.
data
}
}
async
function
handleCreateDialogues
()
{
const
res
=
await
fetchCreateDialogues
(
agentId
.
value
)
...
...
@@ -149,6 +166,7 @@ function handleResetContinueQuestionList() {
<main
class=
"h-full min-w-[1100px]"
>
<PageHeader
:agent-application-config=
"agentApplicationConfig"
:agent-member-info=
"agentMemberInfo"
@
back-home-page=
"handleBackHomePage"
@
to-login=
"handleToLoginPage"
@
to-create-application=
"handleCreateApplicationPage"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment