Commit 6ba22abd authored by zhangyanni's avatar zhangyanni

跳转

parent 7610a392
......@@ -607,7 +607,7 @@ module.exports = {
congruationYou:"Congratulations",
pcCongruationTitle:"You have obtained a TechBook VIP membership. Please verify your account and get your 6 month VIP membership. For more details on your membership, please click on ",
vipTitle:" “Membership features”.",
phoneCongruationTitle:"You have obtained a TechBook VIP membership. Please verify your account and get your 6 month VIP membership.",
phoneCongruationTitle:"You have received 6 months of Techbook VIP membership.",
goVerify:"Verify",
goShip:"Home",
searchOne:"请输入关键字检索",
......
......@@ -606,7 +606,7 @@ module.exports = {
pcCongruationTitle:"您已获得TechBook VIP会员福利,赶紧去完成认证,领取6个月VIP会员使用权,详细权益请点击",
vipTitle:"“会员权益”",
vipLookTitle:"查看",
phoneCongruationTitle:"您已获得TechBook VIP会员福利,赶紧去完成认证,领取6个月VIP会员使用权。",
phoneCongruationTitle:"您已获得TechBook 6个月VIP会员使用权。",
goVerify:"去认证",
goShip:"再逛逛",
searchOne:"请输入关键字检索",
......
......@@ -234,6 +234,14 @@ export default {
deleteTransAxios(params){
return api.fetchPost(baseUrl+"/trans/deleteRedisCache",params);
}
},
//是否已发布项目
selectProjected (params){
return api.fetchLoadingPost(baseUrl+"/project/selectMyProjects",params);
},
}
\ No newline at end of file
......@@ -20,8 +20,8 @@
<p>{{$t("commonTitle.phoneCongruationTitle")}}</p>
</div>
<div class="successButton" v-if="registerVisible">
<el-button type="primary" @click="handleToIndex(3)">{{$t("mobile.alreadyAuth")}}</el-button>
<el-button type="primary" @click="handleToIndex(4)">{{$t("mobile.goLogin")}}</el-button>
<!--<el-button type="primary" @click="handleToIndex(3)">{{$t("mobile.alreadyAuth")}}</el-button>-->
<el-button type="primary" @click="handleToIndex(4)">{{$t("commonTips.alreadyLogin")}}</el-button>
</div>
<div class="searchWrap" v-if="loginVisible||authVisible">
<p>{{$t("mobile.searchTitle")}}</p>
......
......@@ -144,18 +144,36 @@
handleToDetail(data){
if(this.userInfo.authenticationState!=2){
MessageBox({
title: "",
message: this.$t("commonTitle.notAuthTitle"),
showCancelButton: true,
confirmButtonText:this.$t("register.auth"),
cancelButtonText:this.$t("commonTips.cancel")
}).then(action=>{
if(action=='confirm'){
this.$router.push("/mobileAddAuth")
}
// MessageBox({
// title: "",
// message: this.$t("commonTitle.notAuthTitle"),
// showCancelButton: true,
// confirmButtonText:this.$t("register.auth"),
// cancelButtonText:this.$t("commonTips.cancel")
// }).then(action=>{
// if(action=='confirm'){
// this.$router.push("/mobileAddAuth")
// }
//
// });
if(this.userInfo.empType==1){
this.$router.push("/reminder")
}
else if(this.userInfo.empType==0){
MessageBox({
title: "",
message: this.$t("emptyDataTitle.noProjectTitle"),
showCancelButton: true,
confirmButtonText:this.$t("listproject.gorelease"),
cancelButtonText:this.$t("commonTips.cancel")
}).then(action=>{
if(action=='confirm'){
this.$router.push("/projectrelease")
}
});
}
});
}else{
this.$router.push({path:"/phoneRequireDetail",query:{id:data.detailId}})
}
......
......@@ -55,7 +55,7 @@
</p>
</div>
<div class="buttonWrap">
<el-button type="primary" @click="$router.push('/reminder')" v-if="userInfo&&userInfo.empType==0">{{$t("mobile.communicateTitle")}}</el-button>
<el-button type="primary" @click="handleToCom" v-if="userInfo&&userInfo.empType==0">{{$t("mobile.communicateTitle")}}</el-button>
<el-button type="primary" v-if="userInfo&&userInfo.empType!=0" @click="$router.go(-1)">{{$t("workPlace.goreturn")}}</el-button>
</div>
......@@ -176,6 +176,36 @@
},
handleToCom(){
if(this.userInfo.empType==1){
this.$router.push('/reminder')
}
else if(this.userInfo.empType==0){
let params = {
pagination:{
numberOfPages:1,
number:10
},
search:{}
};
api.selectProjected(params).then((res)=>{
if(res.code==0){
if(res.result.records.length==0){
this.$router.push('/projectrelease')
}else{
this.$router.push('/reminder')
}
}else{
this.$toast(res.msg);
}
}).catch((err)=>{
this.$toast(err);
})
}
},
handleTrans(flag){
if(flag) {
var targetList = this.detailInfo.targetList,targetLabelList=[];
......
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