1、修复了用户详情、定价与题目管理、财务与分销等管理端展示与接口问题。 2、新增 SBTI 小程序测评/结果页、sbtiData 引擎、题库 SQL 与脚本;admin sbtiDisplay。 3、优化 AppConfig/CrmReport/Test、历史与个人中心、test-select 与支付相关逻辑。 Made-with: Cursor
55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
<!--pages/test/sbti.wxml - SBTI 测试(闸口题由逻辑动态插入)-->
|
|
<view class="test-page">
|
|
<view wx:if="{{loading}}" class="test-loading">
|
|
<text class="test-loading-text">加载题目…</text>
|
|
</view>
|
|
<block wx:elif="{{currentQuestion}}">
|
|
<view class="progress-section">
|
|
<view class="progress-info">
|
|
<text class="question-count">问题 {{currentIndex + 1}}/{{total}}</text>
|
|
<text class="time-remaining">剩余时间: {{formatTime}}</text>
|
|
</view>
|
|
<view class="progress-bar-container">
|
|
<view class="progress-bar" style="width: {{progress}}%"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="content-area">
|
|
<view class="question-card">
|
|
<text class="question-text">{{currentQuestion.question}}</text>
|
|
<view class="options-container">
|
|
<view
|
|
class="option-item {{answers[currentQuestion.id] === option.value ? 'selected' : ''}}"
|
|
wx:for="{{currentQuestion.options}}"
|
|
wx:for-item="option"
|
|
wx:for-index="optIdx"
|
|
wx:key="optIdx"
|
|
bindtap="selectAnswer"
|
|
data-value="{{option.value}}"
|
|
>
|
|
<view class="radio-button {{answers[currentQuestion.id] === option.value ? 'checked' : ''}}">
|
|
<view wx:if="{{answers[currentQuestion.id] === option.value}}" class="radio-inner"></view>
|
|
</view>
|
|
<text class="option-text">{{option.text}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{currentIndex === total - 1}}" class="last-hint">
|
|
<text class="last-hint-text">最后一题:选择后约 0.3 秒自动跳转结果页;若未跳转,请点右下角「查看结果」。</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="footer-buttons">
|
|
<view class="nav-button secondary {{currentIndex === 0 ? 'disabled' : ''}}" bindtap="prevQuestion">
|
|
<text class="button-text">上一题</text>
|
|
</view>
|
|
<view wx:if="{{currentIndex < total - 1}}" class="nav-button secondary" bindtap="nextQuestion">
|
|
<text class="button-text">跳过</text>
|
|
</view>
|
|
<view wx:else class="nav-button primary {{isSubmitting ? 'disabled' : ''}}" bindtap="finishTest">
|
|
<text class="button-text button-text-on-primary">{{isSubmitting ? '正在生成…' : '查看结果'}}</text>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|