|
@@ -22,18 +22,23 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
</view>
|
|
</view>
|
|
|
<view class="main uni-column">
|
|
<view class="main uni-column">
|
|
|
<my-ranklist :rankRs="rankList.totalRankRs"></my-ranklist>
|
|
<my-ranklist :rankRs="rankList.totalRankRs"></my-ranklist>
|
|
|
- <button class="btnStart" @click="btnStart">开始比赛</button>
|
|
|
|
|
|
|
+ <button class="btnStart btnStart-disable" v-if="mcState==0">活动尚未开始</button>
|
|
|
|
|
+ <button class="btnStart btnStart-enable" v-if="mcState==1" @click="btnStart">开始比赛</button>
|
|
|
|
|
+ <button class="btnStart btnStart-disable" v-if="mcState==2">活动已结束</button>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<my-popup ref="mypopup" :dataList="popupDataList"></my-popup>
|
|
<my-popup ref="mypopup" :dataList="popupDataList"></my-popup>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import tools from '../../common/tools';
|
|
import tools from '../../common/tools';
|
|
|
- import { defaultPopUpDataList } from '/common/define';
|
|
|
|
|
|
|
+ import {
|
|
|
|
|
+ defaultPopUpDataList
|
|
|
|
|
+ } from '/common/define';
|
|
|
import {
|
|
import {
|
|
|
token,
|
|
token,
|
|
|
apiCardDetailQuery,
|
|
apiCardDetailQuery,
|
|
@@ -50,14 +55,16 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
firstEnterKey: 'firstEnter-jbs_rankList',
|
|
firstEnterKey: 'firstEnter-jbs_rankList',
|
|
|
queryString: "",
|
|
queryString: "",
|
|
|
token: "",
|
|
token: "",
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
ecId: 0, // 卡片id
|
|
ecId: 0, // 卡片id
|
|
|
coiId: 0, // 单位id
|
|
coiId: 0, // 单位id
|
|
|
mcId: 0, // 赛事id
|
|
mcId: 0, // 赛事id
|
|
|
mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
|
|
mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
|
|
|
mcName: "", // 赛事名称
|
|
mcName: "", // 赛事名称
|
|
|
- endSecond: null, // 赛事结束时间戳
|
|
|
|
|
-
|
|
|
|
|
|
|
+ beginSecond: null, // 活动或赛事开始时间戳,单位秒
|
|
|
|
|
+ endSecond: null, // 活动或赛事结束时间戳,单位秒
|
|
|
|
|
+
|
|
|
|
|
+ mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
|
|
|
countdown: "", // 倒计时
|
|
countdown: "", // 倒计时
|
|
|
rankList: { // 排名列表
|
|
rankList: { // 排名列表
|
|
|
totalRankRs: [],
|
|
totalRankRs: [],
|
|
@@ -65,7 +72,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
inTeamRs: [],
|
|
inTeamRs: [],
|
|
|
},
|
|
},
|
|
|
interval: null,
|
|
interval: null,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
dispArrStr: "total", // 要显示的集合范围 (total,team,in,other)
|
|
dispArrStr: "total", // 要显示的集合范围 (total,team,in,other)
|
|
|
cssTop: "",
|
|
cssTop: "",
|
|
|
cssLogo: "",
|
|
cssLogo: "",
|
|
@@ -79,7 +86,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
// console.log(queryString);
|
|
// console.log(queryString);
|
|
|
this.token = event["token"] ?? token;
|
|
this.token = event["token"] ?? token;
|
|
|
this.ecId = event["id"] ?? 0;
|
|
this.ecId = event["id"] ?? 0;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
tools.removeCssCode();
|
|
tools.removeCssCode();
|
|
|
|
|
|
|
|
this.getCardConfigQuery();
|
|
this.getCardConfigQuery();
|
|
@@ -128,12 +135,12 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
},
|
|
},
|
|
|
loadConfig(config) {
|
|
loadConfig(config) {
|
|
|
// console.log("config", config);
|
|
// console.log("config", config);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 加载CSS样式
|
|
// 加载CSS样式
|
|
|
const css = config.css;
|
|
const css = config.css;
|
|
|
if (css != undefined && css.length > 0) {
|
|
if (css != undefined && css.length > 0) {
|
|
|
tools.loadCssCode(css);
|
|
tools.loadCssCode(css);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (css.indexOf(".top{") >= 0) {
|
|
if (css.indexOf(".top{") >= 0) {
|
|
|
this.cssTop = "top";
|
|
this.cssTop = "top";
|
|
|
}
|
|
}
|
|
@@ -141,7 +148,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
this.cssLogo = "logo";
|
|
this.cssLogo = "logo";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (this.cssTop == "") {
|
|
if (this.cssTop == "") {
|
|
|
this.cssTop = "top-default";
|
|
this.cssTop = "top-default";
|
|
|
}
|
|
}
|
|
@@ -150,7 +157,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
}
|
|
}
|
|
|
console.log("[loadConfig] cssTop:", this.cssTop);
|
|
console.log("[loadConfig] cssTop:", this.cssTop);
|
|
|
console.log("[loadConfig] cssLogo:", this.cssLogo);
|
|
console.log("[loadConfig] cssLogo:", this.cssLogo);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 加载弹窗数据
|
|
// 加载弹窗数据
|
|
|
const popupDataList = config.popupDataList;
|
|
const popupDataList = config.popupDataList;
|
|
|
// console.log("[loadConfig] popupDataList:", popupDataList);
|
|
// console.log("[loadConfig] popupDataList:", popupDataList);
|
|
@@ -209,7 +216,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
.top{
|
|
.top{
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 26vh;
|
|
height: 26vh;
|
|
|
- padding-top: 30px;
|
|
|
|
|
|
|
+ padding-top: 36px;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
background-image: url('static/backgroud/top_colorbar.png'), linear-gradient(180deg,#178bff 0%,#004d9b 100%);
|
|
background-image: url('static/backgroud/top_colorbar.png'), linear-gradient(180deg,#178bff 0%,#004d9b 100%);
|
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
@@ -240,7 +247,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
"default"
|
|
"default"
|
|
|
]
|
|
]
|
|
|
}; */
|
|
}; */
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.loadConfig(config);
|
|
this.loadConfig(config);
|
|
|
this.getCardDetailQuery();
|
|
this.getCardDetailQuery();
|
|
|
},
|
|
},
|
|
@@ -268,8 +275,11 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
this.mcId = data.mcId;
|
|
this.mcId = data.mcId;
|
|
|
this.mcType = data.mcType;
|
|
this.mcType = data.mcType;
|
|
|
this.mcName = data.mcName;
|
|
this.mcName = data.mcName;
|
|
|
|
|
+ this.beginSecond = data.beginSecond;
|
|
|
this.endSecond = data.endSecond;
|
|
this.endSecond = data.endSecond;
|
|
|
|
|
|
|
|
|
|
+ this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
|
|
|
|
|
+
|
|
|
this.getCountdown();
|
|
this.getCountdown();
|
|
|
this.getCardRankDetailQuery();
|
|
this.getCardRankDetailQuery();
|
|
|
|
|
|
|
@@ -368,15 +378,15 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
|
|
|
|
|
.top-default {
|
|
.top-default {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- height: 29vh;
|
|
|
|
|
|
|
+ height: 28vh;
|
|
|
/* height: 500rpx; */
|
|
/* height: 500rpx; */
|
|
|
- padding-top: 30px;
|
|
|
|
|
|
|
+ padding-top: 36px;
|
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
|
- background-image: url("/static/backgroud/top_bg.png");
|
|
|
|
|
|
|
+ background-image: url("/static/backgroud/top_medal.png"), url("/static/backgroud/top_bg1.png");
|
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
|
- background-position-x: center;
|
|
|
|
|
- background-position-y: center;
|
|
|
|
|
- background-size: cover;
|
|
|
|
|
|
|
+ background-position-x: center, center;
|
|
|
|
|
+ background-position-y: 15vh, center;
|
|
|
|
|
+ background-size: 55vw auto, cover;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.logo-default {
|
|
.logo-default {
|
|
@@ -389,7 +399,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
background-position-y: center;
|
|
background-position-y: center;
|
|
|
background-size: contain; */
|
|
background-size: contain; */
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.topbar {
|
|
.topbar {
|
|
|
width: 90%;
|
|
width: 90%;
|
|
|
/* padding: 0rpx 30rpx; */
|
|
/* padding: 0rpx 30rpx; */
|
|
@@ -443,14 +453,20 @@ https://oss-mbh5.colormaprun.com/card/#/pages/jbs/rankList
|
|
|
line-height: 5vh;
|
|
line-height: 5vh;
|
|
|
background-color: #ffb40b;
|
|
background-color: #ffb40b;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .btnStart-enable {
|
|
|
|
|
+ background-color: #ffb40b;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .btnStart-disable {
|
|
|
|
|
+ background-color: #c3c3c3;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
|
|
::v-deep .list {
|
|
::v-deep .list {
|
|
|
height: 58vh;
|
|
height: 58vh;
|
|
|
margin-top: 5px;
|
|
margin-top: 5px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</style>
|
|
</style>
|