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.

mycode.js 856 B

4 years ago
12345678910111213141516171819202122
  1. (function () {
  2. var page = {
  3. init: function ($page) {
  4. // 获取登录者信息
  5. var userinfo = learun.storage.get('userinfo');
  6. $page.find('.name').text(userinfo.baseinfo.realName);
  7. $page.find('img').attr('src', config.webapi + 'learun/adms/user/img?data=' + userinfo.baseinfo.userId);
  8. // 人员列表数据初始化
  9. learun.clientdata.get('user', {
  10. key: userinfo.baseinfo.departmentId,
  11. callback: function (data) {
  12. $page.find('.subname').text(data.name);
  13. }
  14. });
  15. //learun.code.encode({ id: 'lr_mycode_qrcode', text: 'http://www.bjquanjiang.com/' });
  16. learun.code.encode({ id: 'lr_mycode_qrcode', text: userinfo.baseinfo.userId });
  17. }
  18. };
  19. return page;
  20. })();