Commit e91e140e authored by Mac's avatar Mac

修改

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