...
|
...
|
@@ -66,7 +66,7 @@ exports.studentsNum = (data) => { |
|
|
* @return object
|
|
|
*/
|
|
|
exports.studentResource = (data) => {
|
|
|
let dest = {couponObj:{}};
|
|
|
let dest = {couponObj: {}};
|
|
|
|
|
|
_.forEach(data, (value) => {
|
|
|
switch (value.template_name) {
|
...
|
...
|
@@ -80,7 +80,7 @@ exports.studentResource = (data) => { |
|
|
Object.assign(dest, {rightsObj: {rightsItem: value.data.list || {}, floorId: value.template_id}});
|
|
|
break;
|
|
|
case 'image_list':
|
|
|
Object.assign(dest, {activityObj:{activityItem: value.data.list || {}, floorId: value.template_id} });
|
|
|
Object.assign(dest, {activityObj: {activityItem: value.data.list || {}, floorId: value.template_id} });
|
|
|
break;
|
|
|
case 'link':
|
|
|
Object.assign(dest, {moreProducts: value.data[0].url || ''});
|
...
|
...
|
|