陈冉 6 gadus atpakaļ
vecāks
revīzija
865e756f4d

+ 6
- 6
src/main.js Parādīt failu

@@ -21,12 +21,12 @@ Vue.filter('moment', function (value, formatString) {
21 21
   return moment(value).format(formatString);
22 22
 });
23 23
 
24
-AMap.initAMapApiLoader({
25
-  key: 'f0d1d4f82432504003ebf46e5e36ff03',
26
-  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
27
-  // 默认高德 sdk 版本为 1.4.4
28
-  v: '1.4.4'
29
-})
24
+// AMap.initAMapApiLoader({
25
+//   key: 'f0d1d4f82432504003ebf46e5e36ff03',
26
+//   plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
27
+//   // 默认高德 sdk 版本为 1.4.4
28
+//   v: '1.4.4'
29
+// })
30 30
 
31 31
 
32 32
 // import './theme'

+ 2
- 1
src/pages/building/buildingdetail.vue Parādīt failu

@@ -304,8 +304,9 @@ export default {
304 304
 
305 305
 .van-button {
306 306
     position: fixed;
307
-    top: 617px;
307
+    top: 92.5%;
308 308
     left: 0;
309
+    z-index: 5;
309 310
     background-color: rgba(63, 65, 68, 1);
310 311
     font-size: 16px;
311 312
     font-family: PingFangSC-Regular;

+ 1
- 1
src/pages/layout/index.vue Parādīt failu

@@ -26,7 +26,7 @@ export default {
26 26
 <style lang="postcss" scoped>
27 27
 .layout {
28 28
   height: 100%;
29
-  /* overflow-y: auto; */
29
+  overflow-y: auto;
30 30
   background:rgba(242,242,242,1);
31 31
 
32 32
   &__body {

+ 2
- 1
src/pages/reservation/lookhouse.vue Parādīt failu

@@ -244,7 +244,8 @@ export default {
244 244
 }
245 245
 
246 246
 .appoint-form {
247
-  padding: 26px;
247
+  width: 90%;
248
+  margin-left: 5%;
248 249
 
249 250
   .van-button {
250 251
     background-color: rgba(63, 65, 68, 1);

+ 2
- 0
src/router/index.js Parādīt failu

@@ -6,4 +6,6 @@ Vue.use(VueRouter)
6 6
 
7 7
 const router = new VueRouter({routes})
8 8
 
9
+
10
+
9 11
 export default router

+ 21
- 21
src/utils/request.js Parādīt failu

@@ -12,18 +12,18 @@ const Axios = axios.create({
12 12
   }
13 13
 })
14 14
 
15
-const UrlSearch = (urls) => {
16
-  let url = urls; // 获取url中"?"符后的字串
17
-  let theRequest = {};
18
-  if (url.indexOf("?") !== -1) {
19
-    let str = url.substr(1);
20
-    let strs = str.split("&");
21
-    for (var i = 0; i < strs.length; i++) {
22
-      theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
23
-    }
24
-  }
25
-  return theRequest;
26
-}
15
+// const UrlSearch = (urls) => {
16
+//   let url = urls; // 获取url中"?"符后的字串
17
+//   let theRequest = {};
18
+//   if (url.indexOf("?") !== -1) {
19
+//     let str = url.substr(1);
20
+//     let strs = str.split("&");
21
+//     for (var i = 0; i < strs.length; i++) {
22
+//       theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
23
+//     }
24
+//   }
25
+//   return theRequest;
26
+// }
27 27
 
28 28
 export default function request(config) {
29 29
   return new Promise((resolve, reject) => {
@@ -58,17 +58,17 @@ export default function request(config) {
58 58
     }).then((response) => {
59 59
       const data = response.data;
60 60
       // loadding.stop(id);
61
-      window.console.log(UrlSearch(location.search).code)
61
+      // window.console.log(UrlSearch(location.search).code)
62 62
       if (data.result) {
63 63
         resolve(data);
64
-      } else if (data.code === 401 && !UrlSearch(location.search).code) {
65
-        setTimeout(() => {
66
-          getCode(data.appId)
67
-        }, 5000);
68
-      }else if(data.code === 402) {
69
-        this.$router.push({
70
-          name: "transferpage",
71
-        });
64
+      // } else if (data.code === 401 && !UrlSearch(location.search).code) {
65
+      //   setTimeout(() => {
66
+      //     getCode(data.appId)
67
+      //   }, 5000);
68
+      // }else if(data.code === 402) {
69
+      //   this.$router.push({
70
+      //     name: "transferpage",
71
+      //   });
72 72
       }else {
73 73
         reject('请求数据失败');
74 74
       }