2 Star 0 Fork 2

tangze/operatorWeb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
popular-package.html 6.04 KB
一键复制 编辑 原始数据 按行查看 历史
tangze 提交于 2023-11-05 21:33 . 修改页面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex, follow"/>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico"/>
<link rel="stylesheet" href="css/vendor.min.css">
<link rel="stylesheet" href="css/plugins.min.css">
<link rel="stylesheet" href="css/style.min.css">
<style type="text/css">
.product-add-action ul li a {
width: 35px;
height: 35px;
line-height: 39px;
background-color: white;
}
.product-add-action ul li:hover a {
color: white;
background-color: #006fb7;
line-height: 39px;
}
.product-add-action ul li:not(:last-child) {
margin-right: 0px;
}
html{
height: 100%;
overflow-y: hidden;
}
body{
height: 100%;
overflow-y: auto;
}
.anniu{
border: 3px solid #014881;border-radius: 20px;background-color: #2789D5;height: 50px;line-height: 50px;
font-weight: 500;color: white;text-align: center;cursor: pointer;
}
</style>
</head>
<body>
<div class="main-wrapper">
<main class="main-content">
<div class="shop-area section-space-y-axis-100" style="padding-top: 30px;">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="tab-content text-charcoal">
<div class="tab-pane fade show active" id="grid-view" role="tabpanel"
aria-labelledby="grid-view-tab">
<div class="product-grid-view row" id="combo">
<!-- <div class="swiper-slide" style="width: 23%;margin: 10px 1%;">-->
<!-- <div class="product-item">-->
<!-- <div class="product-img img-zoom-effect">-->
<!-- <img class="img-full" src="http://store.etllao.com/wp-content/uploads/2022/07/Etlpackage_update.png">-->
<!-- </div>-->
<!-- <div style="font-size: 15px;margin-top: 6px;" onclick="toUrl(111)">-->
<!-- <div class="anniu">REGISTER NOW</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<div class="footer-area">
<div class="footer-bottom py-3" data-bg-color="#1EB9EE">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="copyright">
<span class="copyright-text text-white">Copyright &copy; 2023.LAO Asia Unicom All rights reserved.</span>
</div>
</div>
</div>
</div>
</div>
</div>
<a class="scroll-to-top" href="">
<i class="fa fa-chevron-up"></i>
</a>
</div>
<script src="layui/layui.js"></script>
<script src="js/config.js"></script>
<script src="js/token.js"></script>
<script src="js/vendor.min.js"></script>
<script src="js/plugins.min.js"></script>
<script src="js/jquery.i18n.min.js"></script>
<script src="js/multi_lang_config.js"></script>
</body>
<script>
var layer = layui.layer;
var form = layui.form;
var moduleName = "shop";
var defaultLang = layui.data('langTab').langType;
initLangConfig({
defaultLang:defaultLang,
filePath: "js/i18n/"+moduleName+"/",
module:moduleName,
base:"js/"
})
var i18np = null;
function changeLang(lang) {
defaultLang = lang;
reloadI18n({
defaultLang:lang,
filePath: "js/i18n/"+moduleName+"/",
module:moduleName,
})
i18np.loadProperties(moduleName);
}
layui.config({base: 'js/'})
// 继承treetable.js插件
.extend({i18np: 'i18n'}).use([ 'i18np','jquery'], function () {
i18np = layui.i18np;
i18np.loadProperties(moduleName);
});
var trRow = [];
$.ajax({
url: HOST + "webapi/combo/getComboByPage?limit=100",
type: "GET",
success: function (res) {
trRow = res.data;
var str1 = "";
for (var i = 0; i < trRow.length; i++) {
str1 += "<div class=\"swiper-slide\" style=\"width: 23%;margin: 20px 1%;\">\n" +
" <div class=\"product-item\">\n" +
" <div class=\"product-img img-zoom-effect\">\n" +
" <img class=\"img-full\" style='width: 240px;height: 240px;' src=\""+trRow[i].picture+"\">\n" +
" </div>\n" +
" <div style=\"font-size: 15px;margin-top: 6px;\" onclick=\"toUrl("+i+")\">\n" +
" <div class=\"anniu\">REGISTER NOW</div>\n" +
" </div>\n" +
" </div>\n" +
" </div>";
}
$("#combo").html(str1);
}
})
//跳转详情页
function toUrl(i) {
window.open("popular-package-detail.html?id="+trRow[i].id);
}
</script>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/woos/operator-web.git
[email protected]:woos/operator-web.git
woos
operator-web
operatorWeb
master

搜索帮助