<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<jsp:include page="../../common.jsp" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0">   
<title>最新活动</title>
</head>
    <body class="pb100 lgraybg">
        <div class="positionf wp100 left0 top0 zindex100 bluebg h40 tcenter">
            <div>
                <a href="${ctx }/vip/myVIPCard?storeId=${sessionScope.sessionMerchantMenber.storeId}&phone=${sessionScope.sessionMerchantMenber.phone}" class="white f21 h40 left0 top0 positiona">
                    <span class="dblock w40 h40 icon icon-59 white f22"></span>
                </a>
                <span class="white">会员活动</span>
            </div>
        </div>
        <!-- 容器 -->
        <div class="weui-tab">
            <div class="mt60">
            <c:if test="${not empty activityRecommend }">
                <div class="mb10">
                    <div class="weui-flex pt10 pb10 whitebg ml10 mr10 bdl2r">
                          <div class="ml10"><img src="https://www.shouyinbei.net/resources/wap/images/acti1.png" class="dlblock fc radiusp50 vm" width="60" height="60"/></div>
                           <div class="weui-flex__item">
                                    <div class="mb10 f16 tleft f-black">活动类型：推荐奖励</div>
                                    <div class="f14">有效时间：无限制</div>
                          </div>
                    </div>
                </div>  
                </c:if>  
                <c:if test="${not empty activityActivate }"> 
                <div class="mb10">
                    <div class="weui-flex pt10 pb10 whitebg ml10 mr10 bdl2g">
                          <div class="ml10"><img src="https://www.shouyinbei.net/resources/wap/images/acti2.png" class="dlblock fc radiusp50 vm" width="60" height="60"/></div>
                           <div class="weui-flex__item">
                                    <div class="mb10 f16 tleft f-black">活动类型：激活送</div>
                                    <div class="f14">有效时间：无限制</div>
                          </div>
                    </div>
                </div>
                </c:if> 
                <c:if test="${not empty activityRecharge }">
	                <div class="mb10">
	                    <div class="weui-flex pt10 pb10 whitebg ml10 mr10 bdl2o">
	                          <div class="ml10"><img src="https://www.shouyinbei.net/resources/wap/images/acti3.png" class="dlblock fc radiusp50 vm" width="60" height="60"/></div>
	                           <div class="weui-flex__item">
	                                    <div class="mb10 f16 tleft f-black">活动类型：充值送</div>
	                                    <c:if test="${activityRecharge.timeType eq '1' }">
                                          <div class="f14">有效时间：<fmt:formatDate value="${activityRecharge.startDt}" pattern="yyyy.MM.dd"/>-<fmt:formatDate value="${activityRecharge.endDt}" pattern="yyyy.MM.dd"/></div>
                                        </c:if>
                                        <c:if test="${activityRecharge.timeType eq '0' }">
                                          <div class="f14">有效时间：无限制</div>
                                        </c:if>
	                          </div>
	                    </div>
	                </div>  
                </c:if>
                <c:if test="${not empty activityConsumReturn }">
                    <div class="mb10">
                        <div class="weui-flex pt10 pb10 whitebg ml10 mr10 bdl2r">
                              <div class="ml10"><img src="https://www.shouyinbei.net/resources/wap/images/acti4.png" class="dlblock fc radiusp50 vm" width="60" height="60"/></div>
                               <div class="weui-flex__item">
                                        <div class="mb10 f16 tleft f-black">活动类型：消费返</div>
                                        <c:if test="${activityConsumReturn.timeType eq '1' }">
                                          <div class="f14">有效时间：<fmt:formatDate value="${activityConsumReturn.startDt}" pattern="yyyy.MM.dd"/>-<fmt:formatDate value="${activityConsumReturn.endDt}" pattern="yyyy.MM.dd"/></div>
                                        </c:if>
                                        <c:if test="${activityConsumReturn.timeType eq '0' }">
                                          <div class="f14">有效时间：无限制</div>
                                        </c:if>
                              </div>
                        </div>
                    </div>  
                 </c:if>     
            </div>
        </div>
    </body>

</html>