...
|
...
|
@@ -367,9 +367,7 @@ seckillObj = { |
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
|
let uid = yoho.isLogin();
|
|
|
|
|
|
if (!uid || uid === '0') {
|
|
|
if (!yoho.isLogin()) {
|
|
|
yoho.invokeMethod('go.login');
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -418,15 +416,20 @@ seckillObj = { |
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
yoho.invokeMethod(action, params, function() {
|
|
|
uid = yoho.isLogin();
|
|
|
let uid = yoho.isLogin();
|
|
|
|
|
|
if (uid && uid !== '0') {
|
|
|
onsuccess({uid});
|
|
|
} else {
|
|
|
setTimeout(function() {
|
|
|
yoho.getClientUserInfo().then(res => {
|
|
|
onsuccess(res);
|
|
|
if (res.uid && res.uid !== '0') {
|
|
|
return onsuccess(res);
|
|
|
}
|
|
|
|
|
|
yoho.invokeMethod('go.login');
|
|
|
}).catch(() => {
|
|
|
tip.show(failTip);
|
|
|
});
|
...
|
...
|
|