陈冉 6 лет назад
Родитель
Сommit
b57bbbdfbc

Двоичные данные
src/img/nohouse.jpg Просмотреть файл


Двоичные данные
src/img/nohousetype.png Просмотреть файл


+ 4
- 2
src/pages/building/buildingdetail.vue Просмотреть файл

@@ -109,7 +109,7 @@
109 109
     </van-collapse>
110 110
   </div>
111 111
     <!-- <div class="btn"> -->
112
-      <van-button @click="gotoLookHouse()" size="large" >预约看房</van-button>
112
+      <button class="lookbutton" @click="gotoLookHouse()">预约看房</button>
113 113
     <!-- </div> -->
114 114
 </div>
115 115
 </template>
@@ -304,7 +304,7 @@ export default {
304 304
   color: rgb(168, 168, 167) !important;
305 305
 }
306 306
 
307
-.van-button {
307
+.lookbutton {
308 308
     position: fixed;
309 309
     bottom: 0;
310 310
     left: 0;
@@ -315,6 +315,8 @@ export default {
315 315
     font-weight: 400;
316 316
     color: rgba(255, 255, 255, 1);
317 317
     border:none;
318
+    width: 100%;
319
+    padding: 10px 0;
318 320
   }
319 321
 
320 322
 .context {

+ 51
- 4
src/pages/building/buildingtype.vue Просмотреть файл

@@ -5,6 +5,7 @@
5 5
             <swiper class="slidewrapper" >
6 6
                 <swiper-slide class="slideimg" v-for="(list, index) in detail.buildingModelLst" :key="index">
7 7
                     <img class="typeimg" :src="list.modelurl" />
8
+                    <!-- <img class="typeimg" :src="noHouse" v-if="detail.buildingModelLst.modelurl==null && detail.buildingModelLst.modelurl==''"/> -->
8 9
                     <div class="typeindex">
9 10
                         <span class="typename">{{list.name}}</span>
10 11
                         <div class="imageindex" >
@@ -37,6 +38,12 @@
37 38
                         </div>
38 39
                     </div>
39 40
                 </swiper-slide>
41
+                <swiper-slide class="slideimg" v-if='detail.buildingModelLst=="" || detail.buildingModelLst==null'>
42
+                    <div class="noslideimg">
43
+                      <img class="imghousetype" :src="noHouseType"/>
44
+                      <button class="gotobuilding" @click="gotobuilding">返回查看其它信息</button>
45
+                    </div>
46
+                </swiper-slide>
40 47
             </swiper>
41 48
         </div>
42 49
     
@@ -44,6 +51,8 @@
44 51
 </template>
45 52
 
46 53
 <script>
54
+import noHouse from "../../img/nohouse.jpg";
55
+import noHouseType from "../../img/nohousetype.png";
47 56
 import { mapState, mapActions } from "vuex";
48 57
 
49 58
 export default {
@@ -52,6 +61,8 @@ export default {
52 61
     return {
53 62
       activeName2: "id",
54 63
       showPage:false,
64
+      noHouse,
65
+      noHouseType,
55 66
     };
56 67
   },
57 68
   components: {
@@ -69,9 +80,9 @@ export default {
69 80
   },
70 81
   methods: {
71 82
     ...mapActions(["getBuildingtype"]),
72
-    // handleClick(id) {
73
-    //   window.console.log(id);
74
-    // }
83
+    gotobuilding(){
84
+      this.$router.go(-1)
85
+    }
75 86
   }
76 87
 };
77 88
 </script>
@@ -84,15 +95,51 @@ export default {
84 95
 
85 96
   .typeheader {
86 97
     width: 100%;
98
+    height: 100%;
87 99
     /* height: 262px; */
88 100
 
89 101
     .slidewrapper {
90 102
       width: 100%;
91
-      /* height: 100%; */
103
+      height: 100%;
104
+
105
+      .nocontent{
106
+        width: 100%;
107
+        height: 100%;
108
+        display: flex;
109
+        justify-content: center;
110
+        
111
+      }
92 112
 
93 113
       .slideimg {
94 114
         width: 100%;
95 115
         /* height: 225px; */
116
+
117
+        .noslideimg{
118
+          height:100%;
119
+          width:100%;
120
+           display: flex;
121
+          flex-direction: column;
122
+          align-items: center;
123
+
124
+          .imghousetype{
125
+            width:47.2%;
126
+            height: 20%;
127
+            margin-top: 50%
128
+          }
129
+
130
+          .gotobuilding{
131
+            width: 40%;
132
+            background-color: rgba(63, 65, 68, 1);
133
+            font-size: 14px;
134
+            font-family: PingFangSC-Regular;
135
+            font-weight: 400;
136
+            color: rgba(255, 255, 255, 1);
137
+            border: none;
138
+            padding: 7px 0;
139
+            margin-top: 15px;
140
+          }
141
+        }
142
+        
96 143
         .typeimg {
97 144
           width: 100%;
98 145
           height: 225px;

+ 1
- 1
src/pages/building/perimetertype.vue Просмотреть файл

@@ -65,7 +65,7 @@ export default {
65 65
   methods: {
66 66
     //    ...mapareaActions(["getMap"]),
67 67
     init() {
68
-      map = new AMap.Map("mapcointainer", {
68
+     const  map = new AMap.Map("mapcointainer", {
69 69
         resizeEnable: true,
70 70
         zoom: 15,
71 71
         center: [routerParams.lng, routerParams.lat],

+ 6
- 4
src/pages/reservation/lookhouse.vue Просмотреть файл

@@ -12,7 +12,7 @@
12 12
                     :key="index"   
13 13
                     @click="clicknamelist(list.buildingid,list.buildingname,index)">
14 14
                     <span class="namelist" :class='{active:index==active}'>{{list.buildingname}}</span>
15
-                    <i class="iconfont icon-gou select_icon" :class='{active:index==active}'></i>
15
+                    <i class="iconfont icon-gou select_icon" v-show="index==active"></i>
16 16
                   </li>
17 17
                 </ul>
18 18
               </van-popup>
@@ -77,6 +77,7 @@ export default {
77 77
       buildingname: "",
78 78
       booktime: "",
79 79
       buildingid: "",
80
+      list:[],
80 81
       formdata: {
81 82
         remark: "",
82 83
         telnum: "",
@@ -121,7 +122,7 @@ export default {
121 122
     onChange() {
122 123
       if (this.checked) {
123 124
         this.formdata.booktime='',
124
-        this.date=  new Date(+new Date()+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'')
125
+        // this.date=  new Date(+new Date()+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'')
125 126
         this.$dialog.alert({
126 127
           message:
127 128
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
@@ -200,7 +201,7 @@ export default {
200 201
       }else if(!this.formdata.personcnt){
201 202
         this.$toast("请填写人数");
202 203
       }
203
-      const updata = this.checked?{ ...this.formdata,project_id: this.$route.query.project_id, buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,booktime: this.date}:{ ...this.formdata, project_id: this.$route.query.project_id,buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,}
204
+      const updata = this.checked?{ ...this.formdata,project_id: this.$route.query.project_id, buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,booktime:''}:{ ...this.formdata, project_id: this.$route.query.project_id,buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,}
204 205
       this.postOrder(updata).then(()=>{
205 206
         this.$toast("提交成功");
206 207
       });
@@ -354,7 +355,7 @@ export default {
354 355
           font-size:18px;
355 356
           font-family:PingFangSC-Regular;
356 357
           font-weight:400;
357
-          color:rgba(51,51,51,1);
358
+          color:rgb(156, 152, 152);
358 359
           line-height:25px;
359 360
         }
360 361
 
@@ -363,6 +364,7 @@ export default {
363 364
               top: 12px;
364 365
               right: 15px;
365 366
               font-size: 20px !important;
367
+              color:rgba(226,56,56,1) 
366 368
         }
367 369
       }
368 370
     }

+ 0
- 1
src/store/getcode.js Просмотреть файл

@@ -26,7 +26,6 @@ export default {
26 26
     },
27 27
     show({ commit }) {
28 28
       commit('updateShowPage', true)
29
-
30 29
     }
31 30
   }
32 31
 }

+ 9
- 1
src/store/housenamelist.js Просмотреть файл

@@ -5,11 +5,15 @@ export default {
5 5
     namespaced: true,
6 6
     state: {
7 7
       namelist: {},
8
+      // choose:false,
8 9
     },
9 10
     mutations: {
10 11
         updateHouseNameList(state, namelist) {
11 12
         state.namelist = namelist
12
-      }
13
+      },
14
+      // updatechoose(state, data) {
15
+      //   state.choose = data
16
+      // }
13 17
     },
14 18
     actions: {
15 19
       getHouseNameList({ commit }, params) {
@@ -20,5 +24,9 @@ export default {
20 24
           }).catch(reject)
21 25
         });
22 26
       },
27
+    //   updatechoose({ commit }) {
28
+    //     // debugger
29
+    //   commit('updatechoose', true)
30
+    // }
23 31
     }
24 32
   }

+ 1
- 2
src/utils/request.js Просмотреть файл

@@ -64,7 +64,7 @@ export default function request(config) {
64 64
       if (data.code === 200) {
65 65
         window.localStorage.removeItem("wechat.code")
66 66
         resolve(data);
67
-      } else if (data.code === 401) {
67
+      } else if (data.code === 401 || data.code === 403) {
68 68
         const code = window.localStorage.getItem("wechat.code")
69 69
         if (!code) {
70 70
           getCode(data.appId)
@@ -72,7 +72,6 @@ export default function request(config) {
72 72
       } else if (data.code === 402) {
73 73
         window.localStorage.removeItem("wechat.code")
74 74
         store.state.getcode.showPage = true
75
-        window.console.log(store)
76 75
         router.push({
77 76
           name: "transferpage",
78 77
         });