代码拉取完成,页面将自动刷新
<!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 © 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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。