|
|
@@ -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 |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 拨打电话 |
|
|
|
*/ |
|
|
|