wxParse.wxml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <template name="wxParse11">
  2. <block wx:if="{{item.node=='element'}}">
  3. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  4. <template is="wxParse12" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  5. </button>
  6. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  7. <view class="{{item.classStr}} wxParse-li-inner">
  8. <view class="{{item.classStr}} wxParse-li-text">
  9. <view class="{{item.classStr}} wxParse-li-circle"></view>
  10. </view>
  11. <view class="{{item.classStr}} wxParse-li-text">
  12. <template is="wxParse12" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  13. </view>
  14. </view>
  15. </view>
  16. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  17. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  18. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  19. <template is="wxParse12" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  20. </view>
  21. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  22. <template is="wxParse12" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  23. </view>
  24. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  25. <template is="wxParse12" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  26. </view>
  27. </block>
  28. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  29. </template>
  30. <template name="wxParse10">
  31. <block wx:if="{{item.node=='element'}}">
  32. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  33. <template is="wxParse11" data="{{item:item}}" wx:for="{{item.nodes}}"></template>
  34. </button>
  35. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  36. <view class="{{item.classStr}} wxParse-li-inner">
  37. <view class="{{item.classStr}} wxParse-li-text">
  38. <view class="{{item.classStr}} wxParse-li-circle"></view>
  39. </view>
  40. <view class="{{item.classStr}} wxParse-li-text">
  41. <template is="wxParse11" data="{{item:item}}" wx:for="{{item.nodes}}"></template>
  42. </view>
  43. </view>
  44. </view>
  45. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  46. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  47. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  48. <template is="wxParse11" data="{{item:item}}" wx:for="{{item.nodes}}" ></template>
  49. </view>
  50. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  51. <template is="wxParse11" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  52. </view>
  53. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  54. <template is="wxParse11" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  55. </view>
  56. </block>
  57. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  58. </template>
  59. <template name="wxParse9">
  60. <block wx:if="{{item.node=='element'}}">
  61. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  62. <template is="wxParse10" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  63. </button>
  64. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  65. <view class="{{item.classStr}} wxParse-li-inner">
  66. <view class="{{item.classStr}} wxParse-li-text">
  67. <view class="{{item.classStr}} wxParse-li-circle"></view>
  68. </view>
  69. <view class="{{item.classStr}} wxParse-li-text">
  70. <template is="wxParse10" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  71. </view>
  72. </view>
  73. </view>
  74. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  75. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  76. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  77. <template is="wxParse10" data="{{item:item}}" wx:for="{{item.nodes}}"></template>
  78. </view>
  79. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  80. <template is="wxParse10" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  81. </view>
  82. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  83. <template is="wxParse10" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  84. </view>
  85. </block>
  86. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  87. </template>
  88. <template name="wxParse8">
  89. <block wx:if="{{item.node=='element'}}">
  90. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  91. <template is="wxParse9" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  92. </button>
  93. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  94. <view class="{{item.classStr}} wxParse-li-inner">
  95. <view class="{{item.classStr}} wxParse-li-text">
  96. <view class="{{item.classStr}} wxParse-li-circle"></view>
  97. </view>
  98. <view class="{{item.classStr}} wxParse-li-text">
  99. <template is="wxParse9" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  100. </view>
  101. </view>
  102. </view>
  103. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  104. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  105. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  106. <template is="wxParse9" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  107. </view>
  108. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  109. <template is="wxParse9" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  110. </view>
  111. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  112. <template is="wxParse9" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  113. </view>
  114. </block>
  115. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  116. </template>
  117. <template name="wxParse7">
  118. <block wx:if="{{item.node=='element'}}">
  119. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  120. <template is="wxParse8" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  121. </button>
  122. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  123. <view class="{{item.classStr}} wxParse-li-inner">
  124. <view class="{{item.classStr}} wxParse-li-text">
  125. <view class="{{item.classStr}} wxParse-li-circle"></view>
  126. </view>
  127. <view class="{{item.classStr}} wxParse-li-text">
  128. <template is="wxParse8" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  129. </view>
  130. </view>
  131. </view>
  132. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  133. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  134. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  135. <template is="wxParse8" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  136. </view>
  137. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  138. <template is="wxParse8" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  139. </view>
  140. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  141. <template is="wxParse8" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  142. </view>
  143. </block>
  144. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  145. </template>
  146. <template name="wxParse6">
  147. <block wx:if="{{item.node=='element'}}">
  148. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  149. <template is="wxParse7" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  150. </button>
  151. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  152. <view class="{{item.classStr}} wxParse-li-inner">
  153. <view class="{{item.classStr}} wxParse-li-text">
  154. <view class="{{item.classStr}} wxParse-li-circle"></view>
  155. </view>
  156. <view class="{{item.classStr}} wxParse-li-text">
  157. <template is="wxParse7" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  158. </view>
  159. </view>
  160. </view>
  161. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  162. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  163. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  164. <template is="wxParse7" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  165. </view>
  166. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  167. <template is="wxParse7" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  168. </view>
  169. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  170. <template is="wxParse7" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  171. </view>
  172. </block>
  173. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  174. </template>
  175. <template name="wxParse5">
  176. <block wx:if="{{item.node=='element'}}">
  177. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  178. <template is="wxParse6" data="{{item:item}}" wx:for="{{item.nodes}}"></template>
  179. </button>
  180. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  181. <view class="{{item.classStr}} wxParse-li-inner">
  182. <view class="{{item.classStr}} wxParse-li-text">
  183. <view class="{{item.classStr}} wxParse-li-circle"></view>
  184. </view>
  185. <view class="{{item.classStr}} wxParse-li-text">
  186. <template is="wxParse6" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  187. </view>
  188. </view>
  189. </view>
  190. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  191. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  192. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  193. <template is="wxParse6" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  194. </view>
  195. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  196. <template is="wxParse6" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  197. </view>
  198. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  199. <template is="wxParse6" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  200. </view>
  201. </block>
  202. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  203. </template>
  204. <template name="wxParse4">
  205. <block wx:if="{{item.node=='element'}}">
  206. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  207. <template is="wxParse5" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  208. </button>
  209. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  210. <view class="{{item.classStr}} wxParse-li-inner">
  211. <view class="{{item.classStr}} wxParse-li-text">
  212. <view class="{{item.classStr}} wxParse-li-circle"></view>
  213. </view>
  214. <view class="{{item.classStr}} wxParse-li-text">
  215. <template is="wxParse5" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  216. </view>
  217. </view>
  218. </view>
  219. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  220. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  221. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  222. <template is="wxParse5" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  223. </view>
  224. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  225. <template is="wxParse5" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  226. </view>
  227. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  228. <template is="wxParse5" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  229. </view>
  230. </block>
  231. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  232. </template>
  233. <template name="wxParse3">
  234. <block wx:if="{{item.node=='element'}}">
  235. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  236. <template is="wxParse4" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  237. </button>
  238. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  239. <view class="{{item.classStr}} wxParse-li-inner">
  240. <view class="{{item.classStr}} wxParse-li-text">
  241. <view class="{{item.classStr}} wxParse-li-circle"></view>
  242. </view>
  243. <view class="{{item.classStr}} wxParse-li-text">
  244. <template is="wxParse4" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  245. </view>
  246. </view>
  247. </view>
  248. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  249. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  250. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  251. <template is="wxParse4" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  252. </view>
  253. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  254. <template is="wxParse4" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  255. </view>
  256. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  257. <template is="wxParse4" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  258. </view>
  259. </block>
  260. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  261. </template>
  262. <template name="wxParse2">
  263. <block wx:if="{{item.node=='element'}}">
  264. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  265. <template is="wxParse3" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  266. </button>
  267. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  268. <view class="{{item.classStr}} wxParse-li-inner">
  269. <view class="{{item.classStr}} wxParse-li-text">
  270. <view class="{{item.classStr}} wxParse-li-circle"></view>
  271. </view>
  272. <view class="{{item.classStr}} wxParse-li-text">
  273. <template is="wxParse3" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  274. </view>
  275. </view>
  276. </view>
  277. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  278. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  279. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-goods="{{item.attr.goods}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  280. <template is="wxParse3" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  281. </view>
  282. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  283. <template is="wxParse3" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  284. </view>
  285. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  286. <template is="wxParse3" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  287. </view>
  288. </block>
  289. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  290. </template>
  291. <template name="wxParse1">
  292. <block wx:if="{{item.node=='element'}}">
  293. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  294. <template is="wxParse2" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  295. </button>
  296. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  297. <view class="{{item.classStr}} wxParse-li-inner">
  298. <view class="{{item.classStr}} wxParse-li-text">
  299. <view class="{{item.classStr}} wxParse-li-circle"></view>
  300. </view>
  301. <view class="{{item.classStr}} wxParse-li-text">
  302. <template is="wxParse2" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  303. </view>
  304. </view>
  305. </view>
  306. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  307. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  308. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-goods="{{item.attr.goods}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  309. <template is="wxParse2" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  310. </view>
  311. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  312. <template is="wxParse2" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  313. </view>
  314. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  315. <template is="wxParse2" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  316. </view>
  317. </block>
  318. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  319. </template>
  320. <template name="wxParse0">
  321. <block wx:if="{{item.node=='element'}}">
  322. <button size="mini" type="default" wx:if="{{item.tag=='button'}}">
  323. <template is="wxParse1" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  324. </button>
  325. <view class="{{item.classStr}} wxParse-li" style="{{item.styleStr}}" wx:elif="{{item.tag=='li'}}">
  326. <view class="{{item.classStr}} wxParse-li-inner">
  327. <view class="{{item.classStr}} wxParse-li-text">
  328. <view class="{{item.classStr}} wxParse-li-circle"></view>
  329. </view>
  330. <view class="{{item.classStr}} wxParse-li-text">
  331. <template is="wxParse1" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  332. </view>
  333. </view>
  334. </view>
  335. <template is="wxParseVideo" data="{{item:item}}" wx:elif="{{item.tag=='video'}}"></template>
  336. <template is="wxParseImg" data="{{item:item}}" wx:elif="{{item.tag=='img'}}"></template>
  337. <view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='a'}}">
  338. <template is="wxParse1" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  339. </view>
  340. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tag=='table'}}">
  341. <template is="wxParse1" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  342. </view>
  343. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}" wx:elif="{{item.tagType=='block'}}">
  344. <template is="wxParse1" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  345. </view>
  346. <view class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}" wx:else>
  347. <template is="wxParse1" data="{{item:item}}" wx:for="{{item.nodes}}" wx:key="{{index}}" ></template>
  348. </view>
  349. </block>
  350. <template is="WxEmojiView" data="{{item:item}}" wx:elif="{{item.node=='text'}}"></template>
  351. </template>
  352. <template name="wxParse">
  353. <template is="wxParse0" data="{{item:item}}" wx:for="{{wxParseData}}" wx:key="{{index}}" ></template>
  354. </template>
  355. <template name="WxEmojiView">
  356. <view class="WxEmojiView wxParse-inline" style="{{item.styleStr}}">
  357. <block wx:for="{{item.textArray}}">
  358. <block wx:if="{{item.node=='text'}}">{{item.text}}</block>
  359. <image class="wxEmoji" src="{{item.baseSrc}}{{item.text}}" wx:elif="{{item.node=='element'}}"></image>
  360. </block>
  361. </view>
  362. </template>
  363. <template name="wxParseImg">
  364. <image bindload="wxParseImgLoad" bindtap="wxParseImgTap" class="{{item.classStr}} wxParse-{{item.tag}}" data-from="{{item.from}}" data-idx="{{item.imgIndex}}" data-src="{{item.attr.src}}" mode="{{item.attr.mode?item.attr.mode:'widthFix'}}" src="{{item.attr.src}}" style="width:{{item.width}}px;"></image>
  365. </template>
  366. <template name="wxParseVideo">
  367. <view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
  368. <video class="{{item.classStr}} wxParse-{{item.tag}}-video" src="{{item.attr.src}}"></video>
  369. </view>
  370. </template>