user.js 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. var app = getApp();
  2. var util = require('../../utils/util.js');
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. openid: null,
  9. nick: null,
  10. headIcon: null,
  11. hiddenmodalput: true,
  12. nickTempInputValue: '',
  13. hiddenlogin: true,
  14. user:'',
  15. pw:''
  16. },
  17. onLoad: function (options) {
  18. },
  19. onUnload: function(){
  20. wx.closeSocket()
  21. },
  22. onReady: function () {
  23. },
  24. onShow: function () {
  25. //this.getShowBoxList();
  26. },
  27. onPullDownRefresh: function () {
  28. console.log("+++++onPullDownRefresh");
  29. },
  30. onReachBottom: function () {
  31. // Do something when page reach bottom.
  32. console.log("+++++onReachBottom");
  33. },
  34. onPageScroll: function () {
  35. // Do something when page scroll
  36. },
  37. bindNickInput: function (e) {
  38. this.setData({
  39. user: e.detail.value
  40. })
  41. },
  42. bindPwInput:function(e){
  43. this.setData({
  44. pw: e.detail.value
  45. })
  46. }
  47. })