13693261870
2023-06-21 cdf12fc9e88b1af69f5c85165eb9fef4e23bf57a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<template>
  <div class="box">
    <div class="content">
      <div class="box1">
        <div class="titleOne">市场主体</div>
        <div class="titleTwo"
             style="">{{ value1 }}<label class="labelOne">家</label></div>
      </div>
      <div class="box2">
        <div class="boximage"></div>
      </div>
      <div class="box3">
        <div class="titleOne">全区工业总产值</div>
        <div class="titleTwo"
             style="">{{ value2 }}<label class="labelOne">亿元</label></div>
      </div>
      <div class="box2">
        <div class="boximage"></div>
      </div>
      <div class="box5">
        <div class="titleOne">常驻人口数</div>
        <div class="titleTwo"
             style="">{{ value3 }}<label class="labelOne">万人</label></div>
      </div>
    </div>
  </div>
</template>
 
<script>
import axios from 'axios'
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data () {
    //这里存放数据
    return {
      value1: 0,
      value2: 0,
      value3: 0,
    }
  },
  //方法集合
  methods: {
    getHost: function () {
      return location.href.indexOf(API_HOST) > -1 ? "easy-data/" : JD_API + "easy-data/";
    },
    getAllDate () {
      var host = this.getHost()
 
      var fullYear = new Date().getFullYear() - 2
      axios({
        method: 'post',
        url: host + 'sql/data/api/v2/execute/customResult/SA2022011613534609480943/data',
        data: { indexTime: fullYear }
      }).then((res) => {
        console.log("PopopPage => ", res)
        this.value1 = res.data.dp_jjyx_069 == null ? 0 : res.data.dp_jjyx_069;//dp_jkqgl_002
        this.value2 = res.data.dp_jkqgl_002 == null ? 0 : res.data.dp_jkqgl_002;//dp_jkqgl_001
        this.value3 = res.data.dp_jkqgl_004 == null ? 0 : res.data.dp_jkqgl_004;//
      })
    }
  },
  created () { },
  mounted () {
    this.getAllDate()
  }
}
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类、
 
.box {
  // display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  background: url('../../../assets/img/Popup.png') no-repeat center;
  background-size: 100% 100%;
 
  .content {
    height: 96px;
    width: 666px;
    margin-left: 127px;
    margin-top: 32px;
    color: white;
 
    position: absolute;
 
    .titleOne {
      height: 32px;
      font-family: SourceHanSansCN;
      font-style: normal;
      font-weight: 500;
      font-size: 32px;
      line-height: 32px;
      color: #ffffff;
      width: 100%;
    }
    .titleTwo {
      height: 30px;
      margin-top: 22px;
      font-family: jdZhengHT;
      font-style: normal;
      font-weight: 400;
      font-size: 40px;
      line-height: 30px;
      width: 100%;
      color: #ffffff;
 
      text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.6);
    }
    label {
      font-size: 20px;
      font-family: SourceHanSansCN;
      font-style: normal;
    }
    .box2 {
      width: 2px;
      padding-left: 16px;
      padding-right: 16px;
      height: 100%;
      float: left;
      .boximage {
        width: 100%;
        height: 100%;
        background: url('../../../assets/img/Line 52 (Stroke).png') no-repeat
          center;
        background-size: 100% 100%;
      }
    }
    .box1 {
      width: 154px;
      height: 96px;
      float: left;
    }
    .box3 {
      width: 224px;
      height: 96px;
      float: left;
    }
    .box5 {
      width: 160px;
      height: 96px;
      float: left;
    }
  }
}
</style>