{extend name="$member_base" /} {block name="right_main"} {php} // 浏览记录 $footprint = api('System.Member.browseRecord', ['page_index' => 1, 'page_size' => 10]); $footprint = $footprint['data']; // 订单列表 $order_list = api("System.Order.order",['page'=>1,'page_size'=>4,'status'=>0]); $order_list = $order_list['data']; // 商品收藏数量 $collection_num = api("System.Member.collectionNum"); $collection_num = $collection_num['data']; // 会员优惠券数量 $coupon_count = api("System.Member.couponNum"); $coupon_count = $coupon_count['data']; // 会员信息 $member_detail = api("System.Member.memberInfo"); $member_detail = $member_detail['data']; // 会员等级信息 $member_level = api("System.Member.memberLevel", ['level_id' => $member_detail['member_level']]); $member_level = $member_level['data']; // 会员账户信息 $member_account = api("System.Member.memberAccount"); $member_account = $member_account['data']; //待付款订单数量 $order_status_num = api("System.Order.orderCount",['order_status' => 0]); $wait_pay = $order_status_num['data']; //待发货订单数量 $order_status_num = api("System.Order.orderCount",['order_status' => 1]); $ready_delivery = $order_status_num['data']; //待收货订单数量 $order_status_num = api("System.Order.orderCount",['order_status' => 2]); $wait_delivery = $order_status_num['data']; //退款售后订单数量 $order_status_num = api("System.Order.orderCount",['order_status' => -1]); $refunding = $order_status_num['data']; {/php}
{if condition="$member_detail['user_info']['user_headimg'] neq '' and $member_detail['user_info']['user_headimg'] neq '0'"} {else/} {/if} {$member_detail.user_info.nick_name} {notempty name="$member_level.level_name"}
{$member_level.level_name}
{/notempty}

### 我的钱包

- {$coupon_count}

  {:lang('member_coupons')}

  领券

- {$member_account.point}

  积分

  兑换

- {$member_account.balance}

  余额

  充值

### 我的订单

{notempty name="$order_list['data']"} {foreach $order_list['data'] as $k => $v}
{foreach $v['order_item_list'] as $key => $val}
{$val['goods_name']}
{assign name="count" value="$key+1"} {/foreach}
您提交了订单，等待付款
￥{$v['order_money']}
查看详情
{/foreach} {else/}
您买的东西太少了，这里都空空的，快去挑选合适的商品吧！
{/notempty}

### 我的关注

- {$collection_num}
  我的收藏

### 浏览记录

更多
{notempty name="$footprint['data']"}
{foreach name="$footprint['data']" item="vo" key="k"} {if condition="$k % 4 == 0 && $k == 0"}
{/if}
{if condition="$k % 4 == 3 && $k != 0"}
{if condition="$k != count($footprint['data']) -1 "}
{/if} {/if} {if condition="$k == count($footprint['data']) -1 "}
{/if} {/foreach}
{else/}
暂无记录
{/notempty}
{/block}