?// ec.points = { api: new ec.api("apply"), isLogin: "", init: function () { ke.ui.render(); ke.ui.bind("inputChange", function () { ec.points.refresh(); }); var obj = this.parseQueryString(window.location.href); ke.bindObject(obj); }, refresh: function () { var isDesign = (ke.parm("design") == 1); var obj = ke.createObject("filter"); var url = L.route + "/point/mall"; if (isDesign) url += "?design=1"; if (obj.Type != -1 && obj.Points != -1) url = url +(isDesign?"&":"?")+ "type=" + obj.Type + "&points=" + obj.Points; else if (obj.Type != -1) url = url + (isDesign?"&":"?")+"type=" + obj.Type; else if (obj.Points != -1) url = url +(isDesign?"&":"?")+ "points=" + obj.Points; window.location.href = url; }, parseQueryString: function (url) { var obj = {}; obj.Type = ke.parm("type") ? ke.parm("type") : -1; obj.Points = ke.parm("points") ? ke.parm("points") : -1; return obj; }, applyOpen: function (rid, url, point, userPoints) { if(this.isLogin=="true") ec.popup(L.G('甌兑换'), '/point/apply?rid=' + rid, 400, 544); else window.location.href = L.route + "/account/login"; }, select: function (i) { var list = $(".apply-section .item"); list.removeClass("active").eq(i).addClass("active"); }, apply: function (rid) { var info = {}; info.ProductRID = rid; info.UserAddressRID = $(".adress .active").attr("data-rid"); this.api.post("JFProduct", info, function (r) { if (r) { $(".apply-section").hide(); $(".success-section").show(); var open = window.top.$("#ke_open_window"); var winHeight = $(window.top).height(); open.find(".panel-body").height("392"); if (winHeight > open.height()) open.css("top", (winHeight - open.height()) / 2); } }); } } 7788精品视频免费观看_亚洲精品美女久久777777_性无码一区二区三区在线观看_99re这里只有精品国产精品