xingzai 1 gadu atpakaļ
vecāks
revīzija
dc15663c52
2 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 3 0
      controllers/order.go
  2. 1 0
      models/order/order.go

+ 3 - 0
controllers/order.go

@@ -302,15 +302,18 @@ func (this *OrderController) UserOrderList() {
 		if orderType == 1 {
 		if orderType == 1 {
 			if v.GoodsId == 1 {
 			if v.GoodsId == 1 {
 				item.LabelKeywordImgLink = utils.LABEL_ICO_7 //日卡图标
 				item.LabelKeywordImgLink = utils.LABEL_ICO_7 //日卡图标
+				item.LabelKeyword = "畅读日卡"                   //日卡图标
 				item.StartDate = v.StartDate.Format(utils.FormatDateTime)
 				item.StartDate = v.StartDate.Format(utils.FormatDateTime)
 				item.EndDate = v.EndDate.Format(utils.FormatDateTime)
 				item.EndDate = v.EndDate.Format(utils.FormatDateTime)
 			} else if v.GoodsId == 2 {
 			} else if v.GoodsId == 2 {
 				item.LabelKeywordImgLink = utils.LABEL_ICO_8 // 月卡图标
 				item.LabelKeywordImgLink = utils.LABEL_ICO_8 // 月卡图标
+				item.LabelKeyword = "畅读月卡"                   //日卡图标
 				item.StartDate = v.StartDate.Format(utils.FormatDate)
 				item.StartDate = v.StartDate.Format(utils.FormatDate)
 				item.EndDate = v.EndDate.Format(utils.FormatDate)
 				item.EndDate = v.EndDate.Format(utils.FormatDate)
 			}
 			}
 		} else {
 		} else {
 			item.LabelKeywordImgLink = utils.LABEL_ICO_3
 			item.LabelKeywordImgLink = utils.LABEL_ICO_3
+			item.LabelKeyword = "上市公司小范围"
 		}
 		}
 		item.CreateTime = v.CreateTime.Format(utils.FormatDateTime)
 		item.CreateTime = v.CreateTime.Format(utils.FormatDateTime)
 		resp.List = append(resp.List, item)
 		resp.List = append(resp.List, item)

+ 1 - 0
models/order/order.go

@@ -136,6 +136,7 @@ type OrderListResp struct {
 	OrderStatus         int     `comment:"订单状态码"`
 	OrderStatus         int     `comment:"订单状态码"`
 	OrderStatusText     string  `comment:"订单状态描述"`
 	OrderStatusText     string  `comment:"订单状态描述"`
 	LabelKeywordImgLink string  `comment:"标签关键词ico"`
 	LabelKeywordImgLink string  `comment:"标签关键词ico"`
+	LabelKeyword        string  `comment:"标签关键词"`
 	StartDate           string  `comment:"开始日期"`
 	StartDate           string  `comment:"开始日期"`
 	EndDate             string  `comment:"结束日期"`
 	EndDate             string  `comment:"结束日期"`
 }
 }