XMTT 7 years ago
parent
commit
238cc1454a
1 changed files with 15 additions and 6 deletions
  1. 15 6
      js/discover.js

+ 15 - 6
js/discover.js

174
				"pageNo":pageNo
174
				"pageNo":pageNo
175
			},
175
			},
176
			"beforeSend": function() {
176
			"beforeSend": function() {
177
				$(".table-body").append('<img src="../images/loading.gif" class="loading" />');
177
				// $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
178
                $("#table-item-"+index).parent().find(".continue").css("pointer-events", "none");
178
			},
179
			},
180
			"complete":function () {
181
                $("#table-item-"+index).parent().find(".continue").css("pointer-events", "");
182
            },
179
			"success" : function(data) {
183
			"success" : function(data) {
180
				if (data.success){
184
				if (data.success){
181
					var idItem=0
185
					var idItem=0
196
						}
200
						}
197
					}else{
201
					}else{
198
						$("#table-item-"+idItem).html(strNo);
202
						$("#table-item-"+idItem).html(strNo);
199
						$("#table-item-"+idItem).parent().find(".tcdPageCode").hide();
200
					}
203
					}
201
					//分页
204
					//分页
202
					if(isbind==true){
205
					if(isbind==true){
230
				"ex":exculdeId2s,
233
				"ex":exculdeId2s,
231
            },
234
            },
232
            "beforeSend": function() {
235
            "beforeSend": function() {
233
                $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
236
                // $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
237
                $("#table-item-0").parent().find(".continue").css("pointer-events", "none");
238
            },
239
			"complete":function () {
240
                $("#table-item-0").parent().find(".continue").css("pointer-events", "");
234
            },
241
            },
235
            "success" : function(data) {
242
            "success" : function(data) {
236
                if (data.success){
243
                if (data.success){
258
                        }
265
                        }
259
                    }else{
266
                    }else{
260
                        $("#table-item-0").html(strNo);
267
                        $("#table-item-0").html(strNo);
261
                        $("#table-item-0").parent().find(".tcdPageCode").hide();
262
                    }
268
                    }
263
                    //分页
269
                    //分页
264
                    if(isbind==true){
270
                    if(isbind==true){
291
				"rows":rows
297
				"rows":rows
292
			},
298
			},
293
			"beforeSend": function() {
299
			"beforeSend": function() {
294
				$(".table-body").append('<img src="../images/loading.gif" class="loading" />');
300
				// $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
301
                $("#table-item-3").parent().find(".continue").css("pointer-events", "none");
295
			},
302
			},
303
			"complete":function () {
304
                $("#table-item-3").parent().find(".continue").css("pointer-events", "");
305
            },
296
			"success" : function(data) {
306
			"success" : function(data) {
297
				if (data.success){
307
				if (data.success){
298
                    var dataStr=data.data;
308
                    var dataStr=data.data;
310
                        }
320
                        }
311
					}else{
321
					}else{
312
						$("#table-item-3").html(strNo);
322
						$("#table-item-3").html(strNo);
313
						$("#table-item-3").parent().find(".tcdPageCode").hide();
314
					}
323
					}
315
					//分页
324
					//分页
316
                    if(isbind==true){
325
                    if(isbind==true){