gift.hbs 2.4 KB
<div class="user-me-page me-page yoho-page clearfix">
    {{> path}}
    {{> navigation}}
    {{# gift}}
        <div class="me-main">
            <div class="gift block">
                <div  class="title">
                  <h2>兑换礼品卡</h2>
                </div>
                {{# resultInfo}}
                    {{#if success}}
                    <div class="gift-ok">
                        <h3 class="success">兑换成功!</h3>
                        <div class="currency-info">当前您的YOHO币数量:<em class="yoho-currency">{{yohoCoin}}</em><span class="gift-red"></span></div>
                    </div>
                    {{^}}
                    <div class="gift-fail">
                        <h3 class="fail">兑换失败!未找到有效的礼品卡信息.  请<a href="/home/gift" class="input-again">重新输入</a></h3>
                    </div>
                    {{/if}}
                {{^}}
                    <form id="giftCardForm" name="giftCardForm" method="post">
                        <ul class="gift-box">
                            <li>请输入您获得的礼品卡上的12位兑换码获取YOHO币:</li>
                            <li class="giftCardCode">
                                <input type="text" value="" name="giftCardCode1" class="gift-input" id="giftCardCode1" maxlength="4"/>
                                -
                                <input type="text" value="" name="giftCardCode2" class="gift-input" id="giftCardCode2" maxlength="4"/>
                                -
                                <input type="text" value="" name="giftCardCode3" class="gift-input" id="giftCardCode3" maxlength="4"/>
                                <span class="gift-error"></span>
                            </li>
                            <li class="captchaCode">
                                <!--<input type="text" value="" name="verifyCode" id="captchaCode" class="gift-input" />-->
                                <div  class="captcha-img" ></div>
                                <!--<span class="gift-error"></span>-->
                            </li>
                            <li>
                              <input type="button" class="btn-b1" id="sub-gift" value="确认兑换"/>
                            </li>
                        </ul>
                    </form>
                {{/ resultInfo}}
            </div>
        </div>
    {{/ gift}}
</div>