wholesalePicker.js 5.2 KB

1
  1. eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('24([\'w\',\'1r\',\'1u/1P/1n\',\'1u/2g/1t\',\'19\'],b(w,1r,1n,1t,19){9 5={o:0,c:[],x:J,1b:[],1i:[],1k:[],S:0,r:[],f:{2i:[],1q:J,Y:I}};5.2a=b(f){5.f=$.2b(5.f,f||{});7(5.o!=f.o){5.o=f.o;w.2f(\'c/1F\',{m:f.o},b(g){7(g.1c==0){y.X.d(\'未找到商品!\');e}5.K=\'\';5.C=\'\';7(g.1c==2){5.K=g.p.K;5.C=g.p.C;5.d();e}7(g.1c==4){5.1Q=1;5.d();e}7(g.1c==3){5.1N=1;5.d();e}5.1H=1r(\'x-1F\',g.p);5.c=g.p.c;5.1b=g.p.1b;5.1i=g.p.1i;5.1k=g.p.1k;5.S=g.p.S;7(5.c.1B==\'\'){5.c.1B=\'件\'}5.d()},I,J)}n{5.d()}};5.q=b(){5.6.q()};5.1I=b(){7(5.S==2){$(\'.1p\',5.6.6).v(\'h\').h(b(){9 N=$(k).F(\'m\');$(\'.1p\',5.6.6).1x(\'18\');$(k).1y(\'18\');$(\'.16\',5.6.6).E();$(\'#1z\'+N,5.6.6).d()});9 N=5.1b[0].m;$(\'.1p\',5.6.6).1x(\'18\');$(\'#1j\'+N,5.6.6).1y(\'18\');$(\'.16\',5.6.6).E();$(\'#1z\'+N,5.6.6).d()}$(\'.1C\',5.6.6).v(\'h\').h(b(){5.1L()});$(\'.27-2j\',5.6.6).v(\'h\').h(b(){5.q()});$(\'.1T\',5.6.6).v(\'h\').h(b(){7($(k).1o(\'U\')){e}7(!5.W()){e}L.R=w.Z(\'1X/1Y\',{m:5.c.m,1W:1,r:1V.1U.1Z(5.r)});7(5.f.Y){5.q()}});$(\'.1K\',5.6.6).v(\'h\').h(b(){7($(k).1o(\'U\')){e}7(!5.W()){e}7(5.f.1q){5.f.1q(5.r)}7(5.f.Y){5.q()}});9 19=1R 25(\'.19-6\',{23:I,21:3,22:\'.1A-2e\',2k:\'.1A-2F\',});$(\'.2E\',5.6.6).v(\'h\').h(b(){5.q()});$(\'.1d-1J\').v(\'h\').h(b(){5.q()});$(\'.1d-2I\',5.6.6).17(b(){9 1l=$(k).2J().s(\'1s\').j();9 $1E=$(k).2O(".1h");7(1l>0){$(k).2P({2Q:0,2N:0,2M:1l,2K:1,2L:"不能大于剩余库存",2B:b(a){$1E.A(\'F-a\',a);5.1g()}})}n{$(k).s(".T").A("U",I)}});9 z=$(2q.16).z()*0.8;9 1w=z-$(\'.x-u-2p\').1D()-$(\'.x-u .1d-2o\').1D();5.6.6.s(\'.x-u\').1G(\'z\',z);5.6.6.s(\'.x-u .x-u-2n \').1G(\'z\',1w)};5.1g=b(){9 t=5.c.t;9 a=0;9 2x=0;9 l=0;9 11=[];$(\'.1h\',5.6.6).17(b(){9 T=1a($(k).A("F-a"));a=a+T;9 V=$(k).A("F-V");11[11.14]={\'V\':V,\'a\':T}});5.r=11;7(5.S==2){$(\'.16\',5.6.6).17(b(){9 m=$(k).A("F-m");9 P=0;$(k).s(\'.1h\').17(b(){P=P+1a($(k).A("F-a"))});7(P>0){$(\'#1j\'+m,5.6.6).s(\'.1v\').d().j(P)}n{$(\'#1j\'+m,5.6.6).s(\'.1v\').E().j("")}})}9 H=5.c.H;9 13=5.c.13;9 12=5.c.12;9 M=5.c.M;9 10=5.c.10;9 Q=5.c.Q;7(a>=10&&5.c.t>2){$(\'#15\',5.6.6).j("单价: ¥"+Q+"/件 共"+a+"件");9 l=Q*a;$(\'#l\',5.6.6).j(l.1m(2));$(\'#D\',5.6.6).E()}n 7(a>=12&&5.c.t>1){$(\'#15\',5.6.6).j("单价: ¥"+M+"/件 共"+a+"件");9 l=M*a;$(\'#l\',5.6.6).j(l.1m(2));7(5.c.t>2){9 G=10-a;$(\'#D\',5.6.6).d().j("再购买"+G+"件享受¥"+Q+"/件的价格")}n{$(\'#D\',5.6.6).E()}}n 7(a>=H&&5.c.t>0){$(\'#15\',5.6.6).j("单价: ¥"+13+"/件 共"+a+"件");9 l=13*a;$(\'#l\',5.6.6).j(l.1m(2));7(5.c.t>1){9 G=12-a;$(\'#D\',5.6.6).d().j("再购买"+G+"件享受¥"+M+"/件的价格")}n{$(\'#D\',5.6.6).E()}}n 7(a<H){9 G=H-a;$(\'#D\',5.6.6).d().j("再购买"+G+"件达到最低起批数量");$(\'#15\',5.6.6).j(\'您已选购\'+a+"件商品");$(\'#l\',5.6.6).j(0)}};5.d=b(){7(5.K){y.1O(5.K,b(){7(5.C!=\'\'&&5.C!=2w){L.R=5.C}});e}7(5.1Q){9 B=w.Z(\'c/2z\',{m:5.o});B=B.2s("./2l.2A?","");y.1O("请先登录","提示",b(){L.R=w.Z(\'2D/2G\',{B:1M(B)})});e}7(5.1N){y.20("请先绑定手机","提示",b(){L.R=w.Z(\'1P/2h\',{B:1M(L.R)})});e}5.6=1R 2d({29:5.1H,28:"u-5"});5.1I();5.1g();$(\'.1d-1J\').d(),$(\'.u-5\').d();7(5.f.2c){$(\'.1K\',5.6.6).d()}n{$(\'.1T\',5.6.6).d();7(5.c.26){$(\'.1C\',5.6.6).d()}}5.6.d()};5.1L=b(){7($(k).1o(\'U\')){e}7(!5.W()){e}5.f.a=1a($(\'.T\',5.6.6).2H());1n.2r(5.o,5.r,b(g){y.X.d(\'添加成功\');5.1S(g.2u)});7(5.f.Y){5.q()}};5.W=b(){7(5.c.t<=0){y.X.d(\'商品价格信息错误!\');e J}9 a=0;2v(9 i=0;i<5.r.14;i++){a=a+1a(5.r[i].a)}7(5.c.H>a){y.X.d(\'未达到最低起批数量!\');e J}e I};5.1S=b(1f){7($("#1e").14>0){9 O=$("#1e").s(".O");7(O.14<1){$("#1e").2y(\'<1s 2t="O">\'+1f+"</2m>")}n{O.2C(1f)}}};e 5});',62,177,'|||||modal|container|if||var|total|function|goods|show|return|params|ret|click||html|this|totalprice|id|else|goodsid|result|close|buyoptions|find|intervalfloor|picker|unbind|core|option|FoxUI|height|attr|backurl|followurl|again|hide|data|need|intervalnum1|true|false|followtip|location|intervalprice2|item1id|badge|total2|intervalprice3|href|hasoption|num|disabled|optionid|check|toast|autoClose|getUrl|intervalnum3|buyoption|intervalnum2|intervalprice1|length|UnitPrice|body|each|active|swiper|parseInt|spec1items|status|fui|menucart|count|caculate|optiondata|spec2items|item1_|options|stock|toFixed|cart|hasClass|btnitem1|onConfirm|tpl|span|diyform|biz|dot|optionsHeight|removeClass|addClass|body_|go|unit|cartbtn|outerHeight|parent|wholesalepicker|css|containerHTML|init|mask|confirmbtn|addToCart|btoa|mustbind|confirm|member|needlogin|new|changeCartcount|buybtn|JSON|window|iswholesale|order|create|stringify|alert|slidesPerView|nextButton|paginationClickable|define|Swiper|canAddCart|icon|extraClass|content|open|extend|showConfirm|FoxUIModal|right|json|plugin|bind|selectoption|guanbi1|prevButton|index|div|inner|navbar|cell|document|addwholesale|replace|class|cartcount|for|null|price|append|detail|php|callback|text|account|closebtn|left|login|val|number|prev|canzero|maxToast|max|min|parents|numbers|value'.split('|'),0,{}))