Files
CompanyProject/衣莎项目/源码/YiShaXiYi/pages/startUp/startUp.js
2024-09-27 01:32:49 +08:00

27 lines
649 B
JavaScript

//index.js
//获取应用实例
const app = getApp();
const util = app.loadUtils("util")
const { Getauth } = app.loadModel("user")
const getauth = new Getauth()
const { StorageSync } = app.loadModel("getSetting")
const storage = new StorageSync()
Page({
data: {
motto: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo')
},
onLoad: function (options) {
// if (!!options.inviteId) {
// storage.setStorage("inviteId", options.inviteId)
// }
getauth.userInfo()
// storage.deleteStorage('nearestStore')
},
onPullDownRefresh() {
util.heavyLoad()
}
})