Commit e91e140e authored by Mac's avatar Mac

修改

parent 9ad054b8
...@@ -351,7 +351,8 @@ ...@@ -351,7 +351,8 @@
img8:false, img8:false,
}, },
addressShow:false, addressShow:false,
address:'' address:'',
Jumptype:0,
} }
}, },
methods:{ methods:{
...@@ -521,9 +522,16 @@ ...@@ -521,9 +522,16 @@
icon:"success", icon:"success",
success:()=>{ success:()=>{
setTimeout(()=>{ setTimeout(()=>{
if(this.Jumptype == 0){
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
}else{
uni.reLaunch({
url: '/pages/blindDate/persondetails?UserId='+ this.UserId+'&Jumptype=1'
})
}
},1000) },1000)
} }
...@@ -598,6 +606,9 @@ ...@@ -598,6 +606,9 @@
onLoad(options) { onLoad(options) {
this.UserId = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserId:null; this.UserId = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserId:null;
this.getInfo(); this.getInfo();
if(options && options.Jumptype){
this.Jumptype = options.Jumptype
}
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
......
...@@ -424,7 +424,8 @@ ...@@ -424,7 +424,8 @@
mall_UserInfo:null, mall_UserInfo:null,
UserId:0, UserId:0,
isShowBtn:true, //跳过来不显示编辑按钮 isShowBtn:true, //跳过来不显示编辑按钮
path:"" path:"",
Jumptype:0,
} }
}, },
created() { created() {
...@@ -449,6 +450,9 @@ ...@@ -449,6 +450,9 @@
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0; let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.path = '/pages/index/index?id=' + options.UserId + "&user_id=" + uid+ "&Up=" + Up+'&JumpType=11'; this.path = '/pages/index/index?id=' + options.UserId + "&user_id=" + uid+ "&Up=" + Up+'&JumpType=11';
} }
if(options && options.Jumptype){//判断跳到个人中心
this.Jumptype = options.Jumptype
}
}, },
onShow() { onShow() {
...@@ -462,9 +466,17 @@ ...@@ -462,9 +466,17 @@
this.scrollTop = 0; this.scrollTop = 0;
}, },
redirectPrev() { redirectPrev() {
if(this.Jumptype==0){
uni.navigateBack({ uni.navigateBack({
delta: 1, delta: 1,
}); });
}else{
uni.reLaunch({
url: '/pages/user-center/user-center'
})
}
}, },
init() { init() {
this.request2( this.request2(
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
}) })
}else{ }else{
uni.showToast({ uni.showToast({
title: '您还未实名认证,暂不能发布状态', title: '您还未实名认证,暂不能发布',
icon: 'none', icon: 'none',
duration: 2500 duration: 2500
}) })
......
...@@ -443,6 +443,7 @@ ...@@ -443,6 +443,7 @@
is_bang:0, is_bang:0,
barshow:0, barshow:0,
IsOpenMiAi:0,//1开启 0 没开启 IsOpenMiAi:0,//1开启 0 没开启
isAttestation:0,
} }
}, },
created() { created() {
...@@ -454,6 +455,8 @@ ...@@ -454,6 +455,8 @@
this.pricecolor = this.$uiConfig.pricecolor; this.pricecolor = this.$uiConfig.pricecolor;
this.windowWidth = this.$utils.SystemInfo().windowWidth; this.windowWidth = this.$utils.SystemInfo().windowWidth;
this.msg.UserId = uni.getStorageSync("mall_UserInfo").UserId ? uni.getStorageSync("mall_UserInfo").UserId : 0; this.msg.UserId = uni.getStorageSync("mall_UserInfo").UserId ? uni.getStorageSync("mall_UserInfo").UserId : 0;
let basedata = wx.getStorageSync("basedata")
this.isAttestation = basedata.user_info.isAttestation?basedata.user_info.isAttestation:0;
}, },
mounted() { mounted() {
...@@ -868,9 +871,18 @@ ...@@ -868,9 +871,18 @@
}; };
this.showAuth = true; this.showAuth = true;
} else { } else {
if(this.isAttestation == 1){
uni.navigateTo({ uni.navigateTo({
url: '/pages/friendcircle/release' url: '/pages/friendcircle/release'
}) })
}else{
uni.showToast({
title: '您还未实名认证,暂不能发布',
icon: 'none',
duration: 2500
})
}
} }
innerAudioContext.stop(); innerAudioContext.stop();
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
if(this.user_info.isAttestation == 0){ if(this.user_info.isAttestation == 0){
if(mall_UserInfo!=null){ if(mall_UserInfo!=null){
uni.navigateTo({ uni.navigateTo({
url: '/pages/blindDate/editData?UserId='+ mall_UserInfo.UserId url: '/pages/blindDate/editData?UserId='+ mall_UserInfo.UserId+'&Jumptype=1'
}); });
} }
}else{ }else{
......
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