Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
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
viitto
pptist
Commits
298188ae
Commit
298188ae
authored
May 28, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行程 设计数量
parent
67aa87a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
7 deletions
+38
-7
UserService.ts
src/services/UserService.ts
+5
-0
Index.vue
src/views/TeamCenter/Index.vue
+21
-3
Index.vue
src/views/UserCenter/Index.vue
+12
-4
No files found.
src/services/UserService.ts
View file @
298188ae
...
...
@@ -3,6 +3,11 @@ import Api, { HttpResponse, Result } from './../utils/request';
class
UserServices
{
static
async
getPPTGroupStatic
():
Promise
<
HttpResponse
>
{
let
msg
=
{}
return
Api
.
Post
(
"travel_PPTGroupStatic"
,
msg
)
}
static
async
getPPTUserStatic
():
Promise
<
HttpResponse
>
{
let
msg
=
{}
return
Api
.
Post
(
"travel_PPTUserStatic"
,
msg
)
...
...
src/views/TeamCenter/Index.vue
View file @
298188ae
...
...
@@ -24,8 +24,8 @@
</div>
<div
style=
"font-size: 14px;"
class=
"row items-center q-mt-lg"
>
<span
class=
"text-grey-8"
>
当前已创建:
</span>
<span
class=
"text-dark q-ml-md cursor-pointer"
>
1
个行程
</span>
<
IconRight
:size=
"20"
></IconRight
>
<span
class=
"text-dark q-ml-md cursor-pointer"
@
click=
"goSpace"
>
{{
TravelDesign
.
tripCount
}}
个行程
</span>
<
!--
<IconRight
:size=
"20"
></IconRight>
--
>
<div
class=
"col"
></div>
<span
class=
"text-grey-8"
>
还可创建:
</span>
<span
class=
"text-dark q-ml-md"
>
0个行程
</span>
...
...
@@ -58,7 +58,7 @@
<el-button
type=
"info"
class=
"normal"
>
会员尊享10G空间
</el-button>
</div>
<div
style=
"font-size: 14px;"
class=
"q-mt-xl"
>
<el-progress
:percentage=
"
50
"
/>
<el-progress
:percentage=
"
TravelDesign.storagePercent
"
/>
</div>
</el-card>
<el-card
class=
"user-card q-mx-lg"
shadow=
"never"
>
...
...
@@ -113,6 +113,8 @@ import { useUserStore } from "@/store";
import
{
storeToRefs
}
from
"pinia"
;
import
{
ref
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
ApiResult
}
from
"@/configs/axios"
;
import
UserServices
from
"@/services/UserService"
;
const
useUser
=
useUserStore
()
const
{
userInfo
}
=
storeToRefs
(
useUser
)
...
...
@@ -120,10 +122,26 @@ const userTheme = useUser.getUserTheme
const
vipTheme
=
VIP_USER_THEME
const
enTheme
=
ENT_USER_THEME
const
router
=
useRouter
()
const
TravelDesign
=
ref
({}
as
any
)
const
goSpace
=
()
=>
{
return
router
.
push
({
path
:
`/space/3`
})
}
const
getDataStatistics
=
async
()
=>
{
const
response
=
await
UserServices
.
getPPTGroupStatic
();
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
TravelDesign
.
value
=
response
.
data
.
data
}
}
const
rediceTo
=
(
path
:
string
)
=>
{
router
.
push
({
path
})
}
getDataStatistics
()
</
script
>
<
style
scoped
>
...
...
src/views/UserCenter/Index.vue
View file @
298188ae
...
...
@@ -3,7 +3,7 @@
<el-avatar
:size=
"64"
:src=
"userInfo.photo"
shape=
"square"
:style=
"
{ BackgroundColor: userTheme?.color }" style="font-size: 36px;font-weight: bold;">
</el-avatar>
<div
class=
"q-ml-lg text-white col"
>
<div
class=
""
style=
"font-size: 20px;"
>
{{
userInfo
.
nickname
}}
</div>
<
div
class=
"q-mt-sm text-info"
>
个人账号ID:
{{
userInfo
.
cardno
??
'8027970449819221090'
}}
</div
>
<
!--
<div
class=
"q-mt-sm text-info"
>
个人账号ID:
{{
userInfo
.
cardno
??
'8027970449819221090'
}}
</div>
--
>
</div>
<div
class=
"text-white"
>
{{
userTheme
?.
desc
}}
</div>
<div
:style=
"
{'background':vipTheme.color}" v-if="userTheme?.name=='FREE'" @click="()=>orderVisible=true" class="text-white pingfangr q-ml-lg rounded cusor-pointer q-py-md q-px-lg no-select">解锁专业版
</div>
...
...
@@ -24,7 +24,7 @@
</div>
<div
style=
"font-size: 14px;"
class=
"row items-center q-mt-lg"
>
<span
class=
"text-grey-8"
>
当前已创建:
</span>
<span
class=
"text-dark q-ml-md cursor-pointer"
>
1
个行程
</span>
<span
class=
"text-dark q-ml-md cursor-pointer"
@
click=
"goSpace"
>
{{
TravelDesign
.
tripCount
}}
个行程
</span>
<IconRight
:size=
"20"
></IconRight>
<div
class=
"col"
></div>
<span
class=
"text-grey-8"
>
还可创建:
</span>
...
...
@@ -58,7 +58,7 @@
<el-button
type=
"info"
class=
"normal"
>
会员尊享10G空间
</el-button>
</div>
<div
style=
"font-size: 14px;"
class=
"q-mt-xl"
>
<el-progress
:percentage=
"
50
"
/>
<el-progress
:percentage=
"
TravelDesign.storagePercent
"
/>
</div>
</el-card>
<el-card
class=
"user-card q-mx-lg"
shadow=
"never"
>
...
...
@@ -112,6 +112,7 @@ import { ENT_USER_THEME, VIP_USER_THEME } from "@/configs/customer";
import
{
useUserStore
}
from
"@/store"
;
import
{
storeToRefs
}
from
"pinia"
;
import
{
ref
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
ApiResult
}
from
"@/configs/axios"
;
import
OrderReview
from
'@/views/components/Order/Review.vue'
import
UserServices
from
"@/services/UserService"
;
...
...
@@ -122,11 +123,18 @@ const userTheme = useUser.getUserTheme
const
orderVisible
=
ref
(
false
)
const
vipTheme
=
VIP_USER_THEME
const
enTheme
=
ENT_USER_THEME
const
TravelDesign
=
ref
({}
as
any
)
const
router
=
useRouter
();
const
goSpace
=
()
=>
{
router
.
push
({
path
:
`/space/3`
})
}
const
getDataStatistics
=
async
()
=>
{
const
response
=
await
UserServices
.
getPPTUserStatic
();
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
console
.
log
(
response
.
data
.
data
,
'-------'
)
TravelDesign
.
value
=
response
.
data
.
data
}
}
...
...
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