|
@@ -67,7 +67,7 @@ exports.studentsNum = (data) => { |
|
@@ -67,7 +67,7 @@ exports.studentsNum = (data) => { |
67
|
*/
|
67
|
*/
|
68
|
exports.studentResource = (data) => {
|
68
|
exports.studentResource = (data) => {
|
69
|
let dest = {};
|
69
|
let dest = {};
|
70
|
-
|
70
|
+
|
71
|
_.forEach(data, (value) => {
|
71
|
_.forEach(data, (value) => {
|
72
|
switch (value.template_name) {
|
72
|
switch (value.template_name) {
|
73
|
case 'focus':
|
73
|
case 'focus':
|
|
@@ -89,6 +89,9 @@ exports.studentResource = (data) => { |
|
@@ -89,6 +89,9 @@ exports.studentResource = (data) => { |
89
|
Object.assign(dest, {adImg: value.data[0].src || '', url: value.data[0].url});
|
89
|
Object.assign(dest, {adImg: value.data[0].src || '', url: value.data[0].url});
|
90
|
Object.assign(dest, {identityItem: {sendCoin: value.data[0].title || 100}});
|
90
|
Object.assign(dest, {identityItem: {sendCoin: value.data[0].title || 100}});
|
91
|
break;
|
91
|
break;
|
|
|
92
|
+ case 'titleFloor':
|
|
|
93
|
+ Object.assign(dest, {couponMore: value.data.title || {}});
|
|
|
94
|
+ break;
|
92
|
default:
|
95
|
default:
|
93
|
break;
|
96
|
break;
|
94
|
}
|
97
|
}
|