From 19e2d028c3f30d3a2ccac71d303ad170259477e8 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 21 Nov 2018 17:55:33 +0800 Subject: [PATCH] cart --- alipay/app.acss | 19 +- alipay/images/address-select-active-icon.png | Bin 5794 -> 0 bytes alipay/images/address-select-icon.png | Bin 5225 -> 0 bytes alipay/images/default-cart-empty.png | Bin 0 -> 5608 bytes alipay/images/default-select-active-icon.png | Bin 0 -> 3929 bytes alipay/images/default-select-icon.png | Bin 0 -> 4792 bytes alipay/pages/cart/cart.acss | 78 +++++++- alipay/pages/cart/cart.axml | 93 ++++++--- alipay/pages/cart/cart.js | 188 +++++++++++++++++- alipay/pages/cart/cart.json | 6 +- .../goods-attribute/goods-attribute.axml | 2 +- .../pages/goods-category/goods-category.axml | 2 +- alipay/pages/goods-category/goods-category.js | 9 +- alipay/pages/goods-detail/goods-detail.acss | 6 +- alipay/pages/goods-detail/goods-detail.axml | 3 +- alipay/pages/goods-detail/goods-detail.js | 115 +++++++++-- alipay/pages/goods-search/goods-search.axml | 6 +- alipay/pages/user-address/user-address.axml | 4 +- .../Controller/GoodsController.class.php | 2 +- .../Application/Admin/Lang/zh-cn/goods.php | 2 +- .../Admin/View/Default/Goods/Index.html | 4 +- .../Admin/View/Default/Goods/SaveInfo.html | 2 +- .../Api/Controller/CartController.class.php | 3 +- .../Api/Controller/GoodsController.class.php | 188 +++--------------- .../Home/View/Default/Cart/Index.html | 5 +- .../Application/Service/BuyService.class.php | 30 +-- .../Service/GoodsService.class.php | 48 ++++- 27 files changed, 547 insertions(+), 268 deletions(-) delete mode 100755 alipay/images/address-select-active-icon.png delete mode 100755 alipay/images/address-select-icon.png create mode 100644 alipay/images/default-cart-empty.png create mode 100644 alipay/images/default-select-active-icon.png create mode 100644 alipay/images/default-select-icon.png diff --git a/alipay/app.acss b/alipay/app.acss index c5895806b..56008a9f0 100755 --- a/alipay/app.acss +++ b/alipay/app.acss @@ -205,14 +205,23 @@ textarea { width: 100%; } +.bg-main, .bg-primary, .bg-warning { + color: #fff; + border: 0; + font-size: 34rpx; +} .bg-main { - background: #d2364c; - color: #fff; - border: 0; + background: #d2364c; +} +.bg-primary { + background: #ed6977; +} +.bg-warning { + background: #F37B1D; } .bg-active-main { - background: #d2364c !important; - color: #fff !important; + background: #d2364c !important; + color: #fff !important; } .submit-bottom { diff --git a/alipay/images/address-select-active-icon.png b/alipay/images/address-select-active-icon.png deleted file mode 100755 index 1e0624d6580ce19d7c51abc00075cd4bcc3b78e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5794 zcmV;T7G3FyP);yIeAQJ=`v(xb-2Xf(-F zBUJ-}OP;u|QCVD)XiV~qi6|lvcSRvD;DR7s|2wz38E2U8y0^NkXS#>E=WzOP=C6DI z`~P3vd+WddLiD!{S_0glXWu`0^aEf62SGmo`T@}QBp_qlf!It&0M>30>;`ZT0G|ag z7?4e(Uvd)&HU&ihegNP@hPWi90g)Dz@2+R zc7Wg|5OV-Ng4Kf_;>`2Z%F$G4Z%4FdqlIeS7f z*MZo-4)biBE(K45h40b#{?-Ug^*R7#(q)^Wu;yY=&H!lDMJOUG0lompKLNZC;{E7X zuoA=|0K*^{267lgwg&l`y71A_si*_uwOA#Sd6T=czGKDr-m3tRT>exDt^^|^P3)rbWaOy-FPzTlC4oFoC3F6u0F(HHwg4Rn2s!zzew;ln2oObEv7`XN~0FJ0?Mk0@cme**XQ03+lnW+b^ zngGbzAa|&0zQAm(8E_(JOkQ5)^Tvm2f&WTTy?Cm_&rFw85F<%+#=KU z>-;8!7lQa&;<*EhA=YRHQ(md!S>s3Q3IJ(w_69Q#RI%T`0m1nU?3;~e(x8OV)|bnl z0pU+TsHLGP2?j8j$^x{zI0M=bpe31pkYr=qXbLfJ}4`K*)I@2kM80a;Q)a6qEYGUT-wtPDI7e;`~_vE;HUH)fOo- zn(glIl8#r2J~aSHOa4nBo&Yh#khwPiew}{n3x@Q4l1#Gh?w~arz*a^R6evsQp$zP2 zjOaB)s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F%#R!BaK*8qMRt21^}IzmtuCzqd|^> zV6-+>O1(fJq9UZ`fYxlR9`sgYz6)UO28j$fyF<7ofWd&M!jywS7JrNF zLx`wEiXQ?j{bDH~^Fho9!ueRi1XVfH g0O*ryHJ{Y~1EBrx`4V>RPXGV_07*qoM6N<$f<|cM-T(jq diff --git a/alipay/images/address-select-icon.png b/alipay/images/address-select-icon.png deleted file mode 100755 index 5b5e42b504926da2b04647d8ac9a705d5b67cbaa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5225 zcmWkyX*iT!A3yfVk{LXNQ5l7iHIZZ;gN(JoWM9h8*!K}rCT@wR7}=NfOq(T@eVq_V zk!&GLmZt25Y{@(Chx^=L&ULQy|DWG>PKuRF{2W80&n0~> zz!DqN`|=m~*m3ynMEoJ7@md!suWIzMBhtLj=8C8Xe%YxaPUMe^N)b88_@|qM-j`D> zfW$_3SzSB5)vSk#;O=2-ay$qi=33;CIiB8#lTit`l%8`q-u_Gib*Pd`^Ro z2Ea9rSIIAxzkdCiRQh&^cRYsK-NiHzd>o}%VSE7Dep2^woQj z^!1jAmut*IRtNOm4yz>$qQ%AP5WvZ%f{=QKP#&$Km>IkOL7cfC4y=|42vy07ra-ML z8hu#?1_n#lemyC3Y;c<50v4!J>*yq?XZbWrjEZ+bzDjVO{DuSzp)oJ!G^PzZ*&gC7 zu>DfA3npKJ{=IW&*|lsqI)86KgA0${Y;jWDPFd*94sywUZ<}w;Y+B64C_d1vbNgm< zU9G(T*3Qn(KPHZb{X-qKD`q;y4As=DL-seIBE!x(3Y;JN!cx0Bj1^4OR>bKXa-jB* zC*p z@sp>erA0*Exv^UKk!9J(J85Y|+ov{vMM1PtwDYlslD!gyV0p&R^>PROycEOIVW(Dq4?HqZ*IoTEWhfXI+mm%XKwv} zL<@pH>_SnCQ1c%BabGPv-^Anw@tB*eFJ5Lt?g)>)*CCfo6AL*A%(Zo+f_& zuMlFJPaqxoYlz$3J=tgxV}X5A(|Qb{D~e%=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TDkl~Hq?*5iyy2E{$V~L0uw_EY$e9+ G=Klces(}vx diff --git a/alipay/images/default-cart-empty.png b/alipay/images/default-cart-empty.png new file mode 100644 index 0000000000000000000000000000000000000000..b7a0596c29b5f007a45a7317bab51ad79ec5a344 GIT binary patch literal 5608 zcmX|F2T&7TxZM!Jh_rz8CPC5AoAhp^grWwdgx=90Md>w43rdwB@B@NiM8JT6p$3Rl z0R@pNy-3lhNbm6Cn|W_%?(WRaox6L#`+es-=Oo@TGhk-qV*~(z*~k!qqCK(y284lj zZ`X3}0|3rSBZRI+h{JFD&}{zB%;?H6MZVZ!uBv047`FdnXrn~% zQgVuqk^c0lmwwq|vsG(FMMc=!E?Zl9u@qL282Lsc7FhLTiv=K{FY{che%tN57tiP< z*cP^ruzF(IfD>B^PmKhS#|UHqPUf(m`W+>2N!m!UjNtuQ*KwC-uD^i{vRwja0Bw;X zRw79mB69GSbUq^YDDiqTP9b$}xDm z$8Ce2xXpsw6NN8{(5EZpe3Ar0l+z9EzE|=&W46(S&VUzji~*YfUC;4W3P+1)9^m7Q zN`^S%*jA8mR%wW5l4=6(`Bg%cWhKQ~Gg|74ERZDEN{yrSm=Q34SG>8PJ47wMTMSw`ss!51@n@?40=!Gz%?ryF*W zwgYbR<~T1yK1fFxHYKK&pbC=d=1@SrJv`932|kJp9oKzb zUXH=Q!p6|K!2+Je5n88q(b1=~ws5P`7JfRc+%gX^eg_$m$=+3*$2Lx2<3&Ts*JD+kCW-$bTN1AlxK+3}k>YwR;WNrESG2R%{ z%m%$eM>zy!ZzA`b?oIfvLgzqELWf`^Jo>h2f^$wU*WU>E0FScIRH<*v{<0AQf$DuK zG1BWM?|8W=3ID*6xV=21J6$_6-slXx8u|f_V>3X)Piy{TX_wEGN<$JF!@|P2&=?t= z4q-6m2ePzId<0oCFcv8?=_|mlKNd2EiYM$~;$f7O`eI6=`P`m@*o-^Fu+l>d!X)*`}3aoU5Xq=#~ z<=-PJBRWi9;aRQBTQYi?n3%kOsq`n)HomC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Ih7xS!VXe0kOY8TY+Hz$SGT&zEwVXa3#R$>SQ{!lWh%$|w z4xCnaDjL-+IM9RYT|2mJF7^BUWnfQp#y_vger(!3L_qUq)93_PQYKe$Wwb3kXz=m9 zC#0Y#U*EM3k6&l{3$&w??WA|}7FD`gO8hpJVuRL$=(KCrKBzxJYvqMBVo#bs!%S^H_NjIp6M8E$7o8)n}Fl zlrdmO4?qaXo(I#o^?GS&WM1Erl7J8kk)*{9-RJz_MHoJPPEA;Q@1+}2<;VPnka6UHpj1q=9+jCf$b$rS;Xu9B=JRF|UhUK!|%vr?}bqQpJLSn}Ug9mkl+^t}}5C8jEo>s6UiyJ@?n;4n*z)T0JMVJoMOw zs976Jq3Lpu~=#6f%JfYdU`dx hV?T!fb4O3ltzRH=I|si>ra8EP(G4?1g`U&n{{g9wnU4Sf literal 0 HcmV?d00001 diff --git a/alipay/images/default-select-active-icon.png b/alipay/images/default-select-active-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..12dfcfe38fd367dbdfacf592b0a9e759555e4239 GIT binary patch literal 3929 zcma)9=R4dB)Bf#Rc9qrp28*zIFVQzF(R+zrvr)2oL_%aYM_2^WyGJ>CiB7a=Q9_6= zI3ZfJC6*LH&f|Iig7?GBTr<~vn7QtI=9-B!H@yR=;idrq0B)dR}n^4OOCk(Tk{y{GD_4(Vvymri}(&p-mFQU5+git&gX*qUR|k;X<5yz8SHglO$O_7eWWDy*4{b~nmUyEhS@OwEwQ z&3MGO*0V)XF|f3~cnV&xvKsVLQpzs|FS6`jgs~lU@abu>Xx$KF_0RqFzDb!U`Mw!p^H^{X&0ILsTzeD4HDJLJ6Y64^e$Nhno}9% zc@Z{@QfD)z{Z`=J6o*IB&v*XXRS-uooGwc1 z?-?^;tfh}~NT@TQ@c|dXp}lH9Z>1K?>9GS6$QLW$)}?>(E6LH0@>OCxiFSu0t|8Wu z($@0^R#Ulp^k+v(mmhdnrQ@D9L1&7op$757CV~#zt5`jnrQ#eb4&IGxH5N19wHJ7B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$IL) zBMJ#WSK$A~Rrt%%KJPQm zhtOcU5>IJ9g8%)6rZmgsjak4sae*MpS6U(&)7E$gc4M|a!Xl@IbO;BO!E=B%g={ZX zF~dX;@SR{yTI?yzUi%`@W8+#;k7)1Q9FJ$;Fb`a#?c-mK+*D%32UIH9=_7%Vj`Lx$ d|F^gQEGp#7M3h~$>h;SE80eZ}>b2dT{};m@G1344 literal 0 HcmV?d00001 diff --git a/alipay/images/default-select-icon.png b/alipay/images/default-select-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..466c0ebc07c2a75a71ceb7b305e7000e1093b01b GIT binary patch literal 4792 zcmX9?2{=^W|2|{ibJ5t!GAi5Hl4RdTWlAv!gNW=TmC8PaT-l1TR0h$c;Y(zftt?rx zOl40*mQZ79?DCub|NA`W-se2`KKGu_`#GQY^S(FE;=&nTE-@|u0I%6u432Rn{2Lr> zjB|_rm2Ln8BF!*H)^{)ea^fXA*#v#tsTWOoV#cF@d?yJ@_2=z&=fFBvhUW!bKnOAewdm#>3op zp{NifxXsj@v_0_)EKh(^GmbLKr6N5$IiXC?LF#{^2;Dv%Cyqb`h{OiIuCO2b>R^B% zu*c2oz;~00t8Y1nCejz`kYMJI-O!ObPz1-(h}hsCZKHGT1&B)dGat= zDNqnHzt!@pp9)mlvsgheI3@F>(c4>z1xx@SL*Cs;uR8R+EQy6M7aSkMpI;x6oO@2T z{97z+JGZu_qix=i#KgFDMrLXbT4`nBp&tT%$MPgsoTXc3D)GNOK`9BY+Su5jiHM4B zX;oV(XKcviZB^nEt7F%ol>>lKKx%>KIl!qyP%yV>#&4uCTAcBu(btD53KI~>%*?!N zUx^>U{E5H_nJa7@g2of!I}p_gOOZTjf3d|id+u-?>^WGFUyVXV9X$?N9t1CEd!B8? zxp$|p)S5U@et~}c+QY_ZSjGRnK)q&@D7Y3tZ_MgD%)dgS$NcvNyH=_B95HK%wWmKM<_c>6bdE7S|JSrc98o+sXW>So$ge6W2Q?M zH7o-SrZYE-+*E_YmET7+GJ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DP+TFwCirdE>#ALit9Y2+e zY;7_6t^eg&9uOp{aoh4uNS*-o^^MxEKh2~xD;_wt+A+}kzVr7NLNok7^E|C5g3N~D zLX$y&9nHmsUFLyEPiKTfq>pPIQ%6N~BaMon3@r7;ZE1DhAATMR#H!%;T4 z{(jr^&HsCW#)I0GJb?a_U|XNVL$TupgEmD2iXYnB#n_B_>@SWD566guV~EMaSE48D zo9NIZtJdmhJQpLe|HUOMiP;X1hq<^kV*>A7i=(3x&!0bEUx+V8A_yc8V+h(yxv5@f zTo+x4X0qx=G`|@z$yzg>r$bj~1Tn9hn)b_ET3V_mJD|dI*_9GibT`nvNNN^o2(9WZ zO9zC8knHo93n#_Km7E3=+j* zxzxwFLfBovEkGRH_H{|9O@P~>KqEoC9s+0zQvHh)?7E~!+1c2JCmw$;bA(})Lp`KF`0;lWcMPu1)P{O^%pQe1K7R`1dwm)c%MA8)guv4qwb!K3QK^yv$Jl!N z*~(OJ3xV}aq_T9LB}Nxra-U?8?errUG4}g=<6|Xl0T2rATifT{kA5|uTYor~T@}qQT==b{u3lad z(d-(ZJjOS@y7Ft>7!JBQ`>{5N!MD6OH!Dn3ZJ#-@67*EyKx?e! z#%iw#N1#cye#B2aSQ;4<6cl7;`2W}TS~_g|dXy&(!Tk4OFGbWh+Rk4+xPvC)uNLCK z+iLf#hYOr|!w{KiaEHA{vUFblg36QNXPOv{$?l!xmI8lJnhM`Wp#q>B)7B5Lmmuoe zAu+MhQx57cdhwuj+y0NmcOIbkWyI+%@6w7s)@IL-l+yVC literal 0 HcmV?d00001 diff --git a/alipay/pages/cart/cart.acss b/alipay/pages/cart/cart.acss index 54933fa5b..b6a71e18b 100644 --- a/alipay/pages/cart/cart.acss +++ b/alipay/pages/cart/cart.acss @@ -1,13 +1,16 @@ /** * 商品列表 */ -.goods-title { - line-height: 36rpx; + .page { + padding-bottom: 120rpx; } .goods-item { padding: 20rpx 10rpx; position: relative; } +.goods-title { + line-height: 36rpx; +} .goods-item:not(:last-child) { border-bottom: 1px solid #eee; } @@ -28,6 +31,12 @@ .buy-number { margin-left: 20rpx; } +.goods-item .items { + padding-left: 80rpx; +} +.goods-item .selected { + margin-top: 60rpx; +} /** * 数量操作 @@ -35,7 +44,7 @@ .number-content { position: absolute; right: 20rpx; - top: 120rpx; + top: 100rpx; } .number-content button { @@ -57,4 +66,67 @@ { border: 1px solid #ddd; padding: 0; +} + +/** + * 空购物车 + */ +.no-data-box { + padding: 30% 0 0 0; +} +.no-data-box image { + width: 160rpx; + margin-bottom: 20rpx; +} +.no-data-box .no-data-tips { + font-size: 28rpx; + color: #a6a6a6; +} +.no-data-box button { + margin: 0 auto; + width: 220rpx; + height: 60rpx; + line-height: 60rpx; + font-size: 28rpx; + margin-top: 30rpx; +} + +/** + * 操作导航 + */ +.buy-nav { + position: fixed; + left: 0; + bottom: 0; +} +.buy-nav, .nav-base, .nav-submit button { + height: 100rpx; +} +.nav-base, .nav-submit button { + line-height: 100rpx; +} +.nav-base { + width: calc(75% - 20rpx); + padding: 0 10rpx; +} +.nav-submit { + width: 25%; +} +.nav-submit button { + border-radius: 0; +} +.page { + padding-bottom: 120rpx; +} +.selected .icon { + width: 50rpx; + height: 50rpx !important; + margin: 0 10rpx; + vertical-align: middle; +} +.buy-nav .price { + width: calc(100% - 140rpx); +} +.buy-nav .sales-price { + max-width: calc(100% - 40px); } \ No newline at end of file diff --git a/alipay/pages/cart/cart.axml b/alipay/pages/cart/cart.axml index ed624547a..ced969448 100644 --- a/alipay/pages/cart/cart.axml +++ b/alipay/pages/cart/cart.axml @@ -1,29 +1,72 @@ - - - - - - - - - {{item.title}} - - - {{attr.attr_type_name}}:{{attr.attr_name}} + + + + + + + - - - - - - - + + + + + + + + + + {{item.title}} + + + {{attr.attr_type_name}}:{{attr.attr_name}} + + + + + + + + + + + + ¥{{item.price}} + ¥{{item.original_price}} + x{{item.stock}} + + + - - - ¥{{item.price}} - ¥{{item.original_price}} - x{{item.stock}} + + + + + + + 全选 + + + ¥{{total_price}} + 合计: + + + + + - \ No newline at end of file + + + + + 购物车空空如也 + + + + + + + + \ No newline at end of file diff --git a/alipay/pages/cart/cart.js b/alipay/pages/cart/cart.js index f296880c2..5e7d51141 100644 --- a/alipay/pages/cart/cart.js +++ b/alipay/pages/cart/cart.js @@ -5,7 +5,9 @@ Page({ data_list_loding_msg: '', data_bottom_line_status: false, data_list: [], - value: 8, + swipe_index: null, + total_price: 0, + is_selected_all: false, }, onShow() { @@ -13,7 +15,33 @@ Page({ this.init(); }, - init() { + init(e) { + var user = app.GetUserInfo(this, "init"); + if (user != false) { + // 用户未绑定用户则转到登录页面 + if ((user.mobile || null) == null) { + my.confirm({ + title: '温馨提示', + content: '绑定手机号码', + confirmButtonText: '确认', + cancelButtonText: '暂不', + success: (result) => { + if (result.confirm) { + my.navigateTo({ + url: "/pages/login/login?event_callback=init" + }); + } + this.get_data(); + }, + }); + } else { + this.get_data(); + } + } + }, + + // 获取数据 + get_data() { this.setData({ data_list_loding_status: 1 }); @@ -25,15 +53,21 @@ Page({ dataType: "json", success: res => { my.stopPullDownRefresh(); - if (res.data.code == 0) { + if (res.data.code == 0) { + var data = res.data.data; + if (data.length > 0) { + for (var i in data) { + data[i]['right'] = [{ type: 'edit', text: '收藏' }, { type: 'delete', text: '删除' }]; + } + } this.setData({ - data_list: res.data.data, - data_list_loding_status: 3, + data_list: data, + data_list_loding_status: data.length == 0 ? 0 : 3, data_bottom_line_status: true, data_list_loding_msg: '', }); } else { - self.setData({ + this.setData({ data_list_loding_status: 2, data_bottom_line_status: false, data_list_loding_msg: res.data.msg, @@ -46,7 +80,7 @@ Page({ }, fail: () => { my.stopPullDownRefresh(); - self.setData({ + this.setData({ data_list_loding_status: 2, data_bottom_line_status: false, data_list_loding_msg: '服务器请求出错', @@ -88,10 +122,10 @@ Page({ // 数量处理方法 goods_buy_number_func(index, buy_number) { var temp_data_list = this.data.data_list; - var buy_min_number = parseInt(temp_data_list['buy_min_number']) || 1; - var buy_max_number = parseInt(temp_data_list['buy_max_number']) || 0; - var inventory = parseInt(temp_data_list['inventory']); - var inventory_unit = temp_data_list['inventory_unit']; + var buy_min_number = parseInt(temp_data_list[index]['buy_min_number']) || 1; + var buy_max_number = parseInt(temp_data_list[index]['buy_max_number']) || 0; + var inventory = parseInt(temp_data_list[index]['inventory']); + var inventory_unit = temp_data_list[index]['inventory_unit']; if (buy_number < buy_min_number) { buy_number = buy_min_number; if (buy_min_number > 1) { @@ -142,4 +176,136 @@ Page({ }); }, + // 滑动操作 + right_item_event(e) { + var type = e.detail.type; + var index = e.extra; + var id = this.data.data_list[index]['id']; + var goods_id = this.data.data_list[index]['goods_id']; + + // 收藏 + if (type == 'edit') { + this.goods_favor_event(id, goods_id, type); + } else { + my.confirm({ + title: '温馨提示', + content: '删除后不可恢复,确定继续吗?', + confirmButtonText: '确定', + cancelButtonText: '取消', + success: (result) => { + if (result.confirm) { + this.cart_delete(id, type); + } else { + this.setData({ swipe_index: null }); + } + } + }); + } + }, + + // 滑动操作 + swipe_start_event(e) { + this.setData({ swipe_index: e.index }); + }, + + // 收藏事件 + goods_favor_event(id, goods_id, type) { + my.httpRequest({ + url: app.get_request_url('Favor', 'Goods'), + method: 'POST', + data: { "id": goods_id, "is_mandatory_favor": 1 }, + dataType: 'json', + success: (res) => { + if (res.data.code == 0) { + this.cart_delete(id, type); + } else { + my.showToast({ + type: 'fail', + content: res.data.msg + }); + } + }, + fail: () => { + my.showToast({ + type: 'fail', + content: '服务器请求出错' + }); + } + }); + }, + + // 购物车删除 + cart_delete(id, type) { + my.httpRequest({ + url: app.get_request_url('Delete', 'Cart'), + method: 'POST', + data: { "id": id }, + dataType: 'json', + success: (res) => { + if (res.data.code == 0) { + var temp_data_list = this.data.data_list; + temp_data_list.splice(this.data.swipe_index, 1); + this.setData({ + data_list: temp_data_list, + swipe_index: null, + data_list_loding_status: temp_data_list.length == 0 ? 0 : this.data.data_list_loding_status, + }); + + my.showToast({ + type: 'success', + content: (type == 'delete') ? '删除成功' : '收藏成功' + }); + } else { + my.showToast({ + type: 'fail', + content: (type == 'delete') ? '删除失败' : '收藏失败' + }); + } + }, + fail: () => { + my.showToast({ + type: 'fail', + content: '服务器请求出错' + }); + } + }); + }, + + // 选中处理 + selectedt_event(e) { + var type = e.currentTarget.dataset.type || null; + + if (type != null) + { + var temp_data_list = this.data.data_list; + var temp_is_selected_all = this.data.is_selected_all; + var total_price = 0; + switch(type) { + case 'all' : + temp_is_selected_all = (temp_is_selected_all == true) ? false : true; + for (var i in temp_data_list) { + temp_data_list[i]['selected'] = temp_is_selected_all; + } + break; + + case 'node' : + var index = e.currentTarget.dataset.index || 0; + temp_data_list[index]['selected'] = (temp_data_list[index]['selected'] == true) ? false : true; + break; + } + + for (var i in temp_data_list) { + if ((temp_data_list[i]['selected'] || false) == true) { + total_price += temp_data_list[i]['stock'] * temp_data_list[i]['price']; + } + } + + this.setData({ + data_list: temp_data_list, + is_selected_all: temp_is_selected_all, + total_price: total_price.toFixed(2), + }) + } + } + }); diff --git a/alipay/pages/cart/cart.json b/alipay/pages/cart/cart.json index c96031fd7..43d0cc198 100644 --- a/alipay/pages/cart/cart.json +++ b/alipay/pages/cart/cart.json @@ -1,3 +1,7 @@ { - "pullRefresh": true + "pullRefresh": true, + "usingComponents": { + "list-item": "mini-antui/es/list/list-item/index", + "swipe-action": "mini-antui/es/swipe-action/index" + } } \ No newline at end of file diff --git a/alipay/pages/goods-attribute/goods-attribute.axml b/alipay/pages/goods-attribute/goods-attribute.axml index 7fc414e6b..3fe902e10 100755 --- a/alipay/pages/goods-attribute/goods-attribute.axml +++ b/alipay/pages/goods-attribute/goods-attribute.axml @@ -11,7 +11,7 @@ - + diff --git a/alipay/pages/goods-category/goods-category.axml b/alipay/pages/goods-category/goods-category.axml index 626b33040..cbe23423b 100644 --- a/alipay/pages/goods-category/goods-category.axml +++ b/alipay/pages/goods-category/goods-category.axml @@ -10,7 +10,7 @@ - + {{v.name}} diff --git a/alipay/pages/goods-category/goods-category.js b/alipay/pages/goods-category/goods-category.js index 0a81655ba..455872a2e 100644 --- a/alipay/pages/goods-category/goods-category.js +++ b/alipay/pages/goods-category/goods-category.js @@ -7,16 +7,11 @@ Page({ data_list_loding_status: 1, data_bottom_line_status: false, data_list: [], - params: null, - }, - - onLoad(params) { - this.setData({params: params}); - this.init(); }, onShow() { my.setNavigationBar({title: app.data.common_pages_title.goods_category}); + this.init(); }, // 获取数据 @@ -30,7 +25,7 @@ Page({ my.httpRequest({ url: app.get_request_url("GoodsCategory", "Resources"), method: "POST", - data: this.data.params, + data: {}, dataType: "json", success: res => { my.stopPullDownRefresh(); diff --git a/alipay/pages/goods-detail/goods-detail.acss b/alipay/pages/goods-detail/goods-detail.acss index 908da9648..0c8150f47 100755 --- a/alipay/pages/goods-detail/goods-detail.acss +++ b/alipay/pages/goods-detail/goods-detail.acss @@ -109,15 +109,15 @@ height: 100rpx; } .goods-buy-nav .fl { - width: calc(25% - 1rpx); + width: calc(20% - 1rpx); } .goods-buy-nav .fr { - width: 50%; + width: 60%; } .goods-buy-nav .fr button { - border: 0; border-radius: 0; line-height: 100rpx; + width: 50%; } .goods-buy-nav .fr button, .goods-buy-nav .fl diff --git a/alipay/pages/goods-detail/goods-detail.axml b/alipay/pages/goods-detail/goods-detail.axml index 4182eaf58..7e700df46 100755 --- a/alipay/pages/goods-detail/goods-detail.axml +++ b/alipay/pages/goods-detail/goods-detail.axml @@ -71,7 +71,8 @@ {{goods_favor_text}} - + + diff --git a/alipay/pages/goods-detail/goods-detail.js b/alipay/pages/goods-detail/goods-detail.js index bc1f01bec..5c090a8f9 100755 --- a/alipay/pages/goods-detail/goods-detail.js +++ b/alipay/pages/goods-detail/goods-detail.js @@ -22,10 +22,11 @@ Page({ goods_favor_icon: '/images/goods-detail-favor-icon-0.png', temp_attribute_active: {}, temp_buy_number: 1, + buy_event_type: 'buy', }, onLoad(params) { - //params['goods_id']=1; + //params['goods_id']=16; this.setData({params: params}); this.init(); }, @@ -70,16 +71,16 @@ Page({ if (res.data.code == 0) { var data = res.data.data; self.setData({ - goods: data.goods, + goods: data, indicator_dots: (data.photo.length > 1), autoplay: (data.photo.length > 1), goods_photo: data.photo, goods_attribute_show: data.attribute.show || [], goods_attribute_choose: data.attribute.choose || [], goods_content_app: data.content_app, - temp_buy_number: (data.goods.buy_min_number) || 1, - goods_favor_text: (data.goods.is_favor == 1) ? '已收藏' : '收藏', - goods_favor_icon: '/images/goods-detail-favor-icon-'+data.goods.is_favor+'.png', + temp_buy_number: (data.buy_min_number) || 1, + goods_favor_text: (data.is_favor == 1) ? '已收藏' : '收藏', + goods_favor_icon: '/images/goods-detail-favor-icon-'+data.is_favor+'.png', data_bottom_line_status: true, data_list_loding_status: 3, }); @@ -134,9 +135,14 @@ Page({ }); }, + // 加入购物车 + cart_submit_event(e) { + this.setData({ popup_status: '', buy_event_type: 'cart' }); + }, + // 立即购买 buy_submit_event(e) { - this.setData({popup_status: ''}); + this.setData({ popup_status: '', buy_event_type: 'buy'}); }, // 收藏事件 @@ -151,19 +157,18 @@ Page({ }); return false; } else { - var self = this; my.showLoading({content: '处理中...'}); my.httpRequest({ url: app.get_request_url('Favor', 'Goods'), method: 'POST', - data: {goods_id: self.data.goods.id}, + data: {"id": this.data.goods.id}, dataType: 'json', success: (res) => { my.hideLoading(); if(res.data.code == 0) { - var status = (self.data.goods.is_favor == 1) ? 0 : 1; + var status = (this.data.goods.is_favor == 1) ? 0 : 1; this.setData({ 'goods.is_favor': status, goods_favor_text: (status == 1) ? '已收藏' : '收藏', @@ -193,6 +198,61 @@ Page({ } }, + // 加入购物车事件 + goods_cart_event(e) { + var user = app.GetUserInfo(this, 'goods_cart_event'); + if (user != false) { + // 用户未绑定用户则转到登录页面 + if ((user.mobile || null) == null) { + my.navigateTo({ + url: "/pages/login/login?event_callback=init" + }); + return false; + } else { + var attribute_all_cart = {}; + var temp_attribute_active = this.data.temp_attribute_active; + if (app.get_length(temp_attribute_active) > 0) + { + var goods_attribute_choose = this.data.goods_attribute_choose; + for (var i in temp_attribute_active) { + attribute_all_cart[goods_attribute_choose[i]['id']] = goods_attribute_choose[i]['find'][temp_attribute_active[i]]['id']; + } + } + my.showLoading({ content: '处理中...' }); + + my.httpRequest({ + url: app.get_request_url('Save', 'Cart'), + method: 'POST', + data: { "goods_id": this.data.goods.id, "stock": this.data.temp_buy_number, "attr": JSON.stringify(attribute_all_cart) }, + dataType: 'json', + success: (res) => { + my.hideLoading(); + if (res.data.code == 0) { + this.popup_close_event(); + my.showToast({ + type: 'success', + content: res.data.msg + }); + } else { + my.showToast({ + type: 'fail', + content: res.data.msg + }); + } + }, + fail: () => { + my.hideLoading(); + + my.showToast({ + type: 'fail', + content: '服务器请求出错' + }); + } + }); + } + } + }, + // 属性事件 goods_attribute_event(e) { var key = e.currentTarget.dataset.key || 0; @@ -256,7 +316,7 @@ Page({ this.setData({temp_buy_number: buy_number}); }, - // 购买确认 + // 确认 goods_buy_confirm_event(e) { var user = app.GetUserInfo(this, 'goods_buy_confirm_event'); if (user != false) { @@ -289,20 +349,37 @@ Page({ } } } + + // 操作类型 + switch (this.data.buy_event_type) { + case 'buy' : + // 进入订单确认页面 + var data = [{ + "goods_id": this.data.goods.id, + "buy_number": this.data.temp_buy_number, + "attribute": attribute_all.join(',') + }] + my.navigateTo({ + url: '/pages/buy/buy?data=' + JSON.stringify(data) + }); + break; - // 进入订单确认页面 - var data = [{ - "goods_id": this.data.goods.id, - "buy_number": this.data.temp_buy_number, - "attribute": attribute_all.join(',') - }] - my.navigateTo({ - url: '/pages/buy/buy?data='+JSON.stringify(data) - }); + case 'cart' : + this.goods_cart_event(); + break; + + default : + my.showToast({ + type: "fail", + content: "操作事件类型有误" + }); + } } } }, + + // 详情图片查看 goods_detail_images_view_event(e) { var value = e.currentTarget.dataset.value || null; diff --git a/alipay/pages/goods-search/goods-search.axml b/alipay/pages/goods-search/goods-search.axml index 13112bc5f..78b1a04b2 100755 --- a/alipay/pages/goods-search/goods-search.axml +++ b/alipay/pages/goods-search/goods-search.axml @@ -16,9 +16,9 @@ - - - + + + diff --git a/alipay/pages/user-address/user-address.axml b/alipay/pages/user-address/user-address.axml index 8ba1f3227..0c390c79e 100755 --- a/alipay/pages/user-address/user-address.axml +++ b/alipay/pages/user-address/user-address.axml @@ -13,8 +13,8 @@ - - + + 设为默认地址 diff --git a/service/Application/Admin/Controller/GoodsController.class.php b/service/Application/Admin/Controller/GoodsController.class.php index ec5bf22a1..c917aa3ec 100755 --- a/service/Application/Admin/Controller/GoodsController.class.php +++ b/service/Application/Admin/Controller/GoodsController.class.php @@ -102,7 +102,7 @@ class GoodsController extends CommonController $v['category_text'] = implode(',', $category_name); // 产地 - $v['place_origin_text'] = M('Region')->where(['id'=>$v['place_origin']])->getField('name'); + $v['place_origin_name'] = ResourcesService::RegionName($v['place_origin']); // 品牌 $v['brand_name'] = empty($v['brand_id']) ? null : M('Brand')->where(['id'=>$v['brand_id']])->getField('name'); diff --git a/service/Application/Admin/Lang/zh-cn/goods.php b/service/Application/Admin/Lang/zh-cn/goods.php index 37df73c4a..30ddd3962 100755 --- a/service/Application/Admin/Lang/zh-cn/goods.php +++ b/service/Application/Admin/Lang/zh-cn/goods.php @@ -21,7 +21,7 @@ return array( 'goods_category_id_text' => '商品分类', 'goods_category_id_format' => '请至少选择一个商品分类', - 'goods_place_origin_text' => '生产地', + 'goods_place_origin_name' => '生产地', 'goods_place_origin_format' => '请选择生产地', 'goods_inventory_text' => '库存数量', diff --git a/service/Application/Admin/View/Default/Goods/Index.html b/service/Application/Admin/View/Default/Goods/Index.html index 9cec81f8f..cdb6a2389 100755 --- a/service/Application/Admin/View/Default/Goods/Index.html +++ b/service/Application/Admin/View/Default/Goods/Index.html @@ -123,8 +123,8 @@

{{:L('goods_brand_id_text')}}
{{$v.brand_name}}
-
{{:L('goods_place_origin_text')}}
-
{{$v.place_origin_text}}
+
{{:L('goods_place_origin_name')}}
+
{{$v.place_origin_name}}
{{:L('goods_category_id_text')}}
{{$v.category_text}}
diff --git a/service/Application/Admin/View/Default/Goods/SaveInfo.html b/service/Application/Admin/View/Default/Goods/SaveInfo.html index d4b4f5238..cd27d0aae 100755 --- a/service/Application/Admin/View/Default/Goods/SaveInfo.html +++ b/service/Application/Admin/View/Default/Goods/SaveInfo.html @@ -98,7 +98,7 @@
- +