mirror of https://gitee.com/karson/fastadmin.git
优化前台默认首页
parent
2b81652072
commit
17256db17a
|
|
@ -266,15 +266,17 @@ class Addon extends Backend
|
||||||
|
|
||||||
$info = [];
|
$info = [];
|
||||||
try {
|
try {
|
||||||
|
$info = get_addon_info($name);
|
||||||
$uid = $this->request->post("uid");
|
$uid = $this->request->post("uid");
|
||||||
$token = $this->request->post("token");
|
$token = $this->request->post("token");
|
||||||
$version = $this->request->post("version");
|
$version = $this->request->post("version");
|
||||||
$faversion = $this->request->post("faversion");
|
$faversion = $this->request->post("faversion");
|
||||||
$extend = [
|
$extend = [
|
||||||
'uid' => $uid,
|
'uid' => $uid,
|
||||||
'token' => $token,
|
'token' => $token,
|
||||||
'version' => $version,
|
'version' => $version,
|
||||||
'faversion' => $faversion
|
'oldversion' => $info['version'] ?? '',
|
||||||
|
'faversion' => $faversion
|
||||||
];
|
];
|
||||||
//调用更新的方法
|
//调用更新的方法
|
||||||
$info = Service::upgrade($name, $extend);
|
$info = Service::upgrade($name, $extend);
|
||||||
|
|
@ -337,7 +339,6 @@ class Addon extends Backend
|
||||||
$v['flag'] = '';
|
$v['flag'] = '';
|
||||||
$v['banner'] = '';
|
$v['banner'] = '';
|
||||||
$v['image'] = '';
|
$v['image'] = '';
|
||||||
$v['donateimage'] = '';
|
|
||||||
$v['demourl'] = '';
|
$v['demourl'] = '';
|
||||||
$v['price'] = __('None');
|
$v['price'] = __('None');
|
||||||
$v['screenshots'] = [];
|
$v['screenshots'] = [];
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@
|
||||||
<% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
|
<% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
|
||||||
<span class="btn-group">
|
<span class="btn-group">
|
||||||
<a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
|
<a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
|
||||||
data-type="<%=item.price<=0?'free':'price';%>" data-donateimage="<%=item.donateimage%>"
|
data-type="<%=item.price<=0?'free':'price';%>"
|
||||||
data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
|
data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
|
||||||
<a class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" href="javascript:;">
|
<a class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" href="javascript:;">
|
||||||
<span class="fa fa-caret-down"></span>
|
<span class="fa fa-caret-down"></span>
|
||||||
|
|
@ -247,14 +247,13 @@
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<% for(var j=0;j< item.releaselist.length;j++){ %>
|
<% for(var j=0;j< item.releaselist.length;j++){ %>
|
||||||
<li><a href="javascript:;" class="btn-install" data-type="<%=item.price<=0?'free':'price';%>"
|
<li><a href="javascript:;" class="btn-install" data-type="<%=item.price<=0?'free':'price';%>"
|
||||||
data-donateimage="<%=item.donateimage%>"
|
|
||||||
data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
|
data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
|
||||||
<% } %>
|
<% } %>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
<% }else if(typeof item.releaselist !="undefined" && item.releaselist.length>0){%>
|
<% }else if(typeof item.releaselist !="undefined" && item.releaselist.length>0){%>
|
||||||
<a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
|
<a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
|
||||||
data-type="<%=item.price<=0?'free':'price';%>" data-donateimage="<%=item.donateimage%>"
|
data-type="<%=item.price<=0?'free':'price';%>"
|
||||||
data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
|
data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -4,11 +4,18 @@ body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
@ -50,50 +57,6 @@ p {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-default {
|
|
||||||
font-weight: 200;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .navbar-header .navbar-brand {
|
|
||||||
font-weight: 200;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
color: #474157;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .navbar-header .navbar-brand:hover,
|
|
||||||
.navbar-default .navbar-header .navbar-brand:focus {
|
|
||||||
color: #474157;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .navbar-header .navbar-toggle {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #474157;
|
|
||||||
padding: 8px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .nav > li > a {
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
font-size: 14px;
|
|
||||||
color: #7a798c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .nav > li > a:hover,
|
|
||||||
.navbar-default .nav > li > a:focus:hover {
|
|
||||||
color: #474157;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .nav > li.active > a,
|
|
||||||
.navbar-default .nav > li.active > a:focus {
|
|
||||||
color: #474157 !important;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .nav > li.active > a:hover,
|
|
||||||
.navbar-default .nav > li.active > a:focus:hover {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbody {
|
#mainbody {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -105,23 +68,30 @@ p {
|
||||||
height: calc(100vh - 61px);
|
height: calc(100vh - 61px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainbody .index-text {
|
#mainbody > .container > .text-center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 250px 0 50px;
|
padding: 350px 0 50px;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainbody .index-text h1 {
|
#mainbody > .container > .text-center h1 {
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #171347
|
color: #171347
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainbody .index-gallery {
|
#mainbody > .container > .text-center > a {
|
||||||
text-align: center;
|
background: #fdcc52;
|
||||||
padding: 200px 0 50px;
|
background: -webkit-linear-gradient(#fdcc52, #fdc539);
|
||||||
position: relative;
|
background: linear-gradient(#fdcc52, #fdc539);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
border-radius: 300px;
|
||||||
|
margin-top: 20px;
|
||||||
|
padding: 10px 45px;
|
||||||
|
font-size: 14px;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-height: 500px) {
|
@media (max-height: 500px) {
|
||||||
|
|
@ -143,61 +113,29 @@ p {
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|
||||||
.navbar-default {
|
#mainbody > .container > .text-center {
|
||||||
background-color: #f1f6fd;
|
|
||||||
border-color: #f1f6fd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default .navbar-collapse {
|
|
||||||
background: #f1f6fd;
|
|
||||||
box-shadow: 5px 9px 5px rgba(0, 0, 0, 0.07);
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbody {
|
|
||||||
height: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbody .index-text {
|
|
||||||
padding: 130px 0 0 0;
|
padding: 130px 0 0 0;
|
||||||
height: calc(100vh - 261px);
|
height: calc(100vh - 261px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainbody .index-gallery {
|
#mainbody > .container > .text-center > h1 {
|
||||||
padding: 30px 0 50px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbody .index-text h1 {
|
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
.footer {
|
||||||
background-color: #222222;
|
background-color: #222222;
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
color: rgba(255, 255, 255, 0.3);
|
color: rgba(255, 255, 255, 0.3);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer p {
|
.footer p {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-primary {
|
|
||||||
background: #fdcc52;
|
|
||||||
background: -webkit-linear-gradient(#fdcc52, #fdc539);
|
|
||||||
background: linear-gradient(#fdcc52, #fdc539);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
border-radius: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-xl {
|
|
||||||
margin-top: 20px;
|
|
||||||
padding: 10px 45px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue