<!--component/picNav/picNav.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view class="pic-nav">
	<view
	 wx:for="{{newPicNav}}"
	 wx:key="{{index}}"
	 wx:for-item="item"
	 class="nav-block"
	>
	<!-- 当前页面需要授权 且未授权-->
		<view wx:if="{{item.needAuth}}">
			<button
			 wx:if="{{!currentHasUserInfo}}"
			 bindgetuserinfo="_getUserInfo"
			 data-jflag="false"
			 open-type='getUserInfo'
			 class='btn btn-primary btn-vip-code'
			 hover-class="btn-hover"
			 style="height:100%"
			>
				<image
				 class="pic-img"
				 style="width: {{100}}%;"
				 src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
				 data-appid="{{item.link.appid}}"
				 data-path="{{item.link.url}}"
				 data-link="{{item.link}}"
				 data-item="{{item}}"
				 bindload="imageLoad"
				 bindtap='preview'
         mode="widthFix"
				/>
			</button>

			<image
			 wx:if="{{currentHasUserInfo}}"
			 class="pic-img"
			 style="width: {{100}}%;"
			 src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
			 data-appid="{{item.link.appid}}"
			 data-path="{{item.link.url}}"
			 data-link="{{item.link}}"
			 data-item="{{item}}"
			 bindload="imageLoad"
			 bindtap='preview'
       mode="widthFix"

			/>
		</view>
		<view wx:else>
			<image
			 class="pic-img"
			 style="width: {{100}}%;"
			 src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
			 data-appid="{{item.link.appid}}"
			 data-path="{{item.link.url}}"
			 data-link="{{item.link}}"
			 data-item="{{item}}"
			 bindload="imageLoad"
			 bindtap='preview'
       mode="widthFix"
			/>
		</view> 
	</view>
</view>

