<!--pages/module_consult/consultproblem/consultproblem.wxml-->
|
<!--pages/module_consult/consulthome/consulthome.wxml-->
|
<view class="page">
|
<view class="page__hd">
|
<view class="switch-tab {{selectedIndex == index ? 'switch-tab_selected' : ''}}" wx:for="{{problemTypes}}" wx:index="index" data-index="{{index}}" bindtap="selectProblemType">{{item}}</view>
|
</view>
|
<view class="page__bd">
|
<block wx:for="{{problems[problemIndex]}}" wx:key="index">
|
<view class="fyui-box fyui-box__text">
|
<view class="fyui-box__hd">
|
Q. {{item.q}}
|
</view>
|
<view class="fyui-box__bd">
|
<view class="fyui-box__content">{{item.a.length > 0 ? item.a[0].text : ''}}</view>
|
</view>
|
<view class="fyui-box__ft">
|
<view class="fyui-box__tag">
|
<view class="flex-h">
|
<image src="/res/icons/view.png" class="icon"></image>{{item.viewed}}
|
</view>
|
<view class="flex-h">
|
<image src="/res/icons/like.png" class="icon"></image><view>{{item.like}}</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
</block>
|
|
</view>
|
<view class="page__ft">
|
</view>
|
</view>
|