xingzai 1 سال پیش
والد
کامیت
dc15663c52
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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 v.GoodsId == 1 {
 				item.LabelKeywordImgLink = utils.LABEL_ICO_7 //日卡图标
+				item.LabelKeyword = "畅读日卡"                   //日卡图标
 				item.StartDate = v.StartDate.Format(utils.FormatDateTime)
 				item.EndDate = v.EndDate.Format(utils.FormatDateTime)
 			} else if v.GoodsId == 2 {
 				item.LabelKeywordImgLink = utils.LABEL_ICO_8 // 月卡图标
+				item.LabelKeyword = "畅读月卡"                   //日卡图标
 				item.StartDate = v.StartDate.Format(utils.FormatDate)
 				item.EndDate = v.EndDate.Format(utils.FormatDate)
 			}
 		} else {
 			item.LabelKeywordImgLink = utils.LABEL_ICO_3
+			item.LabelKeyword = "上市公司小范围"
 		}
 		item.CreateTime = v.CreateTime.Format(utils.FormatDateTime)
 		resp.List = append(resp.List, item)

+ 1 - 0
models/order/order.go

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