|
|
@@ -1,4 +1,5 @@
|
|
|
<!--
|
|
|
+http://localhost:5173/custom/#/pages/yuedong/challenge/success?id=13&matchType=3&pagetype=challenge_result&status=success&name=天生我材必有用
|
|
|
http://localhost:5174/custom/#/pages/yuedong/challenge/success?actId=18&matchType=3&pagetype=challenge_result&distance=1320&status=success&name=天生我材必有用&cal=13500100&duration=3600&accuracy=50&syscount=25
|
|
|
https://oss-mbh5.colormaprun.com/custom/#/pages/yuedong/challenge/index?pagetype=challenge_result&distance=1320&status=success&name=天生我材必有用&cal=13500100&duration=3600&accuracy=50&syscount=25
|
|
|
-->
|
|
|
@@ -59,6 +60,7 @@ https://oss-mbh5.colormaprun.com/custom/#/pages/yuedong/challenge/index?pagetype
|
|
|
import {
|
|
|
token,
|
|
|
apiCardUrlQuery,
|
|
|
+ apiMatchFininshInfoQuery,
|
|
|
checkResCode
|
|
|
} from '/common/api';
|
|
|
|
|
|
@@ -125,11 +127,11 @@ https://oss-mbh5.colormaprun.com/custom/#/pages/yuedong/challenge/index?pagetype
|
|
|
|
|
|
this.status = event["status"] ?? "";
|
|
|
this.name = event["name"] ?? "";
|
|
|
- this.duration = event["duration"] ?? 0;
|
|
|
- this.distance = event["distance"] ?? 0;
|
|
|
- this.cal = event["cal"] ?? 0;
|
|
|
- this.accuracy = event["accuracy"] ?? 0;
|
|
|
- this.syscount = event["syscount"] ?? 0;
|
|
|
+ // this.duration = event["duration"] ?? 0;
|
|
|
+ // this.distance = event["distance"] ?? 0;
|
|
|
+ // this.cal = event["cal"] ?? 0;
|
|
|
+ // this.accuracy = event["accuracy"] ?? 0;
|
|
|
+ // this.syscount = event["syscount"] ?? 0;
|
|
|
|
|
|
// console.log("event:", JSON.stringify(event));
|
|
|
// uni.showToast({
|
|
|
@@ -139,6 +141,7 @@ https://oss-mbh5.colormaprun.com/custom/#/pages/yuedong/challenge/index?pagetype
|
|
|
// });
|
|
|
|
|
|
// this.cardUrlQuery();
|
|
|
+ this.matchFininshInfoQuery();
|
|
|
},
|
|
|
methods: {
|
|
|
// 根据游戏id查询卡片信息
|
|
|
@@ -168,6 +171,34 @@ https://oss-mbh5.colormaprun.com/custom/#/pages/yuedong/challenge/index?pagetype
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ // 查询赛事结束显示信息
|
|
|
+ matchFininshInfoQuery() {
|
|
|
+ uni.request({
|
|
|
+ url: apiMatchFininshInfoQuery,
|
|
|
+ header: {
|
|
|
+ "Content-Type": "application/x-www-form-urlencoded",
|
|
|
+ "token": this.token,
|
|
|
+ },
|
|
|
+ method: "POST",
|
|
|
+ data: {
|
|
|
+ actId: this.actId,
|
|
|
+ matchType: this.matchType
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ console.log("matchFininshInfoQuery", res);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ const data = res.data.data.finishInfo;
|
|
|
+ this.duration = data.totalTime;
|
|
|
+ this.distance = data.distance;
|
|
|
+ this.accuracy = data.rightAnswerPer;
|
|
|
+ this.syscount = data.sysScore;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ console.log("matchFininshInfoQuery err", err);
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
btnRankList() {
|
|
|
// console.log("urlRs", this.urlRs);
|
|
|
// const rankListUrl = this.urlRs.find(item => item.name === 'rankListUrl');
|