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
afc665e8
Commit
afc665e8
authored
Jun 04, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付成功
parent
a6034547
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
1 deletion
+135
-1
vipgr.png
src/assets/img/vipgr.png
+0
-0
vipjt.png
src/assets/img/vipjt.png
+0
-0
router.ts
src/router/router.ts
+1
-1
Index.vue
src/views/Index.vue
+2
-0
Review.vue
src/views/components/Order/Review.vue
+6
-0
success.vue
src/views/components/Order/success.vue
+126
-0
No files found.
src/assets/img/vipgr.png
0 → 100644
View file @
afc665e8
100 KB
src/assets/img/vipjt.png
0 → 100644
View file @
afc665e8
91.5 KB
src/router/router.ts
View file @
afc665e8
...
@@ -24,7 +24,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -24,7 +24,7 @@ const routes: RouteRecordRaw[] = [
}
}
},
},
{
{
path
:
'/space/:current(
\\
d+)?'
,
path
:
'/space/:current(
\\
d+)?
/:firm(
\\
d+)?
'
,
component
:
()
=>
import
(
'@/views/SellTemplate/Workspace.vue'
),
component
:
()
=>
import
(
'@/views/SellTemplate/Workspace.vue'
),
meta
:{
meta
:{
title
:
'个人空间'
title
:
'个人空间'
...
...
src/views/Index.vue
View file @
afc665e8
...
@@ -270,6 +270,8 @@ const redicetTo = (path:string)=>{
...
@@ -270,6 +270,8 @@ const redicetTo = (path:string)=>{
path
path
})
})
}
}
if
(
router
.
currentRoute
.
value
.
params
.
firm
&&
router
.
currentRoute
.
value
.
params
.
firm
==
1
)
createEnterpriseHandler
()
</
script
>
</
script
>
<
style
>
<
style
>
...
...
src/views/components/Order/Review.vue
View file @
afc665e8
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<Success
v-if=
"dialogVisible"
:PayDatas=
"PaySuccessDatas"
@
close=
"dialogVisible=false,close()"
></Success>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -85,6 +86,7 @@ import { useUserStore } from '@/store'
...
@@ -85,6 +86,7 @@ import { useUserStore } from '@/store'
import
{
openNewBlank
,
query
}
from
'@/utils/common'
import
{
openNewBlank
,
query
}
from
'@/utils/common'
import
{
storeToRefs
}
from
'pinia'
import
{
storeToRefs
}
from
'pinia'
import
{
ref
,
PropType
,
onMounted
}
from
'vue'
import
{
ref
,
PropType
,
onMounted
}
from
'vue'
import
Success
from
'./success.vue'
const
props
=
defineProps
({
const
props
=
defineProps
({
defaultType
:
{
defaultType
:
{
...
@@ -119,7 +121,9 @@ const OrderReviewRef = ref()
...
@@ -119,7 +121,9 @@ const OrderReviewRef = ref()
const
orderNum
=
ref
(
''
)
const
orderNum
=
ref
(
''
)
const
queryTimer
=
ref
<
any
>
(
null
)
const
queryTimer
=
ref
<
any
>
(
null
)
const
currentPayStatus
=
ref
(
0
)
const
currentPayStatus
=
ref
(
0
)
const
PaySuccessDatas
=
ref
({}
as
any
)
const
countValue
=
ref
(
Date
.
now
()
+
1000
*
60
*
30
)
const
countValue
=
ref
(
Date
.
now
()
+
1000
*
60
*
30
)
const
dialogVisible
=
ref
(
false
)
if
(
userInfo
.
value
.
it
)
activeVersion
.
value
=
2
if
(
userInfo
.
value
.
it
)
activeVersion
.
value
=
2
...
@@ -171,6 +175,8 @@ const getOrderStatus = async ()=>{
...
@@ -171,6 +175,8 @@ const getOrderStatus = async ()=>{
const
response
=
await
OrderService
.
GetOrderPayStatusAsync
(
orderNum
.
value
)
const
response
=
await
OrderService
.
GetOrderPayStatusAsync
(
orderNum
.
value
)
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
currentPayStatus
.
value
=
parseInt
(
response
.
data
.
message
)
currentPayStatus
.
value
=
parseInt
(
response
.
data
.
message
)
PaySuccessDatas
.
value
=
response
.
data
.
data
dialogVisible
.
value
=
true
}
else
{
}
else
{
stopTimerHandler
()
stopTimerHandler
()
}
}
...
...
src/views/components/Order/success.vue
0 → 100644
View file @
afc665e8
<
template
>
<div
class=
"OrderSuccess-form"
>
<div
class=
"OrderSuccess-bj"
></div>
<div
class=
"OrderSuccess-c row flex-center items-center cusor-pointer"
@
click=
"goUrl"
>
<div
class=
"OrderSuccess-center text-center"
:class=
"[props.PayDatas.VipType==2?'active':'']"
>
<div
class=
"OrderSuccess-title"
>
<template
v-if=
"props.PayDatas.OrderType==1"
>
恭喜您成功购买
</
template
>
<
template
v-else-if=
"props.PayDatas.OrderType==2"
>
恭喜您续费成功
</
template
>
<
template
v-else-if=
"props.PayDatas.OrderType==3"
>
恭喜您升级成功
</
template
>
</div>
<div
class=
"OrderSuccess-type row flex-between"
>
<div
class=
"OrderSuccess-lin"
>
<div></div>
</div>
<div
class=
"OrderSuccess-hy"
>
<span>
{{props.PayDatas.VipType==2?'企业会员':'个人会员'}}
</span>
</div>
<div
class=
"OrderSuccess-lin"
>
<div></div>
</div>
</div>
<div
class=
"OrderSuccess-time"
>
有效期 {{props.PayDatas.ActiveDate.replace(/-/g, '.')}}-{{props.PayDatas.ExpiredDate.replace(/-/g, '.')}}
</div>
</div>
</div>
</div>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
onMounted
}
from
'vue'
import
{
useRouter
}
from
'vue-router'
;
const
props
=
defineProps
({
PayDatas
:
{}
as
any
})
const
emit
=
defineEmits
<
{
(
event
:
'close'
):
void
}
>
()
const
router
=
useRouter
();
const
goUrl
=
()
=>
{
emit
(
'close'
)
if
(
props
.
PayDatas
.
VipType
==
2
&&
props
.
PayDatas
.
OrderType
==
1
){
router
.
push
({
path
:
`/space/0/1`
})
}
else
{
router
.
push
({
path
:
`/space`
})
}
}
</
script
>
<
style
scoped
>
.OrderSuccess-form
,
.OrderSuccess-bj
{
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
z-index
:
10
;
}
.OrderSuccess-bj
{
background
:
#000
;
opacity
:
0.6
;
z-index
:
11
;
}
.OrderSuccess-c
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
z-index
:
12
;
}
.OrderSuccess-center
{
width
:
477px
;
height
:
391px
;
background
:
url('../../../assets/img/vipgr.png')
no-repeat
;
background-size
:
100%
100%
;
z-index
:
12
;
padding-right
:
17px
;
}
.OrderSuccess-title
{
font-family
:
HYYuanLongHei
;
font-weight
:
bold
;
font-size
:
24px
;
color
:
#000000
;
padding
:
162px
0
5px
0
;
}
.OrderSuccess-type
{
padding
:
0
137px
;
}
.OrderSuccess-lin
div
{
width
:
23px
;
height
:
2px
;
background
:
#B8B8F7
;
border-radius
:
1px
;
border
:
0px
solid
#000000
;
position
:
relative
;
top
:
22px
;
}
.OrderSuccess-hy
{
font-family
:
HYYuanLongHei
;
font-weight
:
bold
;
font-size
:
30px
;
color
:
#115EFC
;
}
.OrderSuccess-time
{
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
14px
;
color
:
#8B94CD
;
padding-top
:
15px
;
}
.OrderSuccess-center.active
{
background
:
url('../../../assets/img/vipjt.png')
no-repeat
;
background-size
:
100%
100%
;
}
.OrderSuccess-center.active
.OrderSuccess-hy
{
color
:
#641CF7
;
}
</
style
>
\ No newline at end of file
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