wecaht.min.app.js 322 B

123456789101112131415161718
  1. // 获取小程序APPid
  2. const getWXAppId = () =>{
  3. const accountInfo = wx.getAccountInfoSync();
  4. return accountInfo.miniProgram.appId
  5. }
  6. const getWxMinAppUuerCode = async () => {
  7. let code = await (await wx.login()).code;
  8. console.log('code',code)
  9. return code;
  10. };
  11. export default{
  12. getWXAppId,
  13. getWxMinAppUuerCode,
  14. }