<!--
/*
 * 
 * WordPres版微信小程序
 * author: jianbo
 * organization: 守望轩  www.watch-life.net
 * github:    https://github.com/iamxjb/winxin-app-watch-life.net
 * 技术支持微信号：iamxjb
 * 开源协议：MIT
 * Copyright (c) 2017 https://www.watch-life.net All rights reserved.
 ** 星尘 基于微慕开源小程序二开
 * author：yinfegrui
 * organization：枫瑞博客网 www.frbkw.coms
  *星尘 技术维护微信号：qaz449275996
 */-->
<import src="../../templates/common-list.wxml" />
<import src="../../templates/copyright.wxml" />
<import src="../../templates/login-popup.wxml" />

<!-- 用户信息 -->
<view class="userinfo">

	<!-- 头像 -->
	<image class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>

	<view class='userinfo_right'>
		<!-- 昵称 -->
		<view class="fr-user">
			<text class="userinfo_nickname">{{openid !='' ? userInfo.nickName : '登录'}}</text>
			<image src="../../static/my/renz1.svg" class="fr-bzz"></image>
			<image src="../../static/my/renz2.svg" class="fr-bzz"></image>
		</view>
		<view class='userinfo_des_box'>
			<!-- 角色 -->
			<!-- <text class="userinfo_role" decode="{{true}}">{{openid !='' ? userLevel.levelName : '角色'}}</text> -->

			<button class="fr-ben-kef" open-type="contact">联系客服</button>

			<!-- 更新信息按钮 -->
			<view class="btn-update " wx:if="{{openid !=''}}">
				<button class="fr-ben-up" open-type="getUserInfo" bindgetuserinfo="refresh">更新信息</button>
			</view>
			<!-- 退出登录按钮 -->
			<view class="btn-exit fr-ben-ex" catchtap="exit">{{openid !='' ? '退出登录' : '清除缓存'}}</view>
			<!-- <view bindtap="dianji">openid</view> -->
		</view>
	</view>

</view>


<!-- 文章列表 -->
<view class="list_container">

	<view class="list-bg">
		<view class="list-t-div">
			<view class="title-h">
				<view class="title-img">
					<image class="title-im-wh" src="../../static/my/liulan.png"></image>
				</view>
				<view>浏览历史</view>
			</view>
			<view>滑动查看</view>
		</view>
		<view class="page-section-spacing">
			<scroll-view class="scroll-view_H" scroll-x="true" style="width: 100%">
				<block wx:key="id" wx:for="{{readLogs}}">
					<view class="scroll-view-item_H" index="{{index}}" id="{{item[0]}}" catchtap="redictDetail">
						<view class="fr-liul-v">
							<image class="fr-swiper-img" mode="widthFix" src="{{item[2]}}"></image>
						</view>
						<view class="fr-liul-h">{{item[1]}}</view>
					</view>
				</block>
			</scroll-view>
		</view>
	</view>

	<view class="list-bg">
		<view class="list-t-div">
			<view class="title-h">
					<view class="title-img">
					<image class="title-im-wh" src="../../static/my/punlin.png"></image>
				</view>
				<view>我的评论</view>
			</view>
			<view>All</view>
		</view>
		<view class="list-li">
			<view wx:for="{{array}}" class="{{requireAll?'hidden':''}}">
				<block wx:key="id" wx:for="{{readLogs2}}">
					<view class="lisst-s-nei" index="{{index}}" id="{{item[0]}}"  catchtap="redictDetail">
						<view class="fr-liul-h">{{index + 1}}. {{item[1]}}</view>
					</view>
				</block>
			</view>
			<text wx:if="{{requireAll}}"  bindtap="requireTxt" class="text-quan">全部</text>
			<text wx:else bindtap="requireTxt" class="text-quan">收起</text>
		</view>
	</view>

	<view class="list-bg">
		<view class="list-t-div">
			<view class="title-h">
					<view class="title-img">
					<image class="title-im-wh" src="../../static/my/dianzan.png"></image>
				</view>
				<view>我的点赞</view>
			</view>
			<view>All</view>
		</view>
		<view class="list-li">
			<view wx:for="{{array}}" class="{{requireAll2?'hidden':''}}">
				<block wx:key="id" wx:for="{{readLogs3}}">
					<view class="lisst-s-nei" index="{{index}}" id="{{item[0]}}"  catchtap="redictDetail">
						<view class="fr-liul-h">{{index + 1}}. {{item[1]}}</view>
					</view>
				</block>
			</view>
			<text wx:if="{{requireAll2}}"  bindtap="requireTxt2" class="text-quan">全部</text>
			<text wx:else bindtap="requireTxt2" class="text-quan">收起</text>
		</view>
	</view>


	<!-- 没有文章时的提示信息 -->
	<view class="tips" style="display:{{shownodata}}">你还没有相关文章哟~</view>

	<!-- 登录框 -->
	<template is="login-popup" data="{{show: isLoginPopup, userInfo: userInfo}}"></template>

	<!-- 无法访问网络 -->
	<view class="showerror" style="display:{{showerror}}">
		<image src="../../images/cry80.png" style="height:100rpx;width:100rpx"></image>
		<view class="errortext">暂时无法访问网络，请下拉刷新...</view>
	</view>



</view>