<!--packageE/membertool/membertool.wxml-->
<wxs module="util">
	var inOf = function(val, str) { if (val) {return val.indexOf(str) }};
	module.exports.inOf = inOf;
</wxs>
<view class="html-box" wx:if="{{datas.show_list.length > 0 || datas.list.length > 0}}"  style="background-color: {{datas.preview_color.color}};background-image: url({{datas.preview_color.isColor == 2 ? datas.preview_color.image : ''}});">
	<view class="tool">
		<view class="title" catchtap="onChange">
			<view class="spare"></view>
			<view class="h3">{{datas.title}}</view>
			<icon style="flex: 1;text-align: right;color: #c9c9c9;font-size: 16px;" wx:if="{{datas.list_style == '2' && !activeNames}}" class="iconfont icon-member-top"></icon>
		</view>

		<view class="tool-box ul" wx:if="{{datas.list_style == '1'}}" style="color:{{datas.text_color}};">
			<view class="li" wx:for="{{datas.show_list}}" wx:for-item="icon" wx:key="{{icon.url}}" data-item="{{icon}}" catchtap="pluginGoto" wx:if="{{util.inOf(notShow,icon.url) < 0}}">
				<!--<image class="diy-img" src="{{icon.image || emptyImage}}" mode='scaleToFill' binderror="errorFunction" data-index='{{index}}'></image>-->
				 <icon class="iconfont {{icon.class}}" style="font-size: 30px;"></icon>
				<view>{{icon.title}}</view>
			</view>
			<view class="li" wx:for="{{datas.list}}" wx:key="index" data-item="{{item}}" catchtap="gotoUrl">
				<image class="diy-img" src="{{item.image || emptyImage}}" mode='scaleToFill'></image>
				<view style="margin-top: 10px">{{item.text}}</view>
			</view>
		</view>

		<view class="tool-boxlis ul" wx:if="{{datas.list_style == '2' && activeNames}}" style="color:{{datas.text_color}};">
			<view class="li" wx:for="{{datas.show_list}}" wx:for-item="icon" wx:key="{{icon.url}}" data-item="{{icon}}" catchtap="pluginGoto"  wx:if="{{util.inOf(notShow,icon.url) < 0}}">
				<view class="lis">
					<image class="diy-img" src="{{icon.image || emptyImage}}" mode='scaleToFill' binderror="errorFunction" data-index='{{index}}'></image>
					<!-- <icon class="iconfont {{icon.class}}" style="font-size: 28px;"></icon> -->
					<view>{{icon.title}}</view>
				</view>
				<icon class="iconfont icon-member_right"></icon>
			</view>
			<view class="li" wx:for="{{datas.list}}" wx:key="index" data-item="{{item}}" catchtap="gotoUrl">
				<view class="lis">
					<image class="diy-img" src="{{item.image || emptyImage}}" mode='scaleToFill'></image>
					<view>{{item.text}}</view>
				</view>
				<icon class="iconfont icon-member_right"></icon>
			</view>
		</view>
	</view>
</view>
