Commit a5c3d659 by 李静静

加-3004的提示

parent b355a0b1
...@@ -92,14 +92,25 @@ Page({ ...@@ -92,14 +92,25 @@ Page({
startmessage:function(res){ startmessage:function(res){
console.log("start",res) console.log("start",res)
}, },
wxShowModal:function(obj){
wx.showModal(obj)
},
completemessage:function(res){ completemessage:function(res){
console.log("complete",arguments,res.detail.notifytype) console.log("complete",arguments,res.detail.notifytype)
if(Number(res.detail.errcode)===-3004){
wxShowModal({
title: '用户信息授权失败',
})
return
}
if(res.detail&&Number(res.detail.notifytype)===0){ if(res.detail&&Number(res.detail.notifytype)===0){
// this.showVersion() // this.showVersion()
if(!this.data.isLowerVersion){ if(!this.data.isLowerVersion){
this.showServiceNoticMessage() this.showServiceNoticMessage()
} }
} }
}, },
modalClose:function(){ modalClose:function(){
this.setData({ this.setData({
......
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