陈冉 6 年 前
コミット
97148ffa4e

+ 7
- 2
package-lock.json ファイルの表示

@@ -1880,6 +1880,7 @@
1880 1880
       "version": "0.18.0",
1881 1881
       "resolved": "http://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
1882 1882
       "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=",
1883
+      "dev": true,
1883 1884
       "requires": {
1884 1885
         "follow-redirects": "^1.3.0",
1885 1886
         "is-buffer": "^1.1.5"
@@ -5200,6 +5201,7 @@
5200 5201
       "version": "1.5.9",
5201 5202
       "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.9.tgz",
5202 5203
       "integrity": "sha512-Bh65EZI/RU8nx0wbYF9shkFZlqLP+6WT/5FnA3cE/djNSuKNHJEinGGZgu/cQEkeeb2GdFOgenAmn8qaqYke2w==",
5204
+      "dev": true,
5203 5205
       "requires": {
5204 5206
         "debug": "=3.1.0"
5205 5207
       },
@@ -5208,6 +5210,7 @@
5208 5210
           "version": "3.1.0",
5209 5211
           "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
5210 5212
           "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
5213
+          "dev": true,
5211 5214
           "requires": {
5212 5215
             "ms": "2.0.0"
5213 5216
           }
@@ -5215,7 +5218,8 @@
5215 5218
         "ms": {
5216 5219
           "version": "2.0.0",
5217 5220
           "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
5218
-          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
5221
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
5222
+          "dev": true
5219 5223
         }
5220 5224
       }
5221 5225
     },
@@ -6997,7 +7001,8 @@
6997 7001
     "is-buffer": {
6998 7002
       "version": "1.1.6",
6999 7003
       "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
7000
-      "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
7004
+      "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
7005
+      "dev": true
7001 7006
     },
7002 7007
     "is-builtin-module": {
7003 7008
       "version": "1.0.0",

+ 1
- 1
package.json ファイルの表示

@@ -9,7 +9,6 @@
9 9
     "lint": "vue-cli-service lint"
10 10
   },
11 11
   "dependencies": {
12
-    "axios": "^0.18.0",
13 12
     "lodash.get": "^4.4.2",
14 13
     "vant": "^1.3.10",
15 14
     "vue": "^2.5.17",
@@ -22,6 +21,7 @@
22 21
     "@vue/cli-plugin-babel": "^3.0.5",
23 22
     "@vue/cli-plugin-eslint": "^3.0.5",
24 23
     "@vue/cli-service": "^3.0.5",
24
+    "axios": "^0.18.0",
25 25
     "postcss-import": "^12.0.1",
26 26
     "postcss-theme-variables": "^1.0.0",
27 27
     "precss": "^3.1.2",

+ 1
- 1
src/config/apis.js ファイルの表示

@@ -7,7 +7,7 @@ const apiList = {
7 7
   },
8 8
   building:{
9 9
     get:{
10
-      url: 'lp/buildingBaseInfo/',
10
+      url: '/api/lp/buildingBaseInfo',
11 11
       method: 'get',
12 12
     },
13 13
   },

+ 88
- 78
src/pages/building/buildingdetail.vue ファイルの表示

@@ -25,67 +25,80 @@
25 25
 </template>
26 26
 
27 27
 <script>
28
-import BuildingHeader from './components/buildingdetailheader.vue'
29
-import HouseName from './components/housename.vue'
30
-import BuildingData from './components/buildingdata.vue'
31
-import BuildingConduction from './components/buildingconduction.vue'
32
-import BuildingPerimeter from './components/buildingperimeter.vue'
33
-import CorrelationDynamics from './components/correlationdynamics.vue'
34
-import CityArea from './components/cityarea.vue'
35
-// import ToaseBox from './components/toasebox.vue'
28
+import { mapState, mapActions } from "vuex";
29
+import BuildingHeader from "./components/buildingdetailheader.vue";
30
+import HouseName from "./components/housename.vue";
31
+import BuildingData from "./components/buildingdata.vue";
32
+import BuildingConduction from "./components/buildingconduction.vue";
33
+import BuildingPerimeter from "./components/buildingperimeter.vue";
34
+import CorrelationDynamics from "./components/correlationdynamics.vue";
35
+import CityArea from "./components/cityarea.vue";
36 36
 
37 37
 export default {
38
-    name:'BuildingDetail',
39
-    components: {
40
-    'vue-headful': () => import('vue-headful'),
41
-    'BuildingHeader':BuildingHeader,
42
-    'HouseName':HouseName,
43
-    'BuildingData':BuildingData,
44
-    'BuildingConduction':BuildingConduction,
45
-    'BuildingPerimeter':BuildingPerimeter,
46
-    'CorrelationDynamics':CorrelationDynamics,
47
-    'CityArea':CityArea,
48
-    // 'ToaseBox':ToaseBox,
38
+  name: "BuildingDetail",
39
+  components: {
40
+    "vue-headful": () => import("vue-headful"),
41
+    BuildingHeader: BuildingHeader,
42
+    HouseName: HouseName,
43
+    BuildingData: BuildingData,
44
+    BuildingConduction: BuildingConduction,
45
+    BuildingPerimeter: BuildingPerimeter,
46
+    CorrelationDynamics: CorrelationDynamics,
47
+    CityArea: CityArea
48
+  },
49
+  data() {
50
+    return {};
51
+  },
52
+  computed: {
53
+    // building() {
54
+    //   return this.$store.state.building;
55
+    // },
56
+    ...mapState({
57
+      name: item => item.name
58
+    })
59
+  },
60
+  created() {
61
+    // this.$store.dispatch('getBuilding')
62
+    this.getBuilding({ id: "123" });
49 63
   },
50
-  //  mounted() {
51
-  //   this.$dialog.alert({
52
-  //     message: '弹窗内容'
53
-  //   });
54
-  // },
55 64
   methods: {
65
+    ...mapActions(["getBuilding"]),
56 66
     gotoLookHouse() {
57
-      this.$router.push({ name: 'lookhouse' })
67
+      this.$router.push({ name: "lookhouse" });
58 68
     },
59
-    gotopageimg () {
60
-      this.$router.push({ name: 'buildingimage' })
69
+    gotopageimg() {
70
+      this.$router.push({ name: "buildingimage" });
61 71
     },
62
-    gotopagetype () {
63
-      this.$router.push({ name: 'buildingtype' })
72
+    gotopagetype() {
73
+      this.$router.push({ name: "buildingtype" });
64 74
     }
75
+    // getBuildingInfo(){
76
+    //   axios.get(./)
77
+    // }
65 78
   }
66
-}
79
+};
67 80
 </script>
68 81
 
69 82
 <!-- Add "scoped" attribute to limit CSS to this component only -->
70 83
 <style lang="postcss" scoped>
71
-.context{
84
+.context {
72 85
   width: 100%;
73 86
   height: 610px;
74 87
   overflow-y: auto;
75 88
 
76
-  .clickbutton{
89
+  .clickbutton {
77 90
     width: 100%;
78 91
     height: 52px;
79 92
     display: flex;
80 93
     align-items: center;
81 94
     justify-content: space-between;
82 95
 
83
-    .iconline{
84
-      height:16px;
85
-      border:1px solid #EAEAEA;
96
+    .iconline {
97
+      height: 16px;
98
+      border: 1px solid #eaeaea;
86 99
     }
87 100
 
88
-    .gotopageimg{
101
+    .gotopageimg {
89 102
       height: 100%;
90 103
       display: flex;
91 104
       flex-direction: row;
@@ -93,68 +106,65 @@ export default {
93 106
       margin-left: 20px;
94 107
     }
95 108
 
96
-    .gotopagetype{
97
-          height: 100%;
98
-          display: flex;
99
-          flex-direction: row;
100
-          align-items: center;
101
-        }
102
-
103
-    .gotopagecollect{
104
-          height: 100%;
105
-          display: flex;
106
-          flex-direction: row;
107
-          align-items: center;
108
-          margin-right: 30px;
109
-        }
109
+    .gotopagetype {
110
+      height: 100%;
111
+      display: flex;
112
+      flex-direction: row;
113
+      align-items: center;
114
+    }
110 115
 
116
+    .gotopagecollect {
117
+      height: 100%;
118
+      display: flex;
119
+      flex-direction: row;
120
+      align-items: center;
121
+      margin-right: 30px;
122
+    }
111 123
 
112
-    .right{
113
-      color: #A1A1A1!important;
124
+    .right {
125
+      color: #a1a1a1 !important;
114 126
       font-size: 10px !important;
115 127
       padding-left: 5px;
116 128
     }
117 129
 
118
-    .collect{
130
+    .collect {
119 131
       font-size: 20px !important;
120
-      color:rgba(252,198,74,1) !important;
132
+      color: rgba(252, 198, 74, 1) !important;
121 133
       padding-right: 5px;
122 134
     }
123 135
 
124
-    .clickcharacters{
125
-    padding: 0 !important;
126
-    font-size:14px;
127
-    font-family:PingFangSC-Regular;
128
-    font-weight:400;
129
-    color:rgba(102,102,102,1);
130
-    line-height:20px;
131
-    text-align: center;
132
-    }
133
-
136
+    .clickcharacters {
137
+      padding: 0 !important;
138
+      font-size: 14px;
139
+      font-family: PingFangSC-Regular;
140
+      font-weight: 400;
141
+      color: rgba(102, 102, 102, 1);
142
+      line-height: 20px;
143
+      text-align: center;
134 144
     }
145
+  }
135 146
 
136
-  .housecenter{
147
+  .housecenter {
137 148
     width: 100%;
138 149
     height: 353px;
139
-    background-color:rgba(255,255,255,1);
150
+    background-color: rgba(255, 255, 255, 1);
140 151
     margin-bottom: 10px;
141 152
 
142
-    .line{
143
-      width:90%;
144
-      border: 0.5px solid #EFEFEF;
153
+    .line {
154
+      width: 90%;
155
+      border: 0.5px solid #efefef;
145 156
     }
146 157
   }
147 158
 
148
-  .van-button{
159
+  .van-button {
149 160
     position: fixed;
150
-    top:617px;
151
-    left:0;
152
-    background-color: rgba(63,65,68,1);
153
-    font-size:16px;
154
-    font-family:PingFangSC-Regular;
155
-    font-weight:400;
156
-    color:rgba(255,255,255,1);
161
+    top: 617px;
162
+    left: 0;
163
+    background-color: rgba(63, 65, 68, 1);
164
+    font-size: 16px;
165
+    font-family: PingFangSC-Regular;
166
+    font-weight: 400;
167
+    color: rgba(255, 255, 255, 1);
157 168
   }
158 169
 }
159
-
160 170
 </style>

+ 2
- 1
src/pages/building/components/housename.vue ファイルの表示

@@ -34,7 +34,7 @@ export default {
34 34
 .housename{
35 35
     margin-top: 10px;
36 36
     width: 100%;
37
-    height: 95px;
37
+    height: 60px;
38 38
     display: flex;
39 39
     flex-direction: column;
40 40
     justify-content: center;
@@ -46,6 +46,7 @@ export default {
46 46
       justify-content: space-between;
47 47
       width: 90%;
48 48
       margin-bottom:5px;
49
+      padding-top:10px;
49 50
     }
50 51
 
51 52
     .price{

+ 149
- 144
src/pages/building/components/typecontent.vue ファイルの表示

@@ -1,144 +1,149 @@
1
-<template>
2
-    <div class="typecontent">
3
-        <div class="househeader">
4
-            <div class="headertop">
5
-                <span class="typetitle">B户型</span>
6
-                <span class="typeprice">24000元/㎡<span class="fixedsize">起</span></span>
7
-            </div>
8
-            <div class="headerbottom">
9
-                <span class="typefeature">挑高双层</span>
10
-                <span class="typearea">建筑面积:182.5㎡</span>
11
-            </div>
12
-            <div class="housefeature">
13
-                <span class="bigcharacters">三室两厅两卫</span>
14
-                <span class="smallcharacters">
15
-                    <span class="fixedsmallcharacters">户型描述:</span>
16
-                    <span class="trendssmallcharacters">客厅空间较大,有足够的活动空间,有私家花园,提高生活品质。主卧朝南,且与阳台相连。</span>
17
-                </span>
18
-            </div>
19
-        </div>
20
-    </div>
21
-</template>
22
-
23
-<script>
24
-export default {
25
-    name:'TypeContent'
26
-}
27
-</script>
28
-
29
-<style lang="postcss" scoped>
30
-.typecontent{
31
-    width: 100%;
32
-    background-color: rgba(248,248,248,1);
33
-     margin-top: 10px;
34
-
35
-    .househeader{
36
-        width:100%;
37
-
38
-        .headertop{
39
-            width: 100%;
40
-            display: flex;
41
-            flex-direction: row;
42
-            justify-content: space-between;
43
-            margin-bottom: 10px;
44
-
45
-            .typetitle{
46
-                font-size:18px;
47
-                font-family:PingFangSC-Regular;
48
-                font-weight:400;
49
-                color:rgba(61,61,61,1);
50
-                line-height:25px;
51
-                padding-left:20px;
52
-            }
53
-            
54
-            .typeprice{
55
-                display: flex;
56
-                flex-direction: row;
57
-                font-size:16px;
58
-                font-family:PingFangSC-Medium;
59
-                font-weight:500;
60
-                color:rgba(255,84,84,1);
61
-                line-height:22px;
62
-                padding-right: 20px;
63
-
64
-                .fixedsize{
65
-                    font-size:12px;
66
-                    font-family:PingFangSC-Medium;
67
-                    font-weight:500;
68
-                    color:#999999;
69
-                    line-height:22px;
70
-                }
71
-            }
72
-
73
-        }
74
-
75
-        .headerbottom{
76
-            width: 100%;
77
-            display: flex;
78
-            flex-direction: row;
79
-            justify-content: space-between;
80
-
81
-            .typefeature{
82
-                background:rgba(247,250,255,1);
83
-                border-radius:2px;
84
-                padding: 4px 5px;
85
-                font-size:12px;
86
-                font-family:PingFangSC-Regular;
87
-                font-weight:400;
88
-                color:rgba(119,165,240,1);
89
-                line-height:17px;
90
-                padding-left:20px;
91
-            }
92
-
93
-            .typearea{
94
-                font-size:12px;
95
-                font-family:PingFangSC-Regular;
96
-                font-weight:400;
97
-                color:rgba(97,97,97,1);
98
-                line-height:17px;
99
-                padding-right: 20px;
100
-            }
101
-            
102
-        }
103
-
104
-        .housefeature{
105
-            display: flex;
106
-            flex-direction: column;
107
-        
108
-            .bigcharacters{
109
-                font-size:18px;
110
-                font-family:PingFangSC-Regular;
111
-                font-weight:400;
112
-                color:rgba(61,61,61,1);
113
-                line-height:25px;
114
-                padding:20px 0 0 20px;
115
-            }
116
-
117
-            .smallcharacters{
118
-                padding: 10px  20px  10px 20px;
119
-                display: flex;
120
-                flex-direction: row;
121
-                justify-content: space-between;
122
-
123
-                .fixedsmallcharacters{
124
-                    font-size:14px;
125
-                    font-family:PingFangSC-Regular;
126
-                    font-weight:400;
127
-                    color:rgba(97,97,97,1);
128
-                    line-height:20px;
129
-                    width:46%;
130
-                }
131
-                .trendssmallcharacters{
132
-                    font-size:14px;
133
-                    font-family:PingFangSC-Regular;
134
-                    font-weight:400;
135
-                    color:rgba(97,97,97,1);
136
-                    line-height:20px;
137
-                }
138
-            }
139
-        }
140
-    }
141
-}
142
-</style>
143
-
144
-
1
+<template>
2
+    <div class="typecontent">
3
+        <div class="househeader">
4
+            <house-name></house-name>
5
+            <!-- <div class="headertop">
6
+                <span class="typetitle">B户型</span>
7
+                <span class="typeprice">24000元/㎡<span class="fixedsize">起</span></span>
8
+            </div>
9
+            <div class="headerbottom">
10
+                <span class="typefeature">挑高双层</span>
11
+                <span class="typearea">建筑面积:182.5㎡</span>
12
+            </div> -->
13
+            <div class="housefeature">
14
+                <span class="bigcharacters">三室两厅两卫</span>
15
+                <span class="smallcharacters">
16
+                    <span class="fixedsmallcharacters">户型描述:</span>
17
+                    <span class="trendssmallcharacters">客厅空间较大,有足够的活动空间,有私家花园,提高生活品质。主卧朝南,且与阳台相连。</span>
18
+                </span>
19
+            </div>
20
+        </div>
21
+    </div>
22
+</template>
23
+
24
+<script>
25
+import HouseName from './housename.vue'
26
+export default {
27
+    name:'TypeContent',
28
+    components:{
29
+        'HouseName':HouseName
30
+    }
31
+}
32
+</script>
33
+
34
+<style lang="postcss" scoped>
35
+.typecontent{
36
+    width: 100%;
37
+    background-color: rgba(248,248,248,1);
38
+     margin-top: 10px;
39
+
40
+    .househeader{
41
+        width:100%;
42
+
43
+        .headertop{
44
+            width: 100%;
45
+            display: flex;
46
+            flex-direction: row;
47
+            justify-content: space-between;
48
+            margin-bottom: 10px;
49
+
50
+            .typetitle{
51
+                font-size:18px;
52
+                font-family:PingFangSC-Regular;
53
+                font-weight:400;
54
+                color:rgba(61,61,61,1);
55
+                line-height:25px;
56
+                padding-left:20px;
57
+            }
58
+            
59
+            .typeprice{
60
+                display: flex;
61
+                flex-direction: row;
62
+                font-size:16px;
63
+                font-family:PingFangSC-Medium;
64
+                font-weight:500;
65
+                color:rgba(255,84,84,1);
66
+                line-height:22px;
67
+                padding-right: 20px;
68
+
69
+                .fixedsize{
70
+                    font-size:12px;
71
+                    font-family:PingFangSC-Medium;
72
+                    font-weight:500;
73
+                    color:#999999;
74
+                    line-height:22px;
75
+                }
76
+            }
77
+
78
+        }
79
+
80
+        .headerbottom{
81
+            width: 100%;
82
+            display: flex;
83
+            flex-direction: row;
84
+            justify-content: space-between;
85
+
86
+            .typefeature{
87
+                background:rgba(247,250,255,1);
88
+                border-radius:2px;
89
+                padding: 4px 5px;
90
+                font-size:12px;
91
+                font-family:PingFangSC-Regular;
92
+                font-weight:400;
93
+                color:rgba(119,165,240,1);
94
+                line-height:17px;
95
+                padding-left:20px;
96
+            }
97
+
98
+            .typearea{
99
+                font-size:12px;
100
+                font-family:PingFangSC-Regular;
101
+                font-weight:400;
102
+                color:rgba(97,97,97,1);
103
+                line-height:17px;
104
+                padding-right: 20px;
105
+            }
106
+            
107
+        }
108
+
109
+        .housefeature{
110
+            display: flex;
111
+            flex-direction: column;
112
+        
113
+            .bigcharacters{
114
+                font-size:18px;
115
+                font-family:PingFangSC-Regular;
116
+                font-weight:400;
117
+                color:rgba(61,61,61,1);
118
+                line-height:25px;
119
+                padding:20px 0 0 20px;
120
+            }
121
+
122
+            .smallcharacters{
123
+                padding: 10px  20px  10px 20px;
124
+                display: flex;
125
+                flex-direction: row;
126
+                justify-content: space-between;
127
+
128
+                .fixedsmallcharacters{
129
+                    font-size:14px;
130
+                    font-family:PingFangSC-Regular;
131
+                    font-weight:400;
132
+                    color:rgba(97,97,97,1);
133
+                    line-height:20px;
134
+                    width:46%;
135
+                }
136
+                .trendssmallcharacters{
137
+                    font-size:14px;
138
+                    font-family:PingFangSC-Regular;
139
+                    font-weight:400;
140
+                    color:rgba(97,97,97,1);
141
+                    line-height:20px;
142
+                }
143
+            }
144
+        }
145
+    }
146
+}
147
+</style>
148
+
149
+

+ 87
- 82
src/pages/building/components/typeheader.vue ファイルの表示

@@ -1,82 +1,87 @@
1
-<template>
2
-    <div class="typeheader">
3
-        <van-swipe class="slidewrapper" :autoplay="3000">
4
-            <van-swipe-item class="slideimg" v-for="(image, index) in images" :key="index">
5
-                <img v-lazy="image" />
6
-            </van-swipe-item>
7
-        </van-swipe>
8
-        <div class="typeindex">
9
-             <span class="typename">帝景天寓楼栋图</span>
10
-               <div class="imageindex">
11
-                   <span class="countimage countindex">2</span>
12
-                   <span class="countimage">/</span>
13
-                   <span class="countimage totalcount">4</span>
14
-               </div>
15
-        </div>
16
-    </div>
17
-</template>
18
-
19
-<script>
20
-export default {
21
-    name:'TypeHeader'
22
-}
23
-</script>
24
-
25
-<style lang="postcss" scoped>
26
-.typeheader{
27
- width:100%;
28
- height: 262px;
29
-
30
-    .slidewrapper{
31
-        width: 100%;
32
-        height: 225px;
33
-
34
-        .slideimg{
35
-            width: 100%;
36
-            height: 100%;
37
-        }
38
-    }
39
-
40
-    .typeindex{
41
-        width: 100%;
42
-        height: 37px;
43
-        background-color: rgba(248,248,248,1);
44
-        border-top:0.5px solid #EAEAEA;
45
-        display: flex;
46
-        flex-direction: row;
47
-        align-items: center;
48
-        justify-content: space-between;
49
-
50
-        .typename{
51
-            font-size:12px;
52
-            font-family:PingFangSC-Regular;
53
-            font-weight:400;
54
-            color:rgba(127,127,127,1);
55
-            line-height:17px;
56
-            padding-left:15px;
57
-        }
58
-
59
-        .imageindex{
60
-                padding-right: 15px;
61
-
62
-                .countimage{
63
-                    font-size:12px;
64
-                    font-family:PingFangSC-Regular;
65
-                    font-weight:400;
66
-                    color:rgba(127,127,127,1);
67
-                    line-height:17px;
68
-
69
-                    .boxcharacters{
70
-                        font-size:12px;
71
-                        font-family:PingFangSC-Regular;
72
-                        font-weight:400;
73
-                        color:rgba(255,255,255,1);
74
-                        line-height:17px;
75
-                    }
76
-                }
77
-            }
78
-    }
79
-}
80
-</style>
81
-
82
-
1
+<template>
2
+    <div class="typeheader">
3
+        <van-swipe class="slidewrapper" :autoplay="3000">
4
+            <van-swipe-item class="slideimg" v-for="(image, index) in images" :key="index">
5
+                <img v-lazy="image" />
6
+            </van-swipe-item>
7
+        </van-swipe>
8
+        <div class="typeindex">
9
+             <span class="typename">帝景天寓楼栋图</span>
10
+               <div class="imageindex">
11
+                   <span class="countimage countindex">2</span>
12
+                   <span class="countimage">/</span>
13
+                   <span class="countimage totalcount">4</span>
14
+               </div>
15
+        </div>
16
+    </div>
17
+</template>
18
+
19
+<script>
20
+export default {
21
+    name:'TypeHeader',
22
+    data (){
23
+        return{
24
+            images:''
25
+        } 
26
+    }
27
+}
28
+</script>
29
+
30
+<style lang="postcss" scoped>
31
+.typeheader{
32
+ width:100%;
33
+ height: 262px;
34
+
35
+    .slidewrapper{
36
+        width: 100%;
37
+        height: 225px;
38
+
39
+        .slideimg{
40
+            width: 100%;
41
+            height: 100%;
42
+        }
43
+    }
44
+
45
+    .typeindex{
46
+        width: 100%;
47
+        height: 37px;
48
+        background-color: rgba(248,248,248,1);
49
+        border-top:0.5px solid #EAEAEA;
50
+        display: flex;
51
+        flex-direction: row;
52
+        align-items: center;
53
+        justify-content: space-between;
54
+
55
+        .typename{
56
+            font-size:12px;
57
+            font-family:PingFangSC-Regular;
58
+            font-weight:400;
59
+            color:rgba(127,127,127,1);
60
+            line-height:17px;
61
+            padding-left:15px;
62
+        }
63
+
64
+        .imageindex{
65
+                padding-right: 15px;
66
+
67
+                .countimage{
68
+                    font-size:12px;
69
+                    font-family:PingFangSC-Regular;
70
+                    font-weight:400;
71
+                    color:rgba(127,127,127,1);
72
+                    line-height:17px;
73
+
74
+                    .boxcharacters{
75
+                        font-size:12px;
76
+                        font-family:PingFangSC-Regular;
77
+                        font-weight:400;
78
+                        color:rgba(255,255,255,1);
79
+                        line-height:17px;
80
+                    }
81
+                }
82
+            }
83
+    }
84
+}
85
+</style>
86
+
87
+

+ 2
- 1
src/pages/reservation/lookhouse.vue ファイルの表示

@@ -50,7 +50,8 @@ export default {
50 50
       minDate: new Date(),
51 51
       maxDate: new Date(2080, 10, 1),
52 52
       currentDate: new Date(),
53
-      remnant:0 //输入数
53
+      remnant:0 ,//输入数
54
+      desc:''
54 55
 
55 56
     };
56 57
   },

+ 25
- 0
src/store/building.js ファイルの表示

@@ -0,0 +1,25 @@
1
+import request from '../utils/request'
2
+import getAPI from '../config/apis'
3
+
4
+export default {
5
+    state: {
6
+      name: '',
7
+      id: '',
8
+      avator: '',
9
+    },
10
+    mutations: {
11
+      updateBuilding(state, newBuilding) {
12
+        const { name, id, avator } = newBuilding;
13
+        state.name = name;
14
+        state.id = id;
15
+        state.avator = avator;
16
+      }
17
+    },
18
+    actions: {
19
+      getBuilding({ commit }, params) {
20
+        request({ ...getAPI('building.get'), query: params }).then((data) => {
21
+          commit('updateBuilding', data)
22
+        })
23
+      },
24
+    }
25
+  }

+ 1
- 0
src/store/index.js ファイルの表示

@@ -7,6 +7,7 @@ const store = new Vuex.Store({
7 7
   modules: {
8 8
     app: require('./app.js').default,
9 9
     user: require('./user.js').default,
10
+    building: require('./building.js').default,
10 11
   }
11 12
 });
12 13
 

+ 4
- 5
src/utils/request.js ファイルの表示

@@ -1,5 +1,5 @@
1 1
 import axios from 'axios'
2
-import loadding from './loadding'
2
+// import loadding from './loadding'
3 3
 
4 4
 export default function request(config) {
5 5
   return new Promise((resolve, reject) => {
@@ -22,8 +22,7 @@ export default function request(config) {
22 22
       })
23 23
     }
24 24
 
25
-    const id = loadding.start()
26
-
25
+    // const id = loadding.start()
27 26
     axios({
28 27
       params,
29 28
       data: !data ? undefined : fmtData,
@@ -33,12 +32,12 @@ export default function request(config) {
33 32
       ...conf,
34 33
     }).then((response) => {
35 34
       const data = response.data;
36
-      loadding.stop(id);
35
+      // loadding.stop(id);
37 36
 
38 37
       resolve(data);
39 38
     }).catch((error) => {
40 39
       // console.error(error);
41
-      loadding.stop(id);
40
+      // loadding.stop(id);
42 41
 
43 42
       reject(error.message);
44 43
     });

+ 13
- 0
vue.config.js ファイルの表示

@@ -19,5 +19,18 @@ module.exports = {
19 19
         ]
20 20
       }
21 21
     }
22
+  },
23
+  devServer: {
24
+    proxy: {
25
+      '/api': {
26
+        target: 'http://192.168.0.166:8087', // wf
27
+        changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
28
+        // pathRewrite: {
29
+        //   '^/api': '/api-v2/api'
30
+        // },
31
+      },
32
+    },
33
+    // compress: true,
34
+    disableHostCheck: true,   // That solved it
22 35
   }
23 36
 }