74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
@model WalkingTec.Mvvm.Core.BaseVM
|
|
@using System.Text.Json
|
|
|
|
<div class="layui-row layui-col-space15" id="frontpage">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header">快捷菜单</div>
|
|
<div class="layui-card-body">
|
|
|
|
<div class="layui-carousel layadmin-carousel layadmin-shortcut">
|
|
<div carousel-item>
|
|
<ul class="layui-row layui-col-space10">
|
|
<li class="layui-col-xs3">
|
|
<a lay-href="receipt/ReceiptIn/Index">
|
|
<i class="layui-icon layui-icon-file"></i>
|
|
<cite>出入库操作</cite>
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<script>
|
|
$("#frontpage").parent().css("background-color", "#eee");
|
|
$.get("/Home/GetGithubInfo", function (r) {
|
|
if (r === undefined || r === null) {
|
|
return;
|
|
}
|
|
$("#githubstar").html(r.stargazers_count);
|
|
$("#githubstars").html(r.stargazers_count);
|
|
$("#githubfork").html(r.forks_count);
|
|
$("#githubwatch").html(r.subscribers_count);
|
|
$("#githubissue").html(r.open_issues_count);
|
|
});
|
|
|
|
//区块轮播切换
|
|
layui.use(['admin', 'carousel'], function () {
|
|
var $ = layui.$
|
|
, admin = layui.admin
|
|
, carousel = layui.carousel
|
|
, element = layui.element
|
|
, device = layui.device();
|
|
|
|
//轮播切换
|
|
$('.layadmin-carousel').each(function () {
|
|
var othis = $(this);
|
|
carousel.render({
|
|
elem: this
|
|
, width: '100%'
|
|
, arrow: 'none'
|
|
, interval: othis.data('interval')
|
|
, autoplay: othis.data('autoplay') === true
|
|
, trigger: (device.ios || device.android) ? 'click' : 'hover'
|
|
, anim: othis.data('anim')
|
|
});
|
|
});
|
|
|
|
element.render('progress');
|
|
|
|
});
|
|
|
|
</script>
|