|
@@ -66,15 +66,16 @@ class APIClient {
|
|
|
AJAXHelper.get('/recommend/courses', params, callback);
|
|
|
}
|
|
|
|
|
|
- // 获取标签组下的标签列表
|
|
|
+ // 获取标签组下的标签列表(标签组概念已去除,改用标签类型)
|
|
|
static getTagListByGroupCode(type, callback) {
|
|
|
const typeToCode = {
|
|
|
- 'RESOURCE': 'BABY_RESOURCE',
|
|
|
- 'TRAINING': 'BABY_TRAINING',
|
|
|
- 'PERIPHERY': 'BABY_SUPPORT',
|
|
|
+ 'RESOURCE': 'RESOURCE',
|
|
|
+ 'TRAINING': 'TRAINING',
|
|
|
+ 'PERIPHERY': 'SUPPORT',
|
|
|
};
|
|
|
let params = APIClient.addCacheParam({});
|
|
|
- AJAXHelper.get(`/tagGroup/${typeToCode[type]}`, params, callback);
|
|
|
+ //AJAXHelper.get(`/tagGroup/${typeToCode[type]}`, params, callback);
|
|
|
+ AJAXHelper.get(`/tagType/${typeToCode[type]}`, params, callback);
|
|
|
}
|
|
|
|
|
|
// 获取标签下的课程/配套列表
|