Commit 1354d15d authored by Mac's avatar Mac

修改发布的认证处理

parent 413b0549
...@@ -590,6 +590,8 @@ ...@@ -590,6 +590,8 @@
// }); // });
// return // return
// } // }
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面
this.request2({ this.request2({
url: '/api/AppletMiai/GetSetMiAiBaseInfo', url: '/api/AppletMiai/GetSetMiAiBaseInfo',
data: msg data: msg
...@@ -606,12 +608,19 @@ ...@@ -606,12 +608,19 @@
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
}else{ }else if(this.Jumptype == 1){
uni.reLaunch({ uni.reLaunch({
url: '/pages/blindDate/persondetails?UserId='+ this.UserId+'&Jumptype=1' url: '/pages/blindDate/persondetails?UserId='+ this.UserId+'&Jumptype=1'
}) })
}else if(this.Jumptype == 2){
uni.navigateBack({
success: function() {
beforePage.$vm.getisAttestation(); // 执行前一个页面的方法
}
});
} }
},1000) },1000)
} }
......
...@@ -79,6 +79,8 @@ ...@@ -79,6 +79,8 @@
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<tabbar></tabbar> <tabbar></tabbar>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='gbAuth'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='gbAuth'></auth>
<u-modal v-model="show" content="还未认证,是否去认证?" :show-cancel-button='true' @confirm='queren'></u-modal>
</view> </view>
</template> </template>
...@@ -92,6 +94,7 @@ ...@@ -92,6 +94,7 @@
}, },
data() { data() {
return { return {
show:false,
pageTitle: "贴吧", pageTitle: "贴吧",
showAuth: false, showAuth: false,
u: {}, u: {},
...@@ -236,15 +239,33 @@ ...@@ -236,15 +239,33 @@
url: '/pages/blindDate/postPublishing?ForumId=' + this.msg.ForumId url: '/pages/blindDate/postPublishing?ForumId=' + this.msg.ForumId
}) })
}else{ }else{
uni.showToast({ this.show = true
title: '您还未实名认证,暂不能发布',
icon: 'none',
duration: 2500
})
} }
} }
},
queren(){
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):null;
if(mall_UserInfo!=null){
uni.navigateTo({
url: '/pages/blindDate/editData?UserId='+ mall_UserInfo.UserId+'&Jumptype=2'
});
}
},
getisAttestation(){//认证成功
this.request2({
url: "/api/Mall/GetHome",
data: {page_id: 0,open_school: 0,StoreId: 0},
},
(res) => {
uni.setStorageSync("basedata", res.data);
let basedata = wx.getStorageSync("basedata")
this.isAttestation = basedata.user_info.isAttestation?basedata.user_info.isAttestation:0
},
(error) => {}
);
}, },
reloadUserinfo() { reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
......
...@@ -383,7 +383,8 @@ ...@@ -383,7 +383,8 @@
</view> </view>
</u-popup> </u-popup>
</view> </view>
<tabbar v-if='barshow==0'></tabbar> <tabbar v-if='barshow==0'></tabbar>
<u-modal v-model="rzshow" content="还未认证,是否去认证?" :show-cancel-button='true' @confirm='queren'></u-modal>
</div> </div>
</template> </template>
...@@ -397,7 +398,8 @@ ...@@ -397,7 +398,8 @@
tabbar tabbar
}, },
data() { data() {
return { return {
rzshow:false,
pageTitle: "朋友圈", pageTitle: "朋友圈",
showAuth: false, showAuth: false,
msg: { msg: {
...@@ -876,16 +878,34 @@ ...@@ -876,16 +878,34 @@
url: '/pages/friendcircle/release' url: '/pages/friendcircle/release'
}) })
}else{ }else{
uni.showToast({ this.rzshow = true
title: '您还未实名认证,暂不能发布',
icon: 'none',
duration: 2500
})
} }
} }
innerAudioContext.stop(); innerAudioContext.stop();
},
queren(){
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):null;
if(mall_UserInfo!=null){
uni.navigateTo({
url: '/pages/blindDate/editData?UserId='+ mall_UserInfo.UserId+'&Jumptype=2'
});
}
},
getisAttestation(){//认证成功
this.request2({
url: "/api/Mall/GetHome",
data: {page_id: 0,open_school: 0,StoreId: 0},
},
(res) => {
uni.setStorageSync("basedata", res.data);
let basedata = wx.getStorageSync("basedata")
this.isAttestation = basedata.user_info.isAttestation?basedata.user_info.isAttestation:0
},
(error) => {}
);
}, },
gohuati(x){//跳入话题列表 gohuati(x){//跳入话题列表
uni.navigateTo({ uni.navigateTo({
......
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