{template 'common/header'}
{if $do == 'credits'}
{if $_GPC['credittype'] == 'credit2'}
消费记录 订单管理
{/if}

- 日期范围:{php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d', $starttime),'endtime'=>date('Y-m-d', $endtime)));}
- {if ($_GPC['type'] == 'order')}
  支出：{php echo number_format($orderspay, 2)}
  {else}
  支出：{$pay}
  收入：{$income}
  {/if}

{if ($_GPC['type'] == 'order')} {loop $orders $row}
{if (!empty($user['avatar']))} {else} {/if}
{$user['realname']}
订单编号：{$row['tid']} {$row['createtime']}
{$row['fee']} {if ($row['status'] == 1)} 支付成功 {elseif ($row['status'] == 0)} 订单待支付 {else} 支付失败 {/if}
{/loop}
{$orderpager}
{else} {loop $data $row}
{if (!empty($user['avatar']))} {else} {/if}
{$user['realname']}
{$row['remark']} {$row['createtime']}
{if ($row['num'] > 0)} +{$row['num']} {else} {$row['num']} {/if} 交易成功
{/loop}
{$pager}
{/if}
{/if} {if $do == 'address' && empty($_GPC['addid'])}
{loop $addresses $address}
{$address['username']}{$address['mobile']}
{$address['province']} {$address['city']} {$address['district']} {$address['address']} {if $address['isdefault'] > 0} (默认收货地址) {/if}
{if !$address['isdefault']}设为默认{/if}删除 {/loop} 添加收货地址 {$pager}
{/if} {if $do == 'addressadd'}
姓名
电话
邮编
收货地址
{php echo tpl_form_field_district('address', array('province' => $address['province'], 'city' => $address['city'], 'district' => $address['district']))}
街道名称
{/if} {if $do == 'card'}
{if !$setting['format_type']}
卡号：{$setting['format']}
{/if}
{if !empty($setting['title'])}{$setting['title']}{/if}
{if !empty($setting['grant']) && ($setting['grant']['credit1'] || $setting['grant']['credit2'] || !empty($coupon))}

领卡赠送: {if $setting['grant']['credit1'] > 0} {$setting['grant']['credit1']}积分 {/if} {if $setting['grant']['credit2'] > 0} {$setting['grant']['credit2']}余额 {/if} {if !empty($coupon)} {$coupon['title']} {/if}

{/if}
姓名 *
手机号 *
{loop $setting['fields'] $item} {if $item['bind'] != 'realname' && $item['bind'] != 'mobile'}
{$item['title']} {if $item['require'] == 1}*{else} {/if}
{if $item['bind'] == 'reside'} {php echo tpl_fans_form('reside', array('province' => $member_info['resideprovince'],'city' => $member_info['residecity'],'district' => $member_info['residedist']))} {elseif $item['bind'] == 'birth'} {php echo tpl_fans_form('birth',array('year' => $member_info['birthyear'],'month' => $member_info['birthmonth'],'day' => $member_info['birthday']));} {else} {php echo tpl_fans_form($item['bind'], $member_info[$item['bind']]);} {/if}
{/if} {/loop}
{if $reregister} 绑定已有会员 {/if}
{/if} {if $do == 'mycard'} {if empty($mcard['status'])}
您的会员卡已被禁用，如有疑问，请联系{$_W['account']['name']}。
{else}
卡号:{$mcard['cardsn']}
{$setting['title']}
{$_W['member']['groupname']}
{$_W['member']['realname']}
{if !empty($setting['logo'])}{/if}

### 使用说明：

    						{if empty($setting['description'])}
    						1、本卡采取记名消费方式
    						2、持卡人可享受会员专属优惠
    						3、本卡不能与其他优惠活动同时使用
    						4、持卡人可用卡内余额进行消费
    						{else}
    						{$setting['description']}
    						{/if}

{php $sum = $setting['nums_status'] + $setting['times_status'] + 2; $class = "has-nav-" . $sum;}
充值 付款
{if $notice_count > 0}
{$notice_count}条新消息
{/if} {$setting['html']}
{php $nav = $setting['recommend_status'] + $setting['sign_status'] + 3; $nav = "has-nav-" . $nav;}
{/if} {/if} {if $do == 'record'}
{if $type == 'nums'}
{$setting['nums_text']}记录.当前剩余次数为:{$card['nums']}次
{elseif $type == 'times'}
{$setting['times_text']}记录.当前服务到期时间:{php echo date('Y-m-d', $card['endtime']);}
{/if}

日期 | 费用 | 次数/天数
{if !empty($data)} {loop $data $da}
{php echo date('Y-m-d', $da['addtime']);} | 收费 {$da['fee']} | {if $type == 'nums'} {if $da['model'] == 1}+{$da['tag']}次{else}-{$da['tag']} 次{/if} {else} {if $da['model'] == 1}+{$da['tag']}天{else}-{$da['tag']} 天{/if} {/if}
详情:{$da['note']}
{/loop} {else}
暂无记录
{/if}

{if !empty($data)}
{$pager}
{/if}
{/if} {if $do == 'email'}

#### 资料重置

为了保证您的账号安全，请完善以下资料，如果密码丢失可以联系管理员为您重置密码。下面设置的密码将作为您的消费凭证，请妥善保管！
{if !empty($reregister)}
{/if}
{if !empty($reregister)}
{/if}
{if !empty($reregister)}
{/if}
{/if} {if $do == 'mobile'}

#### {if $mobile_exist == 0}绑定{else}修改{/if}手机号

{if $mobile_exist == 1}
{else}
密码不能小于6位
{/if}
{/if} {template 'mc/footer'} {template 'common/footer'}