1、修复了用户详情与人脸/DISC 展示、手机号与资料校验、相机页与测试选择等体验问题。 2、新增了 SystemDefaultEnterprise、discDisplay、管理端设置扩展接口;CrmReport/Test/Analyze 等 API 与路由能力补强。 3、优化了 resultFormat、descriptions、payment、企业上下文;海报与 PDP/DISC 文案;超管 Commerce/Users 与 admin Settings/Users。 Made-with: Cursor
55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
<!--pages/test/mbti.wxml - MBTI测试页面(按旧版模板重构)-->
|
||
<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>
|