knowDetail.wxml
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<import src="../../wxParse/wxParse.wxml"/>
<!-- 知识库详情页面 -->
<view class='know_page'>
<view class='know_title'>{{knowdetail.title}}</view>
<view class='know_con'>{{knowdetail.describe}}</view>
</view>
<view class='know_line'>专家解读</view>
<block wx:if="{{sonlist.length==0}}"><view class='list_none'>暂无数据</view></block>
<view wx:else>
<!-- begin:切换标题 -->
<view class='know_tab'>
<block wx:for="{{sonlist}}" wx:key="">
<view class="know_name {{currTab==index?'active':''}}" data-current='{{index}}' bindtap='clickTab'>
<text></text>{{item.title}}
</view>
</block>
</view>
<!-- begin:用户提问 -->
<view class='know_list'>
<view class='know_person'>
<view class='know_img'><image src='{{content.basic_pic}}'></image></view>
<view class='know_info'>
<view class='know_mother'>{{content.basic_name}}</view>
<view class='know_state'>{{content.basic_status}}</view>
</view>
</view>
<view class='know_content'>
<template is="wxParse" data="{{wxParseData:article.nodes}}"/>
<!-- {{content.basic_content}} -->
</view>
</view>
<!-- begin:医生回答 -->
<view class='know_doctor'>
<view class='doctor_box'>
<view class='doctor_info'>
<view class='doctor_name'>{{content.basic_answer_name}}</view>
<view class='doctor_post'>{{content.basic_answer_status}}</view>
</view>
<view class='doctor_img'><image src='{{content.basic_answer_pic}}'></image></view>
</view>
<view class='doctor_con'>
<template is="wxParse" data="{{wxParseData:article1.nodes}}"/>
<!-- {{content.basic_answer_content}} -->
</view>
</view>
</view>