|
|
@@ -96,6 +96,14 @@ Page({
|
|
|
},
|
|
|
success(res) {
|
|
|
//获取openid
|
|
|
+ if(res.data.code != 0){
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.data.message,
|
|
|
+ })
|
|
|
+ wx.hideLoading();
|
|
|
+ return;
|
|
|
+ }
|
|
|
data.openid=res.data.data.openid
|
|
|
wx.request({
|
|
|
url: host + '/api/wx/login',
|