wzx 8 ay önce
ebeveyn
işleme
c41b6ab32d

+ 4 - 0
custom/common/api.js

@@ -3,10 +3,14 @@ export const apiServer = process.env.API_BASE_URL;
 
 export const token = '';
 // export const token = '96ba3c924394934f7d30fa869a94ce0d';
+// export const token = '8f929ad2fcd37d2eff5c54967dd7c899';
 
 // 根据游戏id查询卡片信息
 export const apiCardUrlQuery = apiServer + 'CardUrlQuery';
 
+// 查询赛事结束显示信息
+export const apiMatchFininshInfoQuery = apiServer + 'MatchFininshInfoQuery';
+
 
 import tools from '/common/tools';
 

+ 2 - 2
custom/manifest.json

@@ -2,8 +2,8 @@
     "name" : "custom",
     "appid" : "__UNI__F860CDD",
     "description" : "彩图奔跑APP内客户定制样式页面",
-    "versionName" : "1.2.3",
-    "versionCode" : 123,
+    "versionName" : "1.2.5",
+    "versionCode" : 125,
     "uni-app-x" : {},
     /* 快应用特有相关 */
     "quickapp" : {},

+ 36 - 5
custom/pages/yuedong/challenge/success.uvue

@@ -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');