123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <{if $info.end == 2}>
- <div class="textcenter">
- <h3>活动已结束!</h3>
- <p>感谢您的关注,期待您参与我们的其他活动</p>
- <section class="button-wrapper">
- <a class="button border" href="<{$listUrl}>">找找其他福利</a>
- <a class="button" href="<{$giftsUrl}>">查看我的奖品</a>
- </section>
- </div>
- <{else}>
- <form id="ff">
- <{foreach from=$forms item=form}>
- <{if $form.type == 'text'}>
- <input name="<{$form.name}>" type="text" class="input_style" placeholder="<{$form.name}>" >
- <{/if}>
- <{if $form.type == 'textarea'}>
- <textarea name="<{$form.name}>" class="input_textarea" placeholder="<{$form.name}>"></textarea>
- <{/if}>
- <{if $form.type == 'select'}>
- <select name="<{$form.name}>">
- <option value="">请选择<{$form.name}></option>
- <{foreach from=$form.options item=option}>
- <option value="<{$option}>"><{$option}></option>
- <{/foreach}>
- </select>
- <{/if}>
- <{/foreach}>
- </form>
- <section class="button-wrapper">
- <a class="button" id="common_submit_btn">提交资料</a>
- </section>
- <script>
- $("select").on('change', function () {
- if ($(this).val() == '') {
- $(this).css({'color':'#999'});
- } else {
- $(this).css({'color':''});
- }
- });
- </script>
- <{/if}>
|