...
|
...
|
@@ -67,7 +67,7 @@ exports.studentsNum = (data) => { |
|
|
*/
|
|
|
exports.studentResource = (data) => {
|
|
|
let dest = {};
|
|
|
|
|
|
|
|
|
_.forEach(data, (value) => {
|
|
|
switch (value.template_name) {
|
|
|
case 'focus':
|
...
|
...
|
@@ -89,6 +89,9 @@ exports.studentResource = (data) => { |
|
|
Object.assign(dest, {adImg: value.data[0].src || '', url: value.data[0].url});
|
|
|
Object.assign(dest, {identityItem: {sendCoin: value.data[0].title || 100}});
|
|
|
break;
|
|
|
case 'titleFloor':
|
|
|
Object.assign(dest, {couponMore: value.data.title || {}});
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
...
|
...
|
|