Showing
1 changed file
with
14 additions
and
0 deletions
| @@ -49,6 +49,20 @@ Component({ | @@ -49,6 +49,20 @@ Component({ | ||
| 49 | tmplIds:this.subscribeIds, | 49 | tmplIds:this.subscribeIds, |
| 50 | success:res=>{ | 50 | success:res=>{ |
| 51 | console.log('wx.requestSubscribeMessage.success',res) | 51 | console.log('wx.requestSubscribeMessage.success',res) |
| 52 | + if(res.errCode!=0){ | ||
| 53 | + wx.showModal({ | ||
| 54 | + title: '授权提示', | ||
| 55 | + content: '请点击确定打开订阅授权', | ||
| 56 | + confirmColor: '#199095', | ||
| 57 | + cancelColor: '#999', | ||
| 58 | + success: function (res) { | ||
| 59 | + if (res.confirm) { | ||
| 60 | + util.setting(); | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + }) | ||
| 64 | + return; | ||
| 65 | + } | ||
| 52 | let accept=[] | 66 | let accept=[] |
| 53 | this.subscribeIds.forEach(id=>{ | 67 | this.subscribeIds.forEach(id=>{ |
| 54 | if(res[id]=='accept'){ | 68 | if(res[id]=='accept'){ |
-
Please register or login to post a comment