|
@@ -85,11 +85,12 @@ class Activity extends Api |
|
@@ -85,11 +85,12 @@ class Activity extends Api |
85
|
"code":"状态码",
|
85
|
"code":"状态码",
|
86
|
"msg": "提示消息",
|
86
|
"msg": "提示消息",
|
87
|
"data": {
|
87
|
"data": {
|
88
|
- "school": [学校]
|
|
|
89
|
- "ronda": [
|
|
|
90
|
- "item": 项目
|
|
|
91
|
- "item_details": 项目详情
|
|
|
92
|
- ]
|
88
|
+ "campus_title": "校区名称",
|
|
|
89
|
+ "ronda_title": "场次",
|
|
|
90
|
+ "ronda_holdtime": "场次时间",
|
|
|
91
|
+ "title": "项目名称",
|
|
|
92
|
+ "images": "项目图片",
|
|
|
93
|
+ "details": "项目详情"
|
93
|
}
|
94
|
}
|
94
|
})
|
95
|
})
|
95
|
*/
|
96
|
*/
|
|
@@ -103,7 +104,7 @@ class Activity extends Api |
|
@@ -103,7 +104,7 @@ class Activity extends Api |
103
|
->join('item_details d','d.item_id = i.id')
|
104
|
->join('item_details d','d.item_id = i.id')
|
104
|
->join('ronda r','i.ronda_id = r.id')
|
105
|
->join('ronda r','i.ronda_id = r.id')
|
105
|
->join('campus c','c.id = i.campus_id')
|
106
|
->join('campus c','c.id = i.campus_id')
|
106
|
- ->field('c.title as campus_title,i.title,i.details,d.images,r.title as ronda_title,r.holdtime as ronda_holdtime')
|
107
|
+ ->field('c.title as campus_title,r.title as ronda_title,r.holdtime as ronda_holdtime,i.title,d.images,i.details')
|
107
|
->where('i.campus_id',$id)
|
108
|
->where('i.campus_id',$id)
|
108
|
->paginate(10)
|
109
|
->paginate(10)
|
109
|
->each(function ($item,$key){
|
110
|
->each(function ($item,$key){
|
|
@@ -124,11 +125,9 @@ class Activity extends Api |
|
@@ -124,11 +125,9 @@ class Activity extends Api |
124
|
"code":"状态码",
|
125
|
"code":"状态码",
|
125
|
"msg": "提示消息",
|
126
|
"msg": "提示消息",
|
126
|
"data": {
|
127
|
"data": {
|
127
|
- "school_name": 校区信息{},
|
|
|
128
|
- "ronda": 场次信息{
|
|
|
129
|
- "data": [{
|
|
|
130
|
- "item": 场次对应的项目信息{},
|
|
|
131
|
- ]}
|
128
|
+ "campus_title": "校区名称",
|
|
|
129
|
+ "images": "项目图片",
|
|
|
130
|
+ "details": "项目详情"
|
132
|
})
|
131
|
})
|
133
|
*/
|
132
|
*/
|
134
|
public function getItemDetails()
|
133
|
public function getItemDetails()
|
|
@@ -141,6 +140,6 @@ class Activity extends Api |
|
@@ -141,6 +140,6 @@ class Activity extends Api |
141
|
->where('i.id', $id)
|
140
|
->where('i.id', $id)
|
142
|
->find();
|
141
|
->find();
|
143
|
$data['images'] = cdnurl($data['images'], true);
|
142
|
$data['images'] = cdnurl($data['images'], true);
|
144
|
- $this->success('', $data);
|
143
|
+ $this->success('获取项目详情成功', $data);
|
145
|
}
|
144
|
}
|
146
|
} |
145
|
} |