Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
232f2b43
Commit
232f2b43
authored
Jul 10, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉报名成功的返回按钮
parent
64700137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
29 deletions
+60
-29
mobileTop.vue
src/components/mobile/mobileTop.vue
+59
-28
applysuccess.vue
src/views/mobile/activityApply/applysuccess.vue
+1
-1
No files found.
src/components/mobile/mobileTop.vue
View file @
232f2b43
...
...
@@ -58,7 +58,7 @@
}],
keyword
:
null
,
currentIndex
:
this
.
publicFun
.
getCookie
(
"mobileIndex"
)
?
this
.
publicFun
.
getCookie
(
"mobileIndex"
)
:
-
1
,
isReturn
:
false
,
isReturn
:
false
,
}
},
methods
:
{
...
...
@@ -114,12 +114,12 @@
//获取用户信息
getUserInfoFunc
(
flag
)
{
if
(
this
.
$route
.
name
.
indexOf
(
"index"
)
==-
1
&&
this
.
$route
.
name
.
indexOf
(
"Index"
)
==-
1
)
{
if
(
this
.
$route
.
name
==
'subjectList'
||
this
.
$route
.
name
==
'duijietabconnect'
||
this
.
$route
.
name
==
'activitylist'
||
this
.
$route
.
name
==
'mine'
)
this
.
isReturn
=
false
;
if
(
this
.
$route
.
name
.
indexOf
(
"index"
)
==
-
1
&&
this
.
$route
.
name
.
indexOf
(
"Index"
)
==
-
1
)
{
if
(
this
.
$route
.
name
==
'subjectList'
||
this
.
$route
.
name
==
'duijietabconnect'
||
this
.
$route
.
name
==
'activitylist'
||
this
.
$route
.
name
==
'mine'
)
this
.
isReturn
=
false
;
else
this
.
isReturn
=
true
;
}
else
this
.
isReturn
=
false
;
}
else
this
.
isReturn
=
false
;
if
(
flag
)
{
this
.
userInfo
=
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
))):
null
;
this
.
userInfo
=
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
:
null
;
}
},
...
...
@@ -159,38 +159,69 @@
},
//返回是否显示
isShowReturn
(){
isShowReturn
()
{
},
handleReturn
(){
if
(
this
.
$route
.
query
.
isApply
==
0
&&
(
this
.
$route
.
query
.
isIndex
==
false
||!
this
.
$route
.
query
.
isIndex
)){
this
.
$router
.
go
(
-
1
)
}
else
if
(
this
.
$route
.
query
.
isApply
==
1
||
this
.
$route
.
query
.
isList
){
this
.
$router
.
push
(
"/activitylist"
)
}
else
if
(
this
.
$route
.
query
.
isApply
==
3
){
this
.
$router
.
push
({
path
:
"/myjoin"
})
}
else
{
handleReturn
()
{
if
(
this
.
$route
.
name
==
"activityapplySuccess"
)
{
if
(
this
.
$route
.
query
.
isIndex
==
true
)
{
this
.
$router
.
push
({
path
:
"/index"
})
}
else
if
(
this
.
$route
.
query
.
isList
==
true
)
{
this
.
$router
.
push
({
path
:
"/activitylist"
})
}
else
if
(
this
.
$route
.
query
.
isDetail
==
true
)
{
this
.
$router
.
push
({
path
:
"/activitydetail"
,
query
:
{
type
:
this
.
$route
.
query
.
type
,
id
:
this
.
$route
.
query
.
id
,
isDetail
:
true
}
})
}
else
if
(
this
.
$route
.
query
.
isApply
>=
0
)
{
this
.
$router
.
push
({
path
:
"/activitydetail"
,
query
:
{
page
:
this
.
$route
.
query
.
page
,
id
:
this
.
$route
.
query
.
id
,
isDetail
:
true
,
isApply
:
this
.
$route
.
query
.
isApply
?
this
.
$route
.
query
.
isApply
:
0
,
key
:
this
.
$route
.
query
.
key
,
type
:
this
.
$route
.
query
.
type
}
})
}
else
{
this
.
$router
.
go
(
-
1
);
}
}
else
{
if
(
this
.
$route
.
query
.
isApply
==
0
&&
(
this
.
$route
.
query
.
isIndex
==
false
||
!
this
.
$route
.
query
.
isIndex
))
{
this
.
$router
.
go
(
-
1
)
}
else
if
(
this
.
$route
.
query
.
isApply
==
1
||
this
.
$route
.
query
.
isList
)
{
this
.
$router
.
push
(
"/activitylist"
)
}
else
if
(
this
.
$route
.
query
.
isApply
==
3
)
{
this
.
$router
.
push
({
path
:
"/myjoin"
})
}
else
{
if
(
this
.
$route
.
name
==
"activityMyJoin"
){
this
.
$router
.
push
({
path
:
"/mine"
})
}
else
{
if
(
this
.
$route
.
query
.
isApply
==
0
&&
this
.
$route
.
query
.
isIndex
==
true
){
this
.
$router
.
replace
({
path
:
"/index"
})
}
else
{
this
.
$router
.
go
(
-
1
)
if
(
this
.
$route
.
name
==
"activityMyJoin"
)
{
this
.
$router
.
push
({
path
:
"/mine"
})
}
else
{
if
(
this
.
$route
.
query
.
isApply
==
0
&&
this
.
$route
.
query
.
isIndex
==
true
)
{
this
.
$router
.
replace
({
path
:
"/index"
})
}
else
{
this
.
$router
.
go
(
-
1
)
}
}
}
}
},
handleToIndex
(){
handleToIndex
()
{
this
.
$router
.
push
(
"/index"
);
this
.
publicFun
.
setOtherCookie
(
"selected"
,
"index"
);
globalMsg
.
$emit
(
"sendSelected"
,
"index"
);
this
.
publicFun
.
setOtherCookie
(
"selected"
,
"index"
);
globalMsg
.
$emit
(
"sendSelected"
,
"index"
);
}
},
...
...
@@ -200,7 +231,7 @@
globalMsg
.
$on
(
"getUserInfo"
,
()
=>
{
this
.
getUserInfoFunc
(
1
);
});
globalMsg
.
$on
(
"isReturnVal"
,
(
data
)
=>
{
globalMsg
.
$on
(
"isReturnVal"
,
(
data
)
=>
{
that
.
isReturn
=
data
;
})
},
...
...
src/views/mobile/activityApply/applysuccess.vue
View file @
232f2b43
...
...
@@ -19,7 +19,7 @@
</div>
<div
class=
"successButton"
>
<
el-button
type=
"default"
@
click=
"handleReturn"
>
{{
$t
(
"workPlace.goreturn"
)
}}
</el-button
>
<
!--
<el-button
type=
"default"
@
click=
"handleReturn"
>
{{
$t
(
"workPlace.goreturn"
)
}}
</el-button>
--
>
<el-button
type=
"primary"
@
click=
"handleShare"
>
{{
$t
(
"activityInfo.shareButton"
)
}}
</el-button>
</div>
...
...
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