{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} $flag = request()->get('flag', ''); $url = request()->get('url', ''); $isSign = api("NsMemberSign.MemberSign.isSignIn"); $isSign = $isSign['data']; $sign_records = api("NsMemberSign.MemberSign.signInRecords"); $records = $sign_records['data']; $mon_t = date("t"); $year = date("Y"); $month = date("m"); $day = date("d"); $BeginDate=date('Y-m-01', strtotime(date("Y-m-d"))); $week= Date("w", strtotime(Date($BeginDate))) ; $sign_config = api("NsMemberSign.MemberSign.getSignInConfig"); $sign_config = $sign_config['data']; {/php}
{if condition="$isSign eq 0"}
签到
{else/}
已签到
{/if}

{$year}年{$month}月

{if condition="($sign_config['sign_integral'] neq 0 && $sign_config.integral_info['sign_point'] gt 0) || ($sign_config['sign_coupon'] neq 0 && !empty($sign_config.coupon_info['coupon_name']))"}

{if condition="$sign_config['sign_integral'] neq 0 && $sign_config.integral_info['sign_point'] gt 0"} 签到奖励 {$sign_config.integral_info['sign_point']}积分 {/if} {if condition="$sign_config['sign_coupon'] neq 0 && !empty($sign_config.coupon_info['coupon_name'])"} 赠送一张{$sign_config.coupon_info['coupon_name']} {/if}

{/if}

- 日
- 一
- 二
- 三
- 四
- 五
- 六

{for start="0" end="$week" step="1" name="i"}
{/for} {foreach name="records" item="vo" key="k"} {if condition="$vo gt 0"}

- 已签到

{else/} {if condition=" $day eq $k"} {if condition="$vo neq 0"}

- 已签到

{else/}
- {$k}
{/if} {else/}
- {$k}
{/if} {/if} {/foreach}

活动规则
{/block} {block name="footer"}{/block} {block name="script"}
{/block}