...
|
...
|
@@ -381,6 +381,10 @@ class familyModel extends global.yoho.BaseModel { |
|
|
let colorList = [];
|
|
|
|
|
|
if (result && result.data) {
|
|
|
result.data.data.sort(function(a, b) {
|
|
|
return b.proportion - a.proportion;
|
|
|
});
|
|
|
|
|
|
chartsData.total = _.get(result.data, 'total', '');
|
|
|
|
|
|
_.forEach(result.data.data, function(data) {
|
...
|
...
|
@@ -488,6 +492,19 @@ class familyModel extends global.yoho.BaseModel { |
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 设置我的潮流口令
|
|
|
*/
|
|
|
setTrendWord(uid, trendWord) {
|
|
|
return family.get('user/updateInviteCode', {
|
|
|
uid: uid,
|
|
|
trendWord: trendWord
|
|
|
}).then((result) => {
|
|
|
|
|
|
return result;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
userInfo(params) {
|
|
|
return Promise.all([
|
|
|
this._userData(params.uid),
|
...
|
...
|
|