diff --git a/packageA/pages/liveStream/liveStream.js b/packageA/pages/liveStream/liveStream.js index c91f57d..3da07dc 100644 --- a/packageA/pages/liveStream/liveStream.js +++ b/packageA/pages/liveStream/liveStream.js @@ -427,14 +427,31 @@ Page({ } if(!this.data.avatarUrl) { + var path2 = getApp().globalData.userInfo.head_pic; + if (path2 == "") { + path2 = "../../../images/share/hui_hear_pic.png"; + } else { + getApp().request.promiseGet("/api/weshop/marketing/help/help/imgbase64/get", { + data: { + imgurl:path2 + } + }).then(res => { + if (res.data.code == 0) { + console.log(9999) + path2 = 'data:image/jpg;base64,' + res.data.data + that.setData({ + avatarUrl: path2 + }); + + } + }) + + + + } // 请求头像 - await that.getImageInfo(app.globalData.userInfo['head_pic']).then(res => { - that.setData({ - avatarUrl: res.path - }); - console.log('头像加载成功~') - }); + } // 请求二维码