Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
71f449a1
authored
Sep 01, 2022
by
陆志强
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into 'dev'
Publisher 自动合并请求 [5JQnVY6IgMY__UHm8RmAf] See merge request
!104
parents
3667326e
d06ecaad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
components/Submit/SubmitForm.vue
+1
-1
components/Success/SuccessIndex.vue
+19
-2
pages/Index/index.vue
+1
-1
No files found.
components/Submit/SubmitForm.vue
View file @
71f449a1
...
...
@@ -653,7 +653,7 @@ export default {
path
:
'/success'
,
query
:
{
uin
:
this
.
$route
.
query
.
uin
,
id
:
this
.
$route
.
query
.
i
d
,
id
:
this
.
$route
.
query
.
tempI
d
,
backUrl
:
this
.
$route
.
query
.
backUrl
,
},
})
...
...
components/Success/SuccessIndex.vue
View file @
71f449a1
...
...
@@ -10,9 +10,9 @@
</div>
<div
class=
"index-button"
>
<van-button
class=
"index-button__submit"
@
click=
"backLive"
>
返回直播间
</van-button
>
{{
translateBackBtn
}}
</van-button
>
<div
class=
"index-button__confirm"
>
<div
v-if=
"$route.query.backUrl"
class=
"index-button__confirm"
>
<div
class=
"argument"
>
<a
href=
"javascript:;"
>
{{
count
}}
s
</a>
后自动返回直播间
</div>
...
...
@@ -29,6 +29,15 @@ export default {
count
:
4
,
}
},
computed
:
{
translateBackBtn
()
{
if
(
this
.
$route
.
query
.
backUrl
)
{
return
'返回直播间'
}
else
{
return
'继续投递'
}
}
},
mounted
()
{
const
timer
=
setInterval
(()
=>
{
if
(
this
.
count
>=
2
)
{
...
...
@@ -45,6 +54,14 @@ export default {
backLive
()
{
if
(
this
.
$route
.
query
.
backUrl
)
{
window
.
location
.
replace
(
decodeURIComponent
(
this
.
$route
.
query
.
backUrl
))
}
else
{
this
.
$router
.
replace
({
path
:
'/index'
,
query
:
{
uin
:
this
.
$route
.
query
.
uin
,
id
:
this
.
$route
.
query
.
id
,
},
})
}
},
},
...
...
pages/Index/index.vue
View file @
71f449a1
...
...
@@ -134,7 +134,7 @@ export default {
if
(
window
.
self
===
window
.
top
)
{
if
(
this
.
token
)
{
this
.
$router
.
replace
({
path
:
'/
detail
'
,
path
:
'/
submit
'
,
query
:
{
uin
:
this
.
$route
.
query
.
uin
,
id
:
submitId
,
...
...
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