Commit 9b2b7c92 authored by Administrator's avatar Administrator

未审核赛事不显示小程序码

parent a88afcfd
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
is_day_rank isDayRank, is_day_rank isDayRank,
is_week_rank isWeekRank, is_week_rank isWeekRank,
is_month_rank isMonthRank, is_month_rank isMonthRank,
cmpt_status cmptStatus,
is_year_rank isYearRank is_year_rank isYearRank
FROM `gk_cmpt` FROM `gk_cmpt`
WHERE cmpt_id = #{id} LIMIT 1 WHERE cmpt_id = #{id} LIMIT 1
......
...@@ -45,4 +45,6 @@ public class Cmpt extends JaapRecord<Cmpt> { ...@@ -45,4 +45,6 @@ public class Cmpt extends JaapRecord<Cmpt> {
private int enroll; private int enroll;
private int cmptStatus;
} }
...@@ -95,6 +95,13 @@ ...@@ -95,6 +95,13 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.cmpt-status-div {
width: 100%;
height: 380px;
background: white;
justify-content: center;
align-items: center;
}
.warning { .warning {
display: inline-block; display: inline-block;
...@@ -200,6 +207,7 @@ ...@@ -200,6 +207,7 @@
<div class="title-sec"> <div class="title-sec">
<h2 class="h3 title">赛事小程序码</h2> <h2 class="h3 title">赛事小程序码</h2>
</div> </div>
<c:if test="${cmpt.cmptStatus == 2}">
<div class="flex flex-row"> <div class="flex flex-row">
<div style="position: relative" id="wx-logo"> <div style="position: relative" id="wx-logo">
<img class="qr-img" src="/img/${cmpt.cmptId}" alt=""> <img class="qr-img" src="/img/${cmpt.cmptId}" alt="">
...@@ -209,13 +217,20 @@ ...@@ -209,13 +217,20 @@
<div class="flex flex-column download-sec"> <div class="flex flex-column download-sec">
<span class="download-qr" id="download">下载小程序码</span> <span class="download-qr" id="download">下载小程序码</span>
<div class="flex flex-row"> <div class="flex flex-row">
<span class="warning">注</span><span <span class="warning">注</span>
class="tip-txt">上传赛事logo后,将替换小程序码中的赛客LOGO</span> <span class="tip-txt">上传赛事logo后,将替换小程序码中的赛客LOGO</span>
</div> </div>
<div><span class="tip-txt" style="padding-left: 10px">微信扫描小程序码直接进入小程序中赛事首页</span> <div><span class="tip-txt" style="padding-left: 10px">微信扫描小程序码直接进入小程序中赛事首页</span>
</div> </div>
</div> </div>
</div> </div>
</c:if>
<c:if test="${cmpt.cmptStatus == 0}">
<div class="flex flex-row cmpt-status-div">
<span class="tip-txt">请联系管理员,赛事审核通过后下载小程序码</span>
</div>
</c:if>
</div> </div>
</div> </div>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment