Commit 1f870b81 authored by 周楠's avatar 周楠

fix: 1

parent 5ff8cca3
...@@ -22,7 +22,7 @@ class OnlineService extends Service { ...@@ -22,7 +22,7 @@ class OnlineService extends Service {
let type = await ctx.classModel.V4.CourseOnlineType.findAll({ where: { status: 'online', is_deleted: 0 }, attributes: [ 'id', 'name' ], raw: true }); let type = await ctx.classModel.V4.CourseOnlineType.findAll({ where: { status: 'online', is_deleted: 0 }, attributes: [ 'id', 'name' ], raw: true });
type = [{ id: 0, name: '全部' }].concat(type); type = [{ id: 0, name: '全部' }].concat(type);
// 课程类型 // 课程类型
const price_type = [{ id: 0, name: '全部' }, { id: 1, name: '低价体验课' }, { id: 2, name: '公益免费课' }, { id: 3, name: '正价课' }]; const price_type = [{ id: 0, name: '全部' }, { id: 2, name: '公益免费课' }, { id: 1, name: '低价体验课' }, { id: 3, name: '正价课' }];
const options = { const options = {
cats, cats,
...@@ -220,7 +220,7 @@ class OnlineService extends Service { ...@@ -220,7 +220,7 @@ class OnlineService extends Service {
logo: ctx.isEmpty(institutions[v.institution_id]) ? '' : institutions[v.institution_id][0].logo, logo: ctx.isEmpty(institutions[v.institution_id]) ? '' : institutions[v.institution_id][0].logo,
type: ctx.isEmpty(classTypes[v.id]) ? [] : classTypes[v.id], type: ctx.isEmpty(classTypes[v.id]) ? [] : classTypes[v.id],
mode: await this.getClassModelInfo(v.mode), mode: await this.getClassModelInfo(v.mode),
price_type: this.getClassModelInfo(v.price_type), price_type: this.getClassModelPriceType(v.price_type),
price: v.price, price: v.price,
time: v.time, time: v.time,
created_time: v.created_time, created_time: v.created_time,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment