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
c5c260d7
Commit
c5c260d7
authored
Dec 20, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.gsstcloud.com/poc/poc-fe
into beta
parents
401f9204
4722af92
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
5 deletions
+28
-5
en.yaml
src/locales/langs/en.yaml
+1
-0
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-0
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-0
equity.vue
src/views/equity/equity.vue
+5
-0
footer-operation.vue
src/views/home/components/footer-operation.vue
+12
-2
types.d.ts
src/views/home/types.d.ts
+1
-0
login.vue
src/views/login/login.vue
+2
-2
personal-app.vue
src/views/personal-space/personal-app/personal-app.vue
+4
-1
locales.d.ts
types/locales.d.ts
+1
-0
No files found.
src/locales/langs/en.yaml
View file @
c5c260d7
...
@@ -127,6 +127,7 @@ common_module:
...
@@ -127,6 +127,7 @@ common_module:
buy_now
:
'
Buy
now'
buy_now
:
'
Buy
now'
payment_success
:
'
Payment
success'
payment_success
:
'
Payment
success'
back
:
'
Back'
back
:
'
Back'
time
:
'
Time(s)'
dialogue_module
:
dialogue_module
:
continue_question_message
:
'
You
can
keep
asking
questions'
continue_question_message
:
'
You
can
keep
asking
questions'
...
...
src/locales/langs/zh-cn.yaml
View file @
c5c260d7
...
@@ -126,6 +126,7 @@ common_module:
...
@@ -126,6 +126,7 @@ common_module:
buy_now
:
'
立即购买'
buy_now
:
'
立即购买'
payment_success
:
'
支付成功'
payment_success
:
'
支付成功'
back
:
'
返回'
back
:
'
返回'
time
:
'
次'
dialogue_module
:
dialogue_module
:
continue_question_message
:
'
你可以继续提问'
continue_question_message
:
'
你可以继续提问'
...
...
src/locales/langs/zh-hk.yaml
View file @
c5c260d7
...
@@ -126,6 +126,7 @@ common_module:
...
@@ -126,6 +126,7 @@ common_module:
buy_now
:
'
立即購買'
buy_now
:
'
立即購買'
payment_success
:
'
支付成功'
payment_success
:
'
支付成功'
back
:
'
返回'
back
:
'
返回'
time
:
'
次'
dialogue_module
:
dialogue_module
:
continue_question_message
:
'
你可以繼續提問'
continue_question_message
:
'
你可以繼續提問'
...
...
src/views/equity/equity.vue
View file @
c5c260d7
...
@@ -20,6 +20,11 @@ const equityInfo = computed(() => {
...
@@ -20,6 +20,11 @@ const equityInfo = computed(() => {
return
userStore
.
equityInfo
return
userStore
.
equityInfo
})
})
/* created */
;(
function
()
{
userStore
.
fetchUpdateEquityInfo
()
})()
function
handlePointRecharge
()
{
function
handlePointRecharge
()
{
currentSelectVersion
.
value
=
null
currentSelectVersion
.
value
=
null
...
...
src/views/home/components/footer-operation.vue
View file @
c5c260d7
...
@@ -6,6 +6,7 @@ import { nanoid } from 'nanoid'
...
@@ -6,6 +6,7 @@ import { nanoid } from 'nanoid'
import
fetchEventStreamSource
from
'../utils/fetch-event-stream-source'
import
fetchEventStreamSource
from
'../utils/fetch-event-stream-source'
import
{
throttle
}
from
'lodash-es'
import
{
throttle
}
from
'lodash-es'
import
{
useI18n
}
from
'vue-i18n'
import
{
useI18n
}
from
'vue-i18n'
import
{
useUserStore
}
from
'@/store/modules/user'
interface
Props
{
interface
Props
{
currentSessionId
:
string
currentSessionId
:
string
...
@@ -32,6 +33,7 @@ const currentFetchEventSourceController = defineModel<AbortController | null>('c
...
@@ -32,6 +33,7 @@ const currentFetchEventSourceController = defineModel<AbortController | null>('c
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
inputFileRef
=
useTemplateRef
<
HTMLInputElement
|
null
>
(
'inputFileRef'
)
const
inputFileRef
=
useTemplateRef
<
HTMLInputElement
|
null
>
(
'inputFileRef'
)
const
userStore
=
useUserStore
()
let
fileUploadController
=
shallowRef
<
AbortController
|
null
>
(
null
)
let
fileUploadController
=
shallowRef
<
AbortController
|
null
>
(
null
)
...
@@ -189,6 +191,8 @@ function questionSubmit() {
...
@@ -189,6 +191,8 @@ function questionSubmit() {
nextTick
(()
=>
{
nextTick
(()
=>
{
emit
(
'historyRecordListUpdate'
)
emit
(
'historyRecordListUpdate'
)
userStore
.
fetchUpdateEquityInfo
()
})
})
},
},
onerror
:
(
err
)
=>
{
onerror
:
(
err
)
=>
{
...
@@ -339,7 +343,7 @@ defineExpose({
...
@@ -339,7 +343,7 @@ defineExpose({
<Transition
name=
"application-select-menu"
>
<Transition
name=
"application-select-menu"
>
<ul
<ul
v-show=
"isShowApplicationSelectMenu"
v-show=
"isShowApplicationSelectMenu"
class=
"absolute -top-[10px] left-
1/2 w-[200px] -translate-x-1/2
-translate-y-full rounded-[6px] bg-[#fff] p-[10px] pb-[4px] pr-0 shadow-md"
class=
"absolute -top-[10px] left-
0 w-[240px]
-translate-y-full rounded-[6px] bg-[#fff] p-[10px] pb-[4px] pr-0 shadow-md"
>
>
<n-virtual-list
<n-virtual-list
style=
"max-height: 200px"
style=
"max-height: 200px"
...
@@ -350,7 +354,7 @@ defineExpose({
...
@@ -350,7 +354,7 @@ defineExpose({
>
>
<template
#
default=
"
{ item }">
<template
#
default=
"
{ item }">
<li
<li
class=
"relative mb-[6px] flex cursor-pointer items-center overflow-hidden rounded-[4px] bg-[#f3f3f5] p
x-[10px] py-[4
px] transition hover:bg-[#E7E7E7]"
class=
"relative mb-[6px] flex cursor-pointer items-center overflow-hidden rounded-[4px] bg-[#f3f3f5] p
y-[4px] pl-[10px] pr-[16
px] transition hover:bg-[#E7E7E7]"
@
click=
"handleApplicationChange(item)"
@
click=
"handleApplicationChange(item)"
>
>
<div
<div
...
@@ -363,6 +367,12 @@ defineExpose({
...
@@ -363,6 +367,12 @@ defineExpose({
{{
item
.
agentTitle
}}
{{
item
.
agentTitle
}}
</n-ellipsis>
</n-ellipsis>
</div>
</div>
<div
class=
"pl-[8px] text-[12px] text-[#0B7DFF]"
>
<template
v-if=
"item.points && item.points !== 0"
>
{{
item
.
points
}}{{
t
(
'equity_module.points2'
)
}}
/
{{
t
(
'common_module.time'
)
}}
</
template
>
<
template
v-else-if=
"item.points && item.points === 0"
>
{{
t
(
'common_module.free'
)
}}
</
template
>
</div>
<i
<i
v-if=
"item.agentId === currentAgentApplication.agentId"
v-if=
"item.agentId === currentAgentApplication.agentId"
...
...
src/views/home/types.d.ts
View file @
c5c260d7
...
@@ -5,6 +5,7 @@ export interface AgentApplicationRecordItem {
...
@@ -5,6 +5,7 @@ export interface AgentApplicationRecordItem {
agentDesc
:
string
agentDesc
:
string
creator
:
string
creator
:
string
publishedTime
:
string
publishedTime
:
string
points
:
number
}
}
export
interface
MessageItemInterface
{
export
interface
MessageItemInterface
{
...
...
src/views/login/login.vue
View file @
c5c260d7
...
@@ -160,7 +160,7 @@ function onCountdownFinish() {
...
@@ -160,7 +160,7 @@ function onCountdownFinish() {
function
getInputPhoneNumber
()
{
function
getInputPhoneNumber
()
{
return
currentPhoneNumberArea
.
value
!==
'+86'
return
currentPhoneNumberArea
.
value
!==
'+86'
?
`
${
currentPhoneNumberArea
.
value
}${
smsLoginForm
.
value
.
phoneNumber
}
`
?
encodeURIComponent
(
`
${
currentPhoneNumberArea
.
value
}${
smsLoginForm
.
value
.
phoneNumber
}
`
)
:
smsLoginForm
.
value
.
phoneNumber
:
smsLoginForm
.
value
.
phoneNumber
}
}
...
@@ -195,7 +195,7 @@ function handleLoginSubmit(method: LoginMethod) {
...
@@ -195,7 +195,7 @@ function handleLoginSubmit(method: LoginMethod) {
payload
=
{
payload
=
{
loginChannel
:
'MEMBER_PLATFOMR_SMS'
,
loginChannel
:
'MEMBER_PLATFOMR_SMS'
,
account
:
getInputPhoneNumber
()
,
account
:
smsLoginForm
.
value
.
phoneNumber
,
authCode
:
smsLoginForm
.
value
.
code
,
authCode
:
smsLoginForm
.
value
.
code
,
}
}
...
...
src/views/personal-space/personal-app/personal-app.vue
View file @
c5c260d7
...
@@ -4,7 +4,6 @@ import { useI18n } from 'vue-i18n'
...
@@ -4,7 +4,6 @@ import { useI18n } from 'vue-i18n'
import
{
Search
,
MoreOne
,
Star
}
from
'@icon-park/vue-next'
import
{
Search
,
MoreOne
,
Star
}
from
'@icon-park/vue-next'
import
{
PaginationInfo
}
from
'@/components/custom-pagination/custom-pagination.vue'
import
{
PaginationInfo
}
from
'@/components/custom-pagination/custom-pagination.vue'
import
{
formatDateTime
}
from
'@/utils/date-formatter'
import
{
formatDateTime
}
from
'@/utils/date-formatter'
import
{
import
{
fetchApplicationsCollectionStatusChange
,
fetchApplicationsCollectionStatusChange
,
fetchDeleteApplication
,
fetchDeleteApplication
,
...
@@ -18,10 +17,12 @@ import { defaultPersonalAppConfigState } from '@/store/modules/personal-app-conf
...
@@ -18,10 +17,12 @@ import { defaultPersonalAppConfigState } from '@/store/modules/personal-app-conf
import
searchEmptyImage
from
'@/assets/images/search-empty.png'
import
searchEmptyImage
from
'@/assets/images/search-empty.png'
import
applicationEmptyImage
from
'@/assets/images/application-empty.png'
import
applicationEmptyImage
from
'@/assets/images/application-empty.png'
import
{
debounce
}
from
'lodash-es'
import
{
debounce
}
from
'lodash-es'
import
{
useUserStore
}
from
'@/store/modules/user'
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
cardContentWrapRef
=
useTemplateRef
<
HTMLDivElement
>
(
'cardContentWrapRef'
)
const
cardContentWrapRef
=
useTemplateRef
<
HTMLDivElement
>
(
'cardContentWrapRef'
)
const
userStore
=
useUserStore
()
const
selectedPublishStatusValue
=
ref
(
''
)
const
selectedPublishStatusValue
=
ref
(
''
)
const
isShowSaleApplicationsConfigurationModal
=
ref
(
false
)
const
isShowSaleApplicationsConfigurationModal
=
ref
(
false
)
...
@@ -144,6 +145,8 @@ function handleDeletePersonalApp(agentId: string) {
...
@@ -144,6 +145,8 @@ function handleDeletePersonalApp(agentId: string) {
window
.
$message
.
success
(
t
(
'common_module.delete_success_message'
))
window
.
$message
.
success
(
t
(
'common_module.delete_success_message'
))
agentAppList
.
value
.
length
===
1
&&
(
pagingInfo
.
value
.
pageNo
=
pagingInfo
.
value
.
pageNo
-
1
)
agentAppList
.
value
.
length
===
1
&&
(
pagingInfo
.
value
.
pageNo
=
pagingInfo
.
value
.
pageNo
-
1
)
getApplicationList
()
getApplicationList
()
userStore
.
fetchUpdateEquityInfo
()
})
})
})
})
}
}
...
...
types/locales.d.ts
View file @
c5c260d7
...
@@ -126,6 +126,7 @@ declare namespace I18n {
...
@@ -126,6 +126,7 @@ declare namespace I18n {
buy_now
:
string
buy_now
:
string
payment_success
:
string
payment_success
:
string
back
:
string
back
:
string
time
:
string
dialogue_module
:
{
dialogue_module
:
{
continue_question_message
:
string
continue_question_message
:
string
...
...
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