You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
576 B
31 lines
576 B
//answer.js
|
|
var util = require('../../utils/util.js')
|
|
|
|
var app = getApp()
|
|
Page({
|
|
data: {
|
|
motto: '知乎--微信小程序版',
|
|
userInfo: {}
|
|
},
|
|
//事件处理函数
|
|
bindItemTap: function() {
|
|
wx.navigateTo({
|
|
url: '../answer/answer'
|
|
})
|
|
},
|
|
onLoad: function () {
|
|
console.log('onLoad')
|
|
var that = this
|
|
//调用应用实例的方法获取全局数据
|
|
app.getUserInfo(function(userInfo){
|
|
//更新数据
|
|
that.setData({
|
|
userInfo:userInfo
|
|
})
|
|
})
|
|
},
|
|
tapName: function(event){
|
|
console.log(event)
|
|
}
|
|
})
|