陈冉 il y a 6 ans
Parent
révision
3b18cbf555
3 fichiers modifiés avec 60 ajouts et 54 suppressions
  1. 1
    1
      src/components/music.vue
  2. 2
    2
      src/views/vote/index.vue
  3. 57
    51
      src/views/vote/signup.vue

+ 1
- 1
src/components/music.vue Voir le fichier

@@ -89,7 +89,7 @@ export default {
89 89
 
90 90
   .musicbox {
91 91
     position: fixed;
92
-    top: 0.09rem;
92
+    top: 0.6rem;
93 93
     right: 0.09rem;
94 94
     width: 0.35rem;
95 95
     height: 0.35rem;

+ 2
- 2
src/views/vote/index.vue Voir le fichier

@@ -74,7 +74,7 @@ export default {
74 74
     color: white;
75 75
     line-height: 0.28rem;
76 76
     position: fixed;
77
-    bottom: 0.3rem;
77
+    bottom: 0.2rem;
78 78
     left: calc(12.5%);
79 79
   }
80 80
   .classtwo {
@@ -88,7 +88,7 @@ export default {
88 88
     color: white;
89 89
     line-height: 0.28rem;
90 90
     position: fixed;
91
-    bottom: 0.3rem;
91
+    bottom: 0.2rem;
92 92
     left: calc(12.5%);
93 93
   }
94 94
 

+ 57
- 51
src/views/vote/signup.vue Voir le fichier

@@ -48,7 +48,7 @@
48 48
 
49 49
 <script>
50 50
 import { createNamespacedHelpers } from "vuex";
51
-import { Toast } from 'vant';
51
+import { Toast } from "vant";
52 52
 const {
53 53
   mapState: mapVoteState,
54 54
   mapActions: mapVoteActions
@@ -56,7 +56,7 @@ const {
56 56
 export default {
57 57
   name: "signup",
58 58
   data() {
59
-    return{
59
+    return {
60 60
       messagenum: 0,
61 61
       postData: {
62 62
         photo: "",
@@ -65,7 +65,7 @@ export default {
65 65
         addr: "",
66 66
         message: ""
67 67
       },
68
-      uploadimg: '',
68
+      uploadimg: "",
69 69
       actid: "",
70 70
       yttjlove:
71 71
         "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yttj_icon_love.png",
@@ -78,13 +78,13 @@ export default {
78 78
       yjspen:
79 79
         "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/xiegenjin.png",
80 80
       yjsphone:
81
-        "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/dianhua.png",
81
+        "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/dianhua.png"
82 82
     };
83 83
   },
84 84
   computed: {
85 85
     ...mapVoteState({
86 86
       user: x => x.user,
87
-      theme: x => x.theme,
87
+      theme: x => x.theme
88 88
     })
89 89
   },
90 90
   created() {
@@ -92,20 +92,22 @@ export default {
92 92
     if (this.$route.params.actid != "") {
93 93
       this.actid = this.$route.params.actid;
94 94
       this.getActivity({
95
-        actid: this.actid,
95
+        actid: this.actid
96 96
       }).then(() => {
97
-        if (this.theme === 1){
98
-          this.uploadimg = 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/uploadimg.png'
97
+        if (this.theme === 1) {
98
+          this.uploadimg =
99
+            "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/uploadimg.png";
99 100
         } else {
100
-          this.uploadimg = 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yjsuploadimg.png'
101
+          this.uploadimg =
102
+            "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yjsuploadimg.png";
101 103
         }
102
-      })
104
+      });
103 105
     } else {
104 106
       alert("不存在对应的活动信息!");
105 107
     }
106 108
   },
107 109
   methods: {
108
-    ...mapVoteActions(["voteMember","getActivity"]),
110
+    ...mapVoteActions(["voteMember", "getActivity"]),
109 111
     onRead(file) {
110 112
       let that = this;
111 113
       this.isLoading = true;
@@ -133,38 +135,38 @@ export default {
133 135
       this.messagenum = this.postData.message.length;
134 136
     },
135 137
     SubmitBtn() {
136
-      if(this.postData.photo == ""){
138
+      if (this.postData.photo == "") {
137 139
         Toast.fail({
138 140
           duration: 2000, // 持续展示 toast
139 141
           forbidClick: true, // 禁用背景点击
140 142
           message: "请先上传您的全家福!"
141
-        })
142
-        return false
143
+        });
144
+        return false;
143 145
       }
144
-      if(this.postData.name == ""){
146
+      if (this.postData.name == "") {
145 147
         Toast.fail({
146 148
           duration: 2000, // 持续展示 toast
147 149
           forbidClick: true, // 禁用背景点击
148 150
           message: "请输入您的姓名!"
149
-        })
150
-        return false
151
+        });
152
+        return false;
151 153
       }
152
-      if(this.postData.phone == ""){
154
+      if (this.postData.phone == "") {
153 155
         Toast.fail({
154 156
           duration: 2000, // 持续展示 toast
155 157
           forbidClick: true, // 禁用背景点击
156 158
           message: "请输入您的联系方式!"
157
-        })
158
-        return false
159
+        });
160
+        return false;
159 161
       }
160
-      var myreg=/^[1][0-9]{10}$/;
162
+      var myreg = /^[1][0-9]{10}$/;
161 163
       if (!myreg.test(this.postData.phone)) {
162 164
         Toast.fail({
163 165
           duration: 2000, // 持续展示 toast
164 166
           forbidClick: true, // 禁用背景点击
165 167
           message: "手机号格式不正确!"
166
-        })
167
-        return false
168
+        });
169
+        return false;
168 170
       }
169 171
 
170 172
       this.voteMember({
@@ -230,30 +232,34 @@ export default {
230 232
       width: 90%;
231 233
       height: 1.17rem;
232 234
       position: relative;
235
+      background: rgba(220, 229, 236, 0.63);
236
+      margin: 0 auto;
237
+      border-radius: 0.06rem;
233 238
 
234 239
       .content_txt {
235
-        width: 95%;
236
-        height: 100%;
237
-        padding: 2% 3% 0 3%;
238
-        margin-left: 5%;
240
+        width: 93%;
241
+        height: 0.89rem;
239 242
         border: none;
240 243
         font-size: 0.16rem;
241 244
         font-weight: bold;
242
-        background: rgba(220, 229, 236, 0.63);
245
+        background: rgba(220, 229, 236, 0);
243 246
         line-height: 0.22rem;
244
-        border-radius: 0.06rem;
245 247
         font-weight: bold;
246
-        color: rgba(112, 125, 138, 1);
248
+        color: rgba(112,125,138,0.96);
249
+        padding-top: 0.08rem;
250
+        margin-left: calc(4.5%);
251
+        overflow-y: scroll;
252
+
253
+
247 254
       }
248 255
       .number {
249 256
         position: absolute;
250
-        bottom: 0;
251
-        right: -0.1rem;
257
+        bottom: 0.02rem;
258
+        right: 0.05rem;
252 259
 
253 260
         #textNum {
254
-          color: #707d8a;
261
+          color: rgba(112,125,138,0.96);
255 262
           font-size: 0.14rem;
256
-          font-family: PingFangSC-Medium;
257 263
           font-weight: bolder;
258 264
           line-height: 0.2rem;
259 265
         }
@@ -261,7 +267,6 @@ export default {
261 267
         .totalnum {
262 268
           color: #b8c2cb;
263 269
           font-size: 0.14rem;
264
-          font-family: PingFangSC-Medium;
265 270
           font-weight: bolder;
266 271
           line-height: 0.2rem;
267 272
         }
@@ -291,6 +296,8 @@ export default {
291 296
         height: 100%;
292 297
         background-color: rgba(255, 255, 255, 0);
293 298
         text-indent: 0.12rem;
299
+        font-size: 0.16rem;
300
+        font-weight: bolder;
294 301
       }
295 302
     }
296 303
     .textareabox {
@@ -304,6 +311,8 @@ export default {
304 311
         margin-top: 0.08rem;
305 312
         background-color: rgba(255, 255, 255, 0);
306 313
         margin-left: 0.12rem;
314
+        font-size: 0.16rem;
315
+        font-weight: bolder;
307 316
       }
308 317
     }
309 318
     .btn {
@@ -318,7 +327,6 @@ export default {
318 327
         border-radius: 0.23rem;
319 328
         border: none;
320 329
         font-size: 0.2rem;
321
-        font-family: PingFangSC-Medium;
322 330
         font-weight: bolder;
323 331
         color: rgba(255, 255, 255, 1);
324 332
         line-height: 0.28rem;
@@ -327,68 +335,66 @@ export default {
327 335
   }
328 336
 }
329 337
 
330
-.theme1{
331
-    background: rgba(209,220,228,1);
338
+.theme1 {
339
+  background: rgba(209, 220, 228, 1);
332 340
   // background-image: url("../../assets/yttjbg.png");
333
-  .desc{
341
+  .desc {
334 342
     font-size: 0.16rem;
335 343
     font-weight: bolder;
336 344
     color: rgba(112, 125, 138, 1);
337 345
     line-height: 0.22rem;
338 346
     padding-left: 0.03rem;
339 347
   }
340
-  .cinput{
348
+  .cinput {
341 349
     background-color: rgba(220, 229, 236, 0.63);
350
+    color: rgba(117, 132, 146, 0.4);
342 351
   }
343
-  .cbtn{
352
+  .cbtn {
344 353
     background: rgba(166, 184, 201, 1);
345 354
     box-shadow: 0px 2px 10px 0px rgba(207, 217, 227, 1);
346 355
     margin-top: 0.24rem;
347 356
   }
348 357
   input::-webkit-input-placeholder {
349 358
     font-size: 0.16rem;
350
-    font-family: PingFangSC-Medium;
351 359
     font-weight: bolder;
352 360
     color: rgba(117, 132, 146, 0.4);
353 361
     line-height: 0.22rem;
354 362
   }
355 363
   textarea::-webkit-input-placeholder {
356 364
     font-size: 0.16rem;
357
-    font-family: PingFangSC-Medium;
358 365
     font-weight: bolder;
359
-    color: rgba(112, 125, 138, 0.4);
366
+    color: rgba(112,125,138,1);
360 367
     line-height: 0.22rem;
361 368
   }
362 369
 }
363 370
 
364
-.theme2{
371
+.theme2 {
365 372
   // background-image: url("../../assets/bgimg.jpg");
366
-      background: linear-gradient(#97796c,#705443);
367
-  .desc{
373
+  background: linear-gradient(#97796c, #705443);
374
+  .desc {
368 375
     font-size: 0.16rem;
369 376
     font-weight: bolder;
370 377
     color: rgba(112, 84, 75, 1);
371 378
     line-height: 0.22rem;
372 379
     padding-left: 0.03rem;
373 380
   }
374
-  .cinput{
381
+  .cinput {
375 382
     background-color: rgba(232, 224, 220, 1);
383
+    color: rgba(139, 116, 102, 0.4);
376 384
   }
377
-  .cbtn{
385
+  .cbtn {
378 386
     background: rgba(173, 145, 129, 1);
379 387
     box-shadow: 0px 2px 10px 0px rgba(120, 108, 101, 0.46);
380 388
     margin-top: 1rem;
381 389
   }
382 390
   input::-webkit-input-placeholder {
383 391
     font-size: 0.16rem;
384
-    font-family: PingFangSC-Medium;
385 392
     font-weight: bolder;
386 393
     color: rgba(139, 116, 102, 0.4);
387 394
     line-height: 0.22rem;
388 395
   }
389 396
   textarea::-webkit-input-placeholder {
390 397
     font-size: 0.16rem;
391
-    font-family: PingFangSC-Medium;
392 398
     font-weight: bolder;
393 399
     color: rgba(139, 116, 102, 0.4);
394 400
     line-height: 0.22rem;