|
|
@@ -17,8 +17,8 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
<view class="topcontent uni-column uni-jcsa">
|
|
|
<view class="logo"></view>
|
|
|
<view class="tcbar uni-row uni-jcsb">
|
|
|
- <text class="tcbar-text">赛事总里程:{{fmtDistanct(totalDistance)}} 千米</text>
|
|
|
- <text class="tcbar-text">{{configParam.labelRightAnswerNum}}:{{totalRightAnswerNum}} 次</text>
|
|
|
+ <text class="tcbar-text">赛事总里程:{{fmtDistanct(all_totalDistance)}} 千米</text>
|
|
|
+ <text class="tcbar-text">{{configParam.labelRightAnswerNum}}:{{all_totalRightAnswerNum}} 次</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -100,8 +100,10 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
nickName: "", // 昵称
|
|
|
|
|
|
mapList: [], // 卡片对应地图列表详情
|
|
|
- totalDistance: 0, // 赛事所有人累计里程,单位米
|
|
|
- totalRightAnswerNum: 0, // 赛事所有人正确答题数(校园文化输出)
|
|
|
+ all_totalDistance: 0, // 赛事所有人累计里程,单位米
|
|
|
+ all_totalRightAnswerNum: 0, // 赛事所有人正确答题数(校园文化输出)
|
|
|
+ all_totalCp: 0, // 赛事中所有人打点数
|
|
|
+ all_totalSysPoint: 0, // 赛事中所有人百味豆
|
|
|
|
|
|
mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
|
|
|
allowMcSignUp: false, // 是否允许重新分组
|
|
|
@@ -137,7 +139,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
tabActiveColor: "#81cd00",
|
|
|
|
|
|
// 成绩类型列表
|
|
|
- rankTypeList: ["totalDistance", "totalCp", "rightAnswerPer", "fastPace", "speed"],
|
|
|
+ rankTypeList: ["totalDistance", "totalCp", "rightAnswerPer", "fastPace", "fastPace"],
|
|
|
// 团体成绩列表
|
|
|
rank1List: ["teamDistanceRs", "teamCpRs", "teamRightAnswerPerRs", "teamPaceRs", "teamSpeedRs"],
|
|
|
// 个人成绩列表
|
|
|
@@ -148,7 +150,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
configParam: {
|
|
|
labelRightAnswerNum: "文化输出"
|
|
|
},
|
|
|
- selectedMapId: 0, // 用户选择的地图ID
|
|
|
+ // selectedMapId: 0, // 用户选择的地图ID
|
|
|
popupDataList: [],
|
|
|
popupExchgList: []
|
|
|
}
|
|
|
@@ -177,7 +179,8 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
const mapValue = uni.getStorageSync(this.mapKey);
|
|
|
if (mapValue) {
|
|
|
console.log("mapValue:", mapValue);
|
|
|
- this.selectedMapId = mapValue;
|
|
|
+ // this.selectedMapId = mapValue;
|
|
|
+ this.ocaId = mapValue;
|
|
|
}
|
|
|
|
|
|
this.getCardConfigQuery();
|
|
|
@@ -528,7 +531,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
this.getActtime();
|
|
|
this.mapListQuery();
|
|
|
this.compStatisticQuery();
|
|
|
- this.getCardRankDetailQuery();
|
|
|
+ // this.getCardRankDetailQuery();
|
|
|
|
|
|
this.clear();
|
|
|
this.interval = setInterval(this.getCountdown, 60000);
|
|
|
@@ -558,12 +561,15 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
this.mapList = data;
|
|
|
|
|
|
let mapItems = {
|
|
|
- selectValue: this.selectedMapId,
|
|
|
+ // selectValue: this.selectedMapId,
|
|
|
+ selectValue: this.ocaId,
|
|
|
data: []
|
|
|
};
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
if (mapItems.selectValue == 0 && i == 0) {
|
|
|
mapItems.selectValue = data[i].ocaId;
|
|
|
+ // this.selectedMapId = data[i].ocaId;
|
|
|
+ this.ocaId = data[i].ocaId;
|
|
|
}
|
|
|
let map = {};
|
|
|
map.text = "个人(" + data[i].mapName + ")";
|
|
|
@@ -571,6 +577,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
mapItems.data.push(map);
|
|
|
}
|
|
|
this.tab1Items.push(mapItems);
|
|
|
+ this.getCardRankDetailQuery();
|
|
|
}
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
@@ -591,11 +598,13 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
mcId: this.mcId
|
|
|
},
|
|
|
success: (res) => {
|
|
|
- console.log("compStatisticQuery", res);
|
|
|
+ // console.log("compStatisticQuery", res);
|
|
|
if (res.data.code == 0) {
|
|
|
const data = res.data.data;
|
|
|
- this.totalDistance = data.totalDistance;
|
|
|
- this.totalRightAnswerNum = data.totalRightAnswerNum;
|
|
|
+ this.all_totalDistance = data.totalDistance;
|
|
|
+ this.all_totalRightAnswerNum = data.totalRightAnswerNum;
|
|
|
+ this.all_totalCp = data.totalCp;
|
|
|
+ this.all_totalSysPoint = data.totalSysPoint;
|
|
|
}
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
@@ -619,7 +628,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
dispArrStr: this.dispArrStr
|
|
|
},
|
|
|
success: (res) => {
|
|
|
- console.log("getCardRankDetailQuery", res);
|
|
|
+ // console.log("getCardRankDetailQuery", res);
|
|
|
const rankdata = res.data.data;
|
|
|
// this.rankList.totalDistanceRs = rankdata.totalDistanceRs;
|
|
|
// this.rankList.totalCpRs = rankdata.totalCpRs;
|
|
|
@@ -688,22 +697,25 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
}); */
|
|
|
|
|
|
const url = `action://to_home/`;
|
|
|
- // window.location.href = url;
|
|
|
tools.appAction(url);
|
|
|
},
|
|
|
btnStartGame() {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/bm/style4/rankOverview?" + this.queryString
|
|
|
- });
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: "/pages/bm/style4/rankOverview?" + this.queryString
|
|
|
+ // });
|
|
|
+ const url = "/pages/bm/style4/rankOverview?" + this.queryString;
|
|
|
+ tools.appAction(url, "uni.navigateTo");
|
|
|
},
|
|
|
btnInfo() {
|
|
|
// console.log(this.$refs.mypopup);
|
|
|
this.$refs.mypopup.popupOpen();
|
|
|
},
|
|
|
btnMyEgg() {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/achievement/index2?tabCurrent=2&" + this.queryString
|
|
|
- });
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: "/pages/achievement/index2?tabCurrent=2&" + this.queryString
|
|
|
+ // });
|
|
|
+ const url = "/pages/achievement/index2?tabCurrent=2&" + this.queryString;
|
|
|
+ tools.appAction(url, "uni.navigateTo");
|
|
|
},
|
|
|
btnExchg() {
|
|
|
this.$refs.mypopupExchg.popupOpen();
|
|
|
@@ -720,6 +732,7 @@ https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankList
|
|
|
console.log("onSelectChange: ", val);
|
|
|
this.ocaId = val.value;
|
|
|
this.getCardRankDetailQuery();
|
|
|
+
|
|
|
uni.setStorageSync(this.mapKey, this.ocaId);
|
|
|
},
|
|
|
}
|