xiaoe_mp_npm 1.0.21 → 1.0.22-test02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc.js +32 -6
- package/miniprogram_dist/GoodsItem/index.json +6 -6
- package/miniprogram_dist/GoodsItem/index.wxs +18 -18
- package/miniprogram_dist/LiveGoodsList/Header/index.js +54 -54
- package/miniprogram_dist/LiveGoodsList/Header/index.json +6 -6
- package/miniprogram_dist/LiveGoodsList/Header/index.less +45 -45
- package/miniprogram_dist/LiveGoodsList/Header/index.scss +105 -105
- package/miniprogram_dist/LiveGoodsList/Header/index.wxml +32 -32
- package/miniprogram_dist/LiveGoodsList/README.md +9 -9
- package/miniprogram_dist/LiveGoodsList/index.json +8 -8
- package/miniprogram_dist/LiveGoodsList/index.less +53 -53
- package/miniprogram_dist/LiveGoodsList/index.scss +92 -92
- package/miniprogram_dist/Task/TaskBubble/index.js +2 -1
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +241 -166
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +26 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +27 -8
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxss +96 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +4 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.js +132 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.json +6 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.scss +192 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxml +65 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxs +79 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxss +521 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.js +47 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.json +6 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.scss +7 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxml +2 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxss +298 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +316 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.js +232 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.json +8 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.scss +159 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +97 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxss +478 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.js +79 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.json +6 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.scss +108 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxml +27 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxss +286 -0
- package/miniprogram_dist/common/utils/tool.js +54 -48
- package/package.json +1 -1
- package/src/AliveInvite/LiveRoomVertical/index.wxss +252 -252
- package/src/CollectionAddress/index.wxss +5 -5
- package/src/ConfirmOrder/components/AddressEdit/index.wxss +120 -120
- package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
- package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
- package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +45 -45
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +100 -100
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +55 -55
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +13 -13
- package/src/ConfirmOrder/components/Header/index.wxss +26 -26
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +85 -85
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +155 -155
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +51 -51
- package/src/ConfirmOrder/components/ModeSelect/index.wxss +44 -44
- package/src/ConfirmOrder/components/PickupSelect/index.wxss +22 -22
- package/src/ConfirmOrder/components/SelectSite/index.wxss +82 -82
- package/src/ConfirmOrder/components/Shipper/index.wxss +76 -76
- package/src/ConfirmOrder/components/ShipperEdit/index.wxss +78 -78
- package/src/ConfirmOrder/components/WechatAddress/index.wxss +22 -22
- package/src/ConfirmOrder/index.wxss +5 -5
- package/src/CouponList/couponMsg/index.wxss +3 -3
- package/src/CustomPopup/index.wxss +22 -22
- package/src/GoodsItem/index.json +6 -6
- package/src/GoodsItem/index.wxs +18 -18
- package/src/LiveGoodsList/Header/index.js +54 -54
- package/src/LiveGoodsList/Header/index.json +6 -6
- package/src/LiveGoodsList/Header/index.less +45 -45
- package/src/LiveGoodsList/Header/index.scss +105 -105
- package/src/LiveGoodsList/Header/index.wxml +32 -32
- package/src/LiveGoodsList/README.md +9 -9
- package/src/LiveGoodsList/index.json +8 -8
- package/src/LiveGoodsList/index.less +53 -53
- package/src/LiveGoodsList/index.scss +92 -92
- package/src/LiveGoodsList/index.wxss +218 -218
- package/src/PayComplete/Components/CouponItem/index.wxss +122 -122
- package/src/PayComplete/Components/Header/index.wxss +27 -27
- package/src/PayComplete/Components/LeadGroup/index.wxss +33 -33
- package/src/PayComplete/Components/PayGifts/index.wxss +157 -157
- package/src/PayComplete/Components/PayState/earnIntegral/index.wxss +23 -23
- package/src/PayComplete/Components/PayState/index.wxss +20 -20
- package/src/PayComplete/index.wxss +27 -27
- package/src/PayModule/wechatLoading/index.wxss +57 -57
- package/src/Recommend/index.wxss +110 -110
- package/src/Sku/Header/index.wxss +27 -27
- package/src/Sku/goods-info/index.wxss +52 -52
- package/src/Sku/index/index.wxss +52 -52
- package/src/Sku/row-item/index.wxss +50 -50
- package/src/Sku/step/index.wxss +11 -11
- package/src/Task/TaskBubble/index.js +2 -1
- package/src/Task/TaskBubble/index.wxss +289 -289
- package/src/Task/TaskIcon/index.wxss +130 -130
- package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
- package/src/Task/TaskPopup/component/TaskItem/index.js +241 -166
- package/src/Task/TaskPopup/component/TaskItem/index.scss +26 -0
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +27 -8
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -394
- package/src/Task/TaskPopup/component/TaskList/index.js +4 -0
- package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
- package/src/Task/TaskPopup/component/TaskType/index.wxss +110 -110
- package/src/Task/TaskPopup/index.wxss +406 -406
- package/src/Task/TaskQuizPopup/components/quizContent/index.js +132 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.json +6 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.scss +192 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxml +65 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxs +79 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxss +1 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.js +47 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.json +6 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.scss +7 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.wxml +2 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.wxss +1 -0
- package/src/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -0
- package/src/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -0
- package/src/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -0
- package/src/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -0
- package/src/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -0
- package/src/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +283 -0
- package/src/Task/TaskQuizPopup/index.js +232 -0
- package/src/Task/TaskQuizPopup/index.json +8 -0
- package/src/Task/TaskQuizPopup/index.scss +159 -0
- package/src/Task/TaskQuizPopup/index.wxml +97 -0
- package/src/Task/TaskQuizPopup/index.wxss +1 -0
- package/src/Task/taskQuizRemindPopup/index.js +79 -0
- package/src/Task/taskQuizRemindPopup/index.json +6 -0
- package/src/Task/taskQuizRemindPopup/index.scss +108 -0
- package/src/Task/taskQuizRemindPopup/index.wxml +27 -0
- package/src/Task/taskQuizRemindPopup/index.wxss +1 -0
- package/src/Task/taskReceivePopup/customPrizes/index.wxss +220 -220
- package/src/Task/taskReceivePopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
- package/src/common/css/theme.wxss +16 -16
- package/src/common/utils/tool.js +54 -48
- package/src/miniprogram_npm/miniprogram-computed/index.js +1 -0
|
@@ -0,0 +1,3563 @@
|
|
|
1
|
+
<import src="base.wxml" />
|
|
2
|
+
|
|
3
|
+
<!--循环模版-->
|
|
4
|
+
<template name="wxParse12">
|
|
5
|
+
<!--<template is="wxParse13" data="{{item}}" />-->
|
|
6
|
+
<!--判断是否是标签节点-->
|
|
7
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
8
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
9
|
+
<button type="default" size="mini">
|
|
10
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
11
|
+
<template is="wxParse13" data="{{item}}" />
|
|
12
|
+
</block>
|
|
13
|
+
</button>
|
|
14
|
+
</block>
|
|
15
|
+
<!--li类型-->
|
|
16
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
17
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
18
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
19
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
20
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
21
|
+
</view>
|
|
22
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
23
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
24
|
+
<template is="wxParse13" data="{{item}}" />
|
|
25
|
+
</block>
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
</view>
|
|
29
|
+
</block>
|
|
30
|
+
|
|
31
|
+
<!--video类型-->
|
|
32
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
33
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
34
|
+
</block>
|
|
35
|
+
|
|
36
|
+
<!--img类型-->
|
|
37
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
38
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
39
|
+
</block>
|
|
40
|
+
|
|
41
|
+
<!--a类型-->
|
|
42
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
43
|
+
<navigator
|
|
44
|
+
wx:if="{{item.attr.no_support}}"
|
|
45
|
+
data-url="{{item.attr.href}}"
|
|
46
|
+
bindtap="showNoSupportUrl"
|
|
47
|
+
url="{{item.attr.href}}"
|
|
48
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
49
|
+
data-c="{{item.attr.href}}"
|
|
50
|
+
style="{{item.styleStr}}"
|
|
51
|
+
>
|
|
52
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
53
|
+
<template is="wxParse13" data="{{item}}" />
|
|
54
|
+
</block>
|
|
55
|
+
</navigator>
|
|
56
|
+
<navigator
|
|
57
|
+
wx:else
|
|
58
|
+
url="{{item.attr.href}}"
|
|
59
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
60
|
+
data-c="{{item.attr.href}}"
|
|
61
|
+
style="{{item.styleStr}}"
|
|
62
|
+
>
|
|
63
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
64
|
+
<template is="wxParse13" data="{{item}}" />
|
|
65
|
+
</block>
|
|
66
|
+
</navigator>
|
|
67
|
+
</block>
|
|
68
|
+
|
|
69
|
+
<!--其他块级标签-->
|
|
70
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
71
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
72
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
73
|
+
<template is="wxParse13" data="{{item}}" />
|
|
74
|
+
</block>
|
|
75
|
+
</view>
|
|
76
|
+
</block>
|
|
77
|
+
|
|
78
|
+
<!--内联标签-->
|
|
79
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
80
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
81
|
+
<template is="wxParse13" data="{{item}}" />
|
|
82
|
+
</block>
|
|
83
|
+
</view>
|
|
84
|
+
</block>
|
|
85
|
+
|
|
86
|
+
<!--判断是否是文本节点-->
|
|
87
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
88
|
+
<!--如果是,直接进行-->
|
|
89
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
90
|
+
</block>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<template name="wxParse13">
|
|
94
|
+
<!--<template is="wxParse14" data="{{item}}" />-->
|
|
95
|
+
<!--判断是否是标签节点-->
|
|
96
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
97
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
98
|
+
<button type="default" size="mini">
|
|
99
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
100
|
+
<template is="wxParse14" data="{{item}}" />
|
|
101
|
+
</block>
|
|
102
|
+
</button>
|
|
103
|
+
</block>
|
|
104
|
+
<!--li类型-->
|
|
105
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
106
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
107
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
108
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
109
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
110
|
+
</view>
|
|
111
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
112
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
113
|
+
<template is="wxParse14" data="{{item}}" />
|
|
114
|
+
</block>
|
|
115
|
+
</view>
|
|
116
|
+
</view>
|
|
117
|
+
</view>
|
|
118
|
+
</block>
|
|
119
|
+
|
|
120
|
+
<!--video类型-->
|
|
121
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
122
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
123
|
+
</block>
|
|
124
|
+
|
|
125
|
+
<!--img类型-->
|
|
126
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
127
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
128
|
+
</block>
|
|
129
|
+
|
|
130
|
+
<!--a类型-->
|
|
131
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
132
|
+
<navigator
|
|
133
|
+
wx:if="{{item.attr.no_support}}"
|
|
134
|
+
data-url="{{item.attr.href}}"
|
|
135
|
+
bindtap="showNoSupportUrl"
|
|
136
|
+
url="{{item.attr.href}}"
|
|
137
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
138
|
+
data-c="{{item.attr.href}}"
|
|
139
|
+
style="{{item.styleStr}}"
|
|
140
|
+
>
|
|
141
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
142
|
+
<template is="wxParse14" data="{{item}}" />
|
|
143
|
+
</block>
|
|
144
|
+
</navigator>
|
|
145
|
+
<navigator
|
|
146
|
+
wx:else
|
|
147
|
+
url="{{item.attr.href}}"
|
|
148
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
149
|
+
data-c="{{item.attr.href}}"
|
|
150
|
+
style="{{item.styleStr}}"
|
|
151
|
+
>
|
|
152
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
153
|
+
<template is="wxParse14" data="{{item}}" />
|
|
154
|
+
</block>
|
|
155
|
+
</navigator>
|
|
156
|
+
</block>
|
|
157
|
+
|
|
158
|
+
<!--其他块级标签-->
|
|
159
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
160
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
161
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
162
|
+
<template is="wxParse14" data="{{item}}" />
|
|
163
|
+
</block>
|
|
164
|
+
</view>
|
|
165
|
+
</block>
|
|
166
|
+
|
|
167
|
+
<!--内联标签-->
|
|
168
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
169
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
170
|
+
<template is="wxParse14" data="{{item}}" />
|
|
171
|
+
</block>
|
|
172
|
+
</view>
|
|
173
|
+
</block>
|
|
174
|
+
|
|
175
|
+
<!--判断是否是文本节点-->
|
|
176
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
177
|
+
<!--如果是,直接进行-->
|
|
178
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
179
|
+
</block>
|
|
180
|
+
</template>
|
|
181
|
+
|
|
182
|
+
<template name="wxParse14">
|
|
183
|
+
<!--<template is="wxParse15" data="{{item}}" />-->
|
|
184
|
+
<!--判断是否是标签节点-->
|
|
185
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
186
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
187
|
+
<button type="default" size="mini">
|
|
188
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
189
|
+
<template is="wxParse15" data="{{item}}" />
|
|
190
|
+
</block>
|
|
191
|
+
</button>
|
|
192
|
+
</block>
|
|
193
|
+
<!--li类型-->
|
|
194
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
195
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
196
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
197
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
198
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
199
|
+
</view>
|
|
200
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
201
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
202
|
+
<template is="wxParse15" data="{{item}}" />
|
|
203
|
+
</block>
|
|
204
|
+
</view>
|
|
205
|
+
</view>
|
|
206
|
+
</view>
|
|
207
|
+
</block>
|
|
208
|
+
|
|
209
|
+
<!--video类型-->
|
|
210
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
211
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
212
|
+
</block>
|
|
213
|
+
|
|
214
|
+
<!--img类型-->
|
|
215
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
216
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
217
|
+
</block>
|
|
218
|
+
|
|
219
|
+
<!--a类型-->
|
|
220
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
221
|
+
<navigator
|
|
222
|
+
wx:if="{{item.attr.no_support}}"
|
|
223
|
+
data-url="{{item.attr.href}}"
|
|
224
|
+
bindtap="showNoSupportUrl"
|
|
225
|
+
url="{{item.attr.href}}"
|
|
226
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
227
|
+
data-c="{{item.attr.href}}"
|
|
228
|
+
style="{{item.styleStr}}"
|
|
229
|
+
>
|
|
230
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
231
|
+
<template is="wxParse15" data="{{item}}" />
|
|
232
|
+
</block>
|
|
233
|
+
</navigator>
|
|
234
|
+
<navigator
|
|
235
|
+
wx:else
|
|
236
|
+
url="{{item.attr.href}}"
|
|
237
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
238
|
+
data-c="{{item.attr.href}}"
|
|
239
|
+
style="{{item.styleStr}}"
|
|
240
|
+
>
|
|
241
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
242
|
+
<template is="wxParse15" data="{{item}}" />
|
|
243
|
+
</block>
|
|
244
|
+
</navigator>
|
|
245
|
+
</block>
|
|
246
|
+
|
|
247
|
+
<!--其他块级标签-->
|
|
248
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
249
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
250
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
251
|
+
<template is="wxParse15" data="{{item}}" />
|
|
252
|
+
</block>
|
|
253
|
+
</view>
|
|
254
|
+
</block>
|
|
255
|
+
|
|
256
|
+
<!--内联标签-->
|
|
257
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
258
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
259
|
+
<template is="wxParse15" data="{{item}}" />
|
|
260
|
+
</block>
|
|
261
|
+
</view>
|
|
262
|
+
</block>
|
|
263
|
+
|
|
264
|
+
<!--判断是否是文本节点-->
|
|
265
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
266
|
+
<!--如果是,直接进行-->
|
|
267
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
268
|
+
</block>
|
|
269
|
+
</template>
|
|
270
|
+
|
|
271
|
+
<template name="wxParse15">
|
|
272
|
+
<!--<template is="wxParse16" data="{{item}}" />-->
|
|
273
|
+
<!--判断是否是标签节点-->
|
|
274
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
275
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
276
|
+
<button type="default" size="mini">
|
|
277
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
278
|
+
<template is="wxParse16" data="{{item}}" />
|
|
279
|
+
</block>
|
|
280
|
+
</button>
|
|
281
|
+
</block>
|
|
282
|
+
<!--li类型-->
|
|
283
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
284
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
285
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
286
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
287
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
288
|
+
</view>
|
|
289
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
290
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
291
|
+
<template is="wxParse16" data="{{item}}" />
|
|
292
|
+
</block>
|
|
293
|
+
</view>
|
|
294
|
+
</view>
|
|
295
|
+
</view>
|
|
296
|
+
</block>
|
|
297
|
+
|
|
298
|
+
<!--video类型-->
|
|
299
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
300
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
301
|
+
</block>
|
|
302
|
+
|
|
303
|
+
<!--img类型-->
|
|
304
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
305
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
306
|
+
</block>
|
|
307
|
+
|
|
308
|
+
<!--a类型-->
|
|
309
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
310
|
+
<navigator
|
|
311
|
+
wx:if="{{item.attr.no_support}}"
|
|
312
|
+
data-url="{{item.attr.href}}"
|
|
313
|
+
bindtap="showNoSupportUrl"
|
|
314
|
+
url="{{item.attr.href}}"
|
|
315
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
316
|
+
data-c="{{item.attr.href}}"
|
|
317
|
+
style="{{item.styleStr}}"
|
|
318
|
+
>
|
|
319
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
320
|
+
<template is="wxParse16" data="{{item}}" />
|
|
321
|
+
</block>
|
|
322
|
+
</navigator>
|
|
323
|
+
<navigator
|
|
324
|
+
wx:else
|
|
325
|
+
url="{{item.attr.href}}"
|
|
326
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
327
|
+
data-c="{{item.attr.href}}"
|
|
328
|
+
style="{{item.styleStr}}"
|
|
329
|
+
>
|
|
330
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
331
|
+
<template is="wxParse16" data="{{item}}" />
|
|
332
|
+
</block>
|
|
333
|
+
</navigator>
|
|
334
|
+
</block>
|
|
335
|
+
|
|
336
|
+
<!--其他块级标签-->
|
|
337
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
338
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
339
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
340
|
+
<template is="wxParse16" data="{{item}}" />
|
|
341
|
+
</block>
|
|
342
|
+
</view>
|
|
343
|
+
</block>
|
|
344
|
+
|
|
345
|
+
<!--内联标签-->
|
|
346
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
347
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
348
|
+
<template is="wxParse16" data="{{item}}" />
|
|
349
|
+
</block>
|
|
350
|
+
</view>
|
|
351
|
+
</block>
|
|
352
|
+
|
|
353
|
+
<!--判断是否是文本节点-->
|
|
354
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
355
|
+
<!--如果是,直接进行-->
|
|
356
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
357
|
+
</block>
|
|
358
|
+
</template>
|
|
359
|
+
|
|
360
|
+
<template name="wxParse16">
|
|
361
|
+
<!--<template is="wxParse17" data="{{item}}" />-->
|
|
362
|
+
<!--判断是否是标签节点-->
|
|
363
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
364
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
365
|
+
<button type="default" size="mini">
|
|
366
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
367
|
+
<template is="wxParse17" data="{{item}}" />
|
|
368
|
+
</block>
|
|
369
|
+
</button>
|
|
370
|
+
</block>
|
|
371
|
+
<!--li类型-->
|
|
372
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
373
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
374
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
375
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
376
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
377
|
+
</view>
|
|
378
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
379
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
380
|
+
<template is="wxParse17" data="{{item}}" />
|
|
381
|
+
</block>
|
|
382
|
+
</view>
|
|
383
|
+
</view>
|
|
384
|
+
</view>
|
|
385
|
+
</block>
|
|
386
|
+
|
|
387
|
+
<!--video类型-->
|
|
388
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
389
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
390
|
+
</block>
|
|
391
|
+
|
|
392
|
+
<!--img类型-->
|
|
393
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
394
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
395
|
+
</block>
|
|
396
|
+
|
|
397
|
+
<!--a类型-->
|
|
398
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
399
|
+
<navigator
|
|
400
|
+
wx:if="{{item.attr.no_support}}"
|
|
401
|
+
data-url="{{item.attr.href}}"
|
|
402
|
+
bindtap="showNoSupportUrl"
|
|
403
|
+
url="{{item.attr.href}}"
|
|
404
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
405
|
+
data-c="{{item.attr.href}}"
|
|
406
|
+
style="{{item.styleStr}}"
|
|
407
|
+
>
|
|
408
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
409
|
+
<template is="wxParse17" data="{{item}}" />
|
|
410
|
+
</block>
|
|
411
|
+
</navigator>
|
|
412
|
+
<navigator
|
|
413
|
+
wx:else
|
|
414
|
+
url="{{item.attr.href}}"
|
|
415
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
416
|
+
data-c="{{item.attr.href}}"
|
|
417
|
+
style="{{item.styleStr}}"
|
|
418
|
+
>
|
|
419
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
420
|
+
<template is="wxParse17" data="{{item}}" />
|
|
421
|
+
</block>
|
|
422
|
+
</navigator>
|
|
423
|
+
</block>
|
|
424
|
+
|
|
425
|
+
<!--其他块级标签-->
|
|
426
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
427
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
428
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
429
|
+
<template is="wxParse17" data="{{item}}" />
|
|
430
|
+
</block>
|
|
431
|
+
</view>
|
|
432
|
+
</block>
|
|
433
|
+
|
|
434
|
+
<!--内联标签-->
|
|
435
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
436
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
437
|
+
<template is="wxParse17" data="{{item}}" />
|
|
438
|
+
</block>
|
|
439
|
+
</view>
|
|
440
|
+
</block>
|
|
441
|
+
|
|
442
|
+
<!--判断是否是文本节点-->
|
|
443
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
444
|
+
<!--如果是,直接进行-->
|
|
445
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
446
|
+
</block>
|
|
447
|
+
</template>
|
|
448
|
+
|
|
449
|
+
<template name="wxParse17">
|
|
450
|
+
<!--<template is="wxParse18" data="{{item}}" />-->
|
|
451
|
+
<!--判断是否是标签节点-->
|
|
452
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
453
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
454
|
+
<button type="default" size="mini">
|
|
455
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
456
|
+
<template is="wxParse18" data="{{item}}" />
|
|
457
|
+
</block>
|
|
458
|
+
</button>
|
|
459
|
+
</block>
|
|
460
|
+
<!--li类型-->
|
|
461
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
462
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
463
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
464
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
465
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
466
|
+
</view>
|
|
467
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
468
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
469
|
+
<template is="wxParse18" data="{{item}}" />
|
|
470
|
+
</block>
|
|
471
|
+
</view>
|
|
472
|
+
</view>
|
|
473
|
+
</view>
|
|
474
|
+
</block>
|
|
475
|
+
|
|
476
|
+
<!--video类型-->
|
|
477
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
478
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
479
|
+
</block>
|
|
480
|
+
|
|
481
|
+
<!--img类型-->
|
|
482
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
483
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
484
|
+
</block>
|
|
485
|
+
|
|
486
|
+
<!--a类型-->
|
|
487
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
488
|
+
<navigator
|
|
489
|
+
wx:if="{{item.attr.no_support}}"
|
|
490
|
+
data-url="{{item.attr.href}}"
|
|
491
|
+
bindtap="showNoSupportUrl"
|
|
492
|
+
url="{{item.attr.href}}"
|
|
493
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
494
|
+
data-c="{{item.attr.href}}"
|
|
495
|
+
style="{{item.styleStr}}"
|
|
496
|
+
>
|
|
497
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
498
|
+
<template is="wxParse18" data="{{item}}" />
|
|
499
|
+
</block>
|
|
500
|
+
</navigator>
|
|
501
|
+
<navigator
|
|
502
|
+
wx:else
|
|
503
|
+
url="{{item.attr.href}}"
|
|
504
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
505
|
+
data-c="{{item.attr.href}}"
|
|
506
|
+
style="{{item.styleStr}}"
|
|
507
|
+
>
|
|
508
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
509
|
+
<template is="wxParse18" data="{{item}}" />
|
|
510
|
+
</block>
|
|
511
|
+
</navigator>
|
|
512
|
+
</block>
|
|
513
|
+
|
|
514
|
+
<!--其他块级标签-->
|
|
515
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
516
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
517
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
518
|
+
<template is="wxParse18" data="{{item}}" />
|
|
519
|
+
</block>
|
|
520
|
+
</view>
|
|
521
|
+
</block>
|
|
522
|
+
|
|
523
|
+
<!--内联标签-->
|
|
524
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
525
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
526
|
+
<template is="wxParse18" data="{{item}}" />
|
|
527
|
+
</block>
|
|
528
|
+
</view>
|
|
529
|
+
</block>
|
|
530
|
+
|
|
531
|
+
<!--判断是否是文本节点-->
|
|
532
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
533
|
+
<!--如果是,直接进行-->
|
|
534
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
535
|
+
</block>
|
|
536
|
+
</template>
|
|
537
|
+
|
|
538
|
+
<template name="wxParse18">
|
|
539
|
+
<!--<template is="wxParse19" data="{{item}}" />-->
|
|
540
|
+
<!--判断是否是标签节点-->
|
|
541
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
542
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
543
|
+
<button type="default" size="mini">
|
|
544
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
545
|
+
<template is="wxParse19" data="{{item}}" />
|
|
546
|
+
</block>
|
|
547
|
+
</button>
|
|
548
|
+
</block>
|
|
549
|
+
<!--li类型-->
|
|
550
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
551
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
552
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
553
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
554
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
555
|
+
</view>
|
|
556
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
557
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
558
|
+
<template is="wxParse19" data="{{item}}" />
|
|
559
|
+
</block>
|
|
560
|
+
</view>
|
|
561
|
+
</view>
|
|
562
|
+
</view>
|
|
563
|
+
</block>
|
|
564
|
+
|
|
565
|
+
<!--video类型-->
|
|
566
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
567
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
568
|
+
</block>
|
|
569
|
+
|
|
570
|
+
<!--img类型-->
|
|
571
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
572
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
573
|
+
</block>
|
|
574
|
+
|
|
575
|
+
<!--a类型-->
|
|
576
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
577
|
+
<navigator
|
|
578
|
+
wx:if="{{item.attr.no_support}}"
|
|
579
|
+
data-url="{{item.attr.href}}"
|
|
580
|
+
bindtap="showNoSupportUrl"
|
|
581
|
+
url="{{item.attr.href}}"
|
|
582
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
583
|
+
data-c="{{item.attr.href}}"
|
|
584
|
+
style="{{item.styleStr}}"
|
|
585
|
+
>
|
|
586
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
587
|
+
<template is="wxParse19" data="{{item}}" />
|
|
588
|
+
</block>
|
|
589
|
+
</navigator>
|
|
590
|
+
<navigator
|
|
591
|
+
wx:else
|
|
592
|
+
url="{{item.attr.href}}"
|
|
593
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
594
|
+
data-c="{{item.attr.href}}"
|
|
595
|
+
style="{{item.styleStr}}"
|
|
596
|
+
>
|
|
597
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
598
|
+
<template is="wxParse19" data="{{item}}" />
|
|
599
|
+
</block>
|
|
600
|
+
</navigator>
|
|
601
|
+
</block>
|
|
602
|
+
|
|
603
|
+
<!--其他块级标签-->
|
|
604
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
605
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
606
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
607
|
+
<template is="wxParse19" data="{{item}}" />
|
|
608
|
+
</block>
|
|
609
|
+
</view>
|
|
610
|
+
</block>
|
|
611
|
+
|
|
612
|
+
<!--内联标签-->
|
|
613
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
614
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
615
|
+
<template is="wxParse19" data="{{item}}" />
|
|
616
|
+
</block>
|
|
617
|
+
</view>
|
|
618
|
+
</block>
|
|
619
|
+
|
|
620
|
+
<!--判断是否是文本节点-->
|
|
621
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
622
|
+
<!--如果是,直接进行-->
|
|
623
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
624
|
+
</block>
|
|
625
|
+
</template>
|
|
626
|
+
|
|
627
|
+
<template name="wxParse19">
|
|
628
|
+
<!--<template is="wxParse20" data="{{item}}" />-->
|
|
629
|
+
<!--判断是否是标签节点-->
|
|
630
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
631
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
632
|
+
<button type="default" size="mini">
|
|
633
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
634
|
+
<template is="wxParse20" data="{{item}}" />
|
|
635
|
+
</block>
|
|
636
|
+
</button>
|
|
637
|
+
</block>
|
|
638
|
+
<!--li类型-->
|
|
639
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
640
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
641
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
642
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
643
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
644
|
+
</view>
|
|
645
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
646
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
647
|
+
<template is="wxParse20" data="{{item}}" />
|
|
648
|
+
</block>
|
|
649
|
+
</view>
|
|
650
|
+
</view>
|
|
651
|
+
</view>
|
|
652
|
+
</block>
|
|
653
|
+
|
|
654
|
+
<!--video类型-->
|
|
655
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
656
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
657
|
+
</block>
|
|
658
|
+
|
|
659
|
+
<!--img类型-->
|
|
660
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
661
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
662
|
+
</block>
|
|
663
|
+
|
|
664
|
+
<!--a类型-->
|
|
665
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
666
|
+
<navigator
|
|
667
|
+
wx:if="{{item.attr.no_support}}"
|
|
668
|
+
data-url="{{item.attr.href}}"
|
|
669
|
+
bindtap="showNoSupportUrl"
|
|
670
|
+
url="{{item.attr.href}}"
|
|
671
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
672
|
+
data-c="{{item.attr.href}}"
|
|
673
|
+
style="{{item.styleStr}}"
|
|
674
|
+
>
|
|
675
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
676
|
+
<template is="wxParse20" data="{{item}}" />
|
|
677
|
+
</block>
|
|
678
|
+
</navigator>
|
|
679
|
+
<navigator
|
|
680
|
+
wx:else
|
|
681
|
+
url="{{item.attr.href}}"
|
|
682
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
683
|
+
data-c="{{item.attr.href}}"
|
|
684
|
+
style="{{item.styleStr}}"
|
|
685
|
+
>
|
|
686
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
687
|
+
<template is="wxParse20" data="{{item}}" />
|
|
688
|
+
</block>
|
|
689
|
+
</navigator>
|
|
690
|
+
</block>
|
|
691
|
+
|
|
692
|
+
<!--其他块级标签-->
|
|
693
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
694
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
695
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
696
|
+
<template is="wxParse20" data="{{item}}" />
|
|
697
|
+
</block>
|
|
698
|
+
</view>
|
|
699
|
+
</block>
|
|
700
|
+
|
|
701
|
+
<!--内联标签-->
|
|
702
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
703
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
704
|
+
<template is="wxParse20" data="{{item}}" />
|
|
705
|
+
</block>
|
|
706
|
+
</view>
|
|
707
|
+
</block>
|
|
708
|
+
|
|
709
|
+
<!--判断是否是文本节点-->
|
|
710
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
711
|
+
<!--如果是,直接进行-->
|
|
712
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
713
|
+
</block>
|
|
714
|
+
</template>
|
|
715
|
+
|
|
716
|
+
<template name="wxParse20">
|
|
717
|
+
<!--<template is="wxParse21" data="{{item}}" />-->
|
|
718
|
+
<!--判断是否是标签节点-->
|
|
719
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
720
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
721
|
+
<button type="default" size="mini">
|
|
722
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
723
|
+
<template is="wxParse21" data="{{item}}" />
|
|
724
|
+
</block>
|
|
725
|
+
</button>
|
|
726
|
+
</block>
|
|
727
|
+
<!--li类型-->
|
|
728
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
729
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
730
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
731
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
732
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
733
|
+
</view>
|
|
734
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
735
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
736
|
+
<template is="wxParse21" data="{{item}}" />
|
|
737
|
+
</block>
|
|
738
|
+
</view>
|
|
739
|
+
</view>
|
|
740
|
+
</view>
|
|
741
|
+
</block>
|
|
742
|
+
|
|
743
|
+
<!--video类型-->
|
|
744
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
745
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
746
|
+
</block>
|
|
747
|
+
|
|
748
|
+
<!--img类型-->
|
|
749
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
750
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
751
|
+
</block>
|
|
752
|
+
|
|
753
|
+
<!--a类型-->
|
|
754
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
755
|
+
<navigator
|
|
756
|
+
wx:if="{{item.attr.no_support}}"
|
|
757
|
+
data-url="{{item.attr.href}}"
|
|
758
|
+
bindtap="showNoSupportUrl"
|
|
759
|
+
url="{{item.attr.href}}"
|
|
760
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
761
|
+
data-c="{{item.attr.href}}"
|
|
762
|
+
style="{{item.styleStr}}"
|
|
763
|
+
>
|
|
764
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
765
|
+
<template is="wxParse21" data="{{item}}" />
|
|
766
|
+
</block>
|
|
767
|
+
</navigator>
|
|
768
|
+
<navigator
|
|
769
|
+
wx:else
|
|
770
|
+
url="{{item.attr.href}}"
|
|
771
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
772
|
+
data-c="{{item.attr.href}}"
|
|
773
|
+
style="{{item.styleStr}}"
|
|
774
|
+
>
|
|
775
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
776
|
+
<template is="wxParse21" data="{{item}}" />
|
|
777
|
+
</block>
|
|
778
|
+
</navigator>
|
|
779
|
+
</block>
|
|
780
|
+
|
|
781
|
+
<!--其他块级标签-->
|
|
782
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
783
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
784
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
785
|
+
<template is="wxParse21" data="{{item}}" />
|
|
786
|
+
</block>
|
|
787
|
+
</view>
|
|
788
|
+
</block>
|
|
789
|
+
|
|
790
|
+
<!--内联标签-->
|
|
791
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
792
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
793
|
+
<template is="wxParse21" data="{{item}}" />
|
|
794
|
+
</block>
|
|
795
|
+
</view>
|
|
796
|
+
</block>
|
|
797
|
+
|
|
798
|
+
<!--判断是否是文本节点-->
|
|
799
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
800
|
+
<!--如果是,直接进行-->
|
|
801
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
802
|
+
</block>
|
|
803
|
+
</template>
|
|
804
|
+
|
|
805
|
+
<template name="wxParse21">
|
|
806
|
+
<!--<template is="wxParse22" data="{{item}}" />-->
|
|
807
|
+
<!--判断是否是标签节点-->
|
|
808
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
809
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
810
|
+
<button type="default" size="mini">
|
|
811
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
812
|
+
<template is="wxParse22" data="{{item}}" />
|
|
813
|
+
</block>
|
|
814
|
+
</button>
|
|
815
|
+
</block>
|
|
816
|
+
<!--li类型-->
|
|
817
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
818
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
819
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
820
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
821
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
822
|
+
</view>
|
|
823
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
824
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
825
|
+
<template is="wxParse22" data="{{item}}" />
|
|
826
|
+
</block>
|
|
827
|
+
</view>
|
|
828
|
+
</view>
|
|
829
|
+
</view>
|
|
830
|
+
</block>
|
|
831
|
+
|
|
832
|
+
<!--video类型-->
|
|
833
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
834
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
835
|
+
</block>
|
|
836
|
+
|
|
837
|
+
<!--img类型-->
|
|
838
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
839
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
840
|
+
</block>
|
|
841
|
+
|
|
842
|
+
<!--a类型-->
|
|
843
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
844
|
+
<navigator
|
|
845
|
+
wx:if="{{item.attr.no_support}}"
|
|
846
|
+
data-url="{{item.attr.href}}"
|
|
847
|
+
bindtap="showNoSupportUrl"
|
|
848
|
+
url="{{item.attr.href}}"
|
|
849
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
850
|
+
data-c="{{item.attr.href}}"
|
|
851
|
+
style="{{item.styleStr}}"
|
|
852
|
+
>
|
|
853
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
854
|
+
<template is="wxParse22" data="{{item}}" />
|
|
855
|
+
</block>
|
|
856
|
+
</navigator>
|
|
857
|
+
<navigator
|
|
858
|
+
wx:else
|
|
859
|
+
url="{{item.attr.href}}"
|
|
860
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
861
|
+
data-c="{{item.attr.href}}"
|
|
862
|
+
style="{{item.styleStr}}"
|
|
863
|
+
>
|
|
864
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
865
|
+
<template is="wxParse22" data="{{item}}" />
|
|
866
|
+
</block>
|
|
867
|
+
</navigator>
|
|
868
|
+
</block>
|
|
869
|
+
|
|
870
|
+
<!--其他块级标签-->
|
|
871
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
872
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
873
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
874
|
+
<template is="wxParse22" data="{{item}}" />
|
|
875
|
+
</block>
|
|
876
|
+
</view>
|
|
877
|
+
</block>
|
|
878
|
+
|
|
879
|
+
<!--内联标签-->
|
|
880
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
881
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
882
|
+
<template is="wxParse22" data="{{item}}" />
|
|
883
|
+
</block>
|
|
884
|
+
</view>
|
|
885
|
+
</block>
|
|
886
|
+
|
|
887
|
+
<!--判断是否是文本节点-->
|
|
888
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
889
|
+
<!--如果是,直接进行-->
|
|
890
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
891
|
+
</block>
|
|
892
|
+
</template>
|
|
893
|
+
|
|
894
|
+
<template name="wxParse22">
|
|
895
|
+
<!--<template is="wxParse23" data="{{item}}" />-->
|
|
896
|
+
<!--判断是否是标签节点-->
|
|
897
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
898
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
899
|
+
<button type="default" size="mini">
|
|
900
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
901
|
+
<template is="wxParse23" data="{{item}}" />
|
|
902
|
+
</block>
|
|
903
|
+
</button>
|
|
904
|
+
</block>
|
|
905
|
+
<!--li类型-->
|
|
906
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
907
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
908
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
909
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
910
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
911
|
+
</view>
|
|
912
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
913
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
914
|
+
<template is="wxParse23" data="{{item}}" />
|
|
915
|
+
</block>
|
|
916
|
+
</view>
|
|
917
|
+
</view>
|
|
918
|
+
</view>
|
|
919
|
+
</block>
|
|
920
|
+
|
|
921
|
+
<!--video类型-->
|
|
922
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
923
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
924
|
+
</block>
|
|
925
|
+
|
|
926
|
+
<!--img类型-->
|
|
927
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
928
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
929
|
+
</block>
|
|
930
|
+
|
|
931
|
+
<!--a类型-->
|
|
932
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
933
|
+
<navigator
|
|
934
|
+
wx:if="{{item.attr.no_support}}"
|
|
935
|
+
data-url="{{item.attr.href}}"
|
|
936
|
+
bindtap="showNoSupportUrl"
|
|
937
|
+
url="{{item.attr.href}}"
|
|
938
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
939
|
+
data-c="{{item.attr.href}}"
|
|
940
|
+
style="{{item.styleStr}}"
|
|
941
|
+
>
|
|
942
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
943
|
+
<template is="wxParse23" data="{{item}}" />
|
|
944
|
+
</block>
|
|
945
|
+
</navigator>
|
|
946
|
+
<navigator
|
|
947
|
+
wx:else
|
|
948
|
+
url="{{item.attr.href}}"
|
|
949
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
950
|
+
data-c="{{item.attr.href}}"
|
|
951
|
+
style="{{item.styleStr}}"
|
|
952
|
+
>
|
|
953
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
954
|
+
<template is="wxParse23" data="{{item}}" />
|
|
955
|
+
</block>
|
|
956
|
+
</navigator>
|
|
957
|
+
</block>
|
|
958
|
+
|
|
959
|
+
<!--其他块级标签-->
|
|
960
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
961
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
962
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
963
|
+
<template is="wxParse23" data="{{item}}" />
|
|
964
|
+
</block>
|
|
965
|
+
</view>
|
|
966
|
+
</block>
|
|
967
|
+
|
|
968
|
+
<!--内联标签-->
|
|
969
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
970
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
971
|
+
<template is="wxParse23" data="{{item}}" />
|
|
972
|
+
</block>
|
|
973
|
+
</view>
|
|
974
|
+
</block>
|
|
975
|
+
|
|
976
|
+
<!--判断是否是文本节点-->
|
|
977
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
978
|
+
<!--如果是,直接进行-->
|
|
979
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
980
|
+
</block>
|
|
981
|
+
</template>
|
|
982
|
+
|
|
983
|
+
<template name="wxParse23">
|
|
984
|
+
<!--<template is="wxParse24" data="{{item}}" />-->
|
|
985
|
+
<!--判断是否是标签节点-->
|
|
986
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
987
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
988
|
+
<button type="default" size="mini">
|
|
989
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
990
|
+
<template is="wxParse24" data="{{item}}" />
|
|
991
|
+
</block>
|
|
992
|
+
</button>
|
|
993
|
+
</block>
|
|
994
|
+
<!--li类型-->
|
|
995
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
996
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
997
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
998
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
999
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1000
|
+
</view>
|
|
1001
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1002
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1003
|
+
<template is="wxParse24" data="{{item}}" />
|
|
1004
|
+
</block>
|
|
1005
|
+
</view>
|
|
1006
|
+
</view>
|
|
1007
|
+
</view>
|
|
1008
|
+
</block>
|
|
1009
|
+
|
|
1010
|
+
<!--video类型-->
|
|
1011
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1012
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1013
|
+
</block>
|
|
1014
|
+
|
|
1015
|
+
<!--img类型-->
|
|
1016
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1017
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1018
|
+
</block>
|
|
1019
|
+
|
|
1020
|
+
<!--a类型-->
|
|
1021
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1022
|
+
<navigator
|
|
1023
|
+
wx:if="{{item.attr.no_support}}"
|
|
1024
|
+
data-url="{{item.attr.href}}"
|
|
1025
|
+
bindtap="showNoSupportUrl"
|
|
1026
|
+
url="{{item.attr.href}}"
|
|
1027
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1028
|
+
data-c="{{item.attr.href}}"
|
|
1029
|
+
style="{{item.styleStr}}"
|
|
1030
|
+
>
|
|
1031
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1032
|
+
<template is="wxParse24" data="{{item}}" />
|
|
1033
|
+
</block>
|
|
1034
|
+
</navigator>
|
|
1035
|
+
<navigator
|
|
1036
|
+
wx:else
|
|
1037
|
+
url="{{item.attr.href}}"
|
|
1038
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1039
|
+
data-c="{{item.attr.href}}"
|
|
1040
|
+
style="{{item.styleStr}}"
|
|
1041
|
+
>
|
|
1042
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1043
|
+
<template is="wxParse24" data="{{item}}" />
|
|
1044
|
+
</block>
|
|
1045
|
+
</navigator>
|
|
1046
|
+
</block>
|
|
1047
|
+
|
|
1048
|
+
<!--其他块级标签-->
|
|
1049
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1050
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1051
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1052
|
+
<template is="wxParse24" data="{{item}}" />
|
|
1053
|
+
</block>
|
|
1054
|
+
</view>
|
|
1055
|
+
</block>
|
|
1056
|
+
|
|
1057
|
+
<!--内联标签-->
|
|
1058
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1059
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1060
|
+
<template is="wxParse24" data="{{item}}" />
|
|
1061
|
+
</block>
|
|
1062
|
+
</view>
|
|
1063
|
+
</block>
|
|
1064
|
+
|
|
1065
|
+
<!--判断是否是文本节点-->
|
|
1066
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1067
|
+
<!--如果是,直接进行-->
|
|
1068
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1069
|
+
</block>
|
|
1070
|
+
</template>
|
|
1071
|
+
|
|
1072
|
+
<template name="wxParse24">
|
|
1073
|
+
<!--<template is="wxParse25" data="{{item}}" />-->
|
|
1074
|
+
<!--判断是否是标签节点-->
|
|
1075
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1076
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1077
|
+
<button type="default" size="mini">
|
|
1078
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1079
|
+
<template is="wxParse25" data="{{item}}" />
|
|
1080
|
+
</block>
|
|
1081
|
+
</button>
|
|
1082
|
+
</block>
|
|
1083
|
+
<!--li类型-->
|
|
1084
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1085
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1086
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1087
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1088
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1089
|
+
</view>
|
|
1090
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1091
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1092
|
+
<template is="wxParse25" data="{{item}}" />
|
|
1093
|
+
</block>
|
|
1094
|
+
</view>
|
|
1095
|
+
</view>
|
|
1096
|
+
</view>
|
|
1097
|
+
</block>
|
|
1098
|
+
|
|
1099
|
+
<!--video类型-->
|
|
1100
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1101
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1102
|
+
</block>
|
|
1103
|
+
|
|
1104
|
+
<!--img类型-->
|
|
1105
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1106
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1107
|
+
</block>
|
|
1108
|
+
|
|
1109
|
+
<!--a类型-->
|
|
1110
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1111
|
+
<navigator
|
|
1112
|
+
wx:if="{{item.attr.no_support}}"
|
|
1113
|
+
data-url="{{item.attr.href}}"
|
|
1114
|
+
bindtap="showNoSupportUrl"
|
|
1115
|
+
url="{{item.attr.href}}"
|
|
1116
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1117
|
+
data-c="{{item.attr.href}}"
|
|
1118
|
+
style="{{item.styleStr}}"
|
|
1119
|
+
>
|
|
1120
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1121
|
+
<template is="wxParse25" data="{{item}}" />
|
|
1122
|
+
</block>
|
|
1123
|
+
</navigator>
|
|
1124
|
+
<navigator
|
|
1125
|
+
wx:else
|
|
1126
|
+
url="{{item.attr.href}}"
|
|
1127
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1128
|
+
data-c="{{item.attr.href}}"
|
|
1129
|
+
style="{{item.styleStr}}"
|
|
1130
|
+
>
|
|
1131
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1132
|
+
<template is="wxParse25" data="{{item}}" />
|
|
1133
|
+
</block>
|
|
1134
|
+
</navigator>
|
|
1135
|
+
</block>
|
|
1136
|
+
|
|
1137
|
+
<!--其他块级标签-->
|
|
1138
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1139
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1140
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1141
|
+
<template is="wxParse25" data="{{item}}" />
|
|
1142
|
+
</block>
|
|
1143
|
+
</view>
|
|
1144
|
+
</block>
|
|
1145
|
+
|
|
1146
|
+
<!--内联标签-->
|
|
1147
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1148
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1149
|
+
<template is="wxParse25" data="{{item}}" />
|
|
1150
|
+
</block>
|
|
1151
|
+
</view>
|
|
1152
|
+
</block>
|
|
1153
|
+
|
|
1154
|
+
<!--判断是否是文本节点-->
|
|
1155
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1156
|
+
<!--如果是,直接进行-->
|
|
1157
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1158
|
+
</block>
|
|
1159
|
+
</template>
|
|
1160
|
+
|
|
1161
|
+
<template name="wxParse25">
|
|
1162
|
+
<!--<template is="wxParse26" data="{{item}}" />-->
|
|
1163
|
+
<!--判断是否是标签节点-->
|
|
1164
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1165
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1166
|
+
<button type="default" size="mini">
|
|
1167
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1168
|
+
<template is="wxParse26" data="{{item}}" />
|
|
1169
|
+
</block>
|
|
1170
|
+
</button>
|
|
1171
|
+
</block>
|
|
1172
|
+
<!--li类型-->
|
|
1173
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1174
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1175
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1176
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1177
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1178
|
+
</view>
|
|
1179
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1180
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1181
|
+
<template is="wxParse26" data="{{item}}" />
|
|
1182
|
+
</block>
|
|
1183
|
+
</view>
|
|
1184
|
+
</view>
|
|
1185
|
+
</view>
|
|
1186
|
+
</block>
|
|
1187
|
+
|
|
1188
|
+
<!--video类型-->
|
|
1189
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1190
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1191
|
+
</block>
|
|
1192
|
+
|
|
1193
|
+
<!--img类型-->
|
|
1194
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1195
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1196
|
+
</block>
|
|
1197
|
+
|
|
1198
|
+
<!--a类型-->
|
|
1199
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1200
|
+
<navigator
|
|
1201
|
+
wx:if="{{item.attr.no_support}}"
|
|
1202
|
+
data-url="{{item.attr.href}}"
|
|
1203
|
+
bindtap="showNoSupportUrl"
|
|
1204
|
+
url="{{item.attr.href}}"
|
|
1205
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1206
|
+
data-c="{{item.attr.href}}"
|
|
1207
|
+
style="{{item.styleStr}}"
|
|
1208
|
+
>
|
|
1209
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1210
|
+
<template is="wxParse26" data="{{item}}" />
|
|
1211
|
+
</block>
|
|
1212
|
+
</navigator>
|
|
1213
|
+
<navigator
|
|
1214
|
+
wx:else
|
|
1215
|
+
url="{{item.attr.href}}"
|
|
1216
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1217
|
+
data-c="{{item.attr.href}}"
|
|
1218
|
+
style="{{item.styleStr}}"
|
|
1219
|
+
>
|
|
1220
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1221
|
+
<template is="wxParse26" data="{{item}}" />
|
|
1222
|
+
</block>
|
|
1223
|
+
</navigator>
|
|
1224
|
+
</block>
|
|
1225
|
+
|
|
1226
|
+
<!--其他块级标签-->
|
|
1227
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1228
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1229
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1230
|
+
<template is="wxParse26" data="{{item}}" />
|
|
1231
|
+
</block>
|
|
1232
|
+
</view>
|
|
1233
|
+
</block>
|
|
1234
|
+
|
|
1235
|
+
<!--内联标签-->
|
|
1236
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1237
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1238
|
+
<template is="wxParse26" data="{{item}}" />
|
|
1239
|
+
</block>
|
|
1240
|
+
</view>
|
|
1241
|
+
</block>
|
|
1242
|
+
|
|
1243
|
+
<!--判断是否是文本节点-->
|
|
1244
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1245
|
+
<!--如果是,直接进行-->
|
|
1246
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1247
|
+
</block>
|
|
1248
|
+
</template>
|
|
1249
|
+
|
|
1250
|
+
<template name="wxParse26">
|
|
1251
|
+
<!--<template is="wxParse27" data="{{item}}" />-->
|
|
1252
|
+
<!--判断是否是标签节点-->
|
|
1253
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1254
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1255
|
+
<button type="default" size="mini">
|
|
1256
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1257
|
+
<template is="wxParse27" data="{{item}}" />
|
|
1258
|
+
</block>
|
|
1259
|
+
</button>
|
|
1260
|
+
</block>
|
|
1261
|
+
<!--li类型-->
|
|
1262
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1263
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1264
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1265
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1266
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1267
|
+
</view>
|
|
1268
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1269
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1270
|
+
<template is="wxParse27" data="{{item}}" />
|
|
1271
|
+
</block>
|
|
1272
|
+
</view>
|
|
1273
|
+
</view>
|
|
1274
|
+
</view>
|
|
1275
|
+
</block>
|
|
1276
|
+
|
|
1277
|
+
<!--video类型-->
|
|
1278
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1279
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1280
|
+
</block>
|
|
1281
|
+
|
|
1282
|
+
<!--img类型-->
|
|
1283
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1284
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1285
|
+
</block>
|
|
1286
|
+
|
|
1287
|
+
<!--a类型-->
|
|
1288
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1289
|
+
<navigator
|
|
1290
|
+
wx:if="{{item.attr.no_support}}"
|
|
1291
|
+
data-url="{{item.attr.href}}"
|
|
1292
|
+
bindtap="showNoSupportUrl"
|
|
1293
|
+
url="{{item.attr.href}}"
|
|
1294
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1295
|
+
data-c="{{item.attr.href}}"
|
|
1296
|
+
style="{{item.styleStr}}"
|
|
1297
|
+
>
|
|
1298
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1299
|
+
<template is="wxParse27" data="{{item}}" />
|
|
1300
|
+
</block>
|
|
1301
|
+
</navigator>
|
|
1302
|
+
<navigator
|
|
1303
|
+
wx:else
|
|
1304
|
+
url="{{item.attr.href}}"
|
|
1305
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1306
|
+
data-c="{{item.attr.href}}"
|
|
1307
|
+
style="{{item.styleStr}}"
|
|
1308
|
+
>
|
|
1309
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1310
|
+
<template is="wxParse27" data="{{item}}" />
|
|
1311
|
+
</block>
|
|
1312
|
+
</navigator>
|
|
1313
|
+
</block>
|
|
1314
|
+
|
|
1315
|
+
<!--其他块级标签-->
|
|
1316
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1317
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1318
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1319
|
+
<template is="wxParse27" data="{{item}}" />
|
|
1320
|
+
</block>
|
|
1321
|
+
</view>
|
|
1322
|
+
</block>
|
|
1323
|
+
|
|
1324
|
+
<!--内联标签-->
|
|
1325
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1326
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1327
|
+
<template is="wxParse27" data="{{item}}" />
|
|
1328
|
+
</block>
|
|
1329
|
+
</view>
|
|
1330
|
+
</block>
|
|
1331
|
+
|
|
1332
|
+
<!--判断是否是文本节点-->
|
|
1333
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1334
|
+
<!--如果是,直接进行-->
|
|
1335
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1336
|
+
</block>
|
|
1337
|
+
</template>
|
|
1338
|
+
|
|
1339
|
+
<template name="wxParse27">
|
|
1340
|
+
<!--<template is="wxParse28" data="{{item}}" />-->
|
|
1341
|
+
<!--判断是否是标签节点-->
|
|
1342
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1343
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1344
|
+
<button type="default" size="mini">
|
|
1345
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1346
|
+
<template is="wxParse28" data="{{item}}" />
|
|
1347
|
+
</block>
|
|
1348
|
+
</button>
|
|
1349
|
+
</block>
|
|
1350
|
+
<!--li类型-->
|
|
1351
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1352
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1353
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1354
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1355
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1356
|
+
</view>
|
|
1357
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1358
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1359
|
+
<template is="wxParse28" data="{{item}}" />
|
|
1360
|
+
</block>
|
|
1361
|
+
</view>
|
|
1362
|
+
</view>
|
|
1363
|
+
</view>
|
|
1364
|
+
</block>
|
|
1365
|
+
|
|
1366
|
+
<!--video类型-->
|
|
1367
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1368
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1369
|
+
</block>
|
|
1370
|
+
|
|
1371
|
+
<!--img类型-->
|
|
1372
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1373
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1374
|
+
</block>
|
|
1375
|
+
|
|
1376
|
+
<!--a类型-->
|
|
1377
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1378
|
+
<navigator
|
|
1379
|
+
wx:if="{{item.attr.no_support}}"
|
|
1380
|
+
data-url="{{item.attr.href}}"
|
|
1381
|
+
bindtap="showNoSupportUrl"
|
|
1382
|
+
url="{{item.attr.href}}"
|
|
1383
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1384
|
+
data-c="{{item.attr.href}}"
|
|
1385
|
+
style="{{item.styleStr}}"
|
|
1386
|
+
>
|
|
1387
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1388
|
+
<template is="wxParse28" data="{{item}}" />
|
|
1389
|
+
</block>
|
|
1390
|
+
</navigator>
|
|
1391
|
+
<navigator
|
|
1392
|
+
wx:else
|
|
1393
|
+
url="{{item.attr.href}}"
|
|
1394
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1395
|
+
data-c="{{item.attr.href}}"
|
|
1396
|
+
style="{{item.styleStr}}"
|
|
1397
|
+
>
|
|
1398
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1399
|
+
<template is="wxParse28" data="{{item}}" />
|
|
1400
|
+
</block>
|
|
1401
|
+
</navigator>
|
|
1402
|
+
</block>
|
|
1403
|
+
|
|
1404
|
+
<!--其他块级标签-->
|
|
1405
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1406
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1407
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1408
|
+
<template is="wxParse28" data="{{item}}" />
|
|
1409
|
+
</block>
|
|
1410
|
+
</view>
|
|
1411
|
+
</block>
|
|
1412
|
+
|
|
1413
|
+
<!--内联标签-->
|
|
1414
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1415
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1416
|
+
<template is="wxParse28" data="{{item}}" />
|
|
1417
|
+
</block>
|
|
1418
|
+
</view>
|
|
1419
|
+
</block>
|
|
1420
|
+
|
|
1421
|
+
<!--判断是否是文本节点-->
|
|
1422
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1423
|
+
<!--如果是,直接进行-->
|
|
1424
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1425
|
+
</block>
|
|
1426
|
+
</template>
|
|
1427
|
+
|
|
1428
|
+
<template name="wxParse28">
|
|
1429
|
+
<!--<template is="wxParse29" data="{{item}}" />-->
|
|
1430
|
+
<!--判断是否是标签节点-->
|
|
1431
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1432
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1433
|
+
<button type="default" size="mini">
|
|
1434
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1435
|
+
<template is="wxParse29" data="{{item}}" />
|
|
1436
|
+
</block>
|
|
1437
|
+
</button>
|
|
1438
|
+
</block>
|
|
1439
|
+
<!--li类型-->
|
|
1440
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1441
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1442
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1443
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1444
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1445
|
+
</view>
|
|
1446
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1447
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1448
|
+
<template is="wxParse29" data="{{item}}" />
|
|
1449
|
+
</block>
|
|
1450
|
+
</view>
|
|
1451
|
+
</view>
|
|
1452
|
+
</view>
|
|
1453
|
+
</block>
|
|
1454
|
+
|
|
1455
|
+
<!--video类型-->
|
|
1456
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1457
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1458
|
+
</block>
|
|
1459
|
+
|
|
1460
|
+
<!--img类型-->
|
|
1461
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1462
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1463
|
+
</block>
|
|
1464
|
+
|
|
1465
|
+
<!--a类型-->
|
|
1466
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1467
|
+
<navigator
|
|
1468
|
+
wx:if="{{item.attr.no_support}}"
|
|
1469
|
+
data-url="{{item.attr.href}}"
|
|
1470
|
+
bindtap="showNoSupportUrl"
|
|
1471
|
+
url="{{item.attr.href}}"
|
|
1472
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1473
|
+
data-c="{{item.attr.href}}"
|
|
1474
|
+
style="{{item.styleStr}}"
|
|
1475
|
+
>
|
|
1476
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1477
|
+
<template is="wxParse29" data="{{item}}" />
|
|
1478
|
+
</block>
|
|
1479
|
+
</navigator>
|
|
1480
|
+
<navigator
|
|
1481
|
+
wx:else
|
|
1482
|
+
url="{{item.attr.href}}"
|
|
1483
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1484
|
+
data-c="{{item.attr.href}}"
|
|
1485
|
+
style="{{item.styleStr}}"
|
|
1486
|
+
>
|
|
1487
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1488
|
+
<template is="wxParse29" data="{{item}}" />
|
|
1489
|
+
</block>
|
|
1490
|
+
</navigator>
|
|
1491
|
+
</block>
|
|
1492
|
+
|
|
1493
|
+
<!--其他块级标签-->
|
|
1494
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1495
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1496
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1497
|
+
<template is="wxParse29" data="{{item}}" />
|
|
1498
|
+
</block>
|
|
1499
|
+
</view>
|
|
1500
|
+
</block>
|
|
1501
|
+
|
|
1502
|
+
<!--内联标签-->
|
|
1503
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1504
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1505
|
+
<template is="wxParse29" data="{{item}}" />
|
|
1506
|
+
</block>
|
|
1507
|
+
</view>
|
|
1508
|
+
</block>
|
|
1509
|
+
|
|
1510
|
+
<!--判断是否是文本节点-->
|
|
1511
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1512
|
+
<!--如果是,直接进行-->
|
|
1513
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1514
|
+
</block>
|
|
1515
|
+
</template>
|
|
1516
|
+
|
|
1517
|
+
<template name="wxParse29">
|
|
1518
|
+
<!--<template is="wxParse30" data="{{item}}" />-->
|
|
1519
|
+
<!--判断是否是标签节点-->
|
|
1520
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1521
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1522
|
+
<button type="default" size="mini">
|
|
1523
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1524
|
+
<template is="wxParse30" data="{{item}}" />
|
|
1525
|
+
</block>
|
|
1526
|
+
</button>
|
|
1527
|
+
</block>
|
|
1528
|
+
<!--li类型-->
|
|
1529
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1530
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1531
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1532
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1533
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1534
|
+
</view>
|
|
1535
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1536
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1537
|
+
<template is="wxParse30" data="{{item}}" />
|
|
1538
|
+
</block>
|
|
1539
|
+
</view>
|
|
1540
|
+
</view>
|
|
1541
|
+
</view>
|
|
1542
|
+
</block>
|
|
1543
|
+
|
|
1544
|
+
<!--video类型-->
|
|
1545
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1546
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1547
|
+
</block>
|
|
1548
|
+
|
|
1549
|
+
<!--img类型-->
|
|
1550
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1551
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1552
|
+
</block>
|
|
1553
|
+
|
|
1554
|
+
<!--a类型-->
|
|
1555
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1556
|
+
<navigator
|
|
1557
|
+
wx:if="{{item.attr.no_support}}"
|
|
1558
|
+
data-url="{{item.attr.href}}"
|
|
1559
|
+
bindtap="showNoSupportUrl"
|
|
1560
|
+
url="{{item.attr.href}}"
|
|
1561
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1562
|
+
data-c="{{item.attr.href}}"
|
|
1563
|
+
style="{{item.styleStr}}"
|
|
1564
|
+
>
|
|
1565
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1566
|
+
<template is="wxParse30" data="{{item}}" />
|
|
1567
|
+
</block>
|
|
1568
|
+
</navigator>
|
|
1569
|
+
<navigator
|
|
1570
|
+
wx:else
|
|
1571
|
+
url="{{item.attr.href}}"
|
|
1572
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1573
|
+
data-c="{{item.attr.href}}"
|
|
1574
|
+
style="{{item.styleStr}}"
|
|
1575
|
+
>
|
|
1576
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1577
|
+
<template is="wxParse30" data="{{item}}" />
|
|
1578
|
+
</block>
|
|
1579
|
+
</navigator>
|
|
1580
|
+
</block>
|
|
1581
|
+
|
|
1582
|
+
<!--其他块级标签-->
|
|
1583
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1584
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1585
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1586
|
+
<template is="wxParse30" data="{{item}}" />
|
|
1587
|
+
</block>
|
|
1588
|
+
</view>
|
|
1589
|
+
</block>
|
|
1590
|
+
|
|
1591
|
+
<!--内联标签-->
|
|
1592
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1593
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1594
|
+
<template is="wxParse30" data="{{item}}" />
|
|
1595
|
+
</block>
|
|
1596
|
+
</view>
|
|
1597
|
+
</block>
|
|
1598
|
+
|
|
1599
|
+
<!--判断是否是文本节点-->
|
|
1600
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1601
|
+
<!--如果是,直接进行-->
|
|
1602
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1603
|
+
</block>
|
|
1604
|
+
</template>
|
|
1605
|
+
|
|
1606
|
+
<template name="wxParse30">
|
|
1607
|
+
<!--<template is="wxParse31" data="{{item}}" />-->
|
|
1608
|
+
<!--判断是否是标签节点-->
|
|
1609
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1610
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1611
|
+
<button type="default" size="mini">
|
|
1612
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1613
|
+
<template is="wxParse31" data="{{item}}" />
|
|
1614
|
+
</block>
|
|
1615
|
+
</button>
|
|
1616
|
+
</block>
|
|
1617
|
+
<!--li类型-->
|
|
1618
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1619
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1620
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1621
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1622
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1623
|
+
</view>
|
|
1624
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1625
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1626
|
+
<template is="wxParse31" data="{{item}}" />
|
|
1627
|
+
</block>
|
|
1628
|
+
</view>
|
|
1629
|
+
</view>
|
|
1630
|
+
</view>
|
|
1631
|
+
</block>
|
|
1632
|
+
|
|
1633
|
+
<!--video类型-->
|
|
1634
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1635
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1636
|
+
</block>
|
|
1637
|
+
|
|
1638
|
+
<!--img类型-->
|
|
1639
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1640
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1641
|
+
</block>
|
|
1642
|
+
|
|
1643
|
+
<!--a类型-->
|
|
1644
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1645
|
+
<navigator
|
|
1646
|
+
wx:if="{{item.attr.no_support}}"
|
|
1647
|
+
data-url="{{item.attr.href}}"
|
|
1648
|
+
bindtap="showNoSupportUrl"
|
|
1649
|
+
url="{{item.attr.href}}"
|
|
1650
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1651
|
+
data-c="{{item.attr.href}}"
|
|
1652
|
+
style="{{item.styleStr}}"
|
|
1653
|
+
>
|
|
1654
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1655
|
+
<template is="wxParse31" data="{{item}}" />
|
|
1656
|
+
</block>
|
|
1657
|
+
</navigator>
|
|
1658
|
+
<navigator
|
|
1659
|
+
wx:else
|
|
1660
|
+
url="{{item.attr.href}}"
|
|
1661
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1662
|
+
data-c="{{item.attr.href}}"
|
|
1663
|
+
style="{{item.styleStr}}"
|
|
1664
|
+
>
|
|
1665
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1666
|
+
<template is="wxParse31" data="{{item}}" />
|
|
1667
|
+
</block>
|
|
1668
|
+
</navigator>
|
|
1669
|
+
</block>
|
|
1670
|
+
|
|
1671
|
+
<!--其他块级标签-->
|
|
1672
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1673
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1674
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1675
|
+
<template is="wxParse31" data="{{item}}" />
|
|
1676
|
+
</block>
|
|
1677
|
+
</view>
|
|
1678
|
+
</block>
|
|
1679
|
+
|
|
1680
|
+
<!--内联标签-->
|
|
1681
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1682
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1683
|
+
<template is="wxParse31" data="{{item}}" />
|
|
1684
|
+
</block>
|
|
1685
|
+
</view>
|
|
1686
|
+
</block>
|
|
1687
|
+
|
|
1688
|
+
<!--判断是否是文本节点-->
|
|
1689
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1690
|
+
<!--如果是,直接进行-->
|
|
1691
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1692
|
+
</block>
|
|
1693
|
+
</template>
|
|
1694
|
+
|
|
1695
|
+
<template name="wxParse31">
|
|
1696
|
+
<!--<template is="wxParse32" data="{{item}}" />-->
|
|
1697
|
+
<!--判断是否是标签节点-->
|
|
1698
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1699
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1700
|
+
<button type="default" size="mini">
|
|
1701
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1702
|
+
<template is="wxParse32" data="{{item}}" />
|
|
1703
|
+
</block>
|
|
1704
|
+
</button>
|
|
1705
|
+
</block>
|
|
1706
|
+
<!--li类型-->
|
|
1707
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1708
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1709
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1710
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1711
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1712
|
+
</view>
|
|
1713
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1714
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1715
|
+
<template is="wxParse32" data="{{item}}" />
|
|
1716
|
+
</block>
|
|
1717
|
+
</view>
|
|
1718
|
+
</view>
|
|
1719
|
+
</view>
|
|
1720
|
+
</block>
|
|
1721
|
+
|
|
1722
|
+
<!--video类型-->
|
|
1723
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1724
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1725
|
+
</block>
|
|
1726
|
+
|
|
1727
|
+
<!--img类型-->
|
|
1728
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1729
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1730
|
+
</block>
|
|
1731
|
+
|
|
1732
|
+
<!--a类型-->
|
|
1733
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1734
|
+
<navigator
|
|
1735
|
+
wx:if="{{item.attr.no_support}}"
|
|
1736
|
+
data-url="{{item.attr.href}}"
|
|
1737
|
+
bindtap="showNoSupportUrl"
|
|
1738
|
+
url="{{item.attr.href}}"
|
|
1739
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1740
|
+
data-c="{{item.attr.href}}"
|
|
1741
|
+
style="{{item.styleStr}}"
|
|
1742
|
+
>
|
|
1743
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1744
|
+
<template is="wxParse32" data="{{item}}" />
|
|
1745
|
+
</block>
|
|
1746
|
+
</navigator>
|
|
1747
|
+
<navigator
|
|
1748
|
+
wx:else
|
|
1749
|
+
url="{{item.attr.href}}"
|
|
1750
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1751
|
+
data-c="{{item.attr.href}}"
|
|
1752
|
+
style="{{item.styleStr}}"
|
|
1753
|
+
>
|
|
1754
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1755
|
+
<template is="wxParse32" data="{{item}}" />
|
|
1756
|
+
</block>
|
|
1757
|
+
</navigator>
|
|
1758
|
+
</block>
|
|
1759
|
+
|
|
1760
|
+
<!--其他块级标签-->
|
|
1761
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1762
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1763
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1764
|
+
<template is="wxParse32" data="{{item}}" />
|
|
1765
|
+
</block>
|
|
1766
|
+
</view>
|
|
1767
|
+
</block>
|
|
1768
|
+
|
|
1769
|
+
<!--内联标签-->
|
|
1770
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1771
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1772
|
+
<template is="wxParse32" data="{{item}}" />
|
|
1773
|
+
</block>
|
|
1774
|
+
</view>
|
|
1775
|
+
</block>
|
|
1776
|
+
|
|
1777
|
+
<!--判断是否是文本节点-->
|
|
1778
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1779
|
+
<!--如果是,直接进行-->
|
|
1780
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1781
|
+
</block>
|
|
1782
|
+
</template>
|
|
1783
|
+
|
|
1784
|
+
<template name="wxParse32">
|
|
1785
|
+
<!--<template is="wxParse33" data="{{item}}" />-->
|
|
1786
|
+
<!--判断是否是标签节点-->
|
|
1787
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1788
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1789
|
+
<button type="default" size="mini">
|
|
1790
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1791
|
+
<template is="wxParse33" data="{{item}}" />
|
|
1792
|
+
</block>
|
|
1793
|
+
</button>
|
|
1794
|
+
</block>
|
|
1795
|
+
<!--li类型-->
|
|
1796
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1797
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1798
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1799
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1800
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1801
|
+
</view>
|
|
1802
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1803
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1804
|
+
<template is="wxParse33" data="{{item}}" />
|
|
1805
|
+
</block>
|
|
1806
|
+
</view>
|
|
1807
|
+
</view>
|
|
1808
|
+
</view>
|
|
1809
|
+
</block>
|
|
1810
|
+
|
|
1811
|
+
<!--video类型-->
|
|
1812
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1813
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1814
|
+
</block>
|
|
1815
|
+
|
|
1816
|
+
<!--img类型-->
|
|
1817
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1818
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1819
|
+
</block>
|
|
1820
|
+
|
|
1821
|
+
<!--a类型-->
|
|
1822
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1823
|
+
<navigator
|
|
1824
|
+
wx:if="{{item.attr.no_support}}"
|
|
1825
|
+
data-url="{{item.attr.href}}"
|
|
1826
|
+
bindtap="showNoSupportUrl"
|
|
1827
|
+
url="{{item.attr.href}}"
|
|
1828
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1829
|
+
data-c="{{item.attr.href}}"
|
|
1830
|
+
style="{{item.styleStr}}"
|
|
1831
|
+
>
|
|
1832
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1833
|
+
<template is="wxParse33" data="{{item}}" />
|
|
1834
|
+
</block>
|
|
1835
|
+
</navigator>
|
|
1836
|
+
<navigator
|
|
1837
|
+
wx:else
|
|
1838
|
+
url="{{item.attr.href}}"
|
|
1839
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1840
|
+
data-c="{{item.attr.href}}"
|
|
1841
|
+
style="{{item.styleStr}}"
|
|
1842
|
+
>
|
|
1843
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1844
|
+
<template is="wxParse33" data="{{item}}" />
|
|
1845
|
+
</block>
|
|
1846
|
+
</navigator>
|
|
1847
|
+
</block>
|
|
1848
|
+
|
|
1849
|
+
<!--其他块级标签-->
|
|
1850
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1851
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1852
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1853
|
+
<template is="wxParse33" data="{{item}}" />
|
|
1854
|
+
</block>
|
|
1855
|
+
</view>
|
|
1856
|
+
</block>
|
|
1857
|
+
|
|
1858
|
+
<!--内联标签-->
|
|
1859
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1860
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1861
|
+
<template is="wxParse33" data="{{item}}" />
|
|
1862
|
+
</block>
|
|
1863
|
+
</view>
|
|
1864
|
+
</block>
|
|
1865
|
+
|
|
1866
|
+
<!--判断是否是文本节点-->
|
|
1867
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1868
|
+
<!--如果是,直接进行-->
|
|
1869
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1870
|
+
</block>
|
|
1871
|
+
</template>
|
|
1872
|
+
|
|
1873
|
+
<template name="wxParse33">
|
|
1874
|
+
<!--<template is="wxParse34" data="{{item}}" />-->
|
|
1875
|
+
<!--判断是否是标签节点-->
|
|
1876
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1877
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1878
|
+
<button type="default" size="mini">
|
|
1879
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1880
|
+
<template is="wxParse34" data="{{item}}" />
|
|
1881
|
+
</block>
|
|
1882
|
+
</button>
|
|
1883
|
+
</block>
|
|
1884
|
+
<!--li类型-->
|
|
1885
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1886
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1887
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1888
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1889
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1890
|
+
</view>
|
|
1891
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1892
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1893
|
+
<template is="wxParse34" data="{{item}}" />
|
|
1894
|
+
</block>
|
|
1895
|
+
</view>
|
|
1896
|
+
</view>
|
|
1897
|
+
</view>
|
|
1898
|
+
</block>
|
|
1899
|
+
|
|
1900
|
+
<!--video类型-->
|
|
1901
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1902
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1903
|
+
</block>
|
|
1904
|
+
|
|
1905
|
+
<!--img类型-->
|
|
1906
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1907
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1908
|
+
</block>
|
|
1909
|
+
|
|
1910
|
+
<!--a类型-->
|
|
1911
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
1912
|
+
<navigator
|
|
1913
|
+
wx:if="{{item.attr.no_support}}"
|
|
1914
|
+
data-url="{{item.attr.href}}"
|
|
1915
|
+
bindtap="showNoSupportUrl"
|
|
1916
|
+
url="{{item.attr.href}}"
|
|
1917
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1918
|
+
data-c="{{item.attr.href}}"
|
|
1919
|
+
style="{{item.styleStr}}"
|
|
1920
|
+
>
|
|
1921
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1922
|
+
<template is="wxParse34" data="{{item}}" />
|
|
1923
|
+
</block>
|
|
1924
|
+
</navigator>
|
|
1925
|
+
<navigator
|
|
1926
|
+
wx:else
|
|
1927
|
+
url="{{item.attr.href}}"
|
|
1928
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
1929
|
+
data-c="{{item.attr.href}}"
|
|
1930
|
+
style="{{item.styleStr}}"
|
|
1931
|
+
>
|
|
1932
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1933
|
+
<template is="wxParse34" data="{{item}}" />
|
|
1934
|
+
</block>
|
|
1935
|
+
</navigator>
|
|
1936
|
+
</block>
|
|
1937
|
+
|
|
1938
|
+
<!--其他块级标签-->
|
|
1939
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
1940
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
1941
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1942
|
+
<template is="wxParse34" data="{{item}}" />
|
|
1943
|
+
</block>
|
|
1944
|
+
</view>
|
|
1945
|
+
</block>
|
|
1946
|
+
|
|
1947
|
+
<!--内联标签-->
|
|
1948
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
1949
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1950
|
+
<template is="wxParse34" data="{{item}}" />
|
|
1951
|
+
</block>
|
|
1952
|
+
</view>
|
|
1953
|
+
</block>
|
|
1954
|
+
|
|
1955
|
+
<!--判断是否是文本节点-->
|
|
1956
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
1957
|
+
<!--如果是,直接进行-->
|
|
1958
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
1959
|
+
</block>
|
|
1960
|
+
</template>
|
|
1961
|
+
|
|
1962
|
+
<template name="wxParse34">
|
|
1963
|
+
<!--<template is="wxParse35" data="{{item}}" />-->
|
|
1964
|
+
<!--判断是否是标签节点-->
|
|
1965
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
1966
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
1967
|
+
<button type="default" size="mini">
|
|
1968
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1969
|
+
<template is="wxParse35" data="{{item}}" />
|
|
1970
|
+
</block>
|
|
1971
|
+
</button>
|
|
1972
|
+
</block>
|
|
1973
|
+
<!--li类型-->
|
|
1974
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
1975
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
1976
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
1977
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1978
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
1979
|
+
</view>
|
|
1980
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
1981
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
1982
|
+
<template is="wxParse35" data="{{item}}" />
|
|
1983
|
+
</block>
|
|
1984
|
+
</view>
|
|
1985
|
+
</view>
|
|
1986
|
+
</view>
|
|
1987
|
+
</block>
|
|
1988
|
+
|
|
1989
|
+
<!--video类型-->
|
|
1990
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
1991
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
1992
|
+
</block>
|
|
1993
|
+
|
|
1994
|
+
<!--img类型-->
|
|
1995
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
1996
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
1997
|
+
</block>
|
|
1998
|
+
|
|
1999
|
+
<!--a类型-->
|
|
2000
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2001
|
+
<navigator
|
|
2002
|
+
wx:if="{{item.attr.no_support}}"
|
|
2003
|
+
data-url="{{item.attr.href}}"
|
|
2004
|
+
bindtap="showNoSupportUrl"
|
|
2005
|
+
url="{{item.attr.href}}"
|
|
2006
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2007
|
+
data-c="{{item.attr.href}}"
|
|
2008
|
+
style="{{item.styleStr}}"
|
|
2009
|
+
>
|
|
2010
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2011
|
+
<template is="wxParse35" data="{{item}}" />
|
|
2012
|
+
</block>
|
|
2013
|
+
</navigator>
|
|
2014
|
+
<navigator
|
|
2015
|
+
wx:else
|
|
2016
|
+
url="{{item.attr.href}}"
|
|
2017
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2018
|
+
data-c="{{item.attr.href}}"
|
|
2019
|
+
style="{{item.styleStr}}"
|
|
2020
|
+
>
|
|
2021
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2022
|
+
<template is="wxParse35" data="{{item}}" />
|
|
2023
|
+
</block>
|
|
2024
|
+
</navigator>
|
|
2025
|
+
</block>
|
|
2026
|
+
|
|
2027
|
+
<!--其他块级标签-->
|
|
2028
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2029
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2030
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2031
|
+
<template is="wxParse35" data="{{item}}" />
|
|
2032
|
+
</block>
|
|
2033
|
+
</view>
|
|
2034
|
+
</block>
|
|
2035
|
+
|
|
2036
|
+
<!--内联标签-->
|
|
2037
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2038
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2039
|
+
<template is="wxParse35" data="{{item}}" />
|
|
2040
|
+
</block>
|
|
2041
|
+
</view>
|
|
2042
|
+
</block>
|
|
2043
|
+
|
|
2044
|
+
<!--判断是否是文本节点-->
|
|
2045
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2046
|
+
<!--如果是,直接进行-->
|
|
2047
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2048
|
+
</block>
|
|
2049
|
+
</template>
|
|
2050
|
+
|
|
2051
|
+
<template name="wxParse35">
|
|
2052
|
+
<!--<template is="wxParse36" data="{{item}}" />-->
|
|
2053
|
+
<!--判断是否是标签节点-->
|
|
2054
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2055
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2056
|
+
<button type="default" size="mini">
|
|
2057
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2058
|
+
<template is="wxParse36" data="{{item}}" />
|
|
2059
|
+
</block>
|
|
2060
|
+
</button>
|
|
2061
|
+
</block>
|
|
2062
|
+
<!--li类型-->
|
|
2063
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2064
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2065
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2066
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2067
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2068
|
+
</view>
|
|
2069
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2070
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2071
|
+
<template is="wxParse36" data="{{item}}" />
|
|
2072
|
+
</block>
|
|
2073
|
+
</view>
|
|
2074
|
+
</view>
|
|
2075
|
+
</view>
|
|
2076
|
+
</block>
|
|
2077
|
+
|
|
2078
|
+
<!--video类型-->
|
|
2079
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2080
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2081
|
+
</block>
|
|
2082
|
+
|
|
2083
|
+
<!--img类型-->
|
|
2084
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2085
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2086
|
+
</block>
|
|
2087
|
+
|
|
2088
|
+
<!--a类型-->
|
|
2089
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2090
|
+
<navigator
|
|
2091
|
+
wx:if="{{item.attr.no_support}}"
|
|
2092
|
+
data-url="{{item.attr.href}}"
|
|
2093
|
+
bindtap="showNoSupportUrl"
|
|
2094
|
+
url="{{item.attr.href}}"
|
|
2095
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2096
|
+
data-c="{{item.attr.href}}"
|
|
2097
|
+
style="{{item.styleStr}}"
|
|
2098
|
+
>
|
|
2099
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2100
|
+
<template is="wxParse36" data="{{item}}" />
|
|
2101
|
+
</block>
|
|
2102
|
+
</navigator>
|
|
2103
|
+
<navigator
|
|
2104
|
+
wx:else
|
|
2105
|
+
url="{{item.attr.href}}"
|
|
2106
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2107
|
+
data-c="{{item.attr.href}}"
|
|
2108
|
+
style="{{item.styleStr}}"
|
|
2109
|
+
>
|
|
2110
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2111
|
+
<template is="wxParse36" data="{{item}}" />
|
|
2112
|
+
</block>
|
|
2113
|
+
</navigator>
|
|
2114
|
+
</block>
|
|
2115
|
+
|
|
2116
|
+
<!--其他块级标签-->
|
|
2117
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2118
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2119
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2120
|
+
<template is="wxParse36" data="{{item}}" />
|
|
2121
|
+
</block>
|
|
2122
|
+
</view>
|
|
2123
|
+
</block>
|
|
2124
|
+
|
|
2125
|
+
<!--内联标签-->
|
|
2126
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2127
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2128
|
+
<template is="wxParse36" data="{{item}}" />
|
|
2129
|
+
</block>
|
|
2130
|
+
</view>
|
|
2131
|
+
</block>
|
|
2132
|
+
|
|
2133
|
+
<!--判断是否是文本节点-->
|
|
2134
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2135
|
+
<!--如果是,直接进行-->
|
|
2136
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2137
|
+
</block>
|
|
2138
|
+
</template>
|
|
2139
|
+
|
|
2140
|
+
<template name="wxParse36">
|
|
2141
|
+
<!--<template is="wxParse37" data="{{item}}" />-->
|
|
2142
|
+
<!--判断是否是标签节点-->
|
|
2143
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2144
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2145
|
+
<button type="default" size="mini">
|
|
2146
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2147
|
+
<template is="wxParse37" data="{{item}}" />
|
|
2148
|
+
</block>
|
|
2149
|
+
</button>
|
|
2150
|
+
</block>
|
|
2151
|
+
<!--li类型-->
|
|
2152
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2153
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2154
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2155
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2156
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2157
|
+
</view>
|
|
2158
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2159
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2160
|
+
<template is="wxParse37" data="{{item}}" />
|
|
2161
|
+
</block>
|
|
2162
|
+
</view>
|
|
2163
|
+
</view>
|
|
2164
|
+
</view>
|
|
2165
|
+
</block>
|
|
2166
|
+
|
|
2167
|
+
<!--video类型-->
|
|
2168
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2169
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2170
|
+
</block>
|
|
2171
|
+
|
|
2172
|
+
<!--img类型-->
|
|
2173
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2174
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2175
|
+
</block>
|
|
2176
|
+
|
|
2177
|
+
<!--a类型-->
|
|
2178
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2179
|
+
<navigator
|
|
2180
|
+
wx:if="{{item.attr.no_support}}"
|
|
2181
|
+
data-url="{{item.attr.href}}"
|
|
2182
|
+
bindtap="showNoSupportUrl"
|
|
2183
|
+
url="{{item.attr.href}}"
|
|
2184
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2185
|
+
data-c="{{item.attr.href}}"
|
|
2186
|
+
style="{{item.styleStr}}"
|
|
2187
|
+
>
|
|
2188
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2189
|
+
<template is="wxParse37" data="{{item}}" />
|
|
2190
|
+
</block>
|
|
2191
|
+
</navigator>
|
|
2192
|
+
<navigator
|
|
2193
|
+
wx:else
|
|
2194
|
+
url="{{item.attr.href}}"
|
|
2195
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2196
|
+
data-c="{{item.attr.href}}"
|
|
2197
|
+
style="{{item.styleStr}}"
|
|
2198
|
+
>
|
|
2199
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2200
|
+
<template is="wxParse37" data="{{item}}" />
|
|
2201
|
+
</block>
|
|
2202
|
+
</navigator>
|
|
2203
|
+
</block>
|
|
2204
|
+
|
|
2205
|
+
<!--其他块级标签-->
|
|
2206
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2207
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2208
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2209
|
+
<template is="wxParse37" data="{{item}}" />
|
|
2210
|
+
</block>
|
|
2211
|
+
</view>
|
|
2212
|
+
</block>
|
|
2213
|
+
|
|
2214
|
+
<!--内联标签-->
|
|
2215
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2216
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2217
|
+
<template is="wxParse37" data="{{item}}" />
|
|
2218
|
+
</block>
|
|
2219
|
+
</view>
|
|
2220
|
+
</block>
|
|
2221
|
+
|
|
2222
|
+
<!--判断是否是文本节点-->
|
|
2223
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2224
|
+
<!--如果是,直接进行-->
|
|
2225
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2226
|
+
</block>
|
|
2227
|
+
</template>
|
|
2228
|
+
|
|
2229
|
+
<template name="wxParse37">
|
|
2230
|
+
<!--<template is="wxParse38" data="{{item}}" />-->
|
|
2231
|
+
<!--判断是否是标签节点-->
|
|
2232
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2233
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2234
|
+
<button type="default" size="mini">
|
|
2235
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2236
|
+
<template is="wxParse38" data="{{item}}" />
|
|
2237
|
+
</block>
|
|
2238
|
+
</button>
|
|
2239
|
+
</block>
|
|
2240
|
+
<!--li类型-->
|
|
2241
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2242
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2243
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2244
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2245
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2246
|
+
</view>
|
|
2247
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2248
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2249
|
+
<template is="wxParse38" data="{{item}}" />
|
|
2250
|
+
</block>
|
|
2251
|
+
</view>
|
|
2252
|
+
</view>
|
|
2253
|
+
</view>
|
|
2254
|
+
</block>
|
|
2255
|
+
|
|
2256
|
+
<!--video类型-->
|
|
2257
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2258
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2259
|
+
</block>
|
|
2260
|
+
|
|
2261
|
+
<!--img类型-->
|
|
2262
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2263
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2264
|
+
</block>
|
|
2265
|
+
|
|
2266
|
+
<!--a类型-->
|
|
2267
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2268
|
+
<navigator
|
|
2269
|
+
wx:if="{{item.attr.no_support}}"
|
|
2270
|
+
data-url="{{item.attr.href}}"
|
|
2271
|
+
bindtap="showNoSupportUrl"
|
|
2272
|
+
url="{{item.attr.href}}"
|
|
2273
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2274
|
+
data-c="{{item.attr.href}}"
|
|
2275
|
+
style="{{item.styleStr}}"
|
|
2276
|
+
>
|
|
2277
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2278
|
+
<template is="wxParse38" data="{{item}}" />
|
|
2279
|
+
</block>
|
|
2280
|
+
</navigator>
|
|
2281
|
+
<navigator
|
|
2282
|
+
wx:else
|
|
2283
|
+
url="{{item.attr.href}}"
|
|
2284
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2285
|
+
data-c="{{item.attr.href}}"
|
|
2286
|
+
style="{{item.styleStr}}"
|
|
2287
|
+
>
|
|
2288
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2289
|
+
<template is="wxParse38" data="{{item}}" />
|
|
2290
|
+
</block>
|
|
2291
|
+
</navigator>
|
|
2292
|
+
</block>
|
|
2293
|
+
|
|
2294
|
+
<!--其他块级标签-->
|
|
2295
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2296
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2297
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2298
|
+
<template is="wxParse38" data="{{item}}" />
|
|
2299
|
+
</block>
|
|
2300
|
+
</view>
|
|
2301
|
+
</block>
|
|
2302
|
+
|
|
2303
|
+
<!--内联标签-->
|
|
2304
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2305
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2306
|
+
<template is="wxParse38" data="{{item}}" />
|
|
2307
|
+
</block>
|
|
2308
|
+
</view>
|
|
2309
|
+
</block>
|
|
2310
|
+
|
|
2311
|
+
<!--判断是否是文本节点-->
|
|
2312
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2313
|
+
<!--如果是,直接进行-->
|
|
2314
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2315
|
+
</block>
|
|
2316
|
+
</template>
|
|
2317
|
+
|
|
2318
|
+
<template name="wxParse38">
|
|
2319
|
+
<!--<template is="wxParse39" data="{{item}}" />-->
|
|
2320
|
+
<!--判断是否是标签节点-->
|
|
2321
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2322
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2323
|
+
<button type="default" size="mini">
|
|
2324
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2325
|
+
<template is="wxParse39" data="{{item}}" />
|
|
2326
|
+
</block>
|
|
2327
|
+
</button>
|
|
2328
|
+
</block>
|
|
2329
|
+
<!--li类型-->
|
|
2330
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2331
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2332
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2333
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2334
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2335
|
+
</view>
|
|
2336
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2337
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2338
|
+
<template is="wxParse39" data="{{item}}" />
|
|
2339
|
+
</block>
|
|
2340
|
+
</view>
|
|
2341
|
+
</view>
|
|
2342
|
+
</view>
|
|
2343
|
+
</block>
|
|
2344
|
+
|
|
2345
|
+
<!--video类型-->
|
|
2346
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2347
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2348
|
+
</block>
|
|
2349
|
+
|
|
2350
|
+
<!--img类型-->
|
|
2351
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2352
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2353
|
+
</block>
|
|
2354
|
+
|
|
2355
|
+
<!--a类型-->
|
|
2356
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2357
|
+
<navigator
|
|
2358
|
+
wx:if="{{item.attr.no_support}}"
|
|
2359
|
+
data-url="{{item.attr.href}}"
|
|
2360
|
+
bindtap="showNoSupportUrl"
|
|
2361
|
+
url="{{item.attr.href}}"
|
|
2362
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2363
|
+
data-c="{{item.attr.href}}"
|
|
2364
|
+
style="{{item.styleStr}}"
|
|
2365
|
+
>
|
|
2366
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2367
|
+
<template is="wxParse39" data="{{item}}" />
|
|
2368
|
+
</block>
|
|
2369
|
+
</navigator>
|
|
2370
|
+
<navigator
|
|
2371
|
+
wx:else
|
|
2372
|
+
url="{{item.attr.href}}"
|
|
2373
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2374
|
+
data-c="{{item.attr.href}}"
|
|
2375
|
+
style="{{item.styleStr}}"
|
|
2376
|
+
>
|
|
2377
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2378
|
+
<template is="wxParse39" data="{{item}}" />
|
|
2379
|
+
</block>
|
|
2380
|
+
</navigator>
|
|
2381
|
+
</block>
|
|
2382
|
+
|
|
2383
|
+
<!--其他块级标签-->
|
|
2384
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2385
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2386
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2387
|
+
<template is="wxParse39" data="{{item}}" />
|
|
2388
|
+
</block>
|
|
2389
|
+
</view>
|
|
2390
|
+
</block>
|
|
2391
|
+
|
|
2392
|
+
<!--内联标签-->
|
|
2393
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2394
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2395
|
+
<template is="wxParse39" data="{{item}}" />
|
|
2396
|
+
</block>
|
|
2397
|
+
</view>
|
|
2398
|
+
</block>
|
|
2399
|
+
|
|
2400
|
+
<!--判断是否是文本节点-->
|
|
2401
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2402
|
+
<!--如果是,直接进行-->
|
|
2403
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2404
|
+
</block>
|
|
2405
|
+
</template>
|
|
2406
|
+
|
|
2407
|
+
<template name="wxParse39">
|
|
2408
|
+
<!--<template is="wxParse40" data="{{item}}" />-->
|
|
2409
|
+
<!--判断是否是标签节点-->
|
|
2410
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2411
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2412
|
+
<button type="default" size="mini">
|
|
2413
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2414
|
+
<template is="wxParse40" data="{{item}}" />
|
|
2415
|
+
</block>
|
|
2416
|
+
</button>
|
|
2417
|
+
</block>
|
|
2418
|
+
<!--li类型-->
|
|
2419
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2420
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2421
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2422
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2423
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2424
|
+
</view>
|
|
2425
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2426
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2427
|
+
<template is="wxParse40" data="{{item}}" />
|
|
2428
|
+
</block>
|
|
2429
|
+
</view>
|
|
2430
|
+
</view>
|
|
2431
|
+
</view>
|
|
2432
|
+
</block>
|
|
2433
|
+
|
|
2434
|
+
<!--video类型-->
|
|
2435
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2436
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2437
|
+
</block>
|
|
2438
|
+
|
|
2439
|
+
<!--img类型-->
|
|
2440
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2441
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2442
|
+
</block>
|
|
2443
|
+
|
|
2444
|
+
<!--a类型-->
|
|
2445
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2446
|
+
<navigator
|
|
2447
|
+
wx:if="{{item.attr.no_support}}"
|
|
2448
|
+
data-url="{{item.attr.href}}"
|
|
2449
|
+
bindtap="showNoSupportUrl"
|
|
2450
|
+
url="{{item.attr.href}}"
|
|
2451
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2452
|
+
data-c="{{item.attr.href}}"
|
|
2453
|
+
style="{{item.styleStr}}"
|
|
2454
|
+
>
|
|
2455
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2456
|
+
<template is="wxParse40" data="{{item}}" />
|
|
2457
|
+
</block>
|
|
2458
|
+
</navigator>
|
|
2459
|
+
<navigator
|
|
2460
|
+
wx:else
|
|
2461
|
+
url="{{item.attr.href}}"
|
|
2462
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2463
|
+
data-c="{{item.attr.href}}"
|
|
2464
|
+
style="{{item.styleStr}}"
|
|
2465
|
+
>
|
|
2466
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2467
|
+
<template is="wxParse40" data="{{item}}" />
|
|
2468
|
+
</block>
|
|
2469
|
+
</navigator>
|
|
2470
|
+
</block>
|
|
2471
|
+
|
|
2472
|
+
<!--其他块级标签-->
|
|
2473
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2474
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2475
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2476
|
+
<template is="wxParse40" data="{{item}}" />
|
|
2477
|
+
</block>
|
|
2478
|
+
</view>
|
|
2479
|
+
</block>
|
|
2480
|
+
|
|
2481
|
+
<!--内联标签-->
|
|
2482
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2483
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2484
|
+
<template is="wxParse40" data="{{item}}" />
|
|
2485
|
+
</block>
|
|
2486
|
+
</view>
|
|
2487
|
+
</block>
|
|
2488
|
+
|
|
2489
|
+
<!--判断是否是文本节点-->
|
|
2490
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2491
|
+
<!--如果是,直接进行-->
|
|
2492
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2493
|
+
</block>
|
|
2494
|
+
</template>
|
|
2495
|
+
|
|
2496
|
+
<template name="wxParse40">
|
|
2497
|
+
<!--<template is="wxParse41" data="{{item}}" />-->
|
|
2498
|
+
<!--判断是否是标签节点-->
|
|
2499
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2500
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2501
|
+
<button type="default" size="mini">
|
|
2502
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2503
|
+
<template is="wxParse41" data="{{item}}" />
|
|
2504
|
+
</block>
|
|
2505
|
+
</button>
|
|
2506
|
+
</block>
|
|
2507
|
+
<!--li类型-->
|
|
2508
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2509
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2510
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2511
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2512
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2513
|
+
</view>
|
|
2514
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2515
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2516
|
+
<template is="wxParse41" data="{{item}}" />
|
|
2517
|
+
</block>
|
|
2518
|
+
</view>
|
|
2519
|
+
</view>
|
|
2520
|
+
</view>
|
|
2521
|
+
</block>
|
|
2522
|
+
|
|
2523
|
+
<!--video类型-->
|
|
2524
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2525
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2526
|
+
</block>
|
|
2527
|
+
|
|
2528
|
+
<!--img类型-->
|
|
2529
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2530
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2531
|
+
</block>
|
|
2532
|
+
|
|
2533
|
+
<!--a类型-->
|
|
2534
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2535
|
+
<navigator
|
|
2536
|
+
wx:if="{{item.attr.no_support}}"
|
|
2537
|
+
data-url="{{item.attr.href}}"
|
|
2538
|
+
bindtap="showNoSupportUrl"
|
|
2539
|
+
url="{{item.attr.href}}"
|
|
2540
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2541
|
+
data-c="{{item.attr.href}}"
|
|
2542
|
+
style="{{item.styleStr}}"
|
|
2543
|
+
>
|
|
2544
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2545
|
+
<template is="wxParse41" data="{{item}}" />
|
|
2546
|
+
</block>
|
|
2547
|
+
</navigator>
|
|
2548
|
+
<navigator
|
|
2549
|
+
wx:else
|
|
2550
|
+
url="{{item.attr.href}}"
|
|
2551
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2552
|
+
data-c="{{item.attr.href}}"
|
|
2553
|
+
style="{{item.styleStr}}"
|
|
2554
|
+
>
|
|
2555
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2556
|
+
<template is="wxParse41" data="{{item}}" />
|
|
2557
|
+
</block>
|
|
2558
|
+
</navigator>
|
|
2559
|
+
</block>
|
|
2560
|
+
|
|
2561
|
+
<!--其他块级标签-->
|
|
2562
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2563
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2564
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2565
|
+
<template is="wxParse41" data="{{item}}" />
|
|
2566
|
+
</block>
|
|
2567
|
+
</view>
|
|
2568
|
+
</block>
|
|
2569
|
+
|
|
2570
|
+
<!--内联标签-->
|
|
2571
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2572
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2573
|
+
<template is="wxParse41" data="{{item}}" />
|
|
2574
|
+
</block>
|
|
2575
|
+
</view>
|
|
2576
|
+
</block>
|
|
2577
|
+
|
|
2578
|
+
<!--判断是否是文本节点-->
|
|
2579
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2580
|
+
<!--如果是,直接进行-->
|
|
2581
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2582
|
+
</block>
|
|
2583
|
+
</template>
|
|
2584
|
+
|
|
2585
|
+
<template name="wxParse41">
|
|
2586
|
+
<!--<template is="wxParse42" data="{{item}}" />-->
|
|
2587
|
+
<!--判断是否是标签节点-->
|
|
2588
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2589
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2590
|
+
<button type="default" size="mini">
|
|
2591
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2592
|
+
<template is="wxParse42" data="{{item}}" />
|
|
2593
|
+
</block>
|
|
2594
|
+
</button>
|
|
2595
|
+
</block>
|
|
2596
|
+
<!--li类型-->
|
|
2597
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2598
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2599
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2600
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2601
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2602
|
+
</view>
|
|
2603
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2604
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2605
|
+
<template is="wxParse42" data="{{item}}" />
|
|
2606
|
+
</block>
|
|
2607
|
+
</view>
|
|
2608
|
+
</view>
|
|
2609
|
+
</view>
|
|
2610
|
+
</block>
|
|
2611
|
+
|
|
2612
|
+
<!--video类型-->
|
|
2613
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2614
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2615
|
+
</block>
|
|
2616
|
+
|
|
2617
|
+
<!--img类型-->
|
|
2618
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2619
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2620
|
+
</block>
|
|
2621
|
+
|
|
2622
|
+
<!--a类型-->
|
|
2623
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2624
|
+
<navigator
|
|
2625
|
+
wx:if="{{item.attr.no_support}}"
|
|
2626
|
+
data-url="{{item.attr.href}}"
|
|
2627
|
+
bindtap="showNoSupportUrl"
|
|
2628
|
+
url="{{item.attr.href}}"
|
|
2629
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2630
|
+
data-c="{{item.attr.href}}"
|
|
2631
|
+
style="{{item.styleStr}}"
|
|
2632
|
+
>
|
|
2633
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2634
|
+
<template is="wxParse42" data="{{item}}" />
|
|
2635
|
+
</block>
|
|
2636
|
+
</navigator>
|
|
2637
|
+
<navigator
|
|
2638
|
+
wx:else
|
|
2639
|
+
url="{{item.attr.href}}"
|
|
2640
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2641
|
+
data-c="{{item.attr.href}}"
|
|
2642
|
+
style="{{item.styleStr}}"
|
|
2643
|
+
>
|
|
2644
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2645
|
+
<template is="wxParse42" data="{{item}}" />
|
|
2646
|
+
</block>
|
|
2647
|
+
</navigator>
|
|
2648
|
+
</block>
|
|
2649
|
+
|
|
2650
|
+
<!--其他块级标签-->
|
|
2651
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2652
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2653
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2654
|
+
<template is="wxParse42" data="{{item}}" />
|
|
2655
|
+
</block>
|
|
2656
|
+
</view>
|
|
2657
|
+
</block>
|
|
2658
|
+
|
|
2659
|
+
<!--内联标签-->
|
|
2660
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2661
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2662
|
+
<template is="wxParse42" data="{{item}}" />
|
|
2663
|
+
</block>
|
|
2664
|
+
</view>
|
|
2665
|
+
</block>
|
|
2666
|
+
|
|
2667
|
+
<!--判断是否是文本节点-->
|
|
2668
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2669
|
+
<!--如果是,直接进行-->
|
|
2670
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2671
|
+
</block>
|
|
2672
|
+
</template>
|
|
2673
|
+
|
|
2674
|
+
<template name="wxParse42">
|
|
2675
|
+
<!--<template is="wxParse43" data="{{item}}" />-->
|
|
2676
|
+
<!--判断是否是标签节点-->
|
|
2677
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2678
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2679
|
+
<button type="default" size="mini">
|
|
2680
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2681
|
+
<template is="wxParse43" data="{{item}}" />
|
|
2682
|
+
</block>
|
|
2683
|
+
</button>
|
|
2684
|
+
</block>
|
|
2685
|
+
<!--li类型-->
|
|
2686
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2687
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2688
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2689
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2690
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2691
|
+
</view>
|
|
2692
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2693
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2694
|
+
<template is="wxParse43" data="{{item}}" />
|
|
2695
|
+
</block>
|
|
2696
|
+
</view>
|
|
2697
|
+
</view>
|
|
2698
|
+
</view>
|
|
2699
|
+
</block>
|
|
2700
|
+
|
|
2701
|
+
<!--video类型-->
|
|
2702
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2703
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2704
|
+
</block>
|
|
2705
|
+
|
|
2706
|
+
<!--img类型-->
|
|
2707
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2708
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2709
|
+
</block>
|
|
2710
|
+
|
|
2711
|
+
<!--a类型-->
|
|
2712
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2713
|
+
<navigator
|
|
2714
|
+
wx:if="{{item.attr.no_support}}"
|
|
2715
|
+
data-url="{{item.attr.href}}"
|
|
2716
|
+
bindtap="showNoSupportUrl"
|
|
2717
|
+
url="{{item.attr.href}}"
|
|
2718
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2719
|
+
data-c="{{item.attr.href}}"
|
|
2720
|
+
style="{{item.styleStr}}"
|
|
2721
|
+
>
|
|
2722
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2723
|
+
<template is="wxParse43" data="{{item}}" />
|
|
2724
|
+
</block>
|
|
2725
|
+
</navigator>
|
|
2726
|
+
<navigator
|
|
2727
|
+
wx:else
|
|
2728
|
+
url="{{item.attr.href}}"
|
|
2729
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2730
|
+
data-c="{{item.attr.href}}"
|
|
2731
|
+
style="{{item.styleStr}}"
|
|
2732
|
+
>
|
|
2733
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2734
|
+
<template is="wxParse43" data="{{item}}" />
|
|
2735
|
+
</block>
|
|
2736
|
+
</navigator>
|
|
2737
|
+
</block>
|
|
2738
|
+
|
|
2739
|
+
<!--其他块级标签-->
|
|
2740
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2741
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2742
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2743
|
+
<template is="wxParse43" data="{{item}}" />
|
|
2744
|
+
</block>
|
|
2745
|
+
</view>
|
|
2746
|
+
</block>
|
|
2747
|
+
|
|
2748
|
+
<!--内联标签-->
|
|
2749
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2750
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2751
|
+
<template is="wxParse43" data="{{item}}" />
|
|
2752
|
+
</block>
|
|
2753
|
+
</view>
|
|
2754
|
+
</block>
|
|
2755
|
+
|
|
2756
|
+
<!--判断是否是文本节点-->
|
|
2757
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2758
|
+
<!--如果是,直接进行-->
|
|
2759
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2760
|
+
</block>
|
|
2761
|
+
</template>
|
|
2762
|
+
|
|
2763
|
+
<template name="wxParse43">
|
|
2764
|
+
<!--<template is="wxParse44" data="{{item}}" />-->
|
|
2765
|
+
<!--判断是否是标签节点-->
|
|
2766
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2767
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2768
|
+
<button type="default" size="mini">
|
|
2769
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2770
|
+
<template is="wxParse44" data="{{item}}" />
|
|
2771
|
+
</block>
|
|
2772
|
+
</button>
|
|
2773
|
+
</block>
|
|
2774
|
+
<!--li类型-->
|
|
2775
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2776
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2777
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2778
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2779
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2780
|
+
</view>
|
|
2781
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2782
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2783
|
+
<template is="wxParse44" data="{{item}}" />
|
|
2784
|
+
</block>
|
|
2785
|
+
</view>
|
|
2786
|
+
</view>
|
|
2787
|
+
</view>
|
|
2788
|
+
</block>
|
|
2789
|
+
|
|
2790
|
+
<!--video类型-->
|
|
2791
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2792
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2793
|
+
</block>
|
|
2794
|
+
|
|
2795
|
+
<!--img类型-->
|
|
2796
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2797
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2798
|
+
</block>
|
|
2799
|
+
|
|
2800
|
+
<!--a类型-->
|
|
2801
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2802
|
+
<navigator
|
|
2803
|
+
wx:if="{{item.attr.no_support}}"
|
|
2804
|
+
data-url="{{item.attr.href}}"
|
|
2805
|
+
bindtap="showNoSupportUrl"
|
|
2806
|
+
url="{{item.attr.href}}"
|
|
2807
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2808
|
+
data-c="{{item.attr.href}}"
|
|
2809
|
+
style="{{item.styleStr}}"
|
|
2810
|
+
>
|
|
2811
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2812
|
+
<template is="wxParse44" data="{{item}}" />
|
|
2813
|
+
</block>
|
|
2814
|
+
</navigator>
|
|
2815
|
+
<navigator
|
|
2816
|
+
wx:else
|
|
2817
|
+
url="{{item.attr.href}}"
|
|
2818
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2819
|
+
data-c="{{item.attr.href}}"
|
|
2820
|
+
style="{{item.styleStr}}"
|
|
2821
|
+
>
|
|
2822
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2823
|
+
<template is="wxParse44" data="{{item}}" />
|
|
2824
|
+
</block>
|
|
2825
|
+
</navigator>
|
|
2826
|
+
</block>
|
|
2827
|
+
|
|
2828
|
+
<!--其他块级标签-->
|
|
2829
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2830
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2831
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2832
|
+
<template is="wxParse44" data="{{item}}" />
|
|
2833
|
+
</block>
|
|
2834
|
+
</view>
|
|
2835
|
+
</block>
|
|
2836
|
+
|
|
2837
|
+
<!--内联标签-->
|
|
2838
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2839
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2840
|
+
<template is="wxParse44" data="{{item}}" />
|
|
2841
|
+
</block>
|
|
2842
|
+
</view>
|
|
2843
|
+
</block>
|
|
2844
|
+
|
|
2845
|
+
<!--判断是否是文本节点-->
|
|
2846
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2847
|
+
<!--如果是,直接进行-->
|
|
2848
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2849
|
+
</block>
|
|
2850
|
+
</template>
|
|
2851
|
+
|
|
2852
|
+
<template name="wxParse44">
|
|
2853
|
+
<!--<template is="wxParse45" data="{{item}}" />-->
|
|
2854
|
+
<!--判断是否是标签节点-->
|
|
2855
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2856
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2857
|
+
<button type="default" size="mini">
|
|
2858
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2859
|
+
<template is="wxParse45" data="{{item}}" />
|
|
2860
|
+
</block>
|
|
2861
|
+
</button>
|
|
2862
|
+
</block>
|
|
2863
|
+
<!--li类型-->
|
|
2864
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2865
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2866
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2867
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2868
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2869
|
+
</view>
|
|
2870
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2871
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2872
|
+
<template is="wxParse45" data="{{item}}" />
|
|
2873
|
+
</block>
|
|
2874
|
+
</view>
|
|
2875
|
+
</view>
|
|
2876
|
+
</view>
|
|
2877
|
+
</block>
|
|
2878
|
+
|
|
2879
|
+
<!--video类型-->
|
|
2880
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2881
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2882
|
+
</block>
|
|
2883
|
+
|
|
2884
|
+
<!--img类型-->
|
|
2885
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2886
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2887
|
+
</block>
|
|
2888
|
+
|
|
2889
|
+
<!--a类型-->
|
|
2890
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2891
|
+
<navigator
|
|
2892
|
+
wx:if="{{item.attr.no_support}}"
|
|
2893
|
+
data-url="{{item.attr.href}}"
|
|
2894
|
+
bindtap="showNoSupportUrl"
|
|
2895
|
+
url="{{item.attr.href}}"
|
|
2896
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2897
|
+
data-c="{{item.attr.href}}"
|
|
2898
|
+
style="{{item.styleStr}}"
|
|
2899
|
+
>
|
|
2900
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2901
|
+
<template is="wxParse45" data="{{item}}" />
|
|
2902
|
+
</block>
|
|
2903
|
+
</navigator>
|
|
2904
|
+
<navigator
|
|
2905
|
+
wx:else
|
|
2906
|
+
url="{{item.attr.href}}"
|
|
2907
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2908
|
+
data-c="{{item.attr.href}}"
|
|
2909
|
+
style="{{item.styleStr}}"
|
|
2910
|
+
>
|
|
2911
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2912
|
+
<template is="wxParse45" data="{{item}}" />
|
|
2913
|
+
</block>
|
|
2914
|
+
</navigator>
|
|
2915
|
+
</block>
|
|
2916
|
+
|
|
2917
|
+
<!--其他块级标签-->
|
|
2918
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
2919
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
2920
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2921
|
+
<template is="wxParse45" data="{{item}}" />
|
|
2922
|
+
</block>
|
|
2923
|
+
</view>
|
|
2924
|
+
</block>
|
|
2925
|
+
|
|
2926
|
+
<!--内联标签-->
|
|
2927
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
2928
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2929
|
+
<template is="wxParse45" data="{{item}}" />
|
|
2930
|
+
</block>
|
|
2931
|
+
</view>
|
|
2932
|
+
</block>
|
|
2933
|
+
|
|
2934
|
+
<!--判断是否是文本节点-->
|
|
2935
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
2936
|
+
<!--如果是,直接进行-->
|
|
2937
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
2938
|
+
</block>
|
|
2939
|
+
</template>
|
|
2940
|
+
|
|
2941
|
+
<template name="wxParse45">
|
|
2942
|
+
<!--<template is="wxParse46" data="{{item}}" />-->
|
|
2943
|
+
<!--判断是否是标签节点-->
|
|
2944
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
2945
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
2946
|
+
<button type="default" size="mini">
|
|
2947
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2948
|
+
<template is="wxParse46" data="{{item}}" />
|
|
2949
|
+
</block>
|
|
2950
|
+
</button>
|
|
2951
|
+
</block>
|
|
2952
|
+
<!--li类型-->
|
|
2953
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
2954
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
2955
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
2956
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2957
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
2958
|
+
</view>
|
|
2959
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
2960
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2961
|
+
<template is="wxParse46" data="{{item}}" />
|
|
2962
|
+
</block>
|
|
2963
|
+
</view>
|
|
2964
|
+
</view>
|
|
2965
|
+
</view>
|
|
2966
|
+
</block>
|
|
2967
|
+
|
|
2968
|
+
<!--video类型-->
|
|
2969
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
2970
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
2971
|
+
</block>
|
|
2972
|
+
|
|
2973
|
+
<!--img类型-->
|
|
2974
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
2975
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
2976
|
+
</block>
|
|
2977
|
+
|
|
2978
|
+
<!--a类型-->
|
|
2979
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
2980
|
+
<navigator
|
|
2981
|
+
wx:if="{{item.attr.no_support}}"
|
|
2982
|
+
data-url="{{item.attr.href}}"
|
|
2983
|
+
bindtap="showNoSupportUrl"
|
|
2984
|
+
url="{{item.attr.href}}"
|
|
2985
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2986
|
+
data-c="{{item.attr.href}}"
|
|
2987
|
+
style="{{item.styleStr}}"
|
|
2988
|
+
>
|
|
2989
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
2990
|
+
<template is="wxParse46" data="{{item}}" />
|
|
2991
|
+
</block>
|
|
2992
|
+
</navigator>
|
|
2993
|
+
<navigator
|
|
2994
|
+
wx:else
|
|
2995
|
+
url="{{item.attr.href}}"
|
|
2996
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
2997
|
+
data-c="{{item.attr.href}}"
|
|
2998
|
+
style="{{item.styleStr}}"
|
|
2999
|
+
>
|
|
3000
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3001
|
+
<template is="wxParse46" data="{{item}}" />
|
|
3002
|
+
</block>
|
|
3003
|
+
</navigator>
|
|
3004
|
+
</block>
|
|
3005
|
+
|
|
3006
|
+
<!--其他块级标签-->
|
|
3007
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3008
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3009
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3010
|
+
<template is="wxParse46" data="{{item}}" />
|
|
3011
|
+
</block>
|
|
3012
|
+
</view>
|
|
3013
|
+
</block>
|
|
3014
|
+
|
|
3015
|
+
<!--内联标签-->
|
|
3016
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3017
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3018
|
+
<template is="wxParse46" data="{{item}}" />
|
|
3019
|
+
</block>
|
|
3020
|
+
</view>
|
|
3021
|
+
</block>
|
|
3022
|
+
|
|
3023
|
+
<!--判断是否是文本节点-->
|
|
3024
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3025
|
+
<!--如果是,直接进行-->
|
|
3026
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3027
|
+
</block>
|
|
3028
|
+
</template>
|
|
3029
|
+
|
|
3030
|
+
<template name="wxParse46">
|
|
3031
|
+
<!--<template is="wxParse47" data="{{item}}" />-->
|
|
3032
|
+
<!--判断是否是标签节点-->
|
|
3033
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
3034
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
3035
|
+
<button type="default" size="mini">
|
|
3036
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3037
|
+
<template is="wxParse47" data="{{item}}" />
|
|
3038
|
+
</block>
|
|
3039
|
+
</button>
|
|
3040
|
+
</block>
|
|
3041
|
+
<!--li类型-->
|
|
3042
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
3043
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
3044
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
3045
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3046
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
3047
|
+
</view>
|
|
3048
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3049
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3050
|
+
<template is="wxParse47" data="{{item}}" />
|
|
3051
|
+
</block>
|
|
3052
|
+
</view>
|
|
3053
|
+
</view>
|
|
3054
|
+
</view>
|
|
3055
|
+
</block>
|
|
3056
|
+
|
|
3057
|
+
<!--video类型-->
|
|
3058
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
3059
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
3060
|
+
</block>
|
|
3061
|
+
|
|
3062
|
+
<!--img类型-->
|
|
3063
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
3064
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
3065
|
+
</block>
|
|
3066
|
+
|
|
3067
|
+
<!--a类型-->
|
|
3068
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
3069
|
+
<navigator
|
|
3070
|
+
wx:if="{{item.attr.no_support}}"
|
|
3071
|
+
data-url="{{item.attr.href}}"
|
|
3072
|
+
bindtap="showNoSupportUrl"
|
|
3073
|
+
url="{{item.attr.href}}"
|
|
3074
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3075
|
+
data-c="{{item.attr.href}}"
|
|
3076
|
+
style="{{item.styleStr}}"
|
|
3077
|
+
>
|
|
3078
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3079
|
+
<template is="wxParse47" data="{{item}}" />
|
|
3080
|
+
</block>
|
|
3081
|
+
</navigator>
|
|
3082
|
+
<navigator
|
|
3083
|
+
wx:else
|
|
3084
|
+
url="{{item.attr.href}}"
|
|
3085
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3086
|
+
data-c="{{item.attr.href}}"
|
|
3087
|
+
style="{{item.styleStr}}"
|
|
3088
|
+
>
|
|
3089
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3090
|
+
<template is="wxParse47" data="{{item}}" />
|
|
3091
|
+
</block>
|
|
3092
|
+
</navigator>
|
|
3093
|
+
</block>
|
|
3094
|
+
|
|
3095
|
+
<!--其他块级标签-->
|
|
3096
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3097
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3098
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3099
|
+
<template is="wxParse47" data="{{item}}" />
|
|
3100
|
+
</block>
|
|
3101
|
+
</view>
|
|
3102
|
+
</block>
|
|
3103
|
+
|
|
3104
|
+
<!--内联标签-->
|
|
3105
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3106
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3107
|
+
<template is="wxParse47" data="{{item}}" />
|
|
3108
|
+
</block>
|
|
3109
|
+
</view>
|
|
3110
|
+
</block>
|
|
3111
|
+
|
|
3112
|
+
<!--判断是否是文本节点-->
|
|
3113
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3114
|
+
<!--如果是,直接进行-->
|
|
3115
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3116
|
+
</block>
|
|
3117
|
+
</template>
|
|
3118
|
+
|
|
3119
|
+
<template name="wxParse47">
|
|
3120
|
+
<!--<template is="wxParse48" data="{{item}}" />-->
|
|
3121
|
+
<!--判断是否是标签节点-->
|
|
3122
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
3123
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
3124
|
+
<button type="default" size="mini">
|
|
3125
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3126
|
+
<template is="wxParse48" data="{{item}}" />
|
|
3127
|
+
</block>
|
|
3128
|
+
</button>
|
|
3129
|
+
</block>
|
|
3130
|
+
<!--li类型-->
|
|
3131
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
3132
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
3133
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
3134
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3135
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
3136
|
+
</view>
|
|
3137
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3138
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3139
|
+
<template is="wxParse48" data="{{item}}" />
|
|
3140
|
+
</block>
|
|
3141
|
+
</view>
|
|
3142
|
+
</view>
|
|
3143
|
+
</view>
|
|
3144
|
+
</block>
|
|
3145
|
+
|
|
3146
|
+
<!--video类型-->
|
|
3147
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
3148
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
3149
|
+
</block>
|
|
3150
|
+
|
|
3151
|
+
<!--img类型-->
|
|
3152
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
3153
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
3154
|
+
</block>
|
|
3155
|
+
|
|
3156
|
+
<!--a类型-->
|
|
3157
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
3158
|
+
<navigator
|
|
3159
|
+
wx:if="{{item.attr.no_support}}"
|
|
3160
|
+
data-url="{{item.attr.href}}"
|
|
3161
|
+
bindtap="showNoSupportUrl"
|
|
3162
|
+
url="{{item.attr.href}}"
|
|
3163
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3164
|
+
data-c="{{item.attr.href}}"
|
|
3165
|
+
style="{{item.styleStr}}"
|
|
3166
|
+
>
|
|
3167
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3168
|
+
<template is="wxParse48" data="{{item}}" />
|
|
3169
|
+
</block>
|
|
3170
|
+
</navigator>
|
|
3171
|
+
<navigator
|
|
3172
|
+
wx:else
|
|
3173
|
+
url="{{item.attr.href}}"
|
|
3174
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3175
|
+
data-c="{{item.attr.href}}"
|
|
3176
|
+
style="{{item.styleStr}}"
|
|
3177
|
+
>
|
|
3178
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3179
|
+
<template is="wxParse48" data="{{item}}" />
|
|
3180
|
+
</block>
|
|
3181
|
+
</navigator>
|
|
3182
|
+
</block>
|
|
3183
|
+
|
|
3184
|
+
<!--其他块级标签-->
|
|
3185
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3186
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3187
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3188
|
+
<template is="wxParse48" data="{{item}}" />
|
|
3189
|
+
</block>
|
|
3190
|
+
</view>
|
|
3191
|
+
</block>
|
|
3192
|
+
|
|
3193
|
+
<!--内联标签-->
|
|
3194
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3195
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3196
|
+
<template is="wxParse48" data="{{item}}" />
|
|
3197
|
+
</block>
|
|
3198
|
+
</view>
|
|
3199
|
+
</block>
|
|
3200
|
+
|
|
3201
|
+
<!--判断是否是文本节点-->
|
|
3202
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3203
|
+
<!--如果是,直接进行-->
|
|
3204
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3205
|
+
</block>
|
|
3206
|
+
</template>
|
|
3207
|
+
|
|
3208
|
+
<template name="wxParse48">
|
|
3209
|
+
<!--<template is="wxParse49" data="{{item}}" />-->
|
|
3210
|
+
<!--判断是否是标签节点-->
|
|
3211
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
3212
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
3213
|
+
<button type="default" size="mini">
|
|
3214
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3215
|
+
<template is="wxParse49" data="{{item}}" />
|
|
3216
|
+
</block>
|
|
3217
|
+
</button>
|
|
3218
|
+
</block>
|
|
3219
|
+
<!--li类型-->
|
|
3220
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
3221
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
3222
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
3223
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3224
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
3225
|
+
</view>
|
|
3226
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3227
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3228
|
+
<template is="wxParse49" data="{{item}}" />
|
|
3229
|
+
</block>
|
|
3230
|
+
</view>
|
|
3231
|
+
</view>
|
|
3232
|
+
</view>
|
|
3233
|
+
</block>
|
|
3234
|
+
|
|
3235
|
+
<!--video类型-->
|
|
3236
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
3237
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
3238
|
+
</block>
|
|
3239
|
+
|
|
3240
|
+
<!--img类型-->
|
|
3241
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
3242
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
3243
|
+
</block>
|
|
3244
|
+
|
|
3245
|
+
<!--a类型-->
|
|
3246
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
3247
|
+
<navigator
|
|
3248
|
+
wx:if="{{item.attr.no_support}}"
|
|
3249
|
+
data-url="{{item.attr.href}}"
|
|
3250
|
+
bindtap="showNoSupportUrl"
|
|
3251
|
+
url="{{item.attr.href}}"
|
|
3252
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3253
|
+
data-c="{{item.attr.href}}"
|
|
3254
|
+
style="{{item.styleStr}}"
|
|
3255
|
+
>
|
|
3256
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3257
|
+
<template is="wxParse49" data="{{item}}" />
|
|
3258
|
+
</block>
|
|
3259
|
+
</navigator>
|
|
3260
|
+
<navigator
|
|
3261
|
+
wx:else
|
|
3262
|
+
url="{{item.attr.href}}"
|
|
3263
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3264
|
+
data-c="{{item.attr.href}}"
|
|
3265
|
+
style="{{item.styleStr}}"
|
|
3266
|
+
>
|
|
3267
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3268
|
+
<template is="wxParse49" data="{{item}}" />
|
|
3269
|
+
</block>
|
|
3270
|
+
</navigator>
|
|
3271
|
+
</block>
|
|
3272
|
+
|
|
3273
|
+
<!--其他块级标签-->
|
|
3274
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3275
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3276
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3277
|
+
<template is="wxParse49" data="{{item}}" />
|
|
3278
|
+
</block>
|
|
3279
|
+
</view>
|
|
3280
|
+
</block>
|
|
3281
|
+
|
|
3282
|
+
<!--内联标签-->
|
|
3283
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3284
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3285
|
+
<template is="wxParse49" data="{{item}}" />
|
|
3286
|
+
</block>
|
|
3287
|
+
</view>
|
|
3288
|
+
</block>
|
|
3289
|
+
|
|
3290
|
+
<!--判断是否是文本节点-->
|
|
3291
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3292
|
+
<!--如果是,直接进行-->
|
|
3293
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3294
|
+
</block>
|
|
3295
|
+
</template>
|
|
3296
|
+
|
|
3297
|
+
<template name="wxParse49">
|
|
3298
|
+
<!--<template is="wxParse50" data="{{item}}" />-->
|
|
3299
|
+
<!--判断是否是标签节点-->
|
|
3300
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
3301
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
3302
|
+
<button type="default" size="mini">
|
|
3303
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3304
|
+
<template is="wxParse50" data="{{item}}" />
|
|
3305
|
+
</block>
|
|
3306
|
+
</button>
|
|
3307
|
+
</block>
|
|
3308
|
+
<!--li类型-->
|
|
3309
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
3310
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
3311
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
3312
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3313
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
3314
|
+
</view>
|
|
3315
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3316
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3317
|
+
<template is="wxParse50" data="{{item}}" />
|
|
3318
|
+
</block>
|
|
3319
|
+
</view>
|
|
3320
|
+
</view>
|
|
3321
|
+
</view>
|
|
3322
|
+
</block>
|
|
3323
|
+
|
|
3324
|
+
<!--video类型-->
|
|
3325
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
3326
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
3327
|
+
</block>
|
|
3328
|
+
|
|
3329
|
+
<!--img类型-->
|
|
3330
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
3331
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
3332
|
+
</block>
|
|
3333
|
+
|
|
3334
|
+
<!--a类型-->
|
|
3335
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
3336
|
+
<navigator
|
|
3337
|
+
wx:if="{{item.attr.no_support}}"
|
|
3338
|
+
data-url="{{item.attr.href}}"
|
|
3339
|
+
bindtap="showNoSupportUrl"
|
|
3340
|
+
url="{{item.attr.href}}"
|
|
3341
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3342
|
+
data-c="{{item.attr.href}}"
|
|
3343
|
+
style="{{item.styleStr}}"
|
|
3344
|
+
>
|
|
3345
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3346
|
+
<template is="wxParse50" data="{{item}}" />
|
|
3347
|
+
</block>
|
|
3348
|
+
</navigator>
|
|
3349
|
+
<navigator
|
|
3350
|
+
wx:else
|
|
3351
|
+
url="{{item.attr.href}}"
|
|
3352
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3353
|
+
data-c="{{item.attr.href}}"
|
|
3354
|
+
style="{{item.styleStr}}"
|
|
3355
|
+
>
|
|
3356
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3357
|
+
<template is="wxParse50" data="{{item}}" />
|
|
3358
|
+
</block>
|
|
3359
|
+
</navigator>
|
|
3360
|
+
</block>
|
|
3361
|
+
|
|
3362
|
+
<!--其他块级标签-->
|
|
3363
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3364
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3365
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3366
|
+
<template is="wxParse50" data="{{item}}" />
|
|
3367
|
+
</block>
|
|
3368
|
+
</view>
|
|
3369
|
+
</block>
|
|
3370
|
+
|
|
3371
|
+
<!--内联标签-->
|
|
3372
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3373
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3374
|
+
<template is="wxParse50" data="{{item}}" />
|
|
3375
|
+
</block>
|
|
3376
|
+
</view>
|
|
3377
|
+
</block>
|
|
3378
|
+
|
|
3379
|
+
<!--判断是否是文本节点-->
|
|
3380
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3381
|
+
<!--如果是,直接进行-->
|
|
3382
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3383
|
+
</block>
|
|
3384
|
+
</template>
|
|
3385
|
+
|
|
3386
|
+
<template name="wxParse50">
|
|
3387
|
+
<!--<template is="wxParse51" data="{{item}}" />-->
|
|
3388
|
+
<!--判断是否是标签节点-->
|
|
3389
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
3390
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
3391
|
+
<button type="default" size="mini">
|
|
3392
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3393
|
+
<template is="wxParse51" data="{{item}}" />
|
|
3394
|
+
</block>
|
|
3395
|
+
</button>
|
|
3396
|
+
</block>
|
|
3397
|
+
<!--li类型-->
|
|
3398
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
3399
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
3400
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
3401
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3402
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
3403
|
+
</view>
|
|
3404
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3405
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3406
|
+
<template is="wxParse51" data="{{item}}" />
|
|
3407
|
+
</block>
|
|
3408
|
+
</view>
|
|
3409
|
+
</view>
|
|
3410
|
+
</view>
|
|
3411
|
+
</block>
|
|
3412
|
+
|
|
3413
|
+
<!--video类型-->
|
|
3414
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
3415
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
3416
|
+
</block>
|
|
3417
|
+
|
|
3418
|
+
<!--img类型-->
|
|
3419
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
3420
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
3421
|
+
</block>
|
|
3422
|
+
|
|
3423
|
+
<!--a类型-->
|
|
3424
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
3425
|
+
<navigator
|
|
3426
|
+
wx:if="{{item.attr.no_support}}"
|
|
3427
|
+
data-url="{{item.attr.href}}"
|
|
3428
|
+
bindtap="showNoSupportUrl"
|
|
3429
|
+
url="{{item.attr.href}}"
|
|
3430
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3431
|
+
data-c="{{item.attr.href}}"
|
|
3432
|
+
style="{{item.styleStr}}"
|
|
3433
|
+
>
|
|
3434
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3435
|
+
<template is="wxParse51" data="{{item}}" />
|
|
3436
|
+
</block>
|
|
3437
|
+
</navigator>
|
|
3438
|
+
<navigator
|
|
3439
|
+
wx:else
|
|
3440
|
+
url="{{item.attr.href}}"
|
|
3441
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3442
|
+
data-c="{{item.attr.href}}"
|
|
3443
|
+
style="{{item.styleStr}}"
|
|
3444
|
+
>
|
|
3445
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3446
|
+
<template is="wxParse51" data="{{item}}" />
|
|
3447
|
+
</block>
|
|
3448
|
+
</navigator>
|
|
3449
|
+
</block>
|
|
3450
|
+
|
|
3451
|
+
<!--其他块级标签-->
|
|
3452
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3453
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3454
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3455
|
+
<template is="wxParse51" data="{{item}}" />
|
|
3456
|
+
</block>
|
|
3457
|
+
</view>
|
|
3458
|
+
</block>
|
|
3459
|
+
|
|
3460
|
+
<!--内联标签-->
|
|
3461
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3462
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3463
|
+
<template is="wxParse51" data="{{item}}" />
|
|
3464
|
+
</block>
|
|
3465
|
+
</view>
|
|
3466
|
+
</block>
|
|
3467
|
+
|
|
3468
|
+
<!--判断是否是文本节点-->
|
|
3469
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3470
|
+
<!--如果是,直接进行-->
|
|
3471
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3472
|
+
</block>
|
|
3473
|
+
</template>
|
|
3474
|
+
|
|
3475
|
+
<!--结束-->
|
|
3476
|
+
<template name="wxParse51">
|
|
3477
|
+
<!--<template is="wxParse12" data="{{item}}" />-->
|
|
3478
|
+
<!--判断是否是标签节点-->
|
|
3479
|
+
<block wx:if="{{item.node == 'element'}}">
|
|
3480
|
+
<block wx:if="{{item.tag == 'button'}}">
|
|
3481
|
+
<button type="default" size="mini">
|
|
3482
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3483
|
+
<template is="wxParse12" data="{{item}}" />
|
|
3484
|
+
</block>
|
|
3485
|
+
</button>
|
|
3486
|
+
</block>
|
|
3487
|
+
<!--li类型-->
|
|
3488
|
+
<block wx:elif="{{item.tag == 'li'}}">
|
|
3489
|
+
<view class="{{item.classStr}} wxParse-li">
|
|
3490
|
+
<view class="{{item.classStr}} wxParse-li-inner">
|
|
3491
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3492
|
+
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
|
3493
|
+
</view>
|
|
3494
|
+
<view class="{{item.classStr}} wxParse-li-text">
|
|
3495
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3496
|
+
<template is="wxParse12" data="{{item}}" />
|
|
3497
|
+
</block>
|
|
3498
|
+
</view>
|
|
3499
|
+
</view>
|
|
3500
|
+
</view>
|
|
3501
|
+
</block>
|
|
3502
|
+
|
|
3503
|
+
<!--video类型-->
|
|
3504
|
+
<block wx:elif="{{item.tag == 'video'}}">
|
|
3505
|
+
<template is="wxParseVideo" data="{{item}}" />
|
|
3506
|
+
</block>
|
|
3507
|
+
|
|
3508
|
+
<!--img类型-->
|
|
3509
|
+
<block wx:elif="{{item.tag == 'img'}}">
|
|
3510
|
+
<template is="wxParseImg" data="{{item}}" />
|
|
3511
|
+
</block>
|
|
3512
|
+
|
|
3513
|
+
<!--a类型-->
|
|
3514
|
+
<block wx:elif="{{item.tag == 'a'}}">
|
|
3515
|
+
<navigator
|
|
3516
|
+
wx:if="{{item.attr.no_support}}"
|
|
3517
|
+
data-url="{{item.attr.href}}"
|
|
3518
|
+
bindtap="showNoSupportUrl"
|
|
3519
|
+
url="{{item.attr.href}}"
|
|
3520
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3521
|
+
data-c="{{item.attr.href}}"
|
|
3522
|
+
style="{{item.styleStr}}"
|
|
3523
|
+
>
|
|
3524
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3525
|
+
<template is="wxParse12" data="{{item}}" />
|
|
3526
|
+
</block>
|
|
3527
|
+
</navigator>
|
|
3528
|
+
<navigator
|
|
3529
|
+
wx:else
|
|
3530
|
+
url="{{item.attr.href}}"
|
|
3531
|
+
class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}"
|
|
3532
|
+
data-c="{{item.attr.href}}"
|
|
3533
|
+
style="{{item.styleStr}}"
|
|
3534
|
+
>
|
|
3535
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3536
|
+
<template is="wxParse12" data="{{item}}" />
|
|
3537
|
+
</block>
|
|
3538
|
+
</navigator>
|
|
3539
|
+
</block>
|
|
3540
|
+
|
|
3541
|
+
<!--其他块级标签-->
|
|
3542
|
+
<block wx:elif="{{item.tagType == 'block'}}">
|
|
3543
|
+
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
3544
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3545
|
+
<template is="wxParse12" data="{{item}}" />
|
|
3546
|
+
</block>
|
|
3547
|
+
</view>
|
|
3548
|
+
</block>
|
|
3549
|
+
|
|
3550
|
+
<!--内联标签-->
|
|
3551
|
+
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
3552
|
+
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
|
3553
|
+
<template is="wxParse12" data="{{item}}" />
|
|
3554
|
+
</block>
|
|
3555
|
+
</view>
|
|
3556
|
+
</block>
|
|
3557
|
+
|
|
3558
|
+
<!--判断是否是文本节点-->
|
|
3559
|
+
<block wx:elif="{{item.node == 'text'}}">
|
|
3560
|
+
<!--如果是,直接进行-->
|
|
3561
|
+
<template is="WxEmojiView" data="{{item}}" />
|
|
3562
|
+
</block>
|
|
3563
|
+
</template>
|