...
|
...
|
@@ -443,7 +443,7 @@ class familyModel extends global.yoho.BaseModel { |
|
|
integralCharts(uid) {
|
|
|
let options = {
|
|
|
data: {
|
|
|
method: 'app.family.usercoin',
|
|
|
method: 'app.passport.yohofamilyCoin',
|
|
|
uid: uid
|
|
|
},
|
|
|
param: {
|
...
|
...
|
@@ -550,7 +550,7 @@ class familyModel extends global.yoho.BaseModel { |
|
|
getCoinData(params) {
|
|
|
let options = {
|
|
|
data: {
|
|
|
method: 'app.family.coinlog',
|
|
|
method: 'app.yohocoin.lists',
|
|
|
uid: params.uid,
|
|
|
source: params.source || -1,
|
|
|
queryType: params.queryType || 0,
|
...
|
...
|
@@ -570,14 +570,15 @@ class familyModel extends global.yoho.BaseModel { |
|
|
};
|
|
|
let _this = this;
|
|
|
|
|
|
if (_.get(result, 'data.data')) {
|
|
|
_.forEach(result.data.data, function(val) {
|
|
|
if (_.has(result, 'data.coinlist')) {
|
|
|
_.forEach(_.get(result, 'data.coinlist', []), function(val) {
|
|
|
Object.assign(val, {
|
|
|
typeName: _this.checkType(val.iconType),
|
|
|
minus: parseInt(val.num, 10) < 0
|
|
|
});
|
|
|
});
|
|
|
resu.coinList = result.data.data;
|
|
|
|
|
|
resu.coinList = _.get(result, 'data.coinlist', []);
|
|
|
}
|
|
|
|
|
|
return resu;
|
...
|
...
|
|