zjxpcyc 6 gadus atpakaļ
vecāks
revīzija
09838f245e

+ 6
- 8
src/App.vue Parādīt failu

@@ -32,6 +32,7 @@ export default {
32 32
     ...mapactivityState({
33 33
       activity: s => s.activity || {},
34 34
       theme: s => `${s.theme}`,
35
+      code: s => s.code,
35 36
     })
36 37
   },
37 38
   created() {
@@ -39,15 +40,12 @@ export default {
39 40
     console.log("process.env.NODE_ENV =>", env)
40 41
     if (env === 'production' || env === 'test') {
41 42
       if (location.search && this.toolClass.UrlSearch(location.search).code) {
42
-        this.code = this.toolClass.UrlSearch(location.search).code
43
-        let oldCode = localStorage.getItem('code')
44
-        if (this.code === oldCode) {
45
-          localStorage.setItem('code', this.code)
43
+        const code = this.toolClass.UrlSearch(location.search).code
44
+        if (this.code === code) {
46 45
           this.toolClass.getCode(this.appid[env])
47 46
         } else {
48
-          localStorage.setItem('code', this.code)
49
-          // this.showPage = true
50
-          this.getUser({code: this.code }).then(() => {
47
+          this.setCode(code)
48
+          this.getUser({ code }).then(() => {
51 49
             this.showPage = true
52 50
           })
53 51
         }
@@ -59,7 +57,7 @@ export default {
59 57
     }
60 58
   },
61 59
   methods: {
62
-    ...mapIndexActions(["getUser"])
60
+    ...mapIndexActions(["getUser","setCode"])
63 61
   }
64 62
 };
65 63
 </script>

+ 1
- 1
src/components/music.vue Parādīt failu

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

+ 7
- 0
src/store/vote.js Parādīt failu

@@ -11,6 +11,7 @@ export default {
11 11
     toplist: [],
12 12
     list: [],
13 13
     theme: 1,
14
+    code: '',
14 15
   },
15 16
   mutations: {
16 17
     updateActivity(state, data) {
@@ -56,6 +57,9 @@ export default {
56 57
       }
57 58
 
58 59
       state.detail = mem
60
+    },
61
+    setCode(state, code) {
62
+      state.code = code
59 63
     }
60 64
   },
61 65
   actions: {
@@ -197,5 +201,8 @@ export default {
197 201
         }).catch(reject)
198 202
       })
199 203
     },
204
+    setCode({ commit }, code) {
205
+      commit('setCode', code)
206
+    },
200 207
   }
201 208
 }

+ 1
- 1
src/views/vote/detail.vue Parādīt failu

@@ -122,7 +122,7 @@ export default {
122 122
 <style lang="scss" scoped>
123 123
 
124 124
 .ContextbBox {
125
-  width: 3.25rem;
125
+  width: 86%;
126 126
   // height: 4.05rem;
127 127
   background-color: rgba(255, 255, 255, 1);
128 128
   border-radius: 0.02rem;

+ 2
- 2
src/views/vote/index.vue Parādīt failu

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

+ 161
- 113
src/views/vote/list.vue Parādīt failu

@@ -1,6 +1,7 @@
1 1
 <template>
2
-  <div class="context" :style="{backgroundImage: 'url(' + (coverImgUrl ?BgImage:BgImg) + ')'}">
3
-    <img class="BannerImage" :src="activity.Banner">
2
+  <div :class="'context theme'+theme">
3
+    <!-- <img :src="banner">  -->
4
+    <img :class="signupBtn?BannerImage1:BannerImage2" :src="activity.Banner">
4 5
     <div :class="IsOk?onscroll1:onscroll2">
5 6
       <div :class="isOK?searchs:searchb">
6 7
         <input placeholder="输入编号或姓名" v-model="q" @focus="showBtn = false" @blur="showBtn = true">
@@ -16,15 +17,18 @@
16 17
             <span :class="{ [`theme${theme}`]: true, 'active': active }">最新上传</span>
17 18
           </div>
18 19
           <!-- <pull-to :bottom-load-method="loadNewList"> -->
19
-            <van-list
20
-              v-model="loading"
21
-              :finished="finished"
22
-              finished-text="没有更多了"
23
-              @load="loadNewList"
24
-            >
20
+          <van-list
21
+            v-model="loading"
22
+            :finished="finished"
23
+            finished-text="没有更多了"
24
+            @load="loadNewList"
25
+          >
25 26
             <div class="LatestUpload">
26 27
               <div class="LatestUploadList" v-for="(item,index) in newList" :key="index">
27
-                <div :class="signupBtn?ActivePersonnelBox1:ActivePersonnelBox2" @click="gotovotingdetails(item.MemberId)">
28
+                <div
29
+                  :class="signupBtn?ActivePersonnelBox1:ActivePersonnelBox2"
30
+                  @click="gotovotingdetails(item.MemberId)"
31
+                >
28 32
                   <img :src="item.Photo + '?x-oss-process=style/compress-rotate'">
29 33
                 </div>
30 34
                 <span :class="signupBtn?ballot1:ballot2">NO.{{item.MemberId}}</span>
@@ -36,41 +40,47 @@
36 40
                 </div>
37 41
               </div>
38 42
             </div>
39
-          <!-- </pull-to> -->
40
-            </van-list>
43
+            <!-- </pull-to> -->
44
+          </van-list>
41 45
         </van-tab>
42 46
         <van-tab title="TOP50">
43 47
           <div slot="title">
44 48
             <span :class="{ [`theme${theme}`]: true, 'active': !active }">Top50</span>
45 49
           </div>
46
-            <!-- <pull-to :bottom-load-method="loadTopList"> -->
47
-            <van-list
48
-              v-model="loading"
49
-              :finished="finished"
50
-              finished-text="没有更多了"
51
-              @load="loadTopList"
52
-            >
53
-              <div class="LatestUpload">
54
-                <div class="LatestUploadList" v-for="(item,index) in topList" :key="index">
55
-                  <div :class="signupBtn?ActivePersonnelBox1:ActivePersonnelBox2" @click="gotovotingdetails(item.MemberId)">
56
-                    <img :src="item.Photo + '?x-oss-process=style/compress-rotate'">
57
-                  </div>
58
-                  <span :class="signupBtn?ballot1:ballot2">NO.{{item.MemberId}}</span>
59
-                  <span class="ActivePersonnelName">{{item.Name}}</span>
60
-                  <button :class="signupBtn?VoteBtn1:VoteBtn2" @click="Vote(item.MemberId)">投TA一票</button>
61
-                  <div class="VoteNumber">
62
-                    <span>已获投票数:</span>
63
-                    <p>{{item.Vote}}票</p>
64
-                  </div>
50
+          <!-- <pull-to :bottom-load-method="loadTopList"> -->
51
+          <van-list
52
+            v-model="loading"
53
+            :finished="finished"
54
+            finished-text="没有更多了"
55
+            @load="loadTopList"
56
+          >
57
+            <div class="LatestUpload">
58
+              <div class="LatestUploadList" v-for="(item,index) in topList" :key="index">
59
+                <div
60
+                  :class="signupBtn?ActivePersonnelBox1:ActivePersonnelBox2"
61
+                  @click="gotovotingdetails(item.MemberId)"
62
+                >
63
+                  <img :src="item.Photo + '?x-oss-process=style/compress-rotate'">
64
+                </div>
65
+                <span :class="signupBtn?ballot1:ballot2">NO.{{item.MemberId}}</span>
66
+                <span class="ActivePersonnelName">{{item.Name}}</span>
67
+                <button :class="signupBtn?VoteBtn1:VoteBtn2" @click="Vote(item.MemberId)">投TA一票</button>
68
+                <div class="VoteNumber">
69
+                  <span>已获投票数:</span>
70
+                  <p>{{item.Vote}}票</p>
65 71
                 </div>
66 72
               </div>
67
-              </van-list>
68
-            <!-- </pull-to> -->
73
+            </div>
74
+          </van-list>
75
+          <!-- </pull-to> -->
69 76
         </van-tab>
70 77
       </van-tabs>
71 78
     </div>
72 79
     <div class="btn" v-show="showBtn">
73
-    <button :class="signupBtn?'signupBtnOne':'signupBtnTwo'" @click="signup">{{ myID > 0 ? '我的上传' : '我要报名'}}</button>
80
+      <button
81
+        :class="signupBtn?'signupBtnOne':'signupBtnTwo'"
82
+        @click="signup"
83
+      >{{ myID > 0 ? '我的上传' : '我要报名'}}</button>
74 84
     </div>
75 85
     <toast v-if="show" :url="activity.AfterVote" @close="close" @confirmbtn="tolink"></toast>
76 86
   </div>
@@ -81,8 +91,9 @@
81 91
 import { createNamespacedHelpers } from "vuex";
82 92
 import wxsdk from "../../util/share.js";
83 93
 import toast from "../../components/toast.vue";
84
-import BgImg from "../../assets/bgimg.jpg";
85
-import BgImage from "../../assets/yttjbg.png";
94
+// import BgImg from "../../assets/bgimg.jpg";
95
+// import BgImage from "../../assets/yttjbg.png";
96
+import { Toast } from 'vant';
86 97
 
87 98
 const {
88 99
   mapState: mapactivityState,
@@ -97,6 +108,8 @@ export default {
97 108
       active: true,
98 109
       temp: true,
99 110
       signupBtn: true,
111
+      BannerImage1: "BannerImage1",
112
+      BannerImage2: "BannerImage2",
100 113
       signupBtnOne: "signupBtnOne",
101 114
       signupBtnTwo: "signupBtnTwo",
102 115
       VoteBtn1: "VoteBtn1",
@@ -112,8 +125,8 @@ export default {
112 125
       onscroll2: "onscroll2",
113 126
       ActivePersonnelBox1: "ActivePersonnelBox1",
114 127
       ActivePersonnelBox2: "ActivePersonnelBox2",
115
-      BgImg,
116
-      BgImage,
128
+      // BgImg,
129
+      // BgImage,
117 130
       IconSearch:
118 131
         "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yttj_icon_search.png",
119 132
       tab: "",
@@ -126,11 +139,11 @@ export default {
126 139
       show: false,
127 140
       pageSize: 10,
128 141
       loaddingData: false,
129
-      showBtn: true,
142
+      showBtn: true
130 143
     };
131 144
   },
132 145
   components: {
133
-    toast,
146
+    toast
134 147
     // PullTo
135 148
   },
136 149
   mounted() {
@@ -150,8 +163,13 @@ export default {
150 163
       user: x => x.user,
151 164
       theme: x => x.theme,
152 165
       myprofile: x => x.myprofile,
153
-      myID: s => (s.myprofile.filter(x => x.ActivityId === (s.activity || {}).ActivityId)[0] || {}).MemberId
154
-    }),
166
+      myID: s =>
167
+        (
168
+          s.myprofile.filter(
169
+            x => x.ActivityId === (s.activity || {}).ActivityId
170
+          )[0] || {}
171
+        ).MemberId
172
+    })
155 173
   },
156 174
   created() {
157 175
     this.pageSize = this.$store.state.pageSize;
@@ -168,9 +186,9 @@ export default {
168 186
     this.getActivity({
169 187
       actid: this.actid
170 188
     }).then(act => {
171
-      let hash = window.location.hash
172
-      if (hash.indexOf('/vote') < 0) {
173
-        hash = `#/vote/${this.actid}`
189
+      let hash = window.location.hash;
190
+      if (hash.indexOf("/vote") < 0) {
191
+        hash = `#/vote/${this.actid}`;
174 192
       }
175 193
 
176 194
       wxsdk(
@@ -187,7 +205,7 @@ export default {
187 205
         }
188 206
       );
189 207
 
190
-      console.log('------>', this.activity, this.myprofile, this.myID)
208
+      console.log("------>", this.activity, this.myprofile, this.myID);
191 209
     });
192 210
     // this.getMine({
193 211
     //   actid: this.actid,
@@ -217,15 +235,15 @@ export default {
217 235
       "getMine"
218 236
     ]),
219 237
     handleScroll() {
220
-      this.showBtn = true
221
-
238
+      this.showBtn = true;
222 239
 
223 240
       // 页面滚动距顶部距离
224 241
       var scrollTop =
225 242
         window.pageYOffset ||
226 243
         document.documentElement.scrollTop ||
227 244
         document.body.scrollTop;
228
-      if (scrollTop >= 269) {
245
+
246
+      if (scrollTop >= 240) {
229 247
         this.IsOk = false;
230 248
       } else {
231 249
         this.IsOk = true;
@@ -254,24 +272,24 @@ export default {
254 272
         }).then(() => {
255 273
           if (this.activity.AfterVote) {
256 274
             this.$dialog
257
-              .alert({ title: "投票成功", message: "恭喜您获得一次抽奖机会!" })
275
+              .alert({ title: "投票成功", message: "恭喜您获得一次抽奖机会!" })
258 276
               .then(() => {
259 277
                 window.location.href = this.activity.AfterVote;
260 278
               });
261 279
           } else {
262
-            this.$dialog.alert({ message: "投票成功" });
280
+            this.$dialog.alert({ message: "投票成功" });
263 281
           }
264 282
         });
265 283
       // });
266 284
     },
267 285
     loadNewList(loaded) {
268 286
       if (this.loaddingData) {
269
-        return
287
+        return;
270 288
       }
271 289
 
272
-      this.loaddingData = true
290
+      this.loaddingData = true;
273 291
       this.newlist().then(res => {
274
-        console.log(res.length, this.pageSize)
292
+        console.log(res.length, this.pageSize);
275 293
 
276 294
         if ((res || []).length >= this.pageSize) {
277 295
           this.newpage += 1;
@@ -280,13 +298,13 @@ export default {
280 298
         }
281 299
 
282 300
         this.loading = false;
283
-        this.loaddingData = false
284
-        loaded && loaded('done')
301
+        this.loaddingData = false;
302
+        loaded && loaded("done");
285 303
       });
286 304
     },
287 305
     loadTopList(loaded) {
288 306
       if (this.loaddingData) {
289
-        return
307
+        return;
290 308
       }
291 309
 
292 310
       this.toplist().then(res => {
@@ -297,8 +315,8 @@ export default {
297 315
         }
298 316
 
299 317
         this.loading = false;
300
-        this.loaddingData = false
301
-        loaded && loaded('done')
318
+        this.loaddingData = false;
319
+        loaded && loaded("done");
302 320
       });
303 321
     },
304 322
     signup() {
@@ -307,6 +325,28 @@ export default {
307 325
           path: `/detail/${this.actid}/${this.myID}`
308 326
         });
309 327
       } else {
328
+        var myDate = (new Date()).valueOf();
329
+        var begintime = (new Date(this.activity.StartTime)).valueOf()
330
+        var endtime = (new Date(this.activity.EndTime)).valueOf()
331
+        // console.log(begintime)
332
+        // console.log(endtime)
333
+        // console.log(myDate)
334
+        if(begintime > myDate){
335
+          Toast.fail({
336
+            duration: 2000, // 持续展示 toast
337
+            forbidClick: true, // 禁用背景点击
338
+            message: "活动未开始!"
339
+          })
340
+          return false
341
+        }
342
+        if(endtime < myDate){
343
+          Toast.fail({
344
+            duration: 2000, // 持续展示 toast
345
+            forbidClick: true, // 禁用背景点击
346
+            message: "活动已结束!"
347
+          })
348
+          return false
349
+        }
310 350
         this.$router.push({
311 351
           path: `/vote/signup/${this.actid}`
312 352
         });
@@ -326,9 +366,9 @@ export default {
326 366
       window.location.href = this.info.AfterVote;
327 367
     },
328 368
     search() {
329
-      this.newpage = 1
330
-      this.toppage = 1
331
-      this.showBtn = true
369
+      this.newpage = 1;
370
+      this.toppage = 1;
371
+      this.showBtn = true;
332 372
 
333 373
       this.newlist();
334 374
       this.toplist();
@@ -359,6 +399,12 @@ export default {
359 399
 
360 400
 
361 401
 <style lang="scss" scoped>
402
+.theme1 {
403
+  background: rgba(209, 220, 228, 1);
404
+}
405
+.theme2 {
406
+  background: linear-gradient(#9c7e70, #70544b);
407
+}
362 408
 .context {
363 409
   width: 100%;
364 410
   display: flex;
@@ -366,17 +412,22 @@ export default {
366 412
   justify-content: center;
367 413
   align-items: center;
368 414
 
369
-  .BannerImage {
415
+  .BannerImage1 {
370 416
     width: 100%;
371 417
     max-height: 10rem;
418
+    margin-bottom: 0.8rem;
419
+  }
420
+  .BannerImage2 {
421
+    width: 92.5%;
422
+    max-height: 10rem;
423
+    margin: 0.6rem 0 1.4rem 0;
372 424
   }
373
-
374 425
   .onscroll1 {
375 426
     width: 90%;
376 427
     height: 0.44rem;
377 428
     position: absolute;
378
-    top: 2.8rem;
379
-    left: calc(5%);
429
+    top: 2.4rem;
430
+    left: calc(3.1%);
380 431
     z-index: 120;
381 432
 
382 433
     .searchb {
@@ -460,7 +511,7 @@ export default {
460 511
     width: 93%;
461 512
     height: 0.44rem;
462 513
     position: absolute;
463
-    top: 2.8rem;
514
+    top: 2.4rem;
464 515
     left: calc(3.1%);
465 516
     z-index: 120;
466 517
 
@@ -583,18 +634,17 @@ export default {
583 634
       font-size: 0.16rem;
584 635
       font-weight: bolder;
585 636
       color: rgba(255, 255, 255, 1);
586
-      background: rgba(173,145,129,0.62);
637
+      background: rgba(173, 145, 129, 0.62);
587 638
       line-height: 0.22rem;
588 639
       border-radius: 0.06rem;
589 640
       text-align: center;
590 641
       padding: 0.09rem 0;
591 642
 
592 643
       &.active {
593
-        background: rgba(126,100,86,1);
644
+        background: rgba(126, 100, 86, 1);
594 645
       }
595 646
     }
596 647
 
597
-
598 648
     .LatestUpload {
599 649
       width: 90%;
600 650
       display: flex;
@@ -629,12 +679,12 @@ export default {
629 679
           }
630 680
         }
631 681
 
632
-         .ActivePersonnelBox2 {
682
+        .ActivePersonnelBox2 {
633 683
           width: 90%;
634 684
           height: 1.83rem;
635 685
           border-radius: 0.15rem;
636 686
           margin-bottom: 0.11rem;
637
-          border: 0.04rem solid rgba(126,100,86,1);
687
+          border: 0.04rem solid rgba(126, 100, 86, 1);
638 688
 
639 689
           img {
640 690
             width: 100%;
@@ -657,7 +707,7 @@ export default {
657 707
         .ballot2 {
658 708
           position: absolute;
659 709
           top: 0;
660
-          background: rgba(126,100,86,1);
710
+          background: rgba(126, 100, 86, 1);
661 711
           border-radius: 0 0 0.08rem 0.08rem;
662 712
           padding: 0.02rem 0.12rem;
663 713
           font-size: 0.14rem;
@@ -690,7 +740,7 @@ export default {
690 740
           width: 56%;
691 741
           height: 0.23rem;
692 742
           border-radius: 0.25rem;
693
-          background-color: rgba(126,100,86,1);
743
+          background-color: rgba(126, 100, 86, 1);
694 744
           border: none;
695 745
           font-size: 0.14rem;
696 746
           font-weight: bolder;
@@ -719,61 +769,59 @@ export default {
719 769
     }
720 770
   }
721 771
 
722
-  .btn{
723
-        width: 100%;
772
+  .btn {
773
+    width: 100%;
724 774
     height: 0.6rem;
725 775
     display: flex;
726 776
     justify-content: center;
727 777
     align-items: center;
728
-    background: rgba(255,255,255,1);
778
+    background: rgba(255, 255, 255, 1);
729 779
     position: fixed;
730 780
     bottom: 0;
731 781
     left: 0;
732 782
     z-index: 100;
733 783
 
734
-  .signupBtnOne {
735
-    width: 91%;
736
-    height: 0.5rem;
737
-    border-radius: 0.25rem;
738
-    background: rgba(166, 184, 201, 1);
739
-    border: none;
740
-    font-size: 0.2rem;
741
-    font-weight: bold;
742
-    color: rgba(255, 255, 255, 1);
743
-    line-height: 0.28rem;
744
-    // position: fixed;
745
-    // bottom: 0.19rem;
746
-    // left: calc(4.25%);
747
-    // z-index: 100;
748
-  }
749
-  .signupBtnTwo {
750
-    width: 91%;
751
-    height: 0.5rem;
752
-    border-radius: 0.25rem;
753
-    background: rgba(173, 145, 129, 1);
754
-    border: none;
755
-    font-size: 0.2rem;
756
-    font-weight: bold;
757
-    color: rgba(255, 255, 255, 1);
758
-    line-height: 0.28rem;
759
-    // position: fixed;
760
-    // bottom: 0.19rem;
761
-    // left: calc(4.25%);
762
-    // z-index: 100;
763
-  }
764
-
784
+    .signupBtnOne {
785
+      width: 91%;
786
+      height: 0.5rem;
787
+      border-radius: 0.25rem;
788
+      background: rgba(166, 184, 201, 1);
789
+      border: none;
790
+      font-size: 0.2rem;
791
+      font-weight: bold;
792
+      color: rgba(255, 255, 255, 1);
793
+      line-height: 0.28rem;
794
+      // position: fixed;
795
+      // bottom: 0.19rem;
796
+      // left: calc(4.25%);
797
+      // z-index: 100;
798
+    }
799
+    .signupBtnTwo {
800
+      width: 91%;
801
+      height: 0.5rem;
802
+      border-radius: 0.25rem;
803
+      background: rgba(173, 145, 129, 1);
804
+      border: none;
805
+      font-size: 0.2rem;
806
+      font-weight: bold;
807
+      color: rgba(255, 255, 255, 1);
808
+      line-height: 0.28rem;
809
+      // position: fixed;
810
+      // bottom: 0.19rem;
811
+      // left: calc(4.25%);
812
+      // z-index: 100;
813
+    }
765 814
   }
766
-
767 815
 }
768 816
 
769 817
 .theme1 {
770 818
   // background-image: url('../../assets/bgimg.jpg');
771
-   background: rgba(209,220,228,1);
772
-   }
773
-   .theme2 {
819
+  background: rgba(209, 220, 228, 1);
820
+}
821
+.theme2 {
774 822
   // background-image: url('../../assets/bgimg.jpg');
775
-    background: linear-gradient(#97796c,#705443);
776
-   }
823
+  background: linear-gradient(#97796c, #705443);
824
+}
777 825
 </style>
778 826
 
779 827
 

+ 57
- 47
src/views/vote/signup.vue Parādīt failu

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

+ 6
- 2
vue.config.js Parādīt failu

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