test.js 748 B

12345678910111213141516171819202122232425262728293031
  1. //index.js
  2. //获取应用实例
  3. const app = getApp()
  4. Page({
  5. data:{
  6. formIdArray:[]
  7. },
  8. onLoad: function () {
  9. var userInfo = wx.getStorageSync('userInfo');
  10. },
  11. saveFormId: function (v) {
  12. if (v.detail.formId != 'the formId is a mock one') {
  13. this.data.formIdArray.push(v.detail.formId);
  14. }
  15. },
  16. inputAccount: function (v) {
  17. this.data.account = v.detail.value
  18. },
  19. inputPsw: function (v) {
  20. this.data.password = v.detail.value
  21. },
  22. login:function(v){
  23. this.saveFormId(v);
  24. // console.log("formIds:" + this.data.formIdArray)
  25. // console.log("账号:" + this.data.account)
  26. // console.log("密码:" + this.data.password)
  27. },
  28. })