PageSourceSearch

https://js.cndns.com/cn/shop/inc/js/tempst.js?_v=20260904002

js cndns.com collected 2026-10-03 23:08:51 UTC 9,819 bytes, 271 lines download raw bytes

1$(function () {
2    var currentpage = "";
3    var pageSize = 20;
4
5
6    var pageIndex = 0;
7
8    var ezsite_prd = $("#getfreeORcharge").val();
9    InitTable(0);
10
11    //翻页调用  
12    function PageCallback(index, jq) {
13        InitTable(index);
14    }
15    $('.tem_main_m dl dt').hover(function () {
16        $(this).find('.dt_s').stop().animate({ top: '140px' })
17        $(this).find('.bg').fadeIn(500)
18        $(this).find('.dt_t').fadeIn(800)
19    }, function () {
20        $(this).find('.dt_s').stop().animate({ top: '165px' })
21        $(this).find('.bg').fadeOut(10)
22        $(this).find('.dt_t').fadeOut(10)
23    })
24
25    ////  ID  搜索
26
27    $("#searchbtn").click(function () {
28        var str = $("#temID").val();
29
30        $("#types_id").val(str);
31        if (str == "No." || str == "") {
32
33            $("#types_id").val("");
34        }
35
36        InitTable(0);
37
38    });
39
40
41    $('.pcwap_o').hover(function () {
42        $(this).find('.pc_bg,.pc_log,.wap_bg,.wap_log').fadeIn(250)
43    }, function () {
44        $(this).find('.pc_bg,.pc_log,.wap_bg,.wap_log').fadeOut(250)
45    })
46    $('.newcase-meau-o ul li').click(function () {
47        var linum = $(this).index();
48        $(this).addClass('on').siblings().removeClass('on');
49        $('.case_main_all').eq(linum).fadeIn().siblings().hide();
50        if (linum == 0) {
51            $("#teme_if").val("2");
52         
53        } else if (linum == 1) {
54            $("#teme_if").val("1");
55           
56        }
57        $("#model").val("pc");
58        InitTable(0);
59
60    })
61
62
63
64    //请求数据  
65    function InitTable(pageIndex) {
66        var typeTemple = $("#getfreeORcharge").val();
67        var model = $("#model").val();
68        var str = $("#carty_closr").val();
69        var categories = $("#categories").val();
70        var types_id = $("#types_id").val();
71        var accesskey = $("#accesskey").val();
72        var teme_if = $("#teme_if").val();
73        var tpl_level = $("#tpl_level").val();
74
75        $.ajax({
76            type: "POST",
77            dataType: "text",
78            beforeSend: function (xhr) {
79
80
81                if (model == "all") {
82                    $("#tem_main_m").html("<img style=\"margin-left:500px;margin-top:50px;\" src=\"" + imgcndns + "/siteimages/loadingBig.gif\" />");
83
84                } else if (model == "pc") {
85
86
87                    $("#putong").html("<img style=\"margin-left:500px;margin-top:50px;\" src=\"" + imgcndns + "/siteimages/loadingBig.gif\" />");
88
89
90                } else if (model == "mbl") {
91                    $("#mobl").html("<img style=\"margin-left:10px;margin-top:50px;\" src=\"" + imgcndns + "/siteimages/loadingBig.gif\" />");
92
93                }
94                $(".case_main_all").show();
95
96            },
97            url: '/cn/webnew/GetTemple.ashx',     //提交到一般处理程序请求数据  
98            data: "pageIndex=" + (pageIndex + 1) + "&pageSize=" + pageSize + "&ezsite_prd=" + typeTemple + "&carty_closr=" + str + "&model=" + model + "&categories=" + categories + "&type_code=1&accesskey=" + accesskey + "&types_id=" + types_id + "&teme_if=" + teme_if + "&tpl_level=" + tpl_level + "",          //提交两个参数:pageIndex(页面索引),pageSize(显示条数)                  
99            success: function (data) {
100
101
102
103                if (types_id != "") { ////根据id  搜索
104
105
106                    $("#datacache").html(data);
107
108
109                    model = $("#datacache").find(".json").attr("lang");
110                    var prc = $("#datacache").find(".json").attr("prc");
111                    $("#datacache").html("");
112
113                    if (model == "mobile") {
114                        model = "mbl";
115                    } else {
116
117                        model = "pc";
118                    }
119                    if (prc == "0") {
120                        teme_if = "1";
121
122                        $('#isfree li').siblings().removeClass("on");
123                        $('#isfree li:eq(1)').addClass("on");
124
125                    } else {
126                        teme_if = "2";
127                        $('#isfree li').siblings().removeClass("on");
128                        $('#isfree li:eq(0)').addClass("on");
129                    }
130                    $("#mod-type dd a").siblings().removeClass("on");
131                    $("#mod-type dd a[lang='" + model + "']").addClass("on");
132
133                    $("#teme_if").val(teme_if);
134                    $("#model").val(model);
135                    $("#types_id").val("");
136
137                }
138
139
140                if (model == "pc" && teme_if == "1") {
141                    $("#putong").addClass("pt");
142
143                } else {
144                    $("#putong").removeClass("pt");
145
146                }
147
148
149                if (model == "all") {
150
151                    $("#tem_main_m").html(data);
152                } else if (model == "pc") {
153
154                    $("#putong").html(data);
155
156                } else if (model == "mbl") {
157
158                    $("#mobl").html(data);
159
160                }
161
162
163                if (model == "all") {
164                    $("#tem_main_m").show();
165                    $("#putong").hide();
166                    $(".Pagination").hide();
167                    $("#mobl").hide();
168                    $("#tem_main_m").parent().find(".Pagination").show();
169
170                } else if (model == "pc") {
171                    $("#putong").show();
172                    $("#tem_main_m").hide();
173                    $(".Pagination").hide();
174                    $("#mobl").hide();
175                    $("#putong").parent().find(".Pagination").show();
176
177                } else if (model == "mbl") {
178                    $("#mobl").show();
179                    $("#putong").hide();
180                    $(".Pagination").hide();
181                    $("#tem_main_m").hide();
182                    $("#mobl").parent().find(".Pagination").show();
183                }
184
185
186                $(".wwz_main_s_m dl").hover(function () {
187
188                    $(this).find('dd,.bg').stop().fadeIn(400);
189                },
190          function () {
191              $(this).find('dd,.bg').stop().fadeOut(400);
192          }
193        )
194
195                /////显示预览的效果
196
197                //$('.pcwap_o').hover(function () {
198                //    $(this).find('.pc_bg,.pc_log,.wap_bg,.wap_log').fadeIn(250)
199                //}, function () {
200                //    $(this).find('.pc_bg,.pc_log,.wap_bg,.wap_log').fadeOut(250)
201                //})
202
203            
204                    $('.tem_main_m dl dt').hover(function () {
205                        $(this).find('.dt_s').stop().animate({
206                            top: '140px'
207                        })
208                        $(this).find('.bg').fadeIn(500)
209                        $(this).find('.dt_t').fadeIn(800)
210                    }, function () {
211                        $(this).find('.dt_s').stop().animate({
212                            top: '165px'
213                        })
214                        $(this).find('.bg').fadeOut(10)
215                        $(this).find('.dt_t').fadeOut(10)
216                    })
217
218                
219
220               
221
222                $('.pt.tem_main_m dl dt').hover(function () {
223                    $(this).find('.dt_s').stop().animate({
224                        top: '165px'
225                    })
226                    $(this).find('.bg').fadeIn(500)
227                    $(this).find('.dt_t').fadeIn(0)
228                }, function () {
229                    $(this).find('.dt_s').stop().animate({
230                        top: '165px'
231                    })
232                    $(this).find('.bg').fadeOut(10)
233                    $(this).find('.dt_t').fadeIn(0)
234                })
235
236
237                $.ajax({
238                    type: "POST",
239                    dataType: "text",
240                    url: '/cn/webnew/GetTemple.ashx',     //提交到一般处理程序请求数据  
241                    data: "pageIndex=" + (pageIndex + 1) + "&pageSize=" + pageSize + "&ezsite_prd=" + typeTemple + "&carty_closr=" + str + "&model=" + model + "&categories=" + categories + "&type_code=2&accesskey=" + accesskey + "&types_id=" + types_id + "&teme_if=" + teme_if + "&tpl_level=" + tpl_level + "",          //提交两个参数:pageIndex(页面索引),pageSize(显示条数)                  //提交两个参数:pageIndex(页面索引),pageSize(显示条数)                  
242                    success: function (result) {
243                        if (result == "NO Data") {
244                            $(".Pagination").hide();
245                            return false;
246                        }
247                        //分页,PageCount是总条目数,这是必选参数,其它参数都是可选  
248                        $(".Pagination").pagination(result, {
249                            callback: PageCallback,
250                            first_text: '',
251                            //  prev_text: '<span class="back"></span>',       //上一页按钮里text  
252                            next_text: '<span class="next">></span>',       //下一页按钮里text  
253                            last_text: '',
254                            ellipse_text: '...',
255                            items_per_page: pageSize,  //显示条数  
256                            num_display_entries: 6,    //连续分页主体部分分页条目数  
257                            current_page: pageIndex,   //当前页索引  
258                            num_edge_entries: 2        //两侧首尾分页条目数  
259                        });
260
261
262
263                    }
264                });
265
266
267
268            }
269        });
270    }
271});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.