陈冉 6 年前
父节点
当前提交
b57bbbdfbc

二进制
src/img/nohouse.jpg 查看文件


二进制
src/img/nohousetype.png 查看文件


+ 4
- 2
src/pages/building/buildingdetail.vue 查看文件

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

+ 51
- 4
src/pages/building/buildingtype.vue 查看文件

5
             <swiper class="slidewrapper" >
5
             <swiper class="slidewrapper" >
6
                 <swiper-slide class="slideimg" v-for="(list, index) in detail.buildingModelLst" :key="index">
6
                 <swiper-slide class="slideimg" v-for="(list, index) in detail.buildingModelLst" :key="index">
7
                     <img class="typeimg" :src="list.modelurl" />
7
                     <img class="typeimg" :src="list.modelurl" />
8
+                    <!-- <img class="typeimg" :src="noHouse" v-if="detail.buildingModelLst.modelurl==null && detail.buildingModelLst.modelurl==''"/> -->
8
                     <div class="typeindex">
9
                     <div class="typeindex">
9
                         <span class="typename">{{list.name}}</span>
10
                         <span class="typename">{{list.name}}</span>
10
                         <div class="imageindex" >
11
                         <div class="imageindex" >
37
                         </div>
38
                         </div>
38
                     </div>
39
                     </div>
39
                 </swiper-slide>
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
             </swiper>
47
             </swiper>
41
         </div>
48
         </div>
42
     
49
     
44
 </template>
51
 </template>
45
 
52
 
46
 <script>
53
 <script>
54
+import noHouse from "../../img/nohouse.jpg";
55
+import noHouseType from "../../img/nohousetype.png";
47
 import { mapState, mapActions } from "vuex";
56
 import { mapState, mapActions } from "vuex";
48
 
57
 
49
 export default {
58
 export default {
52
     return {
61
     return {
53
       activeName2: "id",
62
       activeName2: "id",
54
       showPage:false,
63
       showPage:false,
64
+      noHouse,
65
+      noHouseType,
55
     };
66
     };
56
   },
67
   },
57
   components: {
68
   components: {
69
   },
80
   },
70
   methods: {
81
   methods: {
71
     ...mapActions(["getBuildingtype"]),
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
 </script>
88
 </script>
84
 
95
 
85
   .typeheader {
96
   .typeheader {
86
     width: 100%;
97
     width: 100%;
98
+    height: 100%;
87
     /* height: 262px; */
99
     /* height: 262px; */
88
 
100
 
89
     .slidewrapper {
101
     .slidewrapper {
90
       width: 100%;
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
       .slideimg {
113
       .slideimg {
94
         width: 100%;
114
         width: 100%;
95
         /* height: 225px; */
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
         .typeimg {
143
         .typeimg {
97
           width: 100%;
144
           width: 100%;
98
           height: 225px;
145
           height: 225px;

+ 1
- 1
src/pages/building/perimetertype.vue 查看文件

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

+ 6
- 4
src/pages/reservation/lookhouse.vue 查看文件

12
                     :key="index"   
12
                     :key="index"   
13
                     @click="clicknamelist(list.buildingid,list.buildingname,index)">
13
                     @click="clicknamelist(list.buildingid,list.buildingname,index)">
14
                     <span class="namelist" :class='{active:index==active}'>{{list.buildingname}}</span>
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
                   </li>
16
                   </li>
17
                 </ul>
17
                 </ul>
18
               </van-popup>
18
               </van-popup>
77
       buildingname: "",
77
       buildingname: "",
78
       booktime: "",
78
       booktime: "",
79
       buildingid: "",
79
       buildingid: "",
80
+      list:[],
80
       formdata: {
81
       formdata: {
81
         remark: "",
82
         remark: "",
82
         telnum: "",
83
         telnum: "",
121
     onChange() {
122
     onChange() {
122
       if (this.checked) {
123
       if (this.checked) {
123
         this.formdata.booktime='',
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
         this.$dialog.alert({
126
         this.$dialog.alert({
126
           message:
127
           message:
127
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
128
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
200
       }else if(!this.formdata.personcnt){
201
       }else if(!this.formdata.personcnt){
201
         this.$toast("请填写人数");
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
       this.postOrder(updata).then(()=>{
205
       this.postOrder(updata).then(()=>{
205
         this.$toast("提交成功");
206
         this.$toast("提交成功");
206
       });
207
       });
354
           font-size:18px;
355
           font-size:18px;
355
           font-family:PingFangSC-Regular;
356
           font-family:PingFangSC-Regular;
356
           font-weight:400;
357
           font-weight:400;
357
-          color:rgba(51,51,51,1);
358
+          color:rgb(156, 152, 152);
358
           line-height:25px;
359
           line-height:25px;
359
         }
360
         }
360
 
361
 
363
               top: 12px;
364
               top: 12px;
364
               right: 15px;
365
               right: 15px;
365
               font-size: 20px !important;
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
     },
26
     },
27
     show({ commit }) {
27
     show({ commit }) {
28
       commit('updateShowPage', true)
28
       commit('updateShowPage', true)
29
-
30
     }
29
     }
31
   }
30
   }
32
 }
31
 }

+ 9
- 1
src/store/housenamelist.js 查看文件

5
     namespaced: true,
5
     namespaced: true,
6
     state: {
6
     state: {
7
       namelist: {},
7
       namelist: {},
8
+      // choose:false,
8
     },
9
     },
9
     mutations: {
10
     mutations: {
10
         updateHouseNameList(state, namelist) {
11
         updateHouseNameList(state, namelist) {
11
         state.namelist = namelist
12
         state.namelist = namelist
12
-      }
13
+      },
14
+      // updatechoose(state, data) {
15
+      //   state.choose = data
16
+      // }
13
     },
17
     },
14
     actions: {
18
     actions: {
15
       getHouseNameList({ commit }, params) {
19
       getHouseNameList({ commit }, params) {
20
           }).catch(reject)
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
       if (data.code === 200) {
64
       if (data.code === 200) {
65
         window.localStorage.removeItem("wechat.code")
65
         window.localStorage.removeItem("wechat.code")
66
         resolve(data);
66
         resolve(data);
67
-      } else if (data.code === 401) {
67
+      } else if (data.code === 401 || data.code === 403) {
68
         const code = window.localStorage.getItem("wechat.code")
68
         const code = window.localStorage.getItem("wechat.code")
69
         if (!code) {
69
         if (!code) {
70
           getCode(data.appId)
70
           getCode(data.appId)
72
       } else if (data.code === 402) {
72
       } else if (data.code === 402) {
73
         window.localStorage.removeItem("wechat.code")
73
         window.localStorage.removeItem("wechat.code")
74
         store.state.getcode.showPage = true
74
         store.state.getcode.showPage = true
75
-        window.console.log(store)
76
         router.push({
75
         router.push({
77
           name: "transferpage",
76
           name: "transferpage",
78
         });
77
         });