aqyj/pages/index/index.js

26 lines
431 B
JavaScript

//index.js
//获取应用实例
const app = getApp()
Page({
data: {
},
//事件处理函数
bindViewTap: function() {
wx.navigateTo({
url: '../logs/logs'
})
},
onLoad: function () {
this.getName();
},
getName: function(){
var username = wx.getStorageSync('username')
var userid = wx.getStorageSync('userid')
this.setData({
username: username,
userid: userid,
})
},
})