Commit 9b2b7c92 authored by Administrator's avatar Administrator

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

parent a88afcfd
......@@ -30,6 +30,7 @@
is_day_rank isDayRank,
is_week_rank isWeekRank,
is_month_rank isMonthRank,
cmpt_status cmptStatus,
is_year_rank isYearRank
FROM `gk_cmpt`
WHERE cmpt_id = #{id} LIMIT 1
......
......@@ -45,4 +45,6 @@ public class Cmpt extends JaapRecord<Cmpt> {
private int enroll;
private int cmptStatus;
}
......@@ -95,6 +95,13 @@
justify-content: center;
align-items: center;
}
.cmpt-status-div {
width: 100%;
height: 380px;
background: white;
justify-content: center;
align-items: center;
}
.warning {
display: inline-block;
......@@ -200,22 +207,30 @@
<div class="title-sec">
<h2 class="h3 title">赛事小程序码</h2>
</div>
<div class="flex flex-row">
<div style="position: relative" id="wx-logo">
<img class="qr-img" src="/img/${cmpt.cmptId}" alt="">
<%-- <img src="${cmpt.logo}" class="wx-logo"
onerror="this.src='${ctxStatic}/managerPagePhoto/insertManual.png'">--%>
</div>
<div class="flex flex-column download-sec">
<span class="download-qr" id="download">下载小程序码</span>
<div class="flex flex-row">
<span class="warning">注</span><span
class="tip-txt">上传赛事logo后,将替换小程序码中的赛客LOGO</span>
<c:if test="${cmpt.cmptStatus == 2}">
<div class="flex flex-row">
<div style="position: relative" id="wx-logo">
<img class="qr-img" src="/img/${cmpt.cmptId}" alt="">
<%-- <img src="${cmpt.logo}" class="wx-logo"
onerror="this.src='${ctxStatic}/managerPagePhoto/insertManual.png'">--%>
</div>
<div><span class="tip-txt" style="padding-left: 10px">微信扫描小程序码直接进入小程序中赛事首页</span>
<div class="flex flex-column download-sec">
<span class="download-qr" id="download">下载小程序码</span>
<div class="flex flex-row">
<span class="warning">注</span>
<span class="tip-txt">上传赛事logo后,将替换小程序码中的赛客LOGO</span>
</div>
<div><span class="tip-txt" style="padding-left: 10px">微信扫描小程序码直接进入小程序中赛事首页</span>
</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>
</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