{php define('MUI', true);} {template 'common/header'} {if $op == 'receive_card'}
{if !empty($setting['grant']) && ($setting['grant']['credit1'] || $setting['grant']['credit2'] || !empty($coupon))}
领卡赠送: {if $setting['grant']['credit2'] > 0} ￥{$setting['grant']['credit2']} {/if} {if $setting['grant']['credit1'] > 0} + {$setting['grant']['credit1']}积分 {/if} {if !empty($coupon_title)} 卡券:{$coupon_title} {/if}
{/if}
{if !empty($setting['logo'])}{/if}
{if $basic_info['params']['card_label']['type'] == 1}{$basic_info['params']['card_label']['title']}{/if}
{if !$setting['format_type']}
会员卡号:{$setting['format']}
{/if}
姓名* {php echo tpl_app_fans_form('realname', $member_info['realname'], '姓名');}
手机* {php echo tpl_app_fans_form('mobile', $member_info['mobile'], '手机号码');}
{loop $setting['fields'] $item} {if $item['bind'] != 'realname' && $item['bind'] != 'mobile'}
{$item['title']} {if $item['require'] == 1}*{else} {/if} {if $item['bind'] == 'reside' || $item['bind'] == 'resideprovince' || $item['bind'] == 'residecity' || $item['bind'] == 'residedist'} {php echo tpl_app_fans_form('reside', array('province' => $member_info['resideprovince'],'city' => $member_info['residecity'],'district' => $member_info['residedist']));} {elseif $item['bind'] == 'birth' || $item['bind'] == 'birthyear' || $item['bind'] == 'birthmonth' || $item['bind'] == 'birthday'} {php echo tpl_app_fans_form('birth', array('year' => $member_info['birthyear'], 'month' => $member_info['birthmonth'], 'day' => $member_info['birthday']))} {else} {php echo tpl_app_fans_form($item['bind'],$member_info[$item['bind']],$item['title'])} {/if}
{/if} {/loop}
{/if} {if $op == 'mycard'}
{if empty($mcard['status'])}
您的会员卡已被禁用，如有疑问，请联系{$_W['account']['name']}。
{else}
{if !empty($setting['logo'])}{/if}
{if $basic_info['params']['card_level']['type'] == 1}{$_W['member']['groupname']}{/if}
{if $basic_info['params']['card_label']['type'] == 1}{$basic_info['params']['card_label']['title']}{/if}
会员卡号:{$mcard['cardsn']}

### 使用说明：

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

- 我的余额 {$_W['member']['credit2']}
- 我的积分 {$_W['member']['credit1']}
{if $setting['nums_status'] == 1}
- {$setting['nums_text']} {$mcard['nums']}次
{/if} {if $setting['times_status'] == 1}
- {$setting['times_text']} {if $mcard['endtime'] < time()}已过期{else}{php echo date('Y-m-d', $mcard['endtime']);}{/if}
{/if}
- 我的卡券 {$total}张

{if !empty($setting['sign_status'])}
- 签到
{/if}
- 消息 {$new_notice_total}

- 个人信息
- 账单

{if !empty($activity_description_show)}

- 优惠说明

{/if}
{/if} {/if} {if $op == 'activity_description'}

{if $activity_info['params']['discount_type'] != 0}
- 消费优惠信息

{loop $activity_description $description}
- {$description[0]} {$description[1]}
{/loop}

{if $activity_info['params']['discount_style'] == 2}
{$activity_info['params']['content']}
{/if}
{/if} {if $recharge_info['params']['recharge_type'] != 0}
- 充值优惠信息

{loop $recharge_description $description}
- {$description}
{/loop}

{/if} {if $nums_info['params']['nums_status'] != 0}
- {$nums_info['params']['nums_text']}信息

{loop $nums_description $description}
- {$description}
{/loop}

{if $nums_info['params']['nums_style'] == 2}
{$nums_info['params']['content']}
{/if}
{/if} {if $times_info['params']['times_status'] != 0}
- {$times_info['params']['times_text']}信息

{loop $times_description $description}
- {$description}
{/loop}

{if $times_info['params']['times_style'] == 2}
{$times_info['params']['content']}
{/if}
{/if}

{/if} {if $op == 'add_recharge'}
请选择您要增加的{if $type == 'nums'}次数{elseif $type == 'times'}时间{/if}
{php $i = 0;} {loop $setting $nums}
{if $type == 'nums'}{php echo $nums['num'] . '次'}{elseif $type == 'times'}{php echo $nums['time'] . '天'}{/if}
{$nums['recharge']}元
{php $i++;} {/loop}

- 实际增加的{if $type == 'nums'}次数{elseif $type == 'times'}时间{/if}
- 需要支付的金额

确认支付
{/if} {if $op == 'recharge_record'}
{if $type == 'nums'}{$card['nums']}{elseif $type == 'times'}{php echo date('Y-m-d', $card['endtime'])}{/if}
{if $type == 'nums'}{$setting['nums_text']}{elseif $type == 'times'}{$setting['times_text']}{/if}
{if $type == 'nums'} 立即充值 {elseif $type == 'times'} 立即充值 {/if}

- {$period_date}
{loop $data $da}
- {if $type == 'nums'} {if $da['model'] == '1'} 次数充值 {else} 次数消费 {/if} {else} {if $da['model'] == '1'} 服务延长 {else} 服务减少 {/if} {/if} {$da['fee']}
  {if $da['model'] == '1'}+{else}-{/if}{$da['tag']}{if $type == 'nums'}次{elseif $type == 'times'}天{/if} {php echo date('Y-m-d', $da['addtime'])}
{/loop}

- {php echo date('Y.m', strtotime('now'))}
- {php echo date('Y.m', strtotime('now - 1 month'))}
- {php echo date('Y.m', strtotime('now - 2 month'))}
- {php echo date('Y.m', strtotime('now - 3 month'))}
- {php echo date('Y.m', strtotime('now - 4 month'))}

{/if} {if $op == 'sign_display'}
{php for ($i = 1; $i <= $current_month_days; $i++) {} {if $i == $sign_set['first_group_day']}
+{$sign_set['first_group_num']}
{elseif $i == $sign_set['second_group_day']}
+{$sign_set['second_group_num']}
{elseif $i == $sign_set['third_group_day']}
+{$sign_set['third_group_num']}
{elseif $i == $current_month_days}
+{$sign_set['full_sign_num']}
{else}
+{$sign_set['everydaynum']}
{/if} {php }}
{if !empty($today_signed['id'])}
今日已签到+{$today_sign_credit}积分
明日可得 +{$tomorrow_sign_credit}积分
{/if}
{/if} {if $op == 'sign_record'}
{if $_GPC['period'] <= 0}{php echo date('Y.m', strtotime($_GPC['period'] . 'month'))}{else}查看全部{/if}

{if !empty($data)} {loop $data $da}
- {$da['addtime']} 签到送积分
  +{$da['credit']}
{/loop} {else}
- 无签到记录
{/if}

- 查看全部
- {php echo date('Y.m', strtotime('today'))}
- {php echo date('Y.m', strtotime('-1month'))}
- {php echo date('Y.m', strtotime('-2month'))}

{/if} {if $op == 'sign_strategy'}
积分攻略
{$content}
{/if} {if $op == 'notice'}
广播 系统消息

{if !empty($data)} {loop $data $da} {if $da['type'] == '1'}

- {$da['title']}

  {php echo date('Y-m-d H:i', $da['addtime']);}

  {$da['content']}

{/if} {/loop} {else}
- 暂无消息
{/if}

- 暂无消息

{/if} {if $op == 'personal_info'}

- 手机 {if empty($_W['member']['mobile'])}请绑定手机号{else}{$_W['member']['mobile']}{/if}

{loop $mc_fields $fields}
{php echo $fields['title']} {if $fields['bind'] == 'birth'} {if empty($profile['birthday'])} {php echo tpl_app_fans_form('birth', array('year' => $profile['birthyear'], 'month' => $profile['birthmonth'], 'day' => $profile['birthday']), $fields['title']);} {else} {/if} {elseif $fields['bind'] == 'reside'} {php echo tpl_app_fans_form('reside', array('province' => $profile['resideprovince'], 'city' => $profile['residecity'], 'district' => $profile['residedist']), $fields['title']);} {elseif $fields['bind'] == 'email'} {else} {php echo tpl_app_fans_form($fields['bind'], $profile[$fields['bind']], $fields['title']);} {/if}
{/loop}
开卡时间:{php echo date('Y-m-d', $mcard['createtime']);}
{/if} {if $op == 'consume'}

##### 请选择门店

##### 设置付款金额

{/if} {template 'common/footer'}