Explorar el Código

Merge branch 'master' of http://git.ycjcjy.com/dianyang/colmo-h5

张延森 hace 3 años
padre
commit
ccf292357e
Se han modificado 4 ficheros con 54 adiciones y 178 borrados
  1. 5
    64
      src/pages/AllPages.vue
  2. 0
    5
      src/pages/IndexImage.vue
  3. 0
    10
      src/pages/Test.vue
  4. 49
    99
      src/pages/signup.vue

+ 5
- 64
src/pages/AllPages.vue Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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>

+ 49
- 99
src/pages/signup.vue Ver fichero

@@ -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,20 +15,19 @@
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
-        <div class="intendedProduct" :class="{grey: !address}">{{formData.intendedProduct || "请选择"}}</div>
26
+        <div class="duiqi" :class="{grey: !address}">{{formData.intendedProduct || "请选择"}}</div>
27 27
       </div>
28
-
29 28
       <div class="formItem addressdiv" @click="showArea = true">
30 29
         <label>所在地区</label>
31
-        <div class="address" :class="{grey: !address}">{{address || "请选择"}}</div>
30
+        <div class="duiqi" :class="{grey: !address}">{{address || "请选择"}}</div>
32 31
       </div>
33 32
       <img @click="sumbit" class="submit" src="../../public/images/signup/submit.png" width="45%" />
34 33
     </div>
@@ -153,109 +152,60 @@ export default {
153 152
   }
154 153
 }
155 154
 </script>
156
-<style scoped>
157
-* {
158
-  margin: 0;
159
-  padding: 0;
160
-}
155
+<style lang="scss" scoped>
161 156
 .bgi {
162 157
   z-index: 1;
158
+  width: 100%;
163 159
   position: absolute;
164 160
 }
165 161
 .form {
166
-  width: 100%;
167 162
   color: #a6b1ab;
168 163
   position: absolute;
169 164
   margin-top: 18%;
170 165
   z-index: 2;
171
-}
172
-.formItem {
173
-  position: absolute;
174
-  width: 82vw;
175
-  margin: 6vw;
176
-  padding: 3vw;
177
-  text-align: left;
178
-  border: 1px solid #4f5054;
179
-  background-color: #212226;
180
-}
181
-.checkedImg {
182
-  width: 16px;
183
-  top: 2px;
184
-  right: 8px;
185
-  position: relative;
186
-}
187
-.name {
188
-  margin-top: 23%;
189
-}
190
-.userName {
191
-  width: 74%;
192
-  background-color: #212226;
193
-  outline: none;
194
-  border: none;
195
-  color: white;
196
-  text-align: right;
197
-  height: 100%;
198
-  font-size: 16px;
199
-  color: #a6b1ab;
200
-  float: right;
201
-}
202
-.phonediv {
203
-  margin-top: 40%;
204
-}
205
-.phone {
206
-  width: 74%;
207
-  background-color: #212226;
208
-  outline: none;
209
-  border: none;
210
-  color: white;
211
-  text-align: right;
212
-  height: 100%;
213
-  font-size: 16px;
214
-  color: #a6b1ab;
215
-  float: right;
216
-}
217
-.intendedProductdiv {
218
-  margin-top: 57%;
219
-}
220
-.intendedProduct {
221
-  width: 73%;
222
-  background-color: #212226;
223
-  outline: none;
224
-  border: none;
225
-  color: white;
226
-  text-align: right;
227
-  height: 100%;
228
-  font-size: 16px;
229
-  color: #a6b1ab;
230
-  float: right;
231
-  overflow: hidden;
232
-  text-overflow: ellipsis;
233
-  white-space:nowrap;
234
-}
235
-.addressdiv {
236
-  margin-top: 74%;
237
-}
238
-.address {
239
-  width: 72%;
240
-  background-color: #212226;
241
-  outline: none;
242
-  border: none;
243
-  color: white;
244
-  text-align: right;
245
-  height: 100%;
246
-  font-size: 16px;
247
-  color: #a6b1ab;
248
-  float: right;
249
-  overflow: hidden;
250
-  text-overflow: ellipsis;
251
-  white-space:nowrap;
252
-}
166
+  .formItem {
167
+    position: absolute;
168
+    width: 82vw;
169
+    margin: 6vw;
170
+    padding: 3vw;
171
+    border: 1px solid #4f5054;
172
+    background-color: #212226;
173
+    .duiqi {
174
+      background-color: #212226;
175
+      border: none;
176
+      text-align: right;
177
+      float: right;
178
+      overflow: hidden;
179
+      text-overflow: ellipsis;
180
+      white-space: nowrap;
181
+    }
182
+    .checkedImg {
183
+      width: 16px;
184
+      top: 2px;
185
+      right: 8px;
186
+      position: relative;
187
+    }
188
+  }
253 189
 
254
-.grey {
255
-  color: #696f69;
256
-}
190
+  .grey {
191
+    color: #696969;
192
+  }
257 193
 
258
-.submit {
259
-  margin: 93% 0 0 27.5vw;
194
+  .name {
195
+    margin-top: 23%;
196
+  }
197
+  .phonediv {
198
+    margin-top: 40%;
199
+  }
200
+  .intendedProductdiv {
201
+    margin-top: 57%;
202
+  }
203
+  .addressdiv {
204
+    margin-top: 74%;
205
+  }
206
+  .submit {
207
+    margin: 93% 0 0 27.5vw;
208
+    width: 45%;
209
+  }
260 210
 }
261 211
 </style>