From d24f177ce0bb8e26d127d820850ceebb7bfbaffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=80=E5=B3=B0?= <1feng.0595@gmail.com> Date: Wed, 18 Oct 2017 00:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=8520%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/GoodsController.php | 10 + .../Controllers/Weixin/GoodsController.php | 20 +- app/Http/Model/Goods.php | 23 ++ public/css/weixin/style.css | 215 ++++++++++++++++- public/images/weixin/goods_ic_cart.png | Bin 0 -> 2140 bytes public/images/weixin/goods_ic_kefu.png | Bin 0 -> 2283 bytes public/images/weixin/ic-bot-focus-up.png | Bin 0 -> 1926 bytes .../views/weixin/common/footer.blade.php | 2 +- .../views/weixin/goods/goodsDetail.blade.php | 222 ++++++++++++++++-- resources/views/weixin/user/index.blade.php | 2 +- routes/web.php | 1 + 11 files changed, 454 insertions(+), 41 deletions(-) create mode 100644 public/images/weixin/goods_ic_cart.png create mode 100644 public/images/weixin/goods_ic_kefu.png create mode 100644 public/images/weixin/ic-bot-focus-up.png diff --git a/app/Http/Controllers/Api/GoodsController.php b/app/Http/Controllers/Api/GoodsController.php index 1509631..0afafe3 100644 --- a/app/Http/Controllers/Api/GoodsController.php +++ b/app/Http/Controllers/Api/GoodsController.php @@ -14,6 +14,16 @@ class GoodsController extends CommonController parent::__construct(); } + public function goodsDetail(Request $request) + { + //参数 + $data['id'] = $request->input('id'); + + $res = Goods::goodsDetail($data); + + return ReturnData::create(ReturnData::SUCCESS,$res); + } + public function goodsList(Request $request) { //参数 diff --git a/app/Http/Controllers/Weixin/GoodsController.php b/app/Http/Controllers/Weixin/GoodsController.php index a4ca78a..ffebf5f 100644 --- a/app/Http/Controllers/Weixin/GoodsController.php +++ b/app/Http/Controllers/Weixin/GoodsController.php @@ -12,25 +12,15 @@ class GoodsController extends CommonController } //商品详情 - public function goodsDetail(Request $request) + public function goodsDetail($id) { - if($request->input('typeid', '') != ''){$data['typeid'] = $request->input('typeid');} - if($request->input('tuijian', '') != ''){$data['tuijian'] = $request->input('tuijian');} - if($request->input('keyword', '') != ''){$data['keyword'] = $request->input('keyword');} - if($request->input('status', '') != ''){$data['status'] = $request->input('status');} - if($request->input('is_promote', '') != ''){$data['is_promote'] = $request->input('is_promote');} - if($request->input('orderby', '') != ''){$data['orderby'] = $request->input('orderby');} - if($request->input('max_price', '') != ''){$data['max_price'] = $request->input('max_price');}else{$data['max_price'] = 99999;} - if($request->input('min_price', '') != ''){$data['min_price'] = $request->input('min_price');}else{$data['min_price'] = 0;} - //商品列表 $postdata = array( - 'limit' => 10, - 'offset' => 0 + 'id' => $id ); - $url = env('APP_API_URL')."/goods_list"; - $goods_list = curl_request($url,$postdata,'GET'); - $data['goods_list'] = $goods_list['data']['list']; + $url = env('APP_API_URL')."/goods_detail"; + $res = curl_request($url,$postdata,'GET'); + $data['post'] = $res['data']; return view('weixin.goods.goodsDetail', $data); } diff --git a/app/Http/Model/Goods.php b/app/Http/Model/Goods.php index 994eb66..6c642b3 100644 --- a/app/Http/Model/Goods.php +++ b/app/Http/Model/Goods.php @@ -229,4 +229,27 @@ class Goods extends BaseModel } } } + + //获取商品详情 + public static function goodsDetail(array $param) + { + extract($param); //参数:limit,offset + + $model = new Goods; + + if(isset($id)){$where['id'] = $id;} + + if(isset($where)) + { + $model = $model->where($where); + } + else + { + return false; + } + + $res = $model->first(); + + return $res; + } } \ No newline at end of file diff --git a/public/css/weixin/style.css b/public/css/weixin/style.css index af4783e..ac114e3 100644 --- a/public/css/weixin/style.css +++ b/public/css/weixin/style.css @@ -1,4 +1,4 @@ -html, body{font-size:100%;font-family:Helvetica,STHeiti-Light,'Hiragino Sans GB','Microsoft Yahei',Arial;overflow-x:hidden;color:#232326;} +html, body{font-size:100%;font-family:Helvetica,STHeiti-Light,'Hiragino Sans GB','Microsoft Yahei',Arial;overflow-x:hidden;color:#232326;}i,em{font-style: normal;} body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;} ol, ul{list-style:none;}dl,ul{zoom:1;}.mb10{margin-bottom:10px;}.mt10{margin-top:10px;}img{border:none;border:0;margin:0;padding:0;vertical-align:middle;} a{color:#333;text-decoration:none}.cse a,.cses{color:#008000;}.ofh{overflow:hidden} @@ -787,7 +787,220 @@ h1.arc_tit, h2.arc_tit{font-weight: normal;font-size: 1.4em;padding: 10px;} .fui-list .ui-list-thumb{width:50px;height:50px;position:relative;margin:10px 10px 10px 0;} .fui-list .ui-list-thumb>span{display:block;width:100%;height:100%;z-index:1;background-repeat:no-repeat;-webkit-background-size:cover;}.ui-list-thumb img{display:block;width:100%;height:100%;} +/*商品详情*/ +.goods-header { + display: block; + height: auto; + padding: 10px 0 0; + -webkit-tap-highlight-color: transparent; + border-top: 1px solid #f2f2f2; + background-color: #fff; + margin-bottom: 10px; + position: relative; +} +.goods-header .title { + font-weight: normal; + padding: 0 10px; + font-size:18px; + line-height: 1.3; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} +.goods-header .wish-add { + position: relative; + height: 12px; + line-height: 12px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + color:#ea6f5a; + background-color: transparent; + border: 1px solid #ea6f5a; + border-radius: 3px; + font-size: 16px; + padding:4px 6px; + display: inline-block; + text-align: center; + margin:3px 10px 0 0; +} +.goods-header .wish-add-activate{color:#fff;background-color:#ea6f5a;} +.goods-header .goods-price { + padding: 10px 10px 2px; + text-align: left; +} +.goods-header .current-price { + color: #f60; + display: inline-block; +} +.goods-header .current-price span { + font-size: 16px; + display: inline-block; + vertical-align: middle; +} +.goods-header .current-price .price { + display: inline-block; + vertical-align: middle; + font-size: 20px; +} +.goods-header .btn-retail { + padding: 0 3px; + border-radius:2px; + color: #fff; + background-color: #1cbb7f; + display: inline-block; + text-align: center; + font-size: 12px; + cursor: pointer; + line-height: 1.5; + -webkit-appearance: none; +} +.goods-header .stock-detail { + position: relative; + line-height:1.5; + color: #999; + background-color: #fff; + padding:5px 10px; +} +.goods-header .stock-detail dl {display:table-cell; + margin-top: 10px; + margin-bottom: 10px; + font-size: 14px; + zoom: 1; +} +.goods-header .stock-detail dt { + display: inline-block; +} +.goods-header .stock-detail dd { + display: inline-block; + word-wrap: break-word; +} +.goods-header .goods-comment{margin-top:10px;border-top:10px solid #f1f1f1;height: 44px;line-height: 44px;padding: 0 10px 0 10px;} +.goods-header .goods-comment span{float:right;color:#999;} +.goods-content{background-color: #fff;} +.goods-content .module-title{background: #FFF; +height:44px; +line-height:44px; +position: relative; +padding: 0 10px 0 10px; +font-size:16px; +color: #666; +border-left: 3px solid #FF0036;border-bottom: 1px solid #f4f4f4;} +.goods-content .module-content{padding:10px;} + +.bottom_tool_black{ width:100%; display:block; position:fixed; bottom:0;background-color:#fff;border-top:1px solid #f1f1f1;} +.bottom_tool_white { width:40%; float:left;} +.bottom_tool_white li { width:50%; float:left; text-align:center; position:relative;} +.bottom_tool_white ul li img{ margin:0 auto; display:block; margin-top:2px; width:32px; height:32px;} +.bottom_tool_white ul li p{ font-size:12px; color:#6f7375; text-align:center; width:100%; line-height:14px;} +.bottom_tool_btn {width:60%; float:left;} +.bottom_tool_btn li { width:50%; color:#fff; float:left; line-height:52px; text-align:center; font-size:16px;} +.bg_c_yellow {background-color:#ff9000;} +.bg_c_orange {background-color:#ff5000;} +.mask { +width: 100%; +height: 100%; +background: rgba(0,0,0,0.8); +display: block; +position: fixed; +top: 0; +z-index:99; +} +.pop_box { +width: 100%; +height: 100%; +display: block; +position: absolute; +top: 0; +} +.goods_info_pop{ background-color:#fff; display:block; position:fixed; z-index:100; bottom:0px; left:0; padding-bottom:20px; /*box-shadow:0 -2px 3px #a0a0a0;*/ border-top:2px solid #dcdcdc; width:100%;} + +.goods_info_pop ul{ padding:0px 0 35px; display:inline-block;} + +.goods_info_pop li{height:20px; line-height:20px; padding:14px 0; border-bottom:1px solid #eee; display:inline-block; float:left; text-align:center; width:100%;} +.cart_list{background-color:#fff; overflow:hidden; position:relative;/* border-bottom:1px solid #e1e1e1;*/} +.cart_list_select{ position:relative; width:20px; margin-left:10px;float:left;} + +.cart_list_check{visibility:hidden;-webkit-appearance:none; width:18px; height:18px; display:none;} + +.cart_list_check + label{display:block;width:16px;height:16px;border-radius:12px;border:2px solid #9fa4b6; position:relative;} + +.cart_list_check:checked + label{ background-color:#ff5000; border:2px solid #ff5000;} + +.cart_list_check:checked + label:after{ content:""; width:9px; height:5px; display:block; position:absolute; top:3px; left:3px; border:2px solid #fff; border-top:none; border-right:none;-webkit-transform: rotate(-45deg);-webkit-transform: rotate(-45deg);} + +.cart_list_info{ display:block; margin-left:10px; height:80px; padding:10px 10px 10px 0;position:relative;overflow:hidden;} + +.cart_list_name{padding:0px; width:100%; display:inline-block; float:left;height:40px;} + +.cart_list_right{ width:30%;padding:0; float:right; display:inline-block; height:70px; text-align:right;} + +.cart_list_img{ width:78px; height:78px; border:1px solid #e1e1e1; margin-top:10px; position:absolute; left:0; top:0px;} + +.cart_list_item{padding:10px;} + +.cart_goods_info{ display:block; margin-left:90px; height:80px; position:relative;} + +.cart_detail_gray{font-size:12px; color:#666; width:100%;line-height:20px;} + +.cart_detail_gray_name{display:block;width:100%;letter-spacing:0px;overflow:hidden;font-size:14px; font-weight:700; color:#333; height:40px;} + +.cart_sum{color:#ff5000; font-size:16px; font-weight:700;} +.goods_type { + display: block; + line-height: 20px; + color: #999; + margin: 0; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.pop_num { + margin-left: 10px;margin-right: 10px; + height: 48px; + display: block; + border-bottom: 1px solid #e1e1e1;border-top: 1px solid #e1e1e1; +} +.pop_num span{ color:#999; display:inline-block; float:left; line-height:48px;} +.pop_sum{ display:inline-block; float:left; margin-left:15px; margin-top:5px; position:relative !important;} +.pop_btn{ margin-top:10px; margin-bottom:10px;} +.cart_num_control { + border: 1px solid #DADADA; + height: 24px; + display: inline-block; + margin: 7px 0px; +} +.cart_num_button { + width: 24px; + height: 24px; + display: inline-block; + border: 0px solid #DADADA; + text-decoration: none; + color: #585858; + font-size: 16px; + background-color: #f0f0f0; +} +.cart_num_text { + width: 24px; + text-align: center; + font-size: 12px; + height: 16px; + display: inline-block; + border: 0px solid #DADADA; +} +.registered_btn { + display: block; + margin:10px; + height: 42px; + line-height: 42px; + background-color: #ff5000; + text-align: center; + border-radius:2px; + color: #fff; + font-size: 16px; +} diff --git a/public/images/weixin/goods_ic_cart.png b/public/images/weixin/goods_ic_cart.png new file mode 100644 index 0000000000000000000000000000000000000000..c680376475d9c03bf5df63763d835edbb3dd625a GIT binary patch literal 2140 zcmaJ?c~nzZ9)2bna3~NEv@8{3*q3Y|!NkOXge3!E-wIL)$pa!LFD8M6s4RlQ96ScB z$|9Q(MG-_w6%{xj3dM!OSZvV&oFXC>%Aypd2+oTY+dqc6=e>8A^L^j%cYpW0=lwI# z-&;q^L<;}_9hMI>819|a??w&yYsScHf;(fWXQVU)N|4GpVi0iWLGd7lCEz52!61j1 zw*M|j0{|qJ9~vo*WcyLMkO0q7WAJi;2xbESjUg9txXGXt6Avcxg>>v}YX=s?=h3kd zE^H!OIV!N>*sgc7Qpj{TrZg~#e;0v7WD zB2A`a|41s59fO!VExne#x zEF4YDOP~fby*|c*XLM|mR4Sqp2r`)rFLTC2;zR<8LZPTNoSbkl0w+lmN;z_zP-3yB zzyu{+F<&I*Lqd#NkrNN4Na1zAiw7FNLX`8=wJvlm?L-EbpQNF+~}-DD>ZCUFPZ zlSw8qDW2|YTqeX#5r9JJ8khGc*JE9-+6n>@9GMA<`Kch!OAHAxAGS>8ub&HLUA>Q7 z-uk(?ugfLC$q>{B`Sa=kmv;_i5==rY zFsTJ&sCY7F0IND)ol9S z-p;;4vR_<$@j}(yiOC1Y3m1!vg|~*>0vxi4?H;DZ^@nCgTZ<}AmyN4b7erszk45+d z{)b%fJAHtqX_PtE{GzYYH}#m&`WgWrf*NZdBcBO|M1gi7Bn%^FN%c_0CKw-V{7N46oJM-$Q2&q9gSWPE1qq zH@kZ~GNOFUZmhCm7zP_zfT#h%}kZLZ^G7CC#KCiK} zO`(ieX4dJcR94<-Wn21djT<>_+V?IQ9zYp2{8U&SEg@PtoS;?LRlhO}t@pqc>`a+( zbZwxECwqgqM$x_@&%OwwVI3@VUUo2!&UYMK!ulpF->t4hYxbNzS#aI&YLH=-_YCH_ z!Dgx@F3jjmNy*X{R*mgjz|>)?&zzB=$QtU8Z37-%kG`;HY5%*o^Vyn4J~Y|v2pXYa zB1|$Hw@&Y?4C%ADM*guSYve29a!+6MKZ1(Ev+`)o3pgR#RXG0*4Iyrw#x{{QHpnAOZ>l4@y5vQ$01<$Ccm*_{nIG$*HlJuzc&Fr!>$!X=At4&cg@QpgQ>Gcdlj?vk7GZ#P}4T}zu z;I7zq1T;U;MVh)oDZ5g~P)XF|TT4-+Dl41Ec6Ro|*zel%i}1;W*sBUgu=9)7+%uPo zYT8FQrG_0oI(PhwZK_JX;w`oJN)RkLT0 zd-_#Om~l7>qe{HBJyx9e&adIRW{mbw3DrxYR9RY$XO|ASO%U`n!uK4=My{Cly7YJ7 zy{Mbi<6fNR*4%&IvggG^S~HqVyqUutwAhXSHfR7vEh|X|u0ubo|Mx6Uf9B=gafkm4 D9AIUM literal 0 HcmV?d00001 diff --git a/public/images/weixin/goods_ic_kefu.png b/public/images/weixin/goods_ic_kefu.png new file mode 100644 index 0000000000000000000000000000000000000000..4717f1a0271acf2c2eebbfd41ee7cf6b62f8ed0e GIT binary patch literal 2283 zcmaJ@X;>5I8XZvi94%F!mWJ|wa>#U@%jHyk?1`d z#R8ze^ZlQ~C`*PwqyPwo<0L#~;{+C}PzaqNfw&kfVZm_h@+ta9!5EB2!3fCMM*}U{ zLNOmsK)1cc`}oj3#VE!V^B_+*XPi=jC=~MPt`vr&oh!}8l}V+L$xN!lE<2_pW0wQP z&YtYxU~9L`b%S|vB1nuabNPRB$sgpZtRO;^k=-DPFdpK&OJEWBwq&~SgSk+dAJlut z<$o|2s{04IBxN!rRb&6F(aT#(_o$}tZL3_oH$Eg*x?Q5QwIPLe007j(Jl%G&q(hS& zp*M?d6#sP*!OPlC-|D-yP4rj|o$?Cp_EXJUsXl$t+pZ?3rB#?_8o5>+yY{`%+6HWP zwIDRRM<1I6f4Y!tWOahFlCrXLKVCnb87{amDiZ8(=Ek4>=vK$$u1}|Kqqh@YBy_)d zQSftj_r#AOO=&m9X;oBRfA&7jv>yd$IyyXc7m5xM;S2c+f6JzE*&J58F6Y|w>aC00 zo*_s$;(z1%ZLXiklc^Hvi00OV3r7H&)t~>q`S^Fm6;?C@33oZ0QakK}Qp#!|O%8`; z-rGAgN60H!;eV#~>V&Sbu~~4dyL(-gye{9XG}?hmWp2>YsGKhyd`*sD(;AO_RYtfTHEd*R$x7PwGOwbq|SWuX{6!USU|b< z%Z`^ev+`F(6J@U4Rci86z=p8g>6FCSbtyq zUFr!m3ztE&`rg030=}#-2ncDcxHB_2I5^KDY-s0T8kE-=Go~jdE#)B(`hH>lpkAEc zh63!gdU9@Pj&wBKe^Py+Yl4SWIqq_TZZ*1#R>b zE;*6EhdL^Z8s5y6~jwoNPl{pk09btRJNYg$kG57SNWCb-% zadkTI0khovm0DjTF9&Eoo9&nQujnHS)2IZi=J7;?zT=zSuG!wo z&F-(|m|RZ3)o77oc;0?+z_K$kvkM<@H>?n^b-nyFca9<@Uox=PrE{ z7~J3fa8*-_Ot<<$9WK(KHyVDBv^X6j+?qFPWxta3Of-IbRl8MJ>82dez{v~FJXo{c z+D@d%hbK-PSKR$*erJPk@y0Cv)Yghg{pM)1R^vyUo^nJ!(!bDfJuk2DWluW);Z&~) zi0>7C?~2Ftc17wnFPOKY8S3<&b*AD5?pKUV(p-?k(t=w#xfw-@dRgkO_L_RV@c%V`I%0lFqo2x{uW{GQ5+69c%9C4#fVk=Zk+d zoWz?SPwUvr5lEdD6U|R|-I%dAp{2amp{W@j1%9%+s>MFZHU%S0Guf;!F6mt`s0*oV zeLl66DsSW%ghO#@&Lho&3gC3$Nc@fSC3qLh&#L+tH*2N8n7%X+uLG2a2IxlA^B=jK tugd{08k&{kjDvo7v!wso{kbY&C7_paVu4gzyhC;U@MQYBU3U%t>OV6*yUG9n literal 0 HcmV?d00001 diff --git a/public/images/weixin/ic-bot-focus-up.png b/public/images/weixin/ic-bot-focus-up.png new file mode 100644 index 0000000000000000000000000000000000000000..118288c24aea6ddfa17912323ba1649eeeb45d9c GIT binary patch literal 1926 zcmaJ?dsGv579OQOVBuJKcz6hoLoJ9V^9UiCKs3qB1Y&svgc@HQVlqI0WU|R~2ySxZf<*3L6o zqh~#kv{h#@m{|j30=*u!+nDXF6yhR%nu5`smiElC$vRUgu4J%XYlcxi0vnCqyq;KF z*(~~hVLaE`nq6w9;Vjz9Y`5sR`^b-;1#`9gZ6dEB7mXytV&E=CTS79r?MB+fsz@os zo$&Pry+kP%QF4q_#-q5H5}>F;oFJzJ1R^KIxR62wvp$}O6%rzX!jyzUiN&KRB@|;q zr9vsd2s~aWCgcgTSe41jYE3$Nme;`X&R`Y4iIor*TFWw)Y=$YBRe-vXVHs;7V+IKV zjNM=`=^2}KrT2E8CQH&5!wy=nv@k~SNqHrP=g=o0h%jD^i^QZtP6@fR35+BO43R5P z5=AHxG=tSYr(_DbLPR7eP@K~n#U+jtLPAN9Tq=|p6$wxX=7NE}+W0@M%x-Z4^iH2C zpIbcZ9oob-jD_orKq9)IYdEKhlxN$&ncP%XxH~hn9DcZ{C-5Zt7+n?}F5Gx}T2@kW zrm4K->sU`_?6UHdHS4Y_?g)PU@IdU;rCrU}Pd2{n+*42M^`R|f@D2ArOMkk*!|f__ zzjn!ZaeAo3ddc&>b-yQZOgdJ!zra(YSbi`%CFWptZSqH5b+=tW@pYs5TDkkEg-K3= zq88VmFHh+i>!r?JOI%7NyzBp!Pf=xZ!k0FmV-;t*lPBIfa*B79l;tHjLS(tkea?#N z?wWNNwP&U-awueeuEENnpv%sr0IWO&^e#4m7XI zPLm0LT#_=k*N6Cv2Sg%&_Eq1mus;Ym_QjeM8k)-`>UA=;NoQniC=OPf~YJIDRf$ z6!X`LgAIS+y`Aj%>AS~s-|l5vvbUaHQPmUKLcG5F;ZLw>td(FNwkz?nXKkO(2#54&6c=P_4psp1DWL`X6(4n=53EPqPHH&LJB^rKjiGaQuYX( z=*oFfnidAmYya-NU0>2bLe2 zNVKSi>bunrWgz?6qQoxOWZ;2wxsC|^=e+^T>%oS9XHI%2E8=E9t-XJMiLg5btxvZGzSH}OYkY2V~=*CKM?`HxqD4VA+!BW>Ru z6b{u~iGPqD)N^Cs*Ejmmd!fEVW;6ZHpQ>*a4z*B~m7m1=0oHkqrNRY$vZ~e#aq{5> z>VNGa2gbqB!_JqYvT&tMksk_I+#k7zJox3*=!v{{kF5~YII;*)MSR4qtN8V05Ie6^ zpRpxKi)~O31Ra)l8}rCLCf!u({h-r$=#l=5Te9`xD-*F-j!%2qo5Dt&cxr2mbNv00 z>K@A3q~42lt*!#AV>U6q>pwy2_)z4Y-vx?tQf2gi9!fe+jX$vEM~<{PrgmT>L1Udo zIbjbYifUe7@{e!Nv#T>SuX|c-?gQ)oEID>pp6fE-m6py6%4xbxy>TZDsrGDcdw)UO zoZS-tM*(H`b`AEf`+hH{_VrRjJJ2y4Nkkk`r71|4nJO!2fS9faEgDS Q!~1^)R8%^7RFPNpUvq=;_5c6? literal 0 HcmV?d00001 diff --git a/resources/views/weixin/common/footer.blade.php b/resources/views/weixin/common/footer.blade.php index f651036..9a2fefb 100644 --- a/resources/views/weixin/common/footer.blade.php +++ b/resources/views/weixin/common/footer.blade.php @@ -5,7 +5,7 @@ current(); ?> >

首页

  • 分类

  • -
  • 购物车

  • +
  • 购物车

  • >

    个人中心

    diff --git a/resources/views/weixin/goods/goodsDetail.blade.php b/resources/views/weixin/goods/goodsDetail.blade.php index 99e27e5..e2db14c 100644 --- a/resources/views/weixin/goods/goodsDetail.blade.php +++ b/resources/views/weixin/goods/goodsDetail.blade.php @@ -1,25 +1,201 @@ - -<?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?> - -@include('home.common.header') -
    + +商品详情 + + + + +
    +
    返回
    +
    商品详情
    + +
    +
    + +
    + + +
    + +
    + +
    +
    +
    +
    + +
    +
    +
    + + + + + + +
    + 收藏

    + +
    +
    + ¥ +
    + 门店有售 + +
    + +
    +
    +
    运费:
    +
    免运费
    +
    +
    +
    库存:
    +
    +
    +
    +
    销量:
    +
    +
    +
    + +
    用户评价共0条评价 >
    +
    -
    -@include('home.common.footer') \ No newline at end of file + + + + \ No newline at end of file diff --git a/resources/views/weixin/user/index.blade.php b/resources/views/weixin/user/index.blade.php index 9486f59..bc9745e 100644 --- a/resources/views/weixin/user/index.blade.php +++ b/resources/views/weixin/user/index.blade.php @@ -1,5 +1,5 @@ -商城 +个人中心 diff --git a/routes/web.php b/routes/web.php index 0201621..f8c43f3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -115,6 +115,7 @@ Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web Route::get('/arctype_list', 'ArctypeController@arctypeList'); Route::get('/arctype_detail', 'ArctypeController@arctypeDetail'); //商品 + Route::get('/goods_detail', 'GoodsController@goodsDetail'); //商品列表 Route::get('/goods_list', 'GoodsController@goodsList'); //商品列表 Route::get('/goodstype_list', 'GoodsTypeController@goodsTypeList'); //商品分类列表 //地区,省市区