gift.phtml 2.41 KB
{{> layout/header}}
<div class="user-me-page me-page yoho-page clearfix">
    {{# gift}}
        {{> home/path}}
        {{> home/navigation}}
        <div class="me-main">
            <div class="gift block">
                <div  class="title">
                  <h2>兑换礼品卡</h2>
                </div>

                {{#if giftOk}}
                    <div class="gift-ok">
                        {{#if isFail}}
                            <h3 class="fail">兑换失败!未找到有效的礼品卡信息.</h3>
                        {{^}}
                            <h3 class="success">兑换成功!</h3>
                            <div class="currency-info">当前您的YOHO币数量:<em class="yoho-currency">30</em><span class="gift-red">个</span></div>
                        {{/if}}
                    </div>
                {{^}}
                <form id="giftCardForm" name="giftCardForm" method="post" action="{{formAction}}">
                    <ul class="gift-box">                  
                        <li>请输入您获得的礼品卡上的12位兑换码获取YOHO币:</li>              
                        <li class="giftCardCode">
                            <input type="text" value="" name="giftCardCode1" class="gift-input" id="giftCardCode1" />
                            -
                            <input type="text" value="" name="giftCardCode2" class="gift-input" id="giftCardCode2" />
                            -
                            <input type="text" value="" name="giftCardCode3" class="gift-input" id="giftCardCode3" />
                            <span class="gift-error"></span>
                        </li>  
                        <li class="captchaCode">
                            请输入验证码:
                            <input type="text" value="" name="captchaCode" id="captchaCode" class="gift-input" />
                            <img src="" id="imgcode"/>
                            看不清楚?
                            <a href="#" class="check-img">换一张</a>
                            <span class="gift-error"></span>
                        </li>
                        <li>
                          <input type="button" class="btn-b1" id="sub-gift" value="确认兑换"/>
                        </li>
                    </ul>
                </form>
                {{/if}}
            </div>
        </div>
    {{/ gift}}
</div>
{{> layout/footer}}