|
|
@@ -129,6 +129,10 @@ https://oss-mbh5.colormaprun.com/card/#/pages/achievement/ecert/ecert
|
|
|
fmtDistanct(val) {
|
|
|
return Math.round(val * 100 / 1000) / 100;
|
|
|
},
|
|
|
+ // 格式化 赛事日期
|
|
|
+ fmtMcTime(timestamp1, timestamp2) {
|
|
|
+ return tools.fmtMcTime3(timestamp1, timestamp2);
|
|
|
+ },
|
|
|
getEcertImageStyle() {
|
|
|
if (this.ecertWidth == 0) {
|
|
|
return "";
|
|
|
@@ -152,14 +156,14 @@ https://oss-mbh5.colormaprun.com/card/#/pages/achievement/ecert/ecert
|
|
|
},
|
|
|
getParamValue(paramName) {
|
|
|
let value = null;
|
|
|
- if (paramName == "nickName") {
|
|
|
- value = this.nickName;
|
|
|
- } else if (paramName == "coiName") {
|
|
|
+ if (paramName == "coiName") {
|
|
|
value = "(" + this.coiName + ")";
|
|
|
} else if (paramName == "totalDistance") {
|
|
|
value = this.fmtDistanct(this.totalDistance);
|
|
|
- } else if (paramName == "totalSysPoint") {
|
|
|
- value = this.totalSysPoint;
|
|
|
+ } else if (paramName == "compTime") {
|
|
|
+ value = this.fmtMcTime(this.compBt, this.compEt);
|
|
|
+ } else {
|
|
|
+ return this[paramName];
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
@@ -237,10 +241,53 @@ https://oss-mbh5.colormaprun.com/card/#/pages/achievement/ecert/ecert
|
|
|
|
|
|
/* this.ecertConfig = {
|
|
|
"title": "完赛证书",
|
|
|
- "tplUrl": "/static/ecert/shanda/youxiujiang.jpg",
|
|
|
+ "tplUrl": "/static/ecert/ecert_tpl.jpg",
|
|
|
"width": 2000,
|
|
|
"height": 2828,
|
|
|
- "paramList": [{
|
|
|
+ "paramList": [
|
|
|
+ {
|
|
|
+ "paramName": "compName",
|
|
|
+ "font": {
|
|
|
+ "preStyle": "bold",
|
|
|
+ "size": 86,
|
|
|
+ "family": "",
|
|
|
+ "color": "#000000",
|
|
|
+ "align": "center"
|
|
|
+ },
|
|
|
+ "position": {
|
|
|
+ "x": 1000,
|
|
|
+ "y": 1550
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "paramName": "compTime",
|
|
|
+ "font": {
|
|
|
+ "preStyle": "",
|
|
|
+ "size": 44,
|
|
|
+ "family": "",
|
|
|
+ "color": "#000000",
|
|
|
+ "align": "center"
|
|
|
+ },
|
|
|
+ "position": {
|
|
|
+ "x": 1100,
|
|
|
+ "y": 1643
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "paramName": "certificateName",
|
|
|
+ "font": {
|
|
|
+ "preStyle": "bold",
|
|
|
+ "size": 116,
|
|
|
+ "family": "",
|
|
|
+ "color": "#fe0000",
|
|
|
+ "align": "center"
|
|
|
+ },
|
|
|
+ "position": {
|
|
|
+ "x": 1000,
|
|
|
+ "y": 1900
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
"paramName": "nickName",
|
|
|
"font": {
|
|
|
"preStyle": "bold",
|