index.js 679 B

1234567891011121314151617181920212223
  1. Component({
  2. properties: {
  3. list: {
  4. type: Array
  5. },
  6. userrole: {
  7. type: String
  8. }
  9. },
  10. data: {},
  11. lifetimes: {
  12. attached: function () {
  13. getApp().globalData.Language.getLanguagePackage(this)
  14. this.setData({
  15. auth: JSON.stringify(wx.getStorageSync('auth')),
  16. userMsg: JSON.stringify(wx.getStorageSync('userMsg')),
  17. site: JSON.stringify(wx.getStorageSync('siteP')),
  18. templetList: JSON.stringify(wx.getStorageSync('templetList')),
  19. languagecode: wx.getStorageSync('languagecode'),
  20. })
  21. }
  22. },
  23. })