zjxpcyc 6 anos atrás
pai
commit
b75541fd31
5 arquivos alterados com 75 adições e 64 exclusões
  1. 23
    25
      src/views/vote/detail.vue
  2. 2
    4
      src/views/vote/index.vue
  3. 37
    18
      src/views/vote/list.vue
  4. 11
    15
      src/views/vote/signup.vue
  5. 2
    2
      vue.config.js

+ 23
- 25
src/views/vote/detail.vue Ver arquivo

@@ -117,15 +117,16 @@ export default {
117 117
 <style lang="scss" scoped>
118 118
 
119 119
 .ContextbBox {
120
-  width: 93.6%;
121
-  height: 4.05rem;
120
+  width: 3.25rem;
121
+  // height: 4.05rem;
122 122
   background-color: rgba(255, 255, 255, 1);
123 123
   border-radius: 0.02rem;
124
-  margin-top: 0.7rem;
124
+  margin: 0.11rem auto;
125 125
   display: flex;
126 126
   flex-direction: column;
127 127
   align-items: center;
128 128
   position: relative;
129
+  padding: 0.1rem 0.13rem;
129 130
 }
130 131
 
131 132
 .votelist {
@@ -136,19 +137,18 @@ export default {
136 137
   border-radius: 0.23rem 0 0 0.23rem;
137 138
   padding: 0.05rem 0.05rem 0.05rem 0.16rem;
138 139
   font-size: 0.18rem;
139
-  font-family: PingFangSC-Medium;
140 140
   font-weight: bolder;
141 141
   color: rgba(255, 255, 255, 1);
142 142
   line-height: 0.25rem;
143 143
 }
144 144
 
145 145
 img {
146
-  width: 93%;
146
+  width: 100%;
147 147
   height: 3.16rem;
148 148
   margin: 0.1rem 0;
149 149
 }
150 150
 .detailinformation {
151
-  width: 82%;
151
+  width: 90%;
152 152
   display: flex;
153 153
   flex-direction: row;
154 154
   justify-content: space-between;
@@ -163,22 +163,23 @@ img {
163 163
 .context {
164 164
   width: 100%;
165 165
   height: 100%;
166
+  overflow-y: scroll;
166 167
   // background-color: rgba(220,229,236,1);;
167
-  display: flex;
168
-  flex-direction: column;
169
-  align-items: center;
168
+  // display: flex;
169
+  // flex-direction: column;
170
+  // align-items: center;
170 171
 }
171 172
 
172 173
 .theme1 {  
173
-  background-image: url('../../assets/yttjbg.png');
174
+  // background-image: url('../../assets/yttjbg.png');
175
+   background: rgba(209,220,228,1);
174 176
   .personnumber {
175 177
     position: absolute;
176 178
     top: 0;
177 179
     background-color:rgba(255,255,255,1);
178 180
     border-radius: 0 0 0.12rem 0.12rem;
179
-    padding: 0.01rem 0.25rem;
181
+    padding: 0.07rem 0.25rem;
180 182
     font-size: 0.18rem;
181
-    font-family: PingFangSC-Medium;
182 183
     font-weight: bolder;
183 184
     color:rgba(70,86,101,1);
184 185
     line-height: 0.25rem;
@@ -190,7 +191,6 @@ img {
190 191
   }
191 192
   .information {
192 193
     font-size: 0.16rem;
193
-    font-family: JQLaoSongJT;
194 194
     color:rgba(112,125,138,1);
195 195
     line-height: 0.28rem;
196 196
     font-weight: bold;
@@ -198,11 +198,10 @@ img {
198 198
   }
199 199
   .informationnum {
200 200
     font-size: 0.24rem;
201
-    font-family: JQLaoSongJT;
202 201
     color:rgba(112,125,138,1);
203 202
     font-weight: bolder;
204 203
     line-height: 0.28rem;
205
-      height: 0.28rem;
204
+    height: 0.28rem;
206 205
   }
207 206
   .votebtn {
208 207
     width: 59%;
@@ -210,12 +209,14 @@ img {
210 209
     background: rgba(166,184,201,1);
211 210
     border-radius: 0.23rem;
212 211
     font-size: 0.2rem;
213
-    font-family: PingFangSC-Medium;
214 212
     font-weight: bolder;
215 213
     color: rgba(255, 255, 255, 1);
216 214
     line-height: 0.28rem;
217 215
     border: none;
218
-    margin-top: 0.18rem;
216
+    // margin-top: 0.18rem;
217
+    margin-left: calc(20.5%);
218
+   margin-top: 0.07rem;
219
+    // padding: 0.07rem 0.65rem;
219 220
   }
220 221
 }
221 222
  
@@ -238,15 +239,15 @@ img {
238 239
     word-wrap: break-word;
239 240
     word-break: normal;
240 241
     font-size: 0.14rem;
241
-    font-family: PingFangSC-Regular;
242 242
     font-weight: bold;
243
-    color: rgba(77,87,97,1);
243
+    color: rgba(77,87,97,0.7);
244 244
     line-height: 0.2rem;
245 245
   }
246 246
 }
247 247
 
248 248
 .theme2 {
249
-  background-image: url('../../assets/bgimg.jpg');
249
+  // background-image: url('../../assets/bgimg.jpg');
250
+    background: linear-gradient(#97796c,#705443);
250 251
   .personnumber {
251 252
     position: absolute;
252 253
     top: 0;
@@ -254,7 +255,6 @@ img {
254 255
     border-radius: 0 0 0.12rem 0.12rem;
255 256
     padding: 0.01rem 0.25rem;
256 257
     font-size: 0.18rem;
257
-    font-family: PingFangSC-Medium;
258 258
     font-weight: bolder;
259 259
     color:rgba(112,84,75,1);
260 260
     line-height: 0.25rem;
@@ -266,7 +266,6 @@ img {
266 266
   }
267 267
   .information {
268 268
     font-size: 0.16rem;
269
-    font-family: JQLaoSongJT;
270 269
     color:rgba(112,84,75,1);
271 270
     line-height: 0.28rem;
272 271
     font-weight: bold;
@@ -274,7 +273,6 @@ img {
274 273
   }
275 274
   .informationnum {
276 275
     font-size: 0.24rem;
277
-    font-family: JQLaoSongJT;
278 276
     color:rgba(112,84,75,1);
279 277
     font-weight: bolder;
280 278
     line-height: 0.28rem;
@@ -286,12 +284,12 @@ img {
286 284
     background: rgba(173,145,129,1);
287 285
     border-radius: 0.23rem;
288 286
     font-size: 0.2rem;
289
-    font-family: PingFangSC-Medium;
290 287
     font-weight: bolder;
291 288
     color: rgba(255, 255, 255, 1);
292 289
     line-height: 0.28rem;
293 290
     border: none;
294
-    margin-top: 0.18rem;
291
+    margin-left: calc(20.5%);
292
+   margin-top: 0.44rem;
295 293
   }
296 294
 }
297 295
 </style>

+ 2
- 4
src/views/vote/index.vue Ver arquivo

@@ -70,12 +70,11 @@ export default {
70 70
     background: #a6b8c9;
71 71
     border: none;
72 72
     font-size: 0.2rem;
73
-    font-family: PingFangSC-Medium;
74 73
     font-weight: bolder;
75 74
     color: white;
76 75
     line-height: 0.28rem;
77 76
     position: fixed;
78
-    bottom: 0.4rem;
77
+    bottom: 0.3rem;
79 78
     left: calc(12.5%);
80 79
   }
81 80
   .classtwo {
@@ -85,12 +84,11 @@ export default {
85 84
     background: rgba(173, 145, 129, 1);
86 85
     border: none;
87 86
     font-size: 0.2rem;
88
-    font-family: PingFangSC-Medium;
89 87
     font-weight: bolder;
90 88
     color: white;
91 89
     line-height: 0.28rem;
92 90
     position: fixed;
93
-    bottom: 0.4rem;
91
+    bottom: 0.3rem;
94 92
     left: calc(12.5%);
95 93
   }
96 94
 

+ 37
- 18
src/views/vote/list.vue Ver arquivo

@@ -69,7 +69,9 @@
69 69
         </van-tab>
70 70
       </van-tabs>
71 71
     </div>
72
-    <button v-show="showBtn" :class="signupBtn?'signupBtnOne':'signupBtnTwo'" @click="signup">{{ myID > 0 ? '我的上传' : '我要报名'}}</button>
72
+    <div class="btn" v-show="showBtn">
73
+    <button :class="signupBtn?'signupBtnOne':'signupBtnTwo'" @click="signup">{{ myID > 0 ? '我的上传' : '我要报名'}}</button>
74
+    </div>
73 75
     <toast v-if="show" :url="activity.AfterVote" @close="close" @confirmbtn="tolink"></toast>
74 76
   </div>
75 77
 </template>
@@ -357,7 +359,7 @@ export default {
357 359
 
358 360
   .BannerImage {
359 361
     width: 100%;
360
-    height: 3.4rem;
362
+    max-height: 10rem;
361 363
   }
362 364
 
363 365
   .onscroll1 {
@@ -383,7 +385,6 @@ export default {
383 385
         background-color: rgba(255, 255, 255, 0);
384 386
         color: rgba(255, 255, 255, 1);
385 387
         font-size: 0.16rem;
386
-        font-family: PingFangSC-Regular;
387 388
         font-weight: bold;
388 389
         line-height: 0.22rem;
389 390
         width: 3rem;
@@ -392,7 +393,6 @@ export default {
392 393
       input::-webkit-input-placeholder {
393 394
         color: rgba(255, 255, 255, 1);
394 395
         font-size: 0.16rem;
395
-        font-family: PingFangSC-Regular;
396 396
         font-weight: bold;
397 397
         line-height: 0.22rem;
398 398
       }
@@ -428,7 +428,6 @@ export default {
428 428
         background-color: rgba(255, 255, 255, 0);
429 429
         color: rgba(255, 255, 255, 1);
430 430
         font-size: 0.16rem;
431
-        font-family: PingFangSC-Regular;
432 431
         font-weight: bold;
433 432
         line-height: 0.22rem;
434 433
         width: 3rem;
@@ -437,7 +436,6 @@ export default {
437 436
       input::-webkit-input-placeholder {
438 437
         color: rgba(255, 255, 255, 1);
439 438
         font-size: 0.16rem;
440
-        font-family: PingFangSC-Regular;
441 439
         font-weight: bold;
442 440
         line-height: 0.22rem;
443 441
       }
@@ -473,7 +471,6 @@ export default {
473 471
         background-color: rgba(255, 255, 255, 0);
474 472
         color: rgba(255, 255, 255, 1);
475 473
         font-size: 0.16rem;
476
-        font-family: PingFangSC-Regular;
477 474
         font-weight: bold;
478 475
         line-height: 0.22rem;
479 476
         width: 3rem;
@@ -482,7 +479,6 @@ export default {
482 479
       input::-webkit-input-placeholder {
483 480
         color: rgba(255, 255, 255, 1);
484 481
         font-size: 0.16rem;
485
-        font-family: PingFangSC-Regular;
486 482
         font-weight: bold;
487 483
         line-height: 0.22rem;
488 484
       }
@@ -519,7 +515,6 @@ export default {
519 515
         background-color: rgba(255, 255, 255, 0);
520 516
         color: rgba(255, 255, 255, 1);
521 517
         font-size: 0.16rem;
522
-        font-family: PingFangSC-Regular;
523 518
         font-weight: bold;
524 519
         line-height: 0.22rem;
525 520
         width: 3rem;
@@ -528,7 +523,6 @@ export default {
528 523
       input::-webkit-input-placeholder {
529 524
         color: rgba(255, 255, 255, 1);
530 525
         font-size: 0.16rem;
531
-        font-family: PingFangSC-Regular;
532 526
         font-weight: bold;
533 527
         line-height: 0.22rem;
534 528
       }
@@ -715,6 +709,19 @@ export default {
715 709
       }
716 710
     }
717 711
   }
712
+
713
+  .btn{
714
+        width: 100%;
715
+    height: 0.6rem;
716
+    display: flex;
717
+    justify-content: center;
718
+    align-items: center;
719
+    background: rgba(255,255,255,1);
720
+    position: fixed;
721
+    bottom: 0;
722
+    left: 0;
723
+    z-index: 100;
724
+
718 725
   .signupBtnOne {
719 726
     width: 91%;
720 727
     height: 0.5rem;
@@ -725,10 +732,10 @@ export default {
725 732
     font-weight: bold;
726 733
     color: rgba(255, 255, 255, 1);
727 734
     line-height: 0.28rem;
728
-    position: fixed;
729
-    bottom: 0.19rem;
730
-    left: calc(4.25%);
731
-    z-index: 100;
735
+    // position: fixed;
736
+    // bottom: 0.19rem;
737
+    // left: calc(4.25%);
738
+    // z-index: 100;
732 739
   }
733 740
   .signupBtnTwo {
734 741
     width: 91%;
@@ -740,12 +747,24 @@ export default {
740 747
     font-weight: bold;
741 748
     color: rgba(255, 255, 255, 1);
742 749
     line-height: 0.28rem;
743
-    position: fixed;
744
-    bottom: 0.19rem;
745
-    left: calc(4.25%);
746
-    z-index: 100;
750
+    // position: fixed;
751
+    // bottom: 0.19rem;
752
+    // left: calc(4.25%);
753
+    // z-index: 100;
754
+  }
755
+
747 756
   }
757
+
748 758
 }
759
+
760
+.theme1 {
761
+  // background-image: url('../../assets/bgimg.jpg');
762
+   background: rgba(209,220,228,1);
763
+   }
764
+   .theme2 {
765
+  // background-image: url('../../assets/bgimg.jpg');
766
+    background: linear-gradient(#97796c,#705443);
767
+   }
749 768
 </style>
750 769
 
751 770
 

+ 11
- 15
src/views/vote/signup.vue Ver arquivo

@@ -184,17 +184,18 @@ export default {
184 184
 <style lang='scss' scoped>
185 185
 .context {
186 186
   width: 100%;
187
-  // height: 100%;
188
-  display: flex;
189
-  justify-content: center;
187
+  height: 100%;
188
+  overflow-y: scroll;
189
+  // display: flex;
190
+  // justify-content: center;
190 191
 
191 192
   .ContextBox {
192 193
     width: 94%;
193 194
     // height: 5.85rem;
194 195
     border-radius: 0.06rem;
195 196
     background-color: rgba(255, 255, 255, 1);
196
-    margin: 0.12rem 0;
197
-    padding: 0.29rem 0 0.59rem 0;
197
+    margin: 0.12rem auto;
198
+    padding: 0.29rem 0 0.32rem 0;
198 199
     position: relative;
199 200
 
200 201
     .uploadimg {
@@ -310,12 +311,6 @@ export default {
310 311
       display: flex;
311 312
       align-items: center;
312 313
       justify-content: center;
313
-      // padding: 0.32rem 0;
314
-      margin-top: 0.60rem;
315
-      // padding-top: 0.32rem;
316
-      // position: fixed;
317
-      // left: 0;
318
-      // bottom: 0.32rem;
319 314
 
320 315
       .SubmitBtn {
321 316
         width: 44%;
@@ -327,14 +322,14 @@ export default {
327 322
         font-weight: bolder;
328 323
         color: rgba(255, 255, 255, 1);
329 324
         line-height: 0.28rem;
330
-        // padding-top: 0.32rem;
331 325
       }
332 326
     }
333 327
   }
334 328
 }
335 329
 
336 330
 .theme1{
337
-  background-image: url("../../assets/yttjbg.png");
331
+    background: rgba(209,220,228,1);
332
+  // background-image: url("../../assets/yttjbg.png");
338 333
   .desc{
339 334
     font-size: 0.16rem;
340 335
     font-weight: bolder;
@@ -348,7 +343,7 @@ export default {
348 343
   .cbtn{
349 344
     background: rgba(166, 184, 201, 1);
350 345
     box-shadow: 0px 2px 10px 0px rgba(207, 217, 227, 1);
351
-    // margin-top: 1rem;
346
+    margin-top: 0.24rem;
352 347
   }
353 348
   input::-webkit-input-placeholder {
354 349
     font-size: 0.16rem;
@@ -367,7 +362,8 @@ export default {
367 362
 }
368 363
 
369 364
 .theme2{
370
-  background-image: url("../../assets/bgimg.jpg");
365
+  // background-image: url("../../assets/bgimg.jpg");
366
+      background: linear-gradient(#97796c,#705443);
371 367
   .desc{
372 368
     font-size: 0.16rem;
373 369
     font-weight: bolder;

+ 2
- 2
vue.config.js Ver arquivo

@@ -7,9 +7,9 @@ module.exports = {
7 7
     proxy: {
8 8
       '/voteapi': {
9 9
         // target: 'http://wechatconfigdev.ycjcjy.com',
10
-        target: 'http://localhost:8080', // wf
10
+        // target: 'http://192.168.0.62:8080', // wf
11 11
         // target: 'http://192.168.0.102:8080', // hyq
12
-        // target: 'http://192.168.0.11:8080', // zys
12
+        target: 'http://192.168.0.11:8080', // zys
13 13
         // target: 'http://dev.ycjcjy.com', // frp
14 14
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
15 15
         pathRewrite: {