陈冉 6 年之前
父節點
當前提交
ff575d29e6

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

@@ -131,10 +131,6 @@ export default {
131 131
     text-align: center;
132 132
     }
133 133
 
134
-    .right{
135
-      color:A1A1A1;
136
-      font-size: 10px;
137
-    }
138 134
     }
139 135
 
140 136
   .housecenter{

+ 73
- 73
src/pages/building/components/correlationdynamics.vue 查看文件

@@ -1,73 +1,73 @@
1
-<template>
2
-    <div class="dynamics">
3
-        <div class="dynamicstitle">
4
-            <span class="titlecharacters">相关动态</span>
5
-        </div>
6
-        <hr class="line"/>
7
-        <van-collapse v-model="activeName" accordion>
8
-            <van-collapse-item  class="title" title="保利别墅205平4房单价37000元起" name="1">
9
-                <div class="peopletimer">
10
-                    <span class="people">16人看过</span>
11
-                    <span class="timer">2018/09/07</span>
12
-                </div>
13
-            </van-collapse-item>
14
-        </van-collapse>
15
-    </div>
16
-</template>
17
-
18
-<script>
19
-export default {
20
-    name:'CorrelationDynamics',
21
-    data() {
22
-        return {
23
-        activeName: '1'
24
-        };
25
-  }
26
-}
27
-</script>
28
-
29
-<style lang="postcss" scoped>
30
-.dynamics{
31
-    width: 100%;
32
-    height: auto;
33
-    background-color: rgba(255,255,255,1);
34
-
35
-    .line{
36
-        width:90%;
37
-        border: 0.5px solid #EFEFEF;
38
-        }
39
-
40
-    .dynamicstitle{
41
-        padding: 15px 0 10px 20px;
42
-
43
-        .titlecharacters{
44
-            font-size:18px;
45
-            font-family:PingFangSC-Regular;
46
-            font-weight:400;
47
-            color:rgba(37,38,42,1);
48
-            line-height:25px;
49
-        }
50
-    }
51
-        .title{
52
-            font-size:16px;
53
-            font-family:PingFangSC-Regular;
54
-            font-weight:400;
55
-            color:rgba(37,38,42,1);
56
-            line-height:22px;
57
-
58
-            .peopletimer{
59
-                font-size:12px;
60
-                font-family:PingFangSC-Regular;
61
-                font-weight:400;
62
-                color:rgba(128,128,128,1);
63
-                line-height:17px;
64
-
65
-                .people{
66
-                    padding-right: 20px
67
-                }
68
-            }
69
-        }
70
-}
71
-</style>
72
-
73
-
1
+<template>
2
+    <div class="dynamics">
3
+        <div class="dynamicstitle">
4
+            <span class="titlecharacters">相关动态</span>
5
+        </div>
6
+        <van-collapse v-model="activeName" accordion>
7
+            <van-collapse-item  class="title" title="保利别墅205平4房单价37000元起" name="1">
8
+                <div class="peopletimer">
9
+                    <span class="people">16人看过</span>
10
+                    <span class="timer">2018/09/07</span>
11
+                </div>
12
+            </van-collapse-item>
13
+        </van-collapse>
14
+    </div>
15
+</template>
16
+
17
+<script>
18
+export default {
19
+    name:'CorrelationDynamics',
20
+    data() {
21
+        return {
22
+        activeName: '1'
23
+        };
24
+  }
25
+}
26
+</script>
27
+<style scoped>
28
+.van-cell:not(:last-child)::after{
29
+    right:15px!important;
30
+}
31
+</style>
32
+
33
+
34
+<style lang="postcss" scoped>
35
+.dynamics{
36
+    width: 100%;
37
+    height: auto;
38
+    background-color: rgba(255,255,255,1);
39
+
40
+    .dynamicstitle{
41
+        padding: 15px 0 10px 20px;
42
+
43
+        .titlecharacters{
44
+            font-size:18px;
45
+            font-family:PingFangSC-Regular;
46
+            font-weight:400;
47
+            color:rgba(37,38,42,1);
48
+            line-height:25px;
49
+        }
50
+    }
51
+        .title{
52
+            font-size:16px;
53
+            font-family:PingFangSC-Regular;
54
+            font-weight:400;
55
+            color:rgba(37,38,42,1);
56
+            line-height:22px;
57
+
58
+            .peopletimer{
59
+                font-size:12px;
60
+                font-family:PingFangSC-Regular;
61
+                font-weight:400;
62
+                color:rgba(128,128,128,1);
63
+                line-height:17px;
64
+
65
+                .people{
66
+                    padding-right: 20px
67
+                }
68
+            }
69
+        }
70
+}
71
+</style>
72
+
73
+

src/pages/building/components/toasebox.vue → src/pages/reservation/components/toasebox.vue 查看文件

@@ -1,30 +1,30 @@
1
-<template>
2
-    <div class="van-dialog">
3
-        <div class="van-dialog__header">联系电话</div>
4
-        <div class="van-dialog__content">
5
-            <div class="van-dialog__message van-dialog__message--has-title">400-7689-9756</div>
6
-        </div>
7
-        <div class="van-hairline--top van-dialog__footer van-dialog__footer--buttons">
8
-            <button class="van-button van-button--default van-button--large van-dialog__cancel">
9
-                <span class="van-button__text">取消</span>
10
-            </button>
11
-            <button class="van-button van-button--default van-button--large van-dialog__confirm van-hairline--left">
12
-                <span class="van-button__text">拨打</span>
13
-            </button>
14
-        </div>
15
-    </div>
16
-</template>
17
-
18
-<script>
19
-    export default {
20
-        name:'ToaseBox',
21
-    }
22
-</script>
23
-
24
-<style lang="postcss" scoped>
25
-.van-dialog{
26
-  z-index: 2038;
27
-  display: none;
28
-}
29
-</style>
30
-
1
+<template>
2
+    <div class="van-dialog">
3
+        <div class="van-dialog__header">联系电话</div>
4
+        <div class="van-dialog__content">
5
+            <div class="van-dialog__message van-dialog__message--has-title">400-7689-9756</div>
6
+        </div>
7
+        <div class="van-hairline--top van-dialog__footer van-dialog__footer--buttons">
8
+            <button class="van-button van-button--default van-button--large van-dialog__cancel">
9
+                <span class="van-button__text">取消</span>
10
+            </button>
11
+            <button class="van-button van-button--default van-button--large van-dialog__confirm van-hairline--left">
12
+                <span class="van-button__text">拨打</span>
13
+            </button>
14
+        </div>
15
+    </div>
16
+</template>
17
+
18
+<script>
19
+    export default {
20
+        name:'ToaseBox',
21
+    }
22
+</script>
23
+
24
+<style lang="postcss" scoped>
25
+.van-dialog{
26
+  z-index: 2038;
27
+  display: none;
28
+}
29
+</style>
30
+

+ 41
- 17
src/pages/reservation/lookhouse.vue 查看文件

@@ -11,22 +11,21 @@
11 11
               </van-popup>
12 12
           </van-cell>
13 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>
14
+          <van-switch-cell v-model="checked" @click="onInput" title="马上去" />
15
+          <van-field class="field_name" @click="showDatePicker()" label="预约时间:" />
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>
20 19
           <van-field class="field_name"  label="手机号码:" />
21 20
           <van-field class="field_name"  label="看房人数:"/> 
21
+          <div class="information">
22
+            <span class="remarks">备注信息:</span>
23
+            <div class="input_content">
24
+                <textarea  id="textArea" class="content_txt" maxlength="100" @input = "descInput" v-model="desc" placeholder="例如:偏好、预算、要求等" onfocus="this.placeholder=''" onblur="this.placeholder='例如:偏好、预算、要求等'"></textarea>
25
+                <span class="number"><span  id="textNum" style="color:#FB6B2F">{{remnant}}</span><span>/100</span></span>
26
+            </div>
27
+          </div> 
22 28
         </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 29
     </div>
31 30
     <div class="btn">
32 31
       <van-button size="large">提交</van-button>
@@ -35,9 +34,11 @@
35 34
 </template>
36 35
 
37 36
 <script>
37
+import ToaseBox from './components/toasebox.vue'
38 38
 export default {
39 39
   components: {
40
-    "vue-headful": () => import("vue-headful")
40
+    "vue-headful": () => import("vue-headful"),
41
+    "ToaseBox":ToaseBox
41 42
   },
42 43
   data() {
43 44
     return {
@@ -48,24 +49,47 @@ export default {
48 49
       maxHour: 20,
49 50
       minDate: new Date(),
50 51
       maxDate: new Date(2080, 10, 1),
51
-      currentDate: new Date()
52
+      currentDate: new Date(),
53
+      remnant:0 //输入数
54
+
52 55
     };
53 56
   },
57
+  //  mounted() {
58
+  //   this.$dialog.alert({
59
+  //     message: '弹窗内容'
60
+  //   });
61
+  // },
54 62
   methods: {
55 63
     showDatePicker() {
56 64
       this.show = true;
57 65
     },
66
+
58 67
     showName (){
59 68
       this.inside = true;
69
+    },
70
+
71
+    //计算输入数
72
+    descInput(){
73
+      const txtVal = this.desc.length;
74
+      this.remnant = txtVal;
60 75
     }
61 76
   }
62 77
 };
63 78
 </script>
64 79
 
65
-<style>
80
+<style scoped>
66 81
 .van-picker__frame{
67 82
   display: none;
68 83
 }
84
+
85
+.van-cell:not(:last-child)::after{
86
+    right:15px!important;
87
+}
88
+
89
+.van-hairline--top-bottom::after{
90
+  border-width:0;
91
+}
92
+
69 93
 </style>
70 94
 
71 95
 <!-- Add "scoped" attribute to limit CSS to this component only -->
@@ -97,7 +121,7 @@ export default {
97 121
       }
98 122
       .input_content {
99 123
         width: 90%;
100
-        height: 110px;
124
+        height: 125px;
101 125
         position: relative;
102 126
         margin-left: 15px;
103 127