<!--pages/member/MemberGradeList/MemberGradeList.wxml-->
<!-- <import src="../../../wxParse/wxParse.wxml" /> -->
<view class="member-grade">

	<view class="header">
		<view class="use-header">
			<view class="img">
				<image src="{{memberInfo.avatar}}" mode='widthFix' />
			</view>
			<view class="ul">
				<view class="li name">{{memberInfo.nickname}}</view>
				<view class="li">等级名称:{{memberInfo.level_name}}</view>
			</view>
		</view>
		<view class="time" wx:if="{{memberInfo.validity == 0?false:true}}">
			<icon class="iconfont icon-naozhong"></icon>
			<view class="font"><text class="span">有效期：</text>{{memberInfo.validity?memberInfo.validity:''}}天</view>
		</view>
	</view>
	<view class="current" wx:if="{{memberInfo.level_id == 0?false:true}}">
		<view class="title-box">
			<view class="left"></view>
			<view class="span">会员权益</view>
			<view class="right"></view>
		</view>
		<view class="ul">
			<view class="li" wx:if="{{right.discount != 0}}">
				<view class="circur"></view>全场{{right.discount}}折（特殊商品除外）
			</view>
			<view class="li" wx:if="{{right.freight_reduction != 0}}">
				<view class="circur"></view>全场运费减免{{right.freight_reduction}}%
			</view>
			<view class="li" wx:if="{{right.rent_free}}">
				<view class="circur"></view>租赁商品免租金数量：{{right.rent_free}}件
			</view>
			<view class="li" wx:if="{{right.deposit_free}}">
				<view class="circur"></view>租赁商品免押金数量：{{right.deposit_free}}件
			</view>
		</view>
	</view>
	<view wx:for="{{levelList}}" wx:key="index">
		<view class="member-box">
			<view class="top">
				<view class="h1">{{item.level_name}}</view>
				<view class="button go_buy" data-id="{{item.id}}" catchtap="gotoRightGood" wx:if="{{level_type ==2}}">
					{{ item.id == memberInfo.level_id ? "立即续费" : "立即购买" }}
				</view>
				<view class="button go_buy" data-money="{{item.balance_recharge}}" catchtap="goChongzhi" wx:if="{{level_type==4 && is_ios && balance_recharge == 1}}">
					充值
				</view>
			</view>
			<view class="title-box">
				<view class="left"></view>
				<view class="span">会员权益</view>
				<view class="right"></view>
			</view>
			<view class="ul">
				<view class="li" wx:if="{{item.discount && item.discount != '0'}}">
					<view class="circur"></view>全场{{item.discount}}折（特殊商品除外）
				</view>
				<view class="li" wx:if="{{item.freight_reduction && item.freight_reduction != '0'}}">
					<view class="circur"></view>全场运费减免{{item.freight_reduction}}%
				</view>
				<view class="li" wx:if="{{item.rent_free}}">
					<view class="circur"></view>租赁商品免租金数量：{{item.rent_free?item.rent_free:0}}件
				</view>
				<view class="li" wx:if="{{item.deposit_free}}">
					<view class="circur"></view>租赁商品免押金数量：{{item.deposit_free?item.deposit_free:0}}件
				</view>
				<view wx:if="{{item.description.length!=null}}" class="introduce">
					<!-- <rich-text nodes="{{item.description}}"></rich-text> -->
					<mp-html content="{{item.description}}"></mp-html>
				</view>
			</view>
			<!-- 	<view class="bottom">
				<view class="span">
					<view class="h1"><text class="small">{{language['money']}}</text>{{item.goods.price}}</view>
				</view>
				<view class="button" data-goodid="{{item.goods.id}}" catchtap="buy">{{item.id == memberInfo.level_id?"立即续费":"立即购买"}}</view>
			</view> -->
		</view>
	</view>
	<view class="introduce" wx:if="{{shopDesc}}">
		<view class="h2">【{{name}}】介绍</view>
		<view class="p">
			<rich-text nodes="{{shopDesc}}"></rich-text>
			<!-- 	<template is="wxParse" data="{{wxParseData:article.nodes}}" /> -->
		</view>
	</view>
	<view style="height: 90rpx;"></view>
	<view class="service">
		<view class="left">
			<icon class="iconfont icon-wodekefu"></icon>
		</view>
		<view class="right" wx:if="{{!customer_open}}">
			<button class="span" open-type="contact" session-from="weapp">联系客服</button>
		</view>
		<view class="right" wx:if="{{customer_open}}" bindtap="showPop">
			<text class="span" >联系客服</text>
		</view>
	</view>
</view>
<van-popup custom-style="border-radius: 38rpx;" show="{{show1}}" overlay="{{true}}">
	<view class="pop-content">
		<view class="pop-top">
			<view class="left">
				<view class="wrap">
					<view>
						<view class="image" style="postion:relative">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_online_contect@2x.png"></image>
						</view>
						<view>在线联系</view>
						<button open-type="contact" bindcontact="handleContact" style="postion:absolute;width:100%;height:80rpx;opacity:0;top:-140rpx;"></button>
					</view>
				</view>
			</view>
			<view style="display:flex;" wx:if="{{!service_mobile==''}}">
				<view class="line"></view>
			</view>
			<view class="right" wx:if="{{!service_mobile==''}}">
				<view class="wrap" bindtap="callPhone">
					<view>
						<view class="image">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_tel_contect@2x.png"></image>
						</view>
						<view>联系电话</view>
						<view style="margin-top:16rpx">{{service_mobile}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="pop-bottom" wx:if="{{!service_QRcode==''}}">
			<view class="image">
				<image src="{{service_QRcode}}"></image>
			</view>
		</view>
		<icon class="iconfont icon-close11" catchtap="closePop"></icon>
	</view>
</van-popup>
