index.html
3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<style>
@media screen and (min-width:600px) {
.main_left{
min-height: 79.4vh !important;
}
.main{
min-height: 79.4vh !important;
}
}
.rotation {
height: 200px;
}
.rotation img {
width: 100%;
height: 100%;
}
.main .main_left li a {
color: #555555;
}
.left_active {
font-weight: bold !important;
border-left: 5px solid #f3b143;
}
.left_active a {
color: #242e85 !important;
}
.intro {
font-size: 1.8rem !important;
}
.news_item img {
width: 200px !important;
border-radius: 10px;
object-fit: cover;
}
</style>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=0,width=device-width, initial-scale=0.3">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/news.css" />
<link rel="stylesheet" type="text/css" href="__CDN__/assets/libs/swiper/package/swiper-bundle.min.css" />
<title></title>
</head>
<body>
<div class="rotation">
<img src="__CDN__/assets/img/teacherRotation.png" />
</div>
<div class="main">
<input type="hidden" class="category_id" value="{$category_id}">
<ul class="main_left">
<li>{eq name="type" value="1"}基地展示{else/}成果展示{/eq}</li>
{notempty name="tab"} {volist name="tab" id="item"}
<li><a data-id="{$item['category_id']}" href="{:url('basedisplay/index',['id'=>$item['category_id'],'type' => $type])}" data-id="{$item['category_id']}">{$item['category_title']}</a></li>
{/volist} {/notempty}
</ul>
<div class="main_right">
<div class="title">
<div class="title_left">
<text style="color: #555;font-weight: 550;">{eq name="type" value="1"}基地展示{else/}成果展示{/eq}</text>
<text style="color: #999;">{eq name="type" value="1"}BASE_DIAPLAY{else/}ACHIEVEMENT{/eq}</text>
</div>
<div class="title_right">
<button class=" btn btn-info" style="position: absolute; bottom: 1rem; right: 1rem; font-size: 0.8rem; " onclick="javascript:history.go(-1);">返回</button>
</div>
</div>
{notempty name="info"} {if condition="$type eq 1 "} {volist name="info" id="data"}
<div class="news">
<a href="{:url('basedisplay/detail',['id'=>$data['base_id'],'type'=>$type])}">
<div class="news_item">
<img style="width: 100%; " src="__SUBDOMAIN__{$data.image}">
<div class="news_info">
<p style="font-size: 1rem;">{$data.base_title}</p>
<p class="news-content">{$data.desc}</p>
</div>
</div>
</a>
</div>
{/volist} {else/} {volist name="info" id="data"}
<div class="news">
<a href="{:url('basedisplay/detail',['id'=>$data['achievements_id'],'type'=>$type])}">
<div class="news_item">
<img style="width: 100%; " src="__SUBDOMAIN__{$data.image}">
<div class="news_info">
<p style="font-size: 1rem;">{$data.achievements_title}</p>
<p class="news-content">{$data.desc}</p>
</div>
</div>
</a>
</div>
{/volist} {/if} {/notempty}
<div>
{$render}
</div>
</div>
</div>
</body>
</html>