From 90cff3b9f6d6f051c1f23f2772115e8d473358aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Tue, 12 Mar 2019 16:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=AF=A6=E6=83=85=E5=88=86?= =?UTF-8?q?=E4=BA=ABbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/spellGroup/mySpellGroup/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index 120f0f9..e511518 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -35,6 +35,21 @@ Page({ this.getOneSpell(options.couponId) this.getUserInfo(); }, + getUserInfo: function () { + let that = this; + // 获取用户信息 + Http.get({ + url: config.api.getScore, + data: {} + }) + .then(res => { + console.log(res) + that.setData({ + nickName: res.data.nickName, + avatarUrl: res.data.avatarUrl + }) + }) + }, /** * 拨打电话 */