{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} // 购物车数据 $cart_data = api('System.Goods.cartList'); // 商品推荐 $goods_recommend = api('System.Goods.guessMemberLikes'); $goods_recommend = $goods_recommend['data']; // 底部导航配置 $data = api('System.Config.bottomNav'); $nav_list = $data['data']; $nav_width = 100/count($nav_list['template_data']); $this_url = strtolower(request()->controller().'/'.request()->action()); {/php} {if $cart_data.code == 0} {assign name="list" value="$cart_data.data.cart_list"} {assign name="goods_ladder_preferential" value="$cart_data.data.goods_ladder_preferential"} {notempty name="$list"}
{assign name="title" value="$list[0]['shop_name']"}

- ##
  {:lang('shop_name')}：{$title}
  {:lang('edit')} {:lang('member_complete')}

{foreach name="list" item="cart_item" key="k"}

- {$cart_item.goods_name}
  {notempty name="$cart_item['sku_name']"} 规格：{$cart_item.sku_name} {/notempty}

  ¥{$cart_item.price} {if condition="$cart_item.point_exchange_type==1 "} {if condition=" $cart_item.point_exchange>0"} +{$cart_item.point_exchange}{:lang('goods_integral')} {/if} {/if}
  {$cart_item.num}
{/foreach}

{:lang('your_shopping_cart_is_not_available_yet')}！

{:lang('go_for_a_stroll')}
{else/}

{:lang('your_shopping_cart_is_not_available_yet')}！

{:lang('go_for_a_stroll')}
{notempty name="$goods_recommend['data']"}
为您推荐

{foreach name="$goods_recommend['data']" item="vo"}

- {$vo.goods_name}

  ￥{$vo.price}
{/foreach}

{/notempty} {/notempty} {/block} {block name="footer"} {notempty name="list"}
{:lang('goods_select_all')}
{:lang('summation')}： ¥
{else/} {if strpos($nav_list['showPage'], $this_url) !== false}
{/if} {/notempty} {else/}

您还没有登录，请先登录!

去登录
{if strpos($nav_list['showPage'], $this_url) !== false}
{/if} {/if} {/block} {block name="script"}
{/block}