feat(helpCenter): 帮助中心列表接入内容接口、问题详情页富文本渲染

This commit is contained in:
17792275749
2026-08-20 17:13:57 +08:00
parent f53f11e6e9
commit fce9701254
6 changed files with 117 additions and 96 deletions
+14 -10
View File
@@ -5,18 +5,22 @@
</view>
<view class="tabs">
<block wx:for="{{ tabs }}" wx:key="name">
<view class="tab {{ item.active ? 'tab--active' : '' }}" bind:tap="onTapTab" data-index="{{ index }}">{{ item.name }}</view>
</block>
<scroll-view class="scrollView" scroll-x>
<block wx:for="{{ tabs }}" wx:key="name">
<view class="tab {{ item.active ? 'tab--active' : '' }}" bind:tap="onTapTab" data-index="{{ index }}">{{ item.name }}</view>
</block>
</scroll-view>
</view>
<view class="list">
<block wx:for="{{ questions }}" wx:key="id">
<view class="question" bind:tap="onTapQuestion" data-title="{{ item.title }}">
<view class="dot"></view>
<view class="question-title">{{ item.title }}</view>
<view class="arrow"></view>
</view>
</block>
<scroll-view class="scrollView" scroll-y>
<block wx:for="{{ questions }}" wx:key="id">
<view class="question" bind:tap="onTapQuestion" data-id="{{ item.id }}" data-title="{{ item.title }}">
<view class="dot"></view>
<view class="question-title">{{ item.title }}</view>
<view class="arrow"></view>
</view>
</block>
</scroll-view>
</view>
</view>