123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
-
- <script src="/template/pc/js/jquery-v3.1.1.min.js" type="text/javascript"></script>
- <script src="/template/pc/js/zblogphp.js" type="text/javascript"></script>
-
- <!--百度统计代码添加-->
-
- <!--提交和回顶-->
- <!-- <a id="quick_submit" class="fa fa-pencil" href=""></a>-->
- <div id="backtop" class="fa fa-angle-up"></div>
-
- <script src="/template/pc/js/main.js" type="text/javascript"></script>
- <?php
- /*
- *
- <!--初始化Swiper-->
- <script src="/template/pc/js/jquery.cookie.min.js" type="text/javascript"></script>
- <script src="/template/pc/js/swiper.js" type="text/javascript"></script>
- <script>
- var swiper = new Swiper('.swiper-container', {
- pagination: '.swiper-pagination',
- nextButton: '.swiper-button-next',
- prevButton: '.swiper-button-prev',
- centeredSlides: true,
- autoplay: 3500,
- slidesPerView: 1,
- paginationClickable: true,
- autoplayDisableOnInteraction: false,
- spaceBetween: 0,
- loop: true
- });
- </script>
-
- *
- */
-
- ?>
- <!--[if lt IE 9]>
- <script src="/template/pc/js/html5-css3.js"></script>
- <![endif]-->
- <script src="/template/pc/js/21103.js"></script>
- <script src="/template/pc/js/default.js"></script>
- <?php
- /*
- * 收藏 点赞 下载 分享
- * <script src="/template/pc/js/common.js"></script>
- */
- ?>
- <script src="/template/pc/plug/layui/layui.js"></script>
- <script>
- layui.config({
- version: '1632428048355' //为了更新 js 缓存,可忽略
- });
- </script>
- <script>
- layui.use('element', function(){
- var $ = layui.jquery
- ,element = layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块
-
- //触发事件
- var active = {
- tabAdd: function(){
- //新增一个Tab项
- element.tabAdd('demo', {
- title: '新选项'+ (Math.random()*1000|0) //用于演示
- ,content: '内容'+ (Math.random()*1000|0)
- ,id: new Date().getTime() //实际使用一般是规定好的id,这里以时间戳模拟下
- })
- }
- ,tabDelete: function(othis){
- //删除指定Tab项
- element.tabDelete('demo', '44'); //删除:“商品管理”
- othis.addClass('layui-btn-disabled');
- }
- ,tabChange: function(){
- //切换到指定Tab项
- element.tabChange('demo', '22'); //切换到:用户管理
- }
- };
-
- $('.site-demo-active').on('click', function(){
- var othis = $(this), type = othis.data('type');
- active[type] ? active[type].call(this, othis) : '';
- });
-
- //Hash地址的定位
- /*var layid = location.hash.replace(/^#test=/, '');
- element.tabChange('test', layid);
-
- element.on('tab(test)', function(elem){
- location.hash = 'test='+ $(this).attr('lay-id');
- });*/
-
-
- /* tooltip.js初始化 */
- $('.autoleft').tooltip({
- align: 'autoLeft',
- fade: {
- duration: 200,
- opacity: 0.8
- }
- });
-
-
- /* jQuery.positionSticky.js初始化 */
- jQuery('.sticky').positionSticky({offsetTop: 78});
-
-
- //var view = $(".optionBox li:first").text();
- var view = $(".optionBox .active-1 a").text();
- $(".viewInput").val(view);
-
-
- $(".viewBox").click(function () {
- if($(".optionBox").css("display")=="none"){
- $(".optionBox").show();
- $(".btnImg img").attr("src","template/pc/images/arrow_input_up.png")
- }else{
- $(".optionBox").hide();
- $(".btnImg img").attr("src","template/pc/images/arrow_input_down.png")
- }
- });
-
- var checkOption = $(".optionBox li");
- checkOption.click(function () {
- var index = $(".optionBox li").index(this);
- var indexVal = $(".optionBox li:eq("+index+") a").html();
- $(".viewInput").val(indexVal);
- if($(".optionBox").css("display")=="none"){
- $(".optionBox").show();
- $(".btnImg img").attr("src","template/pc/images/arrow_input_up.png")
- }else{
- $(".optionBox").hide();
- $(".btnImg img").attr("src","template/pc/images/arrow_input_down.png")
- }
-
- var url = $(".optionBox li:eq("+index+")").attr('url');
- location.href = 'https://www.zc10000.com' + url;
-
- })
-
-
- //_self
- $(document).on('click','.loop-item-li',function(){
- var aid = $(this).attr('aid');
- var url = $(this).find('a').attr('href');
-
- var $target = $(event.target);
- if ($target.is('a')) {
- // 如果点击的是a标签,则执行以下代码
- console.log('链接被点击');
- // 阻止默认行为,例如不跳转页面
- //event.preventDefault();
- // 其他操作...
- //return false;
- }else{
- //_self
- window.open(url,'_blank');
- }
- });
-
- });
- </script>
- </body>
- </html>
|