<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!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>
    <style>
        .footer{
            text-align: center;
            position: fixed;
            bottom: 30%;
            width: 100%;
            color: #000;
        }
        .complaint{
            color: red;
        }
    </style>
</head>
<body style="background:#ffff;">
<div class="page-title tcenter bluebg white h40 white positionr">
    <div>
        <span>提示</span>
    </div>
</div>
<div class="login_form ml20 mr20 mt50">
    <form method="post">
        <div class="weui-cells weui-cells_form mt50 tcenter">
            <div class=" f55 white dlblock radiusp50 padding15">
                <img src="${resourcePath}/images/error_img.png" width="100" height="100">
            </div>
            <div class="mt30" style="font-weight: 700;color: #000000;font-size: 23px;text-align: center;">
                ${error}
            </div>
        </div>
    </form>
</div>
<c:if test="${not empty token }">
    <div class="footer">
        <div class="footer-content">
            如遭遇诈骗或交易纠纷，<a href="javascript:void(0)" id="complaint" class="complaint">请点此投诉</a>
        </div>
    </div>
</c:if>
</body>
<script>
  $("#complaint").on("click",()=>{
      let $token = '${token}';
      if($token){
          window.location.href = ctx + "/merchant/complaint/"+$token
      }
  })
</script>
</html>