陈冉 6 년 전
부모
커밋
f18c7e4b7f

+ 22
- 12
src/App.vue 파일 보기

@@ -6,26 +6,26 @@
6 6
 
7 7
 <script>
8 8
 import { createNamespacedHelpers } from "vuex";
9
-// const {mapState: mapcodeState,mapActions: mapcodeActions} = createNamespacedHelpers("getcode")
9
+const {mapState: mapcodeState,mapActions: mapcodeActions} = createNamespacedHelpers("getcode")
10 10
 
11 11
 export default {
12 12
   name: "app",
13 13
   components: {},
14
-  data() {
15
-    return {
16
-      logo: "./assets/logo.png"
17
-    };
18
-  },
19
-  // computed: {
20
-  //   ...mapcodeState({
21
-  //     uercode: s => s.uercode
22
-  //   })
14
+  // data() {
15
+  //   return {
16
+  //     logo: "./assets/logo.png"
17
+  //   };
23 18
   // },
19
+  computed: {
20
+    ...mapcodeState({
21
+      usercode: s => s.usercode
22
+    })
23
+  },
24 24
   created() {
25 25
     if (location.search && this.UrlSearch(location.search).code) {
26 26
       this.code = this.UrlSearch(location.search).code;
27 27
       this.getGetCode({
28
-        uercode:this.code 
28
+        usercode:this.code 
29 29
     })
30 30
 
31 31
     } else {
@@ -33,7 +33,7 @@ export default {
33 33
     }
34 34
   },
35 35
   methods: {
36
-    // ...mapcodeActions(['getGetCode']),
36
+    ...mapcodeActions(['getGetCode']),
37 37
     
38 38
     UrlSearch(urls) {
39 39
       let url = urls; // 获取url中"?"符后的字串
@@ -65,3 +65,13 @@ body,
65 65
   height: 100%;
66 66
 }
67 67
 </style>
68
+
69
+<style>
70
+.van-modal {
71
+  background: rgba(0, 0, 0, 0.3);
72
+}
73
+.van-dialog__message{
74
+  color:#535353;
75
+  line-height:1.6;
76
+}
77
+</style>

+ 0
- 23
src/component/buildingdetailheader.vue 파일 보기

@@ -1,23 +0,0 @@
1
-<template>
2
-    <div class="headerbigimg">
3
-    <img class="bigimg" src=""/>
4
-    </div>
5
-</template>
6
-
7
-<script>
8
-export default {
9
-  name:'buildingdetail',
10
-}
11
-</script>
12
-
13
-<style lang="postcss" scoped>
14
-.headerbigimg{
15
-  width: 100%;
16
-  height: 211px;
17
-  & .bigimg{
18
-    width: 100%;
19
-  }
20
-}
21
-</style>
22
-
23
-

+ 0
- 44
src/component/cityarea.vue 파일 보기

@@ -1,44 +0,0 @@
1
-<template>
2
-    <div class="cityarea">
3
-        <span class="iconfont icon-Shape1 iconarea"></span>
4
-        <span class="areaname">浦口区</span>
5
-    </div>
6
-</template>
7
-
8
-<script>
9
-export default {
10
-    name:'CityArea',
11
-}
12
-</script>
13
-
14
-<style lang="postcss" scoped>
15
-.cityarea{
16
-    width:72px;
17
-    height:27px;
18
-    background:rgba(0,0,0,0.39);
19
-    padding: 0 0 0 5px;
20
-    border-radius:0px 0px 25px 0px;
21
-    position: fixed;
22
-    top: 0;
23
-    left: 0;
24
-    display: flex;
25
-    flex-direction: row;
26
-    align-items: center;
27
-
28
-    .iconarea{
29
-        font-size: 10px !important;
30
-        color:rgba(255,255,255,1) !important;
31
-        padding-right:5px;
32
-    }
33
-
34
-    .areaname{
35
-        font-size:12px;
36
-        font-family:PingFangSC-Regular;
37
-        font-weight:400;
38
-        color:rgba(255,255,255,1);
39
-        line-height:17px;
40
-    }
41
-}
42
-</style>
43
-
44
-

src/pages/building/components/buildingconduction.vue → src/components/buildingconduction.vue 파일 보기

@@ -1,66 +1,66 @@
1
-<template>
2
-     <div class="houseconduction">
3
-       <div class="conduction">
4
-         <span class="conductiontitle">楼盘简介</span>
5
-       </div>
6
-       <hr class="line" />
7
-       <div class="conductioncontent">
8
-         <span class="conductioncharacters">项目位于江北浦口东至泰冯路,南至浦泗路,西至宁六公路,
9
-           北至中心路;位置不错,靠近南京大学金陵学院、东大成贤学院等;
10
-           邻近三号线泰冯路地铁站,周边人流大,适合投资或者自住;总价也
11
-           不高,户型也很舒服;项目位于江北浦口东至泰冯路,南至浦泗路,
12
-           西至宁六公路,北至中心路;位置不错,靠近南京大学金陵学院、
13
-           东大成贤学院等;邻近三号线泰冯路地铁站,周边人流大,</span>
14
-       </div>
15
-    </div>
16
-</template>
17
-
18
-<script>
19
-export default {
20
-    name:'BuildingConduction',
21
-}
22
-</script>
23
-
24
-<style lang="postcss" scoped>
25
- .houseconduction{
26
-    width: 100%;
27
-    height: auto;
28
-    background-color: rgba(255,255,255,1);
29
-    margin-bottom: 10px;
30
-
31
-   .line{
32
-      width:90%;
33
-      border: 0.5px solid #EFEFEF;
34
-    }
35
-    .conduction{
36
-      padding: 20px 0 18px 20px;
37
-
38
-      .conductiontitle{
39
-        font-size:18px;
40
-        font-family:PingFangSC-Regular;
41
-        font-weight:400;
42
-        color:rgba(37,38,42,1);
43
-        line-height:25px;
44
-      }
45
-
46
-    }
47
-
48
-    .conductioncontent{
49
-      width: 90%;
50
-      height: auto;
51
-      margin-left:5%;
52
-      text-align: justify;
53
-      padding-bottom: 20px;
54
-      
55
-      .conductioncharacters{
56
-        font-size:14px;
57
-        font-family:PingFangSC-Regular;
58
-        font-weight:400;
59
-        color:rgba(113,108,108,1);
60
-        line-height:23px;
61
-      }
62
-    }
63
-
64
-  }
65
-
66
-</style>
1
+<template>
2
+     <div class="houseconduction">
3
+       <div class="conduction">
4
+         <span class="conductiontitle">楼盘简介</span>
5
+       </div>
6
+       <hr class="line" />
7
+       <div class="conductioncontent">
8
+         <span class="conductioncharacters">项目位于江北浦口东至泰冯路,南至浦泗路,西至宁六公路,
9
+           北至中心路;位置不错,靠近南京大学金陵学院、东大成贤学院等;
10
+           邻近三号线泰冯路地铁站,周边人流大,适合投资或者自住;总价也
11
+           不高,户型也很舒服;项目位于江北浦口东至泰冯路,南至浦泗路,
12
+           西至宁六公路,北至中心路;位置不错,靠近南京大学金陵学院、
13
+           东大成贤学院等;邻近三号线泰冯路地铁站,周边人流大,</span>
14
+       </div>
15
+    </div>
16
+</template>
17
+
18
+<script>
19
+export default {
20
+    name:'BuildingConduction',
21
+}
22
+</script>
23
+
24
+<style lang="postcss" scoped>
25
+ .houseconduction{
26
+    width: 100%;
27
+    height: auto;
28
+    background-color: rgba(255,255,255,1);
29
+    margin-bottom: 10px;
30
+
31
+   .line{
32
+      width:90%;
33
+      border: 0.5px solid #EFEFEF;
34
+    }
35
+    .conduction{
36
+      padding: 20px 0 18px 20px;
37
+
38
+      .conductiontitle{
39
+        font-size:18px;
40
+        font-family:PingFangSC-Regular;
41
+        font-weight:400;
42
+        color:rgba(37,38,42,1);
43
+        line-height:25px;
44
+      }
45
+
46
+    }
47
+
48
+    .conductioncontent{
49
+      width: 90%;
50
+      height: auto;
51
+      margin-left:5%;
52
+      text-align: justify;
53
+      padding-bottom: 20px;
54
+      
55
+      .conductioncharacters{
56
+        font-size:14px;
57
+        font-family:PingFangSC-Regular;
58
+        font-weight:400;
59
+        color:rgba(113,108,108,1);
60
+        line-height:23px;
61
+      }
62
+    }
63
+
64
+  }
65
+
66
+</style>

src/pages/building/components/buildingdata.vue → src/components/buildingdata.vue 파일 보기


src/pages/building/components/buildingperimeter.vue → src/components/buildingperimeter.vue 파일 보기

@@ -1,86 +1,86 @@
1
-<template>
2
-    <div class="perimeter">
3
-        <div class="perimetertitle">
4
-            <span xlass="titlecharacters">周边配套</span>
5
-        </div>
6
-        <van-row class="user-links">
7
-            <van-col span="6">
8
-                <i class="iconfont  icon-icon-test2 icontype"></i>
9
-                <span class="characters">学校</span>
10
-            </van-col>
11
-            <van-col span="6">
12
-                <i class="iconfont icon-icon-test4 icontype"></i>
13
-                <span class="characters">医院</span>
14
-            </van-col>
15
-            <van-col span="6">
16
-                <i class="iconfont icon-icon-test1 icontype"></i>
17
-                <span class="characters">交通</span>
18
-            </van-col>
19
-            <van-col span="6">
20
-                <i class="iconfont icon-icon-test3 icontype"></i>
21
-                <span class="characters">商业</span>
22
-            </van-col>
23
-        </van-row>
24
-    </div>
25
-</template>
26
-
27
-<script>
28
-export default {
29
-    
30
-}
31
-</script>
32
-
33
-<style lang="postcss" scoped>
34
-.perimeter{
35
-    width: 100%;
36
-    height: 132px;
37
-    background-color: rgba(255,255,255,1);
38
-    margin-bottom: 15px;
39
-
40
-    .perimetertitle{
41
-        padding: 15px 0 15px 20px;
42
-        border-bottom:1px solid #EDEDED;
43
-
44
-        .titlecharacters{
45
-           font-size:18px;
46
-           font-family:PingFangSC-Regular;
47
-           font-weight:400;
48
-           color:rgba(37,38,42,1);
49
-           line-height:25px;
50
-        }
51
-    }
52
-
53
-    .user-links{
54
-        width: 100%;
55
-        height: 80px;
56
-        display: flex;
57
-
58
-        .icontype{
59
-            font-size: 16px!important;
60
-            color:#BABDC0!important;
61
-        }
62
-        
63
-        .linevertical{
64
-        border:1px solid #EDEDED;
65
-        }
66
-
67
-        .van-col--6{
68
-          display: flex;
69
-          flex-direction: column;
70
-          align-items: center;
71
-          justify-content: center;
72
-          border-right: 0.5px solid #EDEDED;
73
-        }
74
-
75
-        .characters{
76
-            font-size:16px;
77
-            font-family:PingFangSC-Regular;
78
-            font-weight:400;
79
-            color:rgba(102,102,102,1);
80
-            line-height:22px;
81
-        }
82
-    }
83
-}
84
-</style>
85
-
86
-
1
+<template>
2
+    <div class="perimeter">
3
+        <div class="perimetertitle">
4
+            <span xlass="titlecharacters">周边配套</span>
5
+        </div>
6
+        <van-row class="user-links">
7
+            <van-col span="6">
8
+                <i class="iconfont  icon-icon-test2 icontype"></i>
9
+                <span class="characters">学校</span>
10
+            </van-col>
11
+            <van-col span="6">
12
+                <i class="iconfont icon-icon-test4 icontype"></i>
13
+                <span class="characters">医院</span>
14
+            </van-col>
15
+            <van-col span="6">
16
+                <i class="iconfont icon-icon-test1 icontype"></i>
17
+                <span class="characters">交通</span>
18
+            </van-col>
19
+            <van-col span="6">
20
+                <i class="iconfont icon-icon-test3 icontype"></i>
21
+                <span class="characters">商业</span>
22
+            </van-col>
23
+        </van-row>
24
+    </div>
25
+</template>
26
+
27
+<script>
28
+export default {
29
+    
30
+}
31
+</script>
32
+
33
+<style lang="postcss" scoped>
34
+.perimeter{
35
+    width: 100%;
36
+    height: 132px;
37
+    background-color: rgba(255,255,255,1);
38
+    margin-bottom: 15px;
39
+
40
+    .perimetertitle{
41
+        padding: 15px 0 15px 20px;
42
+        border-bottom:1px solid #EDEDED;
43
+
44
+        .titlecharacters{
45
+           font-size:18px;
46
+           font-family:PingFangSC-Regular;
47
+           font-weight:400;
48
+           color:rgba(37,38,42,1);
49
+           line-height:25px;
50
+        }
51
+    }
52
+
53
+    .user-links{
54
+        width: 100%;
55
+        height: 80px;
56
+        display: flex;
57
+
58
+        .icontype{
59
+            font-size: 16px!important;
60
+            color:#BABDC0!important;
61
+        }
62
+        
63
+        .linevertical{
64
+        border:1px solid #EDEDED;
65
+        }
66
+
67
+        .van-col--6{
68
+          display: flex;
69
+          flex-direction: column;
70
+          align-items: center;
71
+          justify-content: center;
72
+          border-right: 0.5px solid #EDEDED;
73
+        }
74
+
75
+        .characters{
76
+            font-size:16px;
77
+            font-family:PingFangSC-Regular;
78
+            font-weight:400;
79
+            color:rgba(102,102,102,1);
80
+            line-height:22px;
81
+        }
82
+    }
83
+}
84
+</style>
85
+
86
+

src/pages/building/components/correlationdynamics.vue → src/components/correlationdynamics.vue 파일 보기


src/pages/building/components/housename.vue → src/components/housename.vue 파일 보기


src/pages/building/components/typecontent.vue → src/components/typecontent.vue 파일 보기


src/pages/building/components/typeheader.vue → src/components/typeheader.vue 파일 보기


+ 9
- 4
src/config/apis.js 파일 보기

@@ -11,6 +11,11 @@ const apiList = {
11 11
       url: '/api/lp/buildingBaseInfo/:project_id',
12 12
       method: 'get',
13 13
     },
14
+     //添加收藏
15
+     addcollect: {
16
+      url: '/api/lp/saveCollect/:buildingid',
17
+      method: 'get',
18
+    },
14 19
   },
15 20
   //获取楼盘相册
16 21
   buildingimage: {
@@ -26,20 +31,20 @@ const apiList = {
26 31
       method: 'get',
27 32
     },
28 33
   },
29
-  //添加收藏
34
+  //收藏信息
30 35
   collect: {
36
+    //添加收藏
31 37
     addcollect: {
32 38
       url: '/api/lp/saveCollect/:buildingid',
33 39
       method: 'get',
34 40
     },
35
-  },
36 41
   //取消收藏
37
-  deletecollect: {
38 42
     delete: {
39 43
       url: '/api/lp/deleteCollect/:buildingid',
40 44
       method: 'get',
41 45
     },
42 46
   },
47
+
43 48
   //浏览人数
44 49
   visitors: {
45 50
     add: {
@@ -86,7 +91,7 @@ const apiList = {
86 91
   //获取code
87 92
   getcode: {
88 93
     get: {
89
-      url: 'api/user/isLogin',
94
+      url: 'api/user/getUserInfo/:code',
90 95
       method: 'get',
91 96
     },
92 97
   },

+ 23
- 31
src/pages/building/buildingdetail.vue 파일 보기

@@ -13,7 +13,8 @@
13 13
         <span class="iconline"></span>
14 14
         <div class="gotopagetype" @click="gotopagetype"><van-cell  class="clickcharacters" title="查看户型图"/><span class="iconfont icon-youfan right" ></span></div>
15 15
         <span class="iconline"></span>
16
-        <div class="gotopagecollect" @click="collecthouse(detail.buildingid,detail.collect)" ><span class="iconfont icon-Star collect" :class="{ active: isActive }" ></span><van-cell class="clickcharacters"  title="已收藏"/></div>
16
+        <div v-if="detail.collect==0" class="gotopagecollect" @click="collecthouse(detail.buildingid,detail.collect)" ><span class="iconfont icon-Star collect" :class="{ isActive: !detail.collect }" ></span><van-cell class="clickcharacters"  title="收藏"/></div>
17
+        <div v-if="detail.collect==1" class="gotopagecollect" @click="collecthouse(detail.buildingid,detail.collect)"  ><span class="iconfont icon-Star collect" :class="{ isActive: !detail.collect }" ></span><van-cell class="clickcharacters"  title="已收藏"/></div>
17 18
     </van-cell-group>
18 19
     <div class="housecenter">
19 20
        <div class="housename">
@@ -106,9 +107,9 @@
106 107
      
107 108
     </van-collapse>
108 109
   </div>
109
-    <div class="btn">
110
+    <!-- <div class="btn"> -->
110 111
       <van-button @click="gotoLookHouse()" size="large" >预约看房</van-button>
111
-    </div>
112
+    <!-- </div> -->
112 113
 </div>
113 114
 </template>
114 115
 
@@ -122,10 +123,6 @@ const {
122 123
   mapState: mapcollectState,
123 124
   mapActions: mapcollectActions
124 125
 } = createNamespacedHelpers("collect");
125
-const {
126
-  mapState: mapdelectState,
127
-  mapActions: mapdelectActions
128
-} = createNamespacedHelpers("delete");
129 126
 const {
130 127
   mapState: mapvisitState,
131 128
   mapActions: mapvisitActions
@@ -172,10 +169,6 @@ export default {
172 169
       collcet: s => s.collcet,
173 170
       buildingid: s => s.buildingid
174 171
     }),
175
-    ...mapdelectState({
176
-      collcet: s => s.collcet,
177
-      buildingid: s => s.buildingid
178
-    }),
179 172
     ...mapvisitState({
180 173
       browsingnum: s => s.browsingnum
181 174
     }),
@@ -204,10 +197,9 @@ export default {
204 197
     });
205 198
   },
206 199
   methods: {
207
-    ...mapbuildActions(["getBuilding"]),
208
-    ...mapcollectActions(["getAddCollect"]),
200
+    ...mapbuildActions(["getBuilding",'updateBuilding']),
201
+    ...mapcollectActions(["getAddCollect",'getDeleteCollect']),
209 202
     ...mapvisitActions(["postVisitors"]),
210
-    ...mapdelectActions(["getDeleteCollect"]),
211 203
     ...mapbuildActions(["numadd"]),
212 204
     ...mapareaActions(["getMap"]),
213 205
     ...maploginActions(["getJudgeLogin"]),
@@ -238,28 +230,26 @@ export default {
238 230
     collecthouse(buildingid, collect) {
239 231
       if (collect == 0) {
240 232
         //未收藏,添加收藏
241
-        this.getAddCollect(
242
-          {
243
-            buildingid: buildingid
244
-          },
233
+        this.getAddCollect({ buildingid: buildingid }).then(() => {
245 234
           this.$toast("收藏成功")
246
-        );
235
+          this.detail.collect = 1
236
+          this.updateBuilding(this.detail)
237
+        })
247 238
       } else {
248 239
         //已收藏,删除收藏
249
-        this.getDeleteCollect(
250
-          {
251
-            buildingid: buildingid
252
-          },
253
-          this.$toast("取消收藏成功"),
240
+        this.getDeleteCollect({ buildingid: buildingid } ).then(() => {
241
+          this.$toast("取消收藏成功")
254 242
           this.isActive=true
255
-        );
243
+          this.detail.collect = 0
244
+          this.updateBuilding(this.detail)
245
+        })
256 246
         //  location.reload()
257 247
       }
258 248
     },
259 249
     //浏览人数
260 250
     addvistornum(element) {
261 251
       let self = this;
262
-      if (!this.isopen) {
252
+      if (!self.isopen) {
263 253
         this.postVisitors({
264 254
           id: element.id,
265 255
           browsingnu: element.browsingnum + 1
@@ -267,12 +257,12 @@ export default {
267 257
           self.numadd({ id: element.id });
268 258
         });
269 259
       }
270
-      this.isopen = !this.isopen;
260
+      self.isopen = !this.isopen;
271 261
     },
272 262
 
273 263
     //周边配套信息
274 264
     perimeterinformation(element, tag) {
275
-      let self = this;
265
+      // let self = this;
276 266
       this.getMap({
277 267
         id: element.buildingid,
278 268
         buildingname: element.buildingname,
@@ -296,7 +286,7 @@ export default {
296 286
 };
297 287
 </script>
298 288
 
299
-<style scoped>
289
+<style >
300 290
 .van-cell:not(:last-child)::after {
301 291
   right: 15px !important;
302 292
 }
@@ -305,8 +295,9 @@ export default {
305 295
 <!-- Add "scoped" attribute to limit CSS to this component only -->
306 296
 <style lang="postcss" scoped>
307 297
 .isActive{
308
-  background-color: rgb(168, 168, 167) !important;
298
+  color: rgb(168, 168, 167) !important;
309 299
 }
300
+
310 301
 .context {
311 302
   width: 100%;
312 303
   height: 610px;
@@ -384,6 +375,7 @@ export default {
384 375
       flex-direction: row;
385 376
       align-items: center;
386 377
       margin-right: 30px;
378
+      width: 20%;
387 379
     }
388 380
 
389 381
     .right {
@@ -394,7 +386,7 @@ export default {
394 386
 
395 387
     .collect {
396 388
       font-size: 20px !important;
397
-      color: rgba(252, 198, 74, 1) !important;
389
+      color: rgba(252, 198, 74, 1);
398 390
       padding-right: 5px;
399 391
     }
400 392
 

+ 5
- 2
src/pages/reservation/lookhouse.vue 파일 보기

@@ -162,11 +162,11 @@ export default {
162 162
       this.inside = true
163 163
       this.$router.push({
164 164
         query: {
165
-          project_id: this.$route.query.project_id,
165
+           project_id: this.$route.query.project_id,
166 166
         }
167 167
       });
168 168
       this.getHouseNameList({
169
-        project_id: this.$route.query.project_id,
169
+         project_id: this.$route.query.project_id,
170 170
       }).then(()=>{
171 171
       });
172 172
     },
@@ -219,6 +219,9 @@ export default {
219 219
 .van-hairline--top-bottom::after {
220 220
   border-width: 0;
221 221
 }
222
+.van-modal{
223
+  background-color: rgba(0,0,0,0.3)!important;
224
+}
222 225
 </style>
223 226
 
224 227
 <!-- Add "scoped" attribute to limit CSS to this component only -->

+ 34
- 36
src/pages/transferpage/transferpage.vue 파일 보기

@@ -14,47 +14,45 @@ import TransferPageBg from "../../img/transferpagebg.jpg";
14 14
 import TransferPageQr from "../../img/transferpageqr.jpg";
15 15
 
16 16
 export default {
17
-    name:'TransferPage',
18
-    data () {
19
-        return{
20
-            TransferPageBg,
21
-            TransferPageQr
22
-        }
23
-    }
24
-}
17
+  name: "TransferPage",
18
+  data() {
19
+    return {
20
+      TransferPageBg,
21
+      TransferPageQr
22
+    };
23
+  }
24
+};
25 25
 </script>
26 26
 
27 27
 <style lang="postcss" scoped>
28
-.pageback{
29
-        width: 100%;
30
-        height: 100%;
31
-        /* background: url('~../../img/transferpagebg.jpg') no-repeat center center; */
32
-        background-position: center center;
33
-        background-repeat:  no-repeat;
34
-        background-size: 100% 100%;
35
-        display: flex;
36
-        flex-direction: column;
37
-        justify-content: center;
38
-        align-items: center;
28
+.pageback {
29
+  width: 100%;
30
+  height: 100%;
31
+  /* background: url('~../../img/transferpagebg.jpg') no-repeat center center; */
32
+  background-position: center center;
33
+  background-repeat: no-repeat;
34
+  background-size: 100% 100%;
35
+  display: flex;
36
+  flex-direction: column;
37
+  justify-content: center;
38
+  align-items: center;
39 39
 
40
-        .pagebackqr{
41
-        width:140px;
42
-        height:140px;
43
-        margin-bottom: 10px;
40
+  .pagebackqr {
41
+    width: 140px;
42
+    height: 140px;
43
+    margin-bottom: 10px;
44 44
 
45
-        .pagebackimg{
46
-        width: 100%;
47
-        height: 100%;
48
-    }
49
-    }
50
-     .pageback span{
51
-        font-size:16px;
52
-        font-weight:500;
53
-        color:rgba(255,255,255,1);
54
-        line-height:21px;
45
+    .pagebackimg {
46
+      width: 100%;
47
+      height: 100%;
55 48
     }
56
-    }
57
-    
49
+  }
50
+  .pageback span {
51
+    font-size: 16px;
52
+    font-weight: 500;
53
+    color: rgba(255, 255, 255, 1);
54
+    line-height: 21px;
55
+  }
56
+}
58 57
 </style>
59 58
 
60
-

+ 3
- 0
src/store/building.js 파일 보기

@@ -29,6 +29,9 @@ export default {
29 29
           }).catch(reject)
30 30
         });
31 31
       },
32
+      updateBuilding({ commit }, params){
33
+        commit('updateBuilding', params)
34
+      },
32 35
       numadd({commit},params){
33 36
         commit('numadd', params)
34 37
       }

+ 9
- 1
src/store/collect.js 파일 보기

@@ -16,7 +16,15 @@ export default {
16 16
   actions: {
17 17
     getAddCollect({ commit }, params) {
18 18
       return new Promise((resolve, reject) => {
19
-        request({ ...getAPI('collect.addcollect',{ buildingid: params.buildingid })}).then((data) => {
19
+        request({ ...getAPI('collect.addcollect', { buildingid: params.buildingid }) }).then((data) => {
20
+          commit('updateAddCollect', data)
21
+          resolve()
22
+        }).catch(reject)
23
+      });
24
+    },
25
+    getDeleteCollect({ commit }, data) {
26
+      return new Promise((resolve, reject) => {
27
+        request({ ...getAPI('collect.delete', { buildingid: data.buildingid }) }).then((data) => {
20 28
           commit('updateAddCollect', data)
21 29
           resolve()
22 30
         }).catch(reject)

+ 0
- 26
src/store/delete.js 파일 보기

@@ -1,26 +0,0 @@
1
-import request from '../utils/request'
2
-import getAPI from '../config/apis'
3
-
4
-export default {
5
-    namespaced: true,
6
-    state: {
7
-      collect: '',
8
-      buildingid :'',
9
-    },
10
-    mutations: {
11
-      updateDeleteCollect(state, collect,buildingid) {
12
-        state.collect = collect
13
-        state.buildingid = buildingid
14
-      }
15
-    },
16
-    actions: {
17
-        getDeleteCollect({ commit }, params) {
18
-        return new Promise((resolve, reject) => {
19
-          request({ ...getAPI('deletecollect.delete',{ buildingid: params.buildingid })  }).then((data) => {
20
-            commit('updateDeleteCollect', data)
21
-            resolve()            
22
-          }).catch(reject)
23
-        });
24
-      },
25
-    }
26
-  }

+ 4
- 4
src/store/getcode.js 파일 보기

@@ -4,17 +4,17 @@ import getAPI from '../config/apis'
4 4
 export default {
5 5
     namespaced: true,
6 6
     state: {
7
-      uercode: '',
7
+      usercode: '',
8 8
     },
9 9
     mutations: {
10
-      updateGetCode(state, uercode) {
11
-        state.uercode = uercode
10
+      updateGetCode(state, usercode) {
11
+        state.usercode = usercode
12 12
       }
13 13
     },
14 14
     actions: {
15 15
         getGetCode({ commit }, params) {  
16 16
         return new Promise((resolve, reject) => {
17
-          request({ ...getAPI('getcode.get',{data: params}) }).then((data) => {
17
+          request({ ...getAPI('getcode.get',{code: params.usercode}) }).then((data) => {
18 18
             commit('updateGetCode', data)
19 19
             resolve()            
20 20
           }).catch(reject)

+ 1
- 1
src/store/housenamelist.js 파일 보기

@@ -14,7 +14,7 @@ export default {
14 14
     actions: {
15 15
       getHouseNameList({ commit }, params) {
16 16
         return new Promise((resolve, reject) => {
17
-          request({ ...getAPI('housenamelist.getnamelist',{ buildingid: params.buildingid })}).then((data) => {
17
+          request({ ...getAPI('housenamelist.getnamelist',{ project_id: params.project_id })}).then((data) => {
18 18
             commit('updateHouseNameList', data)
19 19
             resolve()            
20 20
           }).catch(reject)

+ 2
- 3
src/store/index.js 파일 보기

@@ -5,13 +5,12 @@ Vue.use(Vuex)
5 5
 
6 6
 const store = new Vuex.Store({
7 7
   modules: {
8
-    app: require('./app.js').default,
9
-    user: require('./user.js').default,
8
+    // app: require('./app.js').default,
9
+    // user: require('./user.js').default,
10 10
     building: require('./building.js').default,
11 11
     buildingimage: require('./buildingimage.js').default,
12 12
     buildingtype: require('./buildingtype.js').default,
13 13
     collect: require('./collect.js').default,
14
-    delete: require('./delete.js').default,
15 14
     map: require('./map.js').default,
16 15
     lookhouse: require('./lookhouse.js').default,
17 16
     housenamelist: require('./housenamelist.js').default,

+ 6
- 6
src/utils/request.js 파일 보기

@@ -36,12 +36,12 @@ export default function request(config) {
36 36
 
37 37
       if (data.result) {
38 38
         resolve(data);
39
-      // } else if (data.code === 401) {
40
-      //   getCode(data.appid)
41
-      // }else if(data.code === 402) {
42
-      //   this.$router.push({
43
-      //     name: "transferpage",
44
-      //   });
39
+      } else if (data.code === 401) {
40
+        getCode(data.appId)
41
+      }else if(data.code === 402) {
42
+        this.$router.push({
43
+          name: "transferpage",
44
+        });
45 45
       }else {
46 46
         reject('请求数据失败');
47 47
       }

+ 1
- 1
vue.config.js 파일 보기

@@ -1,4 +1,5 @@
1 1
 module.exports = {
2
+  baseUrl: './',
2 3
   css: {
3 4
     loaderOptions: {
4 5
       postcss: {
@@ -21,7 +22,6 @@ module.exports = {
21 22
     }
22 23
   },
23 24
   devServer: {
24
-    baseUrl:'./',
25 25
     proxy: {
26 26
       '/api': {
27 27
         target: 'http://192.168.0.166:8087', // wf