-

-

+

+

-
2021.11.21 10:42 Temperature
+
{{title}}
@@ -98,31 +98,33 @@
diff --git a/04.系统编码/Frontend/src/hooks/Config.ts b/04.系统编码/Frontend/src/hooks/Config.ts
new file mode 100644
index 0000000..4d2c0ea
--- /dev/null
+++ b/04.系统编码/Frontend/src/hooks/Config.ts
@@ -0,0 +1,13 @@
+import { Moment } from "moment";
+
+export class Config {
+ public static parentUrl: string = "http://112.124.40.88:8890/product/picture";
+}
+
+export class MicrowaveRadiationConfig {
+ private static url: string = Config.parentUrl + "/weibo";
+
+ public static getUrl(station: string, type: string, time: Moment): string {
+ return this.url+ '/' + station + '/' + type + '/' + time.format("YYYY/YYYYMM/YYYYMMDD/YYYYMMDDHHmmss.png");
+ }
+}
\ No newline at end of file
diff --git a/04.系统编码/Frontend/src/hooks/String.ts b/04.系统编码/Frontend/src/hooks/String.ts
new file mode 100644
index 0000000..0ea850f
--- /dev/null
+++ b/04.系统编码/Frontend/src/hooks/String.ts
@@ -0,0 +1,6 @@
+export function format(...args: any[]) {
+ return args[0].replace(/{(\d+)}/g, function (match: any, number: any) {
+ let index = parseInt(number) + 1;
+ return typeof args[index] !== 'undefined' ? args[index] : match;
+ });
+}
\ No newline at end of file
diff --git a/04.系统编码/Frontend/src/index.less b/04.系统编码/Frontend/src/index.less
index 1162064..fb403c2 100644
--- a/04.系统编码/Frontend/src/index.less
+++ b/04.系统编码/Frontend/src/index.less
@@ -104,8 +104,9 @@ img {
}
.main {
- width: 100%;
+ width: calc(~"100% - 0.4rem");
height: calc(~"100vh - 1.44rem");
+ padding: 0 0.2rem;
display: flex;
.panel {
@@ -118,7 +119,6 @@ img {
width: 2.5rem;
padding: 0.2rem;
height: calc(~"100% - 0.6rem");
- border-radius: 0 0.1rem 0.1rem 0;
.tip {
height: 0.32rem;
@@ -163,6 +163,7 @@ img {
.container {
width: calc(~"100% - 2.9rem");
margin-left: 0.2rem;
+ position: relative;
.toolbar {
padding-top: 0.25rem;
@@ -360,12 +361,8 @@ img {
}
.save-btn {
- width: 0.26rem;
- display: block;
- position: absolute;
top: 0.6rem;
right: 2rem;
- cursor: pointer;
}
.title {
@@ -396,5 +393,14 @@ img {
}
}
}
+
+ .save-btn {
+ width: 0.26rem;
+ cursor: pointer;
+ position: absolute;
+ right: 0.2rem;
+ top: 0;
+ z-index: 10;
+ }
}
}
\ No newline at end of file