陈冉 преди 6 години
родител
ревизия
d9ad5da15c
променени са 4 файла, в които са добавени 61 реда и са изтрити 44 реда
  1. 1
    1
      src/main.js
  2. 6
    1
      src/pages/building/buildingdetail.vue
  3. 11
    12
      src/pages/building/components/housename.vue
  4. 43
    30
      src/pages/reservation/lookhouse.vue

+ 1
- 1
src/main.js Целия файл

@@ -4,7 +4,7 @@ import 'vant/lib/vant-css/index.css'
4 4
 import App from './App.vue'
5 5
 import router from './router'
6 6
 import store from './store'
7
-import './theme'
7
+// import './theme'
8 8
 // import './public/style/common.scss'
9 9
 // import AMap  from 'vue-amap'
10 10
 

+ 6
- 1
src/pages/building/buildingdetail.vue Целия файл

@@ -20,7 +20,7 @@
20 20
     <correlation-dynamics></correlation-dynamics>
21 21
     <div class="btn">
22 22
       <van-button @click="gotoLookHouse" size="large" >预约看房</van-button>
23
-  </div>
23
+    </div>
24 24
 </div>
25 25
 </template>
26 26
 
@@ -153,6 +153,11 @@ export default {
153 153
     position: fixed;
154 154
     top:617px;
155 155
     left:0;
156
+    background-color: rgba(63,65,68,1);
157
+    font-size:16px;
158
+    font-family:PingFangSC-Regular;
159
+    font-weight:400;
160
+    color:rgba(255,255,255,1);
156 161
   }
157 162
 }
158 163
 

+ 11
- 12
src/pages/building/components/housename.vue Целия файл

@@ -9,7 +9,7 @@
9 9
         </div>
10 10
         <div class="housenamefooter">
11 11
             <span class="housetype">挑高双层</span>
12
-            <span class="housetel" @click="altfun()"><i class="iconfont  icon-dianhua2 phone"> </i><span >400-7689-9756</span></span>
12
+            <span class="housetel"><i class="iconfont  icon-dianhua2 phone"> </i><span ><a :href="'tel:' + 13057612112">13057612112</a></span></span>
13 13
         </div>
14 14
     </div>
15 15
 </template>
@@ -18,17 +18,16 @@
18 18
 
19 19
 export default {
20 20
     name:'HouseName',
21
-    methods:{
22
-        altfun(){
23
-            console.log(this)
24
-            this.$dialog.alert({
25
-            title: '标题',
26
-            message: '弹窗内容'
27
-            }).then(() => {
28
-            // on close
29
-            })
30
-        }
31
-    }
21
+    // methods:{
22
+    //     altfun(){
23
+    //         // console.log(this)
24
+    //         this.$dialog.confirm({
25
+    //         message: '弹窗内容'
26
+    //         }).then(() => {
27
+    //         // on close
28
+    //         })
29
+    //     }
30
+    // }
32 31
 }
33 32
 </script>
34 33
 <style lang="postcss" scoped>

+ 43
- 30
src/pages/reservation/lookhouse.vue Целия файл

@@ -2,33 +2,33 @@
2 2
   <div class="appoint-form">
3 3
     <vue-headful title="预约看房信息填写"  />
4 4
     <div class="title"><h1>预约看房</h1>
5
-      <van-cell-group>
6
-        <van-cell class="field_name" is-link arrow-direction="down" @click="showName()">楼盘名称:
5
+        <van-cell-group>
6
+          <van-cell class="field_name" is-link arrow-direction="down" @click="showName()">楼盘名称:
7
+              <van-popup v-model="inside" position="bottom" :overlay="false">
8
+                <ul class="housenamelist">
9
+                  <li class="namelist">春江新城</li>
10
+                </ul>
11
+              </van-popup>
12
+          </van-cell>
13
+          <van-cell class="field_name">楼盘地址:</van-cell>
14
+          <van-switch-cell v-model="checked" title="马上去" />
15
+          <van-cell class="field_name" @click="showDatePicker()">预约时间:
7 16
             <van-popup v-model="show" position="bottom" :overlay="false">
8
-              <ul>
9
-                <li></li>
10
-              </ul>
17
+              <van-datetime-picker v-model="currentDate" type="datetime" :min-date="minDate" :max-date="maxDate"/>
11 18
             </van-popup>
12
-        </van-cell>
13
-        <van-cell class="field_name">楼盘地址:</van-cell>
14
-        <van-switch-cell v-model="checked" title="马上去" />
15
-        <van-cell class="field_name" @click="showDatePicker()">预约时间:
16
-          <van-popup v-model="show" position="bottom" :overlay="false">
17
-            <van-datetime-picker v-model="currentDate" type="datetime" :min-date="minDate" :max-date="maxDate"/>
18
-          </van-popup>
19
-        </van-cell>
20
-        <van-field class="field_name"  label="手机号码:" />
21
-        <van-field class="field_name"  label="预约看房人数:"/> 
22
-      </van-cell-group>
23
-      <div class="information">
24
-        <span class="remarks">备注信息:</span>
25
-        <div class="input_content">
26
-            <textarea  id="textArea" class="content_txt" maxlength="100" placeholder="例如:偏好、预算、要求等" onfocus="this.placeholder=''" onblur="this.placeholder='例如:偏好、预算、要求等'"></textarea>
27
-            <span class="number"><span  id="textNum" style="color:#FB6B2F">0</span><span>/100</span></span>
28
-        </div>
29
-      </div>
19
+          </van-cell>
20
+          <van-field class="field_name"  label="手机号码:" />
21
+          <van-field class="field_name"  label="看房人数:"/> 
22
+        </van-cell-group>
23
+        <div class="information">
24
+          <span class="remarks">备注信息:</span>
25
+          <div class="input_content">
26
+              <textarea  id="textArea" class="content_txt" maxlength="100" placeholder="例如:偏好、预算、要求等" onfocus="this.placeholder=''" onblur="this.placeholder='例如:偏好、预算、要求等'"></textarea>
27
+              <span class="number"><span  id="textNum" style="color:#FB6B2F">0</span><span>/100</span></span>
28
+          </div>
29
+        </div> 
30 30
     </div>
31
-    <div>
31
+    <div class="btn">
32 32
       <van-button size="large">提交</van-button>
33 33
     </div>
34 34
   </div>
@@ -41,7 +41,8 @@ export default {
41 41
   },
42 42
   data() {
43 43
     return {
44
-      checked: true,
44
+      checked: false,
45
+      inside: false,
45 46
       show: false,
46 47
       minHour: 10,
47 48
       maxHour: 20,
@@ -55,7 +56,7 @@ export default {
55 56
       this.show = true;
56 57
     },
57 58
     showName (){
58
-      this.show = true;
59
+      this.inside = true;
59 60
     }
60 61
   }
61 62
 };
@@ -72,6 +73,13 @@ export default {
72 73
 .appoint-form {
73 74
   padding: 26px;
74 75
 
76
+.van-button{
77
+    background-color: rgba(63,65,68,1);
78
+    font-size:16px;
79
+    font-family:PingFangSC-Regular;
80
+    font-weight:400;
81
+    color:rgba(255,255,255,1);
82
+  }
75 83
   .title {
76 84
     background-color: #fff;
77 85
     margin-bottom: 22px;
@@ -128,11 +136,16 @@ export default {
128 136
     color: rgba(0, 0, 0, 1);
129 137
     line-height: 20px;
130 138
 
131
-    .van-field {
132
-      .van-cell__title {
133
-        max-width: 100px !important;
134
-      }
139
+  .housenamelist{
140
+    width: 100%;
141
+    height: 224px;
142
+
143
+     .namelist{
144
+      width: 90%;
145
+      border-bottom:1px solid #EBEBEB;
146
+      text-align: center;
135 147
     }
136 148
   }
149
+  }
137 150
 }
138 151
 </style>