<!--pages/menu/menu.wxml-->
<view class="menu">
	<view class="ul" wx:if="{{data != ''}}" style="{{ 'background:'+(params.bgcolor?params.bgcolor:'')+';' }}">
		<view class="li" wx:key="index" wx:for="{{data}}" wx:for-index="index" wx:for-item="item" wx:if="{{(params.num=='25%')? (index==4?false:true):true}}">
			<view class="a" catchtap="gohrefurl" data-item="{{item}}" data-url="{{item.hrefurl}}">
				<image wx:if="{{item.imgurl}}" src="{{item.imgurl}}" mode='aspectFill' style="{{'border-radius:'+(params.style?params.style:'')+';'}} {{'width:'+((params.num=='20%')?'13vw':'17vw')+';'}} {{'height:'+((params.num=='20%')?'13vw':'17vw')+';'}}" />
				<image wx:if="{{!item.imgurl}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/img_default.png" mode='aspectFill' style="{{'border-radius:'+(params.style?params.style:'')+';'}} {{'width:'+((params.num=='20%')?'13vw':'17vw')+';'}} {{'height:'+((params.num=='20%')?'13vw':'17vw')+';'}}" />
				<view class="h5" style="{{'color:'+(item.color?item.color:'')+';font-weight:'+(params.fontweight?params.fontweight:'')+';font-size:'+(params.fontsize?params.fontsize:'')+';'}}">{{item.text}}</view>
			</view>
		</view>
	</view>
</view>
