- admin:OrdersHub/UsersHub、Commerce/Ops/Enterprise Hub、MpAnalytics、Feishu/小程序配置面板、鉴权存储 - api:Analytics、DataMigration、FeishuLeadWebhook、mp 事件迁移 SQL - 微信/抖音小程序:analytics 上报与相关页面调整 - 开发文档与 scripts 补充 Made-with: Cursor
49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
<!--pages/test/mbti.wxml - MBTI测试页面(按旧版模板重构)-->
|
||
<view class="test-page">
|
||
<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 {{selectedAnswer === option.value ? 'selected' : ''}}"
|
||
wx:for="{{currentQuestion.options}}"
|
||
wx:for-item="option"
|
||
wx:key="value"
|
||
bindtap="selectAnswer"
|
||
data-value="{{option.value}}"
|
||
>
|
||
<view class="radio-button {{selectedAnswer === option.value ? 'checked' : ''}}">
|
||
<view wx:if="{{selectedAnswer === 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>
|
||
</view>
|