...
|
...
|
@@ -33,7 +33,7 @@ Component({ |
|
|
type: Number,
|
|
|
value: 0,
|
|
|
},
|
|
|
actPrizeId: {
|
|
|
actId: {
|
|
|
type: Number,
|
|
|
value: 0,
|
|
|
},
|
...
|
...
|
@@ -108,16 +108,17 @@ Component({ |
|
|
mask: true,
|
|
|
});
|
|
|
event.emit('user-is-login', {
|
|
|
logged: this.logged.bind(this),
|
|
|
logged: this.getCode.bind(this),
|
|
|
loginSuccess: function() {},
|
|
|
});
|
|
|
},
|
|
|
logged(userInfo) {
|
|
|
|
|
|
getCode(userInfo) {
|
|
|
this.service
|
|
|
.fetchCode({
|
|
|
shareUid: this.properties.shareUid,
|
|
|
uid: app.getUid(),
|
|
|
actPrizeId: this.properties.actPrizeId,
|
|
|
actPrizeId: this.properties.actId,
|
|
|
userThumb: userInfo.avatarUrl,
|
|
|
userName: userInfo.nickName,
|
|
|
})
|
...
|
...
|
@@ -128,7 +129,7 @@ Component({ |
|
|
show: true,
|
|
|
code: result.data.prizeCode,
|
|
|
});
|
|
|
this.triggerEvent('gaincodesuccess', this.properties.actPrizeId);
|
|
|
this.triggerEvent('gaincodesuccess', this.properties.actId);
|
|
|
} else {
|
|
|
this.setData({
|
|
|
error: true,
|
...
|
...
|
|