idCardDetail.js 820 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const app = require('../../utils/util.js');
  2. var util = require('../../utils/md5.js')
  3. var formateTime = require('../../utils/formateTime.js')
  4. Page({
  5. data: {
  6. info: {},
  7. time: '',
  8. },
  9. onLoad: function () {
  10. wx.showLoading({
  11. title: '加载中',
  12. })
  13. wx.request({
  14. url: app.globalData.publicUrl + '/applet/findUserInfo',
  15. method: "GET",
  16. header: {
  17. appletsId: wx.getStorageSync('openId')
  18. },
  19. success: (res) => {
  20. console.log(res, "000");
  21. this.setData({
  22. info: res.data.data
  23. })
  24. },
  25. complete: (e) => {
  26. wx.hideLoading();
  27. }
  28. })
  29. var that = this;
  30. var time = time;
  31. setInterval(function () {
  32. that.setData({
  33. time: formateTime.setNowTimes(new Date())
  34. });
  35. }, 1000);
  36. },
  37. })