...
|
...
|
@@ -318,7 +318,7 @@ class familyModel extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 下载弹窗数据处理
|
|
|
*/
|
|
|
_downLoadProce(data) {
|
|
|
_downLoadProce(data, yohoApp) {
|
|
|
let singleData;
|
|
|
|
|
|
_.forEach(data, function(val) {
|
...
|
...
|
@@ -326,6 +326,22 @@ class familyModel extends global.yoho.BaseModel { |
|
|
appName: val.appName,
|
|
|
imgList: val.data
|
|
|
});
|
|
|
|
|
|
if (yohoApp) {
|
|
|
if (val.appName === 'green') {
|
|
|
singleData = _.assign(singleData, {
|
|
|
winXinCode: 'YO_GREEN'
|
|
|
});
|
|
|
} else if (val.appName === 'coffee') {
|
|
|
singleData = _.assign(singleData, {
|
|
|
winXinCode: 'YoCoffeeCN'
|
|
|
});
|
|
|
} else if (val.appName === 'little') {
|
|
|
singleData = _.assign(singleData, {
|
|
|
winXinCode: 'YOLITTLE_CN'
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return singleData;
|
...
|
...
|
@@ -334,9 +350,9 @@ class familyModel extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 下载弹窗信息
|
|
|
*/
|
|
|
downLoadData(params) {
|
|
|
downLoadData(codeArr, yohoApp) {
|
|
|
|
|
|
return Promise.map(params, (val) => {
|
|
|
return Promise.map(codeArr, (val) => {
|
|
|
return this._getdownPop(val);
|
|
|
}).then((result) => {
|
|
|
let finData = {
|
...
|
...
|
@@ -344,7 +360,7 @@ class familyModel extends global.yoho.BaseModel { |
|
|
};
|
|
|
|
|
|
_.forEach(result, (val) => {
|
|
|
finData.downLoadData.push(this._downLoadProce(val));
|
|
|
finData.downLoadData.push(this._downLoadProce(val, yohoApp));
|
|
|
});
|
|
|
|
|
|
return finData;
|
...
|
...
|
|