index.js 432 B

123456789101112131415161718192021222324252627
  1. //index.js
  2. const util = require("../../utils/util")
  3. //获取应用实例
  4. const app = getApp()
  5. Page({
  6. data: {
  7. buyModel:false,
  8. system: "",
  9. userInfo:{},
  10. },
  11. onLoad: function(){
  12. let that = this
  13. app.checkLogin(res=>{
  14. console.log("login", res)
  15. })
  16. },
  17. onPullDownRefresh() {
  18. if (!this.loading) {
  19. this.indexLoad( this.stopPullDownRefresh )
  20. }
  21. },
  22. onShareAppMessage: function(){
  23. }
  24. })