Commit ab284459 authored by 黄奎's avatar 黄奎

页面修改

parent 88cf656f
...@@ -443,6 +443,11 @@ namespace Mall.Model.Extend.Product ...@@ -443,6 +443,11 @@ namespace Mall.Model.Extend.Product
/// </summary> /// </summary>
public string ClassTime { get; set; } public string ClassTime { get; set; }
/// <summary>
/// 上课时间详情
/// </summary>
public List<CourseTimeItem> ClassTimeList { get; set; }
/// <summary> /// <summary>
/// 开班日期 /// 开班日期
/// </summary> /// </summary>
...@@ -483,4 +488,22 @@ namespace Mall.Model.Extend.Product ...@@ -483,4 +488,22 @@ namespace Mall.Model.Extend.Product
/// </summary> /// </summary>
public decimal BookPrice { get; set; } public decimal BookPrice { get; set; }
} }
public class CourseTimeItem
{
/// <summary>
/// 上课时间
/// </summary>
public string TimeStr { get; set; }
/// <summary>
/// 日期
/// </summary>
public List<string> DateList { get; set; }
/// <summary>
/// 类型(周,固定的日期)
/// </summary>
public string TypeStr { get; set; }
}
} }
...@@ -699,6 +699,28 @@ WHERE {where} group by g.Id order by g.CreateDate desc"; ...@@ -699,6 +699,28 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
jsonItem.TeacherInfo = jObj.GetStringValue("TeacherInfo"); jsonItem.TeacherInfo = jObj.GetStringValue("TeacherInfo");
jsonItem.EndOrderTime = jObj.GetStringValue("EndOrderTime"); jsonItem.EndOrderTime = jObj.GetStringValue("EndOrderTime");
jsonItem.BookPrice = jObj.GetDecimal("BookPrice"); jsonItem.BookPrice = jObj.GetDecimal("BookPrice");
jsonItem.ClassTimeList = new List<CourseTimeItem>();
var tempArray = JArray.Parse(jObj.GetStringValue("ClassTimeList"));
try
{
if (tempArray != null && tempArray.Count > 0)
{
foreach (var tItem in tempArray)
{
JObject subObj = JObject.Parse(JsonHelper.Serialize(tItem));
jsonItem.ClassTimeList.Add(new CourseTimeItem()
{
TypeStr = subObj.GetStringValue("TypeStr"),
TimeStr = subObj.GetStringValue("TimeStr"),
DateList = JsonHelper.DeserializeObject<List<string>>(subObj.GetStringValue("DateList")),
});
}
}
}
catch
{
}
} }
} }
catch catch
......
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