detail.hbs 2.81 KB
<div class="qs-detail-page">
    {{# detail}}
        <div class="error-tip"></div>
        <div class="detail-wrap">
            <p class="sub-title">{{title}}</p>
            <p class="guide-tip">{{description}}</p>

            <div id="qs-wrap" class="qs-wrap" data-id="{{id}}" data-cid="{{uid}}" data-title="{{share.title}}" data-desc="{{share.subtitle}}" data-img="{{share.imgUrl}}">
                {{# questions}}
                    <dl class="qs-item" data-index="{{questionIndex}}" data-type="{{questionType}}">
                        <dt>{{questionTitle}}</dt>
                        {{#isEqualOr questionType 1}}
                            {{# questionContents}}
                                <dd class="radio-option" data-index="{{@index}}">
                                    <span class="iconfont">&#xe6ea;</span>
                                    <div class="option-box">{{{option}}}</div>
                                    {{#if addon}}
                                        <input type="text">
                                    {{/if}}
                                </dd>
                            {{/ questionContents}}
                        {{/isEqualOr}}

                        {{#isEqualOr questionType 2}}
                            {{# questionContents}}
                                <dd class="check-option" data-index="{{@index}}">
                                    <span class="iconfont">&#xe6ea;</span>
                                    <div class="option-box">{{{option}}}</div>
                                    {{#if addon}}
                                        <input type="text">
                                    {{/if}}
                                </dd>
                            {{/ questionContents}}
                        {{/isEqualOr}}

                        {{#isEqualOr questionType 3}}
                            {{# questionContents}}
                                <dd><textarea class="text-input"></textarea></dd>
                            {{/ questionContents}}
                        {{/isEqualOr}}
                    </dl>
                {{/ questions}}
            </div>

            <div class="submit">
                <button class="submit-btn">提交</button>
            </div>
        </div>
    {{/ detail}}

    <div class="qs-err">
        <p class="err-text">{{{errText}}}</p>
        <a href="/3party/questionnaire">去做问卷</a>
    </div>

    <div id="tip-dialog" class="tip-dialog hide">
        <div class="dg-wrap">
            <div class="dg-content"><p>您的问卷还没有成功提交哦!<br>是否立刻返回!</p></div>
            <div class="dg-btns clearfix">
                <span class="back-btn">返回</span>
                <span class="close-btn continue-btn">继续填写</span>
            </div>
        </div>
    </div>
</div>