|
...
|
...
|
@@ -84,7 +84,7 @@ App({ |
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
let openid=res.data.data.openid;
|
|
|
|
wx.setStorage({key:'openid',data:openid});
|
|
|
|
wx.setStorage({key:'customer_openid',data:openid});
|
|
|
|
success(openid);
|
|
|
|
},
|
|
|
|
fail: function (res) {
|
|
...
|
...
|
@@ -104,7 +104,7 @@ App({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
async getOpenid(){
|
|
|
|
let openid=wx.getStorageSync('openid');
|
|
|
|
let openid=wx.getStorageSync('customer_openid');
|
|
|
|
if(!openid){
|
|
|
|
openid= await this._getOpenid();
|
|
|
|
}
|
...
|
...
|
|