|
@@ -963,6 +963,336 @@
|
|
|
<template is="WxTextView" data="{{item}}" />
|
|
<template is="WxTextView" data="{{item}}" />
|
|
|
</block>
|
|
</block>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+<template name="octoParse14">
|
|
|
|
|
+ <!-- <template is="octoParse14" data="{{item}}" /> -->
|
|
|
|
|
+ <!-- 判断是否是标签节点 -->
|
|
|
|
|
+ <block wx:if="{{item.node == 'element'}}">
|
|
|
|
|
+ <block wx:if="{{item.tag == 'button'}}">
|
|
|
|
|
+ <button type="default" size="mini">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- li类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'li'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-li" style="{{item.styleStr}}">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-inner">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-circle"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- video类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'video'}}">
|
|
|
|
|
+ <template is="octoParseVideo" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- img类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'img'}}">
|
|
|
|
|
+ <template is="octoParseImg" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- a类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'a'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="octoParse-inline {{item.classStr}} octoParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'br'}}">
|
|
|
|
|
+ <template is="octoParseBr"></template>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 其他块级标签 -->
|
|
|
|
|
+ <block wx:elif="{{item.tagType == 'block'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 内联标签 -->
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" wx:else class="{{item.classStr}} octoParse-{{item.tag}} octoParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 判断是否是文本节点 -->
|
|
|
|
|
+ <block wx:elif="{{item.node == 'text'}}">
|
|
|
|
|
+ <!-- 如果是,直接进行 -->
|
|
|
|
|
+ <template is="WxTextView" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+</template>
|
|
|
|
|
+<template name="octoParse15">
|
|
|
|
|
+ <!-- <template is="octoParse14" data="{{item}}" /> -->
|
|
|
|
|
+ <!-- 判断是否是标签节点 -->
|
|
|
|
|
+ <block wx:if="{{item.node == 'element'}}">
|
|
|
|
|
+ <block wx:if="{{item.tag == 'button'}}">
|
|
|
|
|
+ <button type="default" size="mini">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- li类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'li'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-li" style="{{item.styleStr}}">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-inner">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-circle"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- video类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'video'}}">
|
|
|
|
|
+ <template is="octoParseVideo" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- img类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'img'}}">
|
|
|
|
|
+ <template is="octoParseImg" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- a类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'a'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="octoParse-inline {{item.classStr}} octoParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'br'}}">
|
|
|
|
|
+ <template is="octoParseBr"></template>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 其他块级标签 -->
|
|
|
|
|
+ <block wx:elif="{{item.tagType == 'block'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 内联标签 -->
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" wx:else class="{{item.classStr}} octoParse-{{item.tag}} octoParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 判断是否是文本节点 -->
|
|
|
|
|
+ <block wx:elif="{{item.node == 'text'}}">
|
|
|
|
|
+ <!-- 如果是,直接进行 -->
|
|
|
|
|
+ <template is="WxTextView" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+</template>
|
|
|
|
|
+<template name="octoParse16">
|
|
|
|
|
+ <!-- <template is="octoParse14" data="{{item}}" /> -->
|
|
|
|
|
+ <!-- 判断是否是标签节点 -->
|
|
|
|
|
+ <block wx:if="{{item.node == 'element'}}">
|
|
|
|
|
+ <block wx:if="{{item.tag == 'button'}}">
|
|
|
|
|
+ <button type="default" size="mini">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- li类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'li'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-li" style="{{item.styleStr}}">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-inner">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-circle"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- video类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'video'}}">
|
|
|
|
|
+ <template is="octoParseVideo" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- img类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'img'}}">
|
|
|
|
|
+ <template is="octoParseImg" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- a类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'a'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="octoParse-inline {{item.classStr}} octoParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'br'}}">
|
|
|
|
|
+ <template is="octoParseBr"></template>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 其他块级标签 -->
|
|
|
|
|
+ <block wx:elif="{{item.tagType == 'block'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 内联标签 -->
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" wx:else class="{{item.classStr}} octoParse-{{item.tag}} octoParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 判断是否是文本节点 -->
|
|
|
|
|
+ <block wx:elif="{{item.node == 'text'}}">
|
|
|
|
|
+ <!-- 如果是,直接进行 -->
|
|
|
|
|
+ <template is="WxTextView" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+</template>
|
|
|
|
|
+<template name="octoParse17">
|
|
|
|
|
+ <!-- <template is="octoParse14" data="{{item}}" /> -->
|
|
|
|
|
+ <!-- 判断是否是标签节点 -->
|
|
|
|
|
+ <block wx:if="{{item.node == 'element'}}">
|
|
|
|
|
+ <block wx:if="{{item.tag == 'button'}}">
|
|
|
|
|
+ <button type="default" size="mini">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- li类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'li'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-li" style="{{item.styleStr}}">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-inner">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-circle"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- video类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'video'}}">
|
|
|
|
|
+ <template is="octoParseVideo" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- img类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'img'}}">
|
|
|
|
|
+ <template is="octoParseImg" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- a类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'a'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="octoParse-inline {{item.classStr}} octoParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'br'}}">
|
|
|
|
|
+ <template is="octoParseBr"></template>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 其他块级标签 -->
|
|
|
|
|
+ <block wx:elif="{{item.tagType == 'block'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 内联标签 -->
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" wx:else class="{{item.classStr}} octoParse-{{item.tag}} octoParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 判断是否是文本节点 -->
|
|
|
|
|
+ <block wx:elif="{{item.node == 'text'}}">
|
|
|
|
|
+ <!-- 如果是,直接进行 -->
|
|
|
|
|
+ <template is="WxTextView" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+</template>
|
|
|
|
|
+<template name="octoParse18">
|
|
|
|
|
+ <!-- <template is="octoParse14" data="{{item}}" /> -->
|
|
|
|
|
+ <!-- 判断是否是标签节点 -->
|
|
|
|
|
+ <block wx:if="{{item.node == 'element'}}">
|
|
|
|
|
+ <block wx:if="{{item.tag == 'button'}}">
|
|
|
|
|
+ <button type="default" size="mini">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- li类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'li'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-li" style="{{item.styleStr}}">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-inner">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-circle"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="{{item.classStr}} octoParse-li-text">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- video类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'video'}}">
|
|
|
|
|
+ <template is="octoParseVideo" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- img类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'img'}}">
|
|
|
|
|
+ <template is="octoParseImg" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- a类型 -->
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'a'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="octoParse-inline {{item.classStr}} octoParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block wx:elif="{{item.tag == 'br'}}">
|
|
|
|
|
+ <template is="octoParseBr"></template>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 其他块级标签 -->
|
|
|
|
|
+ <block wx:elif="{{item.tagType == 'block'}}">
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" class="{{item.classStr}} octoParse-{{item.tag}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 内联标签 -->
|
|
|
|
|
+ <view data-tag="{{item.tag}}" data-class="{{item.classStr}}" data-id="{{item.attr.id}}" wx:else class="{{item.classStr}} octoParse-{{item.tag}} octoParse-{{item.tagType}}" style="{{item.styleStr}}">
|
|
|
|
|
+ <block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="index">
|
|
|
|
|
+ <template is="octoParse14" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!-- 判断是否是文本节点 -->
|
|
|
|
|
+ <block wx:elif="{{item.node == 'text'}}">
|
|
|
|
|
+ <!-- 如果是,直接进行 -->
|
|
|
|
|
+ <template is="WxTextView" data="{{item}}" />
|
|
|
|
|
+ </block>
|
|
|
|
|
+</template>
|
|
|
<view class="octoParse">
|
|
<view class="octoParse">
|
|
|
<template is="octoParse" data="{{nodes:htmlData}}" />
|
|
<template is="octoParse" data="{{nodes:htmlData}}" />
|
|
|
</view>
|
|
</view>
|