im.js 559 B

12345678910111213141516171819
  1. // d:\Jz\Code\Mall20220601\douyin\pages\chat\im\im.js
  2. Page({
  3. data: {
  4. src: 'https://im6a9eefe.7x24cc.com/phone_webChat.html?accountId=N000000023246&chatId=b0fb6b0a-9bad-4c99-b8b8-9ca7bb303f26',
  5. userId: '',
  6. nickName: ''
  7. },
  8. onLoad: function (options) {
  9. let userInfo = wx.getStorageSync('userInfo');
  10. console.log(userInfo.workerName);
  11. if (userInfo) {
  12. this.setData({
  13. nickName: userInfo.workerName,
  14. userId: userInfo.id,
  15. src: this.data.src + '&nickName=' + encodeURI(userInfo.workerName)
  16. })
  17. }
  18. },
  19. })