Commit 1354d15d authored by Mac's avatar Mac

修改发布的认证处理

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