regular_msg.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // pages/regular_msg/regular_msg.js
  2. import international from "../../international/appointment_scence/index";
  3. const { getUserInfoVO } = require("../../utils/api/api");
  4. const app = getApp();
  5. // import QRCode from '../../utils/util/weapp-qrcode'
  6. Page({
  7. /**
  8. * 页面的初始数据
  9. */
  10. data: {
  11. userInfo: null,
  12. international: international,
  13. //国际化语言包
  14. language: app.data.language,
  15. msg: [
  16. {
  17. label_ch: "认证时间",
  18. label_en: "The authentication time",
  19. value: "2021-10-13 13:00",
  20. type: "text"
  21. },
  22. {
  23. label_ch: "认证人员",
  24. label_en: "Certification of personnel",
  25. value: "吴易",
  26. type: "text"
  27. },
  28. {
  29. label_ch: "手机号",
  30. label_en: "Mobile phone",
  31. value: "18232834792",
  32. type: "text"
  33. },
  34. {
  35. label_ch: "身份证号",
  36. label_en: "Id number",
  37. value: "331004198410230963",
  38. type: "text"
  39. }
  40. ],
  41. qrCodeUrl: "www.baidu.com"
  42. },
  43. getUserInfoVO() {
  44. let userId = this.data.userInfo.userId;
  45. getUserInfoVO({
  46. userId
  47. }).then(res => {
  48. this.setData({
  49. userInfo: res.data
  50. });
  51. });
  52. },
  53. /**
  54. * 生命周期函数--监听页面加载
  55. */
  56. onLoad: function(options) {
  57. let userInfo = app.data.userInfo;
  58. this.setData({
  59. userInfo
  60. });
  61. this.getUserInfoVO();
  62. },
  63. /**
  64. * 生命周期函数--监听页面初次渲染完成
  65. */
  66. onReady: function() {},
  67. /**
  68. * 生命周期函数--监听页面显示
  69. */
  70. onShow: function() {},
  71. /**
  72. * 生命周期函数--监听页面隐藏
  73. */
  74. onHide: function() {},
  75. /**
  76. * 生命周期函数--监听页面卸载
  77. */
  78. onUnload: function() {},
  79. /**
  80. * 页面相关事件处理函数--监听用户下拉动作
  81. */
  82. onPullDownRefresh: function() {},
  83. /**
  84. * 页面上拉触底事件的处理函数
  85. */
  86. onReachBottom: function() {},
  87. /**
  88. * 用户点击右上角分享
  89. */
  90. onShareAppMessage: function() {}
  91. });