Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小程序转app,app不需要获取login,小程序必须要,怎么解决 #39

Closed
weiwei02580 opened this issue Sep 1, 2018 · 2 comments

Comments

@weiwei02580
Copy link

weiwei02580 commented Sep 1, 2018

各位大佬,求指点,怎么兼顾,小程序获取,app不获取呢

@hbcui1984
Copy link

hbcui1984 commented Sep 3, 2018

通过条件编译实现

// #ifdef MP-WEIXIN
uni.login({
  provider: 'weixin',
  success: function (loginRes) {
    console.log(loginRes.authResult);
  }
});
// #endif

@udbmnm
Copy link

udbmnm commented Sep 6, 2018

条件编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants