|
@@ -0,0 +1,120 @@
|
|
|
+<template>
|
|
|
+ <div class="content">
|
|
|
+ <div class="item" v-for="(sd, i) in sdlist" :key="i">
|
|
|
+ <!-- <div class="icon" :class="`icongdbh${i}`"></div> -->
|
|
|
+ <div class="text">
|
|
|
+ <p>{{ sd.name }}</p>
|
|
|
+ <span class="sdvalue">{{ sd.value || 0 }}</span>
|
|
|
+ <span class="unit">{{ sd.unit }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+// 增加资源本底指标:
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ sdlist: [
|
|
|
+ { name: "陆域", value: "", unit: "km²" },
|
|
|
+ { name: "海域", value: "", unit: "km²" },
|
|
|
+ { name: "海岸线", value: "", unit: "km²" },
|
|
|
+ { name: "耕地", value: "", unit: "km²" },
|
|
|
+ { name: "林地", value: "", unit: "km²" },
|
|
|
+ { name: "森林覆盖率", value: "", unit: "%" },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //监听属性 类似于data概念
|
|
|
+ computed: {},
|
|
|
+ //监控data中的数据变化
|
|
|
+ watch: {},
|
|
|
+ //方法集合
|
|
|
+
|
|
|
+ methods: {},
|
|
|
+ mounted() {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.content {
|
|
|
+ // border: #00FFFF 1px solid;
|
|
|
+ position: absolute;
|
|
|
+ left: calc(50% - 300px);
|
|
|
+ width: 600px;
|
|
|
+ height: 40px;
|
|
|
+ top: 10%;
|
|
|
+ z-index: 100;
|
|
|
+}
|
|
|
+
|
|
|
+.item {
|
|
|
+ width: calc(100% / 6);
|
|
|
+ height: 45px;
|
|
|
+ display: inline-block;
|
|
|
+ // border: #00FFFF 1px solid;
|
|
|
+}
|
|
|
+
|
|
|
+.icon {
|
|
|
+ width: 45px;
|
|
|
+ height: 45px;
|
|
|
+ padding: 2%;
|
|
|
+ border-radius: 8px;
|
|
|
+ display: inline-block;
|
|
|
+ background: no-repeat 50%;
|
|
|
+}
|
|
|
+
|
|
|
+.icongdbh0 {
|
|
|
+ background-image: url("/static/images/overview/icongdbh0.png");
|
|
|
+}
|
|
|
+.icongdbh1 {
|
|
|
+ background-image: url("/static/images/overview/icongdbh1.png");
|
|
|
+}
|
|
|
+.icongdbh2 {
|
|
|
+ background-image: url("/static/images/overview/icongdbh2.png");
|
|
|
+}
|
|
|
+.icongdbh3 {
|
|
|
+ background-image: url("/static/images/overview/icongdbh3.png");
|
|
|
+}
|
|
|
+
|
|
|
+.text {
|
|
|
+ display: inline-block;
|
|
|
+ // border: #00FFFF 1px solid;
|
|
|
+ width: 100px;
|
|
|
+ margin-bottom: 4px;
|
|
|
+
|
|
|
+ p {
|
|
|
+ font-kerning: normal;
|
|
|
+ font-family: "Arial Negreta", "Arial Normal", "Arial";
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #bcd3e5;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sdvalue {
|
|
|
+ font-family: "Arial Negreta", "Arial Normal", "Arial";
|
|
|
+ font-weight: 700;
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #64daff;
|
|
|
+ line-height: 16px;
|
|
|
+ }
|
|
|
+ .unit {
|
|
|
+ font-family: "Arial Negreta", "Arial Normal", "Arial";
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #ecf6ff;
|
|
|
+ line-height: 12px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.value {
|
|
|
+ display: inline-block;
|
|
|
+
|
|
|
+ // border: #00FFFF 1px solid;
|
|
|
+ width: 50px;
|
|
|
+}
|
|
|
+</style>
|