index.js 570 B

1234567891011121314151617181920212223242526272829303132
  1. const Parse = getApp().Parse;
  2. const company = getApp().globalData.company
  3. const login = require("../../../utils/login");
  4. Component({
  5. /**
  6. * 组件的属性列表
  7. */
  8. properties: {
  9. },
  10. data: {
  11. },
  12. lifetimes: {
  13. created() {},
  14. attached: function () {
  15. },
  16. },
  17. /**
  18. * 组件的方法列表
  19. */
  20. methods: {
  21. onH5Url(){
  22. const token = Parse.User.current()?.getSessionToken()
  23. console.log(token);
  24. wx.navigateTo({
  25. url: `/common-page/pages/web-view/index?path=https://ai.fmode.cn&token=${token}`,
  26. })
  27. }
  28. }
  29. })