李志伟 3 years ago
parent
commit
16b6e50381
4 changed files with 48 additions and 169 deletions
  1. 5
    64
      src/pages/AllPages.vue
  2. 0
    5
      src/pages/IndexImage.vue
  3. 0
    10
      src/pages/Test.vue
  4. 43
    90
      src/pages/signup.vue

+ 5
- 64
src/pages/AllPages.vue View File

@@ -4,25 +4,25 @@
4 4
     <div class="index-FourBoxes">
5 5
       <div class="index-FourBoxes-yushi test" :class="{ active: currentItem === 0 }" @click="goPagess(0)">
6 6
         <img src="../../public/fourBoxes-image/浴室.png" class="Four-image" @transitionend="handleTransitionEnd('yushi')" />
7
-        <div style=" width: 80px; position: absolute; left: 13vw; top: 36vh;">
7
+        <div style=" width: 21vw; position: absolute; left: 13.5vw; top: 36vh;">
8 8
           <img style=" width:100%;" src="../assets/fourBoxes-2/浴室-2.png" />
9 9
         </div>
10 10
       </div>
11 11
       <div class="index-FourBoxes-yimao test" :class="{ active: currentItem === 1 }" @click="goPagess(1)">
12 12
         <img src="../../public/fourBoxes-image/衣帽间.png" class="Four-image" @transitionend="handleTransitionEnd('yimao')" />
13
-        <div style=" width: 80px;; position: absolute; left: 62vw; top: 36vh;">
13
+        <div style=" width: 21vw;; position: absolute; right: 13.5vw; top: 36vh;">
14 14
           <img style=" width:100%;" src="../assets/fourBoxes-2/衣帽间-2.png" />
15 15
         </div>
16 16
       </div>
17 17
       <div class="index-FourBoxes-keting test" :class="{ active: currentItem === 2 }" @click="goPagess(2)">
18 18
         <img src="../../public/fourBoxes-image/客厅.png" @transitionend="handleTransitionEnd('keting')" class="Four-image" />
19
-        <div style=" width: 80px;; position: absolute; left: 13vw; top: 77vh;">
19
+        <div style=" width: 21vw;; position: absolute; left: 13.5vw; top: 77vh;">
20 20
           <img style=" width:100%;" src="../assets/fourBoxes-2/客厅-2.png" />
21 21
         </div>
22 22
       </div>
23 23
       <div class="index-FourBoxes-yangtai test" :class="{ active: currentItem === 3 }" @click="goPagess(3)">
24 24
         <img src="../../public/fourBoxes-image/阳台.png" @transitionend="handleTransitionEnd('yangtai')" class="Four-image" />
25
-        <div style=" width: 80px;; position: absolute; left: 62vw; top: 77vh;">
25
+        <div style=" width: 21vw;; position: absolute; right: 13.5vw; top: 77vh;">
26 26
           <img style=" width:100%;" src="../assets/fourBoxes-2/阳台-2.png" />
27 27
         </div>
28 28
       </div>
@@ -35,13 +35,6 @@ export default {
35 35
   data() {
36 36
     return {
37 37
       currentItem: -1,
38
-      currentType: '',
39
-      styleImage: [
40
-        'opacity: 0.3;',
41
-        'opacity: 0.3;',
42
-        'opacity: 0.3;',
43
-        'opacity: 0.3;',
44
-        ],
45 38
       typeYushi: {
46 39
         bgImage: require('../../public/yushi-image/1.jpg'),
47 40
         swiper: {
@@ -84,59 +77,7 @@ export default {
84 77
     },
85 78
     goPagess(inx) {
86 79
       this.currentItem = inx
87
-
88
-      // switch (e) {
89
-      //   case 'yushi':
90
-      //     var arr = JSON.stringify(this.typeYushi)
91
-      //     this.styleImage[0] = 'opacity:1'
92
-      //     setTimeout(()=>{
93
-      //       this.$router.push({
94
-      //           name: 'Test',
95
-      //           params: { types: encodeURIComponent(arr) }
96
-      //       })
97
-      //       // this.styleImage[0] = 'opacity: 0.3;'
98
-      //     },1000)
99
-      //     break
100
-      //   case 'keting':
101
-      //     var arr = JSON.stringify(this.typeKeting)
102
-      //     this.styleImage[1] = ''
103
-      //     setTimeout(()=>{
104
-      //       this.$router.push({
105
-      //         name: 'Test',
106
-      //         params: { types: encodeURIComponent(arr) }
107
-      //       })
108
-      //       // this.styleImage[1] = 'opacity: 0.3;'
109
-      //     },1000)
110
-      //     break
111
-      //   case 'yimao':
112
-      //     var arr = JSON.stringify(this.typeYimao)          
113
-      //     this.styleImage[2] = ''
114
-      //     setTimeout(()=>{
115
-      //       this.$router.push({
116
-      //         name: 'Test',
117
-      //         params: { types: encodeURIComponent(arr) }
118
-      //       })
119
-      //       // this.styleImage[2] = 'opacity: 0.3;'
120
-      //     },1000)
121
-      //     break
122
-      //   case 'yangtai':
123
-      //     var arr = JSON.stringify(this.typeYangtai)
124
-      //     this.styleImage[3] = ''
125
-      //     setTimeout(()=>{
126
-      //       this.$router.push({
127
-      //         name: 'Test',
128
-      //         params: { types: encodeURIComponent(arr) }
129
-      //       })
130
-      //       // this.styleImage[3] = 'opacity: 0.3;'
131
-      //     },1000)
132
-      //     break
133
-      //   default:
134
-      //     return
135
-      // }
136
-    },
137
-    goYimao() {},
138
-    goKeting() {},
139
-    goYangtai() {}
80
+    }
140 81
   }
141 82
 }
142 83
 </script>

+ 0
- 5
src/pages/IndexImage.vue View File

@@ -18,11 +18,6 @@ export default {
18 18
       type: Array
19 19
     }
20 20
   },
21
-  // computed: {
22
-  //   list() {
23
-  //     return Object.keys(this.typeImage).map(k => this.typeImage[k])
24
-  //   }
25
-  // },
26 21
   watch: {
27 22
     list() {
28 23
       this.$nextTick(() => {

+ 0
- 10
src/pages/Test.vue View File

@@ -92,16 +92,6 @@ export default {
92 92
   },
93 93
   components: {
94 94
     IndexImage: () => import('./IndexImage.vue')
95
-  },
96
-  mounted() {
97
-    this.$nextTick(function () {
98
-      // console.log(this.$route.params.types)
99
-      // console.log(this.images[this.$route.params.types])
100
-      // var list = decodeURIComponent(this.images[this.$route.params.types])
101
-      // this.songList = this.images[this.$route.params.types]
102
-      // this.swiperList = this.images[this.$route.params.types].list
103
-      // console.log(this.swiperList)
104
-    })
105 95
   }
106 96
 }
107 97
 </script>

+ 43
- 90
src/pages/signup.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <img class="bgi" src="../../public/images/signup/bgi.jpg" width="100%" />
3
+    <img class="bgi" src="../../public/images/signup/bgi.jpg" />
4 4
     <div class="form">
5 5
       <div class="formItem">
6 6
         <label>身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;份</label>
@@ -15,26 +15,25 @@
15 15
       </div>
16 16
       <div class="formItem name">
17 17
         <label>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</label>
18
-        <input class="userName" type="text" placeholder="请输入姓名" v-model="formData.userName" />
18
+        <input class="duiqi" type="text" placeholder="请输入姓名" v-model="formData.userName" />
19 19
       </div>
20 20
       <div class="formItem phonediv">
21 21
         <label>手&nbsp;机&nbsp;号</label>
22
-        <input class="phone" type="text" placeholder="请输入手机号" v-model="formData.phone" />
22
+        <input class="duiqi" type="text" placeholder="请输入手机号" v-model="formData.phone" />
23 23
       </div>
24 24
       <div class="formItem intendedProductdiv" @click="showPicker = true">
25 25
         <label>意向产品</label>        
26 26
         <input
27
-          class="intendedProduct"
27
+          class="duiqi"
28 28
           type="text"
29 29
           placeholder="请选择"
30 30
           disabled
31 31
           v-model="formData.intendedProduct"
32 32
         />
33 33
       </div>
34
-
35 34
       <div class="formItem addressdiv" @click="showArea = true">
36 35
         <label>所在地区</label>
37
-        <input class="address" type="text" placeholder="请选择" v-model="address" disabled />
36
+        <input class="duiqi" type="text" placeholder="请选择" v-model="address" disabled />
38 37
       </div>
39 38
       <img @click="sumbit" class="submit" src="../../public/images/signup/submit.png" width="45%" />
40 39
     </div>
@@ -157,98 +156,52 @@ export default {
157 156
   }
158 157
 }
159 158
 </script>
160
-<style scoped>
161
-* {
162
-  margin: 0;
163
-  padding: 0;
164
-}
159
+<style lang="scss" scoped>
165 160
 .bgi {
166 161
   z-index: 1;
162
+  width: 100%;
167 163
   position: absolute;
168 164
 }
169 165
 .form {
170
-  width: 100%;
171 166
   color: #a6b1ab;
172 167
   position: absolute;
173 168
   margin-top: 18%;
174 169
   z-index: 2;
175
-}
176
-.formItem {
177
-  position: absolute;
178
-  width: 82vw;
179
-  margin: 6vw;
180
-  padding: 3vw;
181
-  text-align: left;
182
-  border: 1px solid #4f5054;
183
-  background-color: #212226;
184
-}
185
-.checkedImg {
186
-  width: 16px;
187
-  top: 2px;
188
-  right: 8px;
189
-  position: relative;
190
-}
191
-.name {
192
-  margin-top: 23%;
193
-}
194
-.userName {
195
-  width: 74%;
196
-  background-color: #212226;
197
-  outline: none;
198
-  border: none;
199
-  color: white;
200
-  text-align: right;
201
-  height: 100%;
202
-  font-size: 16px;
203
-  color: #a6b1ab;
204
-  float: right;
205
-}
206
-.phonediv {
207
-  margin-top: 40%;
208
-}
209
-.phone {
210
-  width: 74%;
211
-  background-color: #212226;
212
-  outline: none;
213
-  border: none;
214
-  color: white;
215
-  text-align: right;
216
-  height: 100%;
217
-  font-size: 16px;
218
-  color: #a6b1ab;
219
-  float: right;
220
-}
221
-.intendedProductdiv {
222
-  margin-top: 57%;
223
-}
224
-.intendedProduct {
225
-  width: 73%;
226
-  background-color: #212226;
227
-  outline: none;
228
-  border: none;
229
-  color: white;
230
-  text-align: right;
231
-  height: 100%;
232
-  font-size: 16px;
233
-  color: #a6b1ab;
234
-  float: right;
235
-}
236
-.addressdiv {
237
-  margin-top: 74%;
238
-}
239
-.address {
240
-  width: 72%;
241
-  background-color: #212226;
242
-  outline: none;
243
-  border: none;
244
-  color: white;
245
-  text-align: right;
246
-  height: 100%;
247
-  font-size: 16px;
248
-  color: #a6b1ab;
249
-  float: right;
250
-}
251
-.submit {
252
-  margin: 93% 0 0 27.5vw;
170
+  .formItem {
171
+    position: absolute;
172
+    width: 82vw;
173
+    margin: 6vw;
174
+    padding: 3vw;
175
+    border: 1px solid #4f5054;
176
+    background-color: #212226;
177
+    .duiqi {
178
+      background-color: #212226;
179
+      border: none;
180
+      text-align: right;
181
+      float: right;
182
+    }
183
+    .checkedImg {
184
+      width: 16px;
185
+      top: 2px;
186
+      right: 8px;
187
+      position: relative;
188
+    }
189
+  }
190
+  .name {
191
+    margin-top: 23%;
192
+  }
193
+  .phonediv {
194
+    margin-top: 40%;
195
+  }
196
+  .intendedProductdiv {
197
+    margin-top: 57%;
198
+  }
199
+  .addressdiv {
200
+    margin-top: 74%;
201
+  }
202
+  .submit {
203
+    margin: 93% 0 0 27.5vw;
204
+    width: 45%;
205
+  }
253 206
 }
254 207
 </style>