Commit 232f2b43 authored by zhangyanni's avatar zhangyanni

去掉报名成功的返回按钮

parent 64700137
......@@ -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;
})
},
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment