|
@@ -2490,7 +2490,19 @@ func (this *ActivityCoAntroller) ActivityListNew() {
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
resp := new(models.GetCygxActivityListRep)
|
|
|
resp.Label = label
|
|
|
- resp.ImgUrl = ""
|
|
|
+ if activityTypeId != "" {
|
|
|
+ activityTypeIdint, err := strconv.Atoi(activityTypeId)
|
|
|
+ if err == nil {
|
|
|
+ detail, errDetail := models.GetActivityTypeDetailById(activityTypeIdint)
|
|
|
+ if errDetail != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取信息失败,Err:" + errDetail.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp.ImgUrl = detail.OnlineIco
|
|
|
+ resp.Label = detail.ActivityTypeName
|
|
|
+ }
|
|
|
+ }
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|
|
|
br.Ret = 200
|