Realname.js 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. const app = getApp();
  2. Page({
  3. data: {
  4. initial:'',
  5. },
  6. /**
  7. * 生命周期函数--监听页面加载
  8. */
  9. onLoad: function (options) {
  10. var that = this;
  11. // 获取信息
  12. let initial_url = 'my/authentication/ididentitychange';
  13. let initial_data = {
  14. };
  15. app.postRequest(initial_url, initial_data, function (res) {
  16. if (res.code == 201) {
  17. console.log(res.data);
  18. console.log(res.data.hold);
  19. that.setData({
  20. initial: res.data, // 初始数据
  21. name: res.data.name, //姓名
  22. number: res.data.number, //证件号码
  23. })
  24. }
  25. })
  26. },
  27. // 相册点击放大
  28. enlarge: function (e) {
  29. var that = this;
  30. // console.log(that.data.uploadImages)
  31. // console.log(e.currentTarget.dataset.src)
  32. wx.previewImage({
  33. current: e.currentTarget.dataset.src,
  34. urls: [e.currentTarget.dataset.src],
  35. })
  36. },
  37. })