|
...
|
...
|
@@ -122,9 +122,14 @@ App({ |
|
|
|
'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
let openid=res.data.data.openid;
|
|
|
|
wx.setStorage({key:'customer_openid',data:openid});
|
|
|
|
success(openid);
|
|
|
|
try{
|
|
|
|
let openid=res.data.data.openid;
|
|
|
|
wx.setStorage({key:'customer_openid',data:openid});
|
|
|
|
success(openid);
|
|
|
|
}catch(e){
|
|
|
|
console.log(res);
|
|
|
|
fail(res);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
fail: function (res) {
|
|
|
|
console.log(res);
|
...
|
...
|
|