陈冉 6 年前
父节点
当前提交
f6ac416460

+ 12
- 21
package-lock.json 查看文件

4760
         "balanced-match": {
4760
         "balanced-match": {
4761
           "version": "1.0.0",
4761
           "version": "1.0.0",
4762
           "bundled": true,
4762
           "bundled": true,
4763
-          "dev": true,
4764
-          "optional": true
4763
+          "dev": true
4765
         },
4764
         },
4766
         "brace-expansion": {
4765
         "brace-expansion": {
4767
           "version": "1.1.11",
4766
           "version": "1.1.11",
4768
           "bundled": true,
4767
           "bundled": true,
4769
           "dev": true,
4768
           "dev": true,
4770
-          "optional": true,
4771
           "requires": {
4769
           "requires": {
4772
             "balanced-match": "^1.0.0",
4770
             "balanced-match": "^1.0.0",
4773
             "concat-map": "0.0.1"
4771
             "concat-map": "0.0.1"
4782
         "code-point-at": {
4780
         "code-point-at": {
4783
           "version": "1.1.0",
4781
           "version": "1.1.0",
4784
           "bundled": true,
4782
           "bundled": true,
4785
-          "dev": true,
4786
-          "optional": true
4783
+          "dev": true
4787
         },
4784
         },
4788
         "concat-map": {
4785
         "concat-map": {
4789
           "version": "0.0.1",
4786
           "version": "0.0.1",
4790
           "bundled": true,
4787
           "bundled": true,
4791
-          "dev": true,
4792
-          "optional": true
4788
+          "dev": true
4793
         },
4789
         },
4794
         "console-control-strings": {
4790
         "console-control-strings": {
4795
           "version": "1.1.0",
4791
           "version": "1.1.0",
4796
           "bundled": true,
4792
           "bundled": true,
4797
-          "dev": true,
4798
-          "optional": true
4793
+          "dev": true
4799
         },
4794
         },
4800
         "core-util-is": {
4795
         "core-util-is": {
4801
           "version": "1.0.2",
4796
           "version": "1.0.2",
4912
         "inherits": {
4907
         "inherits": {
4913
           "version": "2.0.3",
4908
           "version": "2.0.3",
4914
           "bundled": true,
4909
           "bundled": true,
4915
-          "dev": true,
4916
-          "optional": true
4910
+          "dev": true
4917
         },
4911
         },
4918
         "ini": {
4912
         "ini": {
4919
           "version": "1.3.5",
4913
           "version": "1.3.5",
4925
           "version": "1.0.0",
4919
           "version": "1.0.0",
4926
           "bundled": true,
4920
           "bundled": true,
4927
           "dev": true,
4921
           "dev": true,
4928
-          "optional": true,
4929
           "requires": {
4922
           "requires": {
4930
             "number-is-nan": "^1.0.0"
4923
             "number-is-nan": "^1.0.0"
4931
           }
4924
           }
4940
           "version": "3.0.4",
4933
           "version": "3.0.4",
4941
           "bundled": true,
4934
           "bundled": true,
4942
           "dev": true,
4935
           "dev": true,
4943
-          "optional": true,
4944
           "requires": {
4936
           "requires": {
4945
             "brace-expansion": "^1.1.7"
4937
             "brace-expansion": "^1.1.7"
4946
           }
4938
           }
4948
         "minimist": {
4940
         "minimist": {
4949
           "version": "0.0.8",
4941
           "version": "0.0.8",
4950
           "bundled": true,
4942
           "bundled": true,
4951
-          "dev": true,
4952
-          "optional": true
4943
+          "dev": true
4953
         },
4944
         },
4954
         "minipass": {
4945
         "minipass": {
4955
           "version": "2.2.4",
4946
           "version": "2.2.4",
4956
           "bundled": true,
4947
           "bundled": true,
4957
           "dev": true,
4948
           "dev": true,
4958
-          "optional": true,
4959
           "requires": {
4949
           "requires": {
4960
             "safe-buffer": "^5.1.1",
4950
             "safe-buffer": "^5.1.1",
4961
             "yallist": "^3.0.0"
4951
             "yallist": "^3.0.0"
4974
           "version": "0.5.1",
4964
           "version": "0.5.1",
4975
           "bundled": true,
4965
           "bundled": true,
4976
           "dev": true,
4966
           "dev": true,
4977
-          "optional": true,
4978
           "requires": {
4967
           "requires": {
4979
             "minimist": "0.0.8"
4968
             "minimist": "0.0.8"
4980
           }
4969
           }
5055
         "number-is-nan": {
5044
         "number-is-nan": {
5056
           "version": "1.0.1",
5045
           "version": "1.0.1",
5057
           "bundled": true,
5046
           "bundled": true,
5058
-          "dev": true,
5059
-          "optional": true
5047
+          "dev": true
5060
         },
5048
         },
5061
         "object-assign": {
5049
         "object-assign": {
5062
           "version": "4.1.1",
5050
           "version": "4.1.1",
5068
           "version": "1.4.0",
5056
           "version": "1.4.0",
5069
           "bundled": true,
5057
           "bundled": true,
5070
           "dev": true,
5058
           "dev": true,
5071
-          "optional": true,
5072
           "requires": {
5059
           "requires": {
5073
             "wrappy": "1"
5060
             "wrappy": "1"
5074
           }
5061
           }
5190
           "version": "1.0.2",
5177
           "version": "1.0.2",
5191
           "bundled": true,
5178
           "bundled": true,
5192
           "dev": true,
5179
           "dev": true,
5193
-          "optional": true,
5194
           "requires": {
5180
           "requires": {
5195
             "code-point-at": "^1.0.0",
5181
             "code-point-at": "^1.0.0",
5196
             "is-fullwidth-code-point": "^1.0.0",
5182
             "is-fullwidth-code-point": "^1.0.0",
6804
       "integrity": "sha1-vsECT4WxvZbL6kBbI8FK1kQ6b4E=",
6790
       "integrity": "sha1-vsECT4WxvZbL6kBbI8FK1kQ6b4E=",
6805
       "dev": true
6791
       "dev": true
6806
     },
6792
     },
6793
+    "lodash.get": {
6794
+      "version": "4.4.2",
6795
+      "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
6796
+      "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
6797
+    },
6807
     "lodash.mapvalues": {
6798
     "lodash.mapvalues": {
6808
       "version": "4.6.0",
6799
       "version": "4.6.0",
6809
       "resolved": "http://registry.npm.taobao.org/lodash.mapvalues/download/lodash.mapvalues-4.6.0.tgz",
6800
       "resolved": "http://registry.npm.taobao.org/lodash.mapvalues/download/lodash.mapvalues-4.6.0.tgz",

+ 1
- 0
package.json 查看文件

9
   },
9
   },
10
   "dependencies": {
10
   "dependencies": {
11
     "axios": "^0.18.0",
11
     "axios": "^0.18.0",
12
+    "lodash.get": "^4.4.2",
12
     "vant": "^1.4.8",
13
     "vant": "^1.4.8",
13
     "vue": "^2.5.17",
14
     "vue": "^2.5.17",
14
     "vue-headful": "^2.0.1",
15
     "vue-headful": "^2.0.1",

二进制
src/common/icon/dianhua.png 查看文件


二进制
src/common/icon/xiegenjin.png 查看文件


二进制
src/common/icon/xin.png 查看文件


二进制
src/common/icon/yinyueoff.png 查看文件


二进制
src/common/icon/yinyueon.png 查看文件


+ 3
- 3
src/components/toast.vue 查看文件

102
           width: 46%;
102
           width: 46%;
103
           height: 0.34rem;
103
           height: 0.34rem;
104
           border-radius: 0.04rem;
104
           border-radius: 0.04rem;
105
-          border: 1px solid rgba(252, 98, 67, 1);
105
+          border: 1px solid rgba(112,125,138,1);
106
           background-color: rgba(255, 255, 255, 0);
106
           background-color: rgba(255, 255, 255, 0);
107
           font-size: 0.14rem;
107
           font-size: 0.14rem;
108
           font-family: PingFangSC-Medium;
108
           font-family: PingFangSC-Medium;
109
-          font-weight: 500;
110
-          color: rgba(252, 98, 67, 1);
109
+          font-weight: bold;
110
+         color:rgba(112,125,138,1);
111
           line-height: 0.2rem;
111
           line-height: 0.2rem;
112
           margin-right: 0.15rem;
112
           margin-right: 0.15rem;
113
         }
113
         }

+ 10
- 2
src/config/apis.js 查看文件

1
 import get from 'lodash.get'
1
 import get from 'lodash.get'
2
 
2
 
3
 const apiList = {
3
 const apiList = {
4
-  app: {
5
-    url: '',
4
+//投票信息
5
+ homepage: {
6
+   //获取活动详情信息
7
+  getactivity: {
8
+    url: '/api/voting/:actid',
6
     method: 'get',
9
     method: 'get',
7
   },
10
   },
11
+  getactivitylist:{
12
+    url: '/api/voting',
13
+    method: 'get',
14
+  }
15
+},
8
 }
16
 }
9
 
17
 
10
 // user.update
18
 // user.update

二进制
src/images/uploadimg.png 查看文件


+ 20
- 4
src/pages/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="indexpage">
2
   <div class="indexpage">
3
-    <!-- <vue-headful title="户型图"  /> -->
4
-    <img class="bgimg" :src="BgIndex">、
3
+    <img class="bgimg" :src="activitydetail.Thumb">
4
+    <!-- <img v-if="type === 2" class="bgimg" :src="AudioPlay"> -->
5
     <button class="EnterActivity" @click="gotoactivity">进入活动</button>
5
     <button class="EnterActivity" @click="gotoactivity">进入活动</button>
6
   </div>
6
   </div>
7
 </template>
7
 </template>
8
 
8
 
9
 <script>
9
 <script>
10
+import { createNamespacedHelpers } from "vuex";
11
+const {
12
+  mapState: mapvoteState,
13
+  mapActions: mapvoteActions
14
+} = createNamespacedHelpers("homepage");
10
 import BgIndex from "../images/BgImages.jpg";
15
 import BgIndex from "../images/BgImages.jpg";
11
 import AudioPlay from '../images/audio_play.png';
16
 import AudioPlay from '../images/audio_play.png';
12
 export default {
17
 export default {
15
     return {
20
     return {
16
       BgIndex,
21
       BgIndex,
17
       AudioPlay,
22
       AudioPlay,
23
+      type: this.$route.query.type
18
     };
24
     };
19
   },
25
   },
20
   //     components: {
26
   //     components: {
21
   //     "vue-headful": () => import("vue-headful"),
27
   //     "vue-headful": () => import("vue-headful"),
22
   //   },
28
   //   },
29
+  computed: {
30
+    ...mapvoteState({
31
+      activitydetail: s => s.activitydetail
32
+    })
33
+  },
34
+  created(){
35
+    this.getActivity({actid: this.type})
36
+  },
23
   methods: {
37
   methods: {
38
+     ...mapvoteActions(["getActivity"]),
24
       gotoactivity() {
39
       gotoactivity() {
25
       this.$router.push({
40
       this.$router.push({
26
         name: "lotterylist",
41
         name: "lotterylist",
42
+        query: { actid: this.type}
27
       });
43
       });
28
     },
44
     },
29
   }
45
   }
42
   }
58
   }
43
   .EnterActivity {
59
   .EnterActivity {
44
     position: absolute;
60
     position: absolute;
45
-    top: 4.53rem;
61
+    top: 5.86rem;
46
     left: 0.45rem;
62
     left: 0.45rem;
47
     width: 75%;
63
     width: 75%;
48
     height: 0.5rem;
64
     height: 0.5rem;
49
     border-radius: 0.25rem;
65
     border-radius: 0.25rem;
50
-    background-color: rgba(252, 93, 95, 1);
66
+    background-color: rgba(166,184,201,1);
51
     border: none;
67
     border: none;
52
     font-size: 0.2rem;
68
     font-size: 0.2rem;
53
     font-family: PingFangSC-Medium;
69
     font-family: PingFangSC-Medium;

+ 81
- 73
src/pages/vote/lotterylist.vue 查看文件

12
       <div class="VoteList">
12
       <div class="VoteList">
13
         <van-tabs type="card">
13
         <van-tabs type="card">
14
           <van-tab title="最新上传">
14
           <van-tab title="最新上传">
15
-              <van-list
16
-  v-model="loading"
17
-  :finished="finished"
18
-  finished-text="没有更多了"
19
-  @load="onLoad"
20
->
21
-            <div class="LatestUpload">
22
-              <div class="LatestUploadList">
23
-                <div class="ActivePersonnelBox">
24
-                  <img :src="AudioPlay">
25
-                </div>
26
-                <span class="ballot">NO.20000</span>
27
-                <span class="ActivePersonnelName">王璐璐</span>
28
-                <button class="VoteBtn" @click="gotovotingdetails">投TA一票</button>
29
-                <div class="VoteNumber">
30
-                  <span>已获投票数:</span>
31
-                  <p>1314票</p>
15
+            <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
16
+              <div class="LatestUpload">
17
+                <div class="LatestUploadList">
18
+                  <div class="ActivePersonnelBox">
19
+                    <img :src="AudioPlay">
20
+                  </div>
21
+                  <span class="ballot">NO.20000</span>
22
+                  <span class="ActivePersonnelName">王璐璐</span>
23
+                  <button class="VoteBtn" @click="gotovotingdetails">投TA一票</button>
24
+                  <div class="VoteNumber">
25
+                    <span>已获投票数:</span>
26
+                    <p>1314票</p>
27
+                  </div>
32
                 </div>
28
                 </div>
33
               </div>
29
               </div>
34
-            </div>
35
-           </van-list>
30
+            </van-list>
36
           </van-tab>
31
           </van-tab>
37
           <van-tab title="TOP50">
32
           <van-tab title="TOP50">
38
             <div class="LatestUpload">
33
             <div class="LatestUpload">
54
       </div>
49
       </div>
55
     </div>
50
     </div>
56
     <button class="signupBtn" @click="signup">我要报名</button>
51
     <button class="signupBtn" @click="signup">我要报名</button>
57
-        <!-- <toast-box v-if="showtoast" @close='showtoast=false'></toast-box>
58
-        <common-toast v-if="showcommontiast" @close='showcommontiast=false'></common-toast> -->
59
-
52
+    <!-- <toast-box v-if="showtoast" @close='showtoast=false'></toast-box>
53
+    <common-toast v-if="showcommontiast" @close='showcommontiast=false'></common-toast>-->
60
   </div>
54
   </div>
61
 </template>
55
 </template>
62
 
56
 
67
 import IconSearch from "../../common/icon/sousuo.png";
61
 import IconSearch from "../../common/icon/sousuo.png";
68
 // import ToastBox from '../../components/toast.vue'
62
 // import ToastBox from '../../components/toast.vue'
69
 // import CommonToast from '../../components/commontoast.vue'
63
 // import CommonToast from '../../components/commontoast.vue'
70
-
64
+import { createNamespacedHelpers } from "vuex";
65
+const {
66
+  mapState: mapactivityState,
67
+  mapActions: mapactivityActions
68
+} = createNamespacedHelpers("activitylist");
71
 export default {
69
 export default {
72
   name: "lotterylist",
70
   name: "lotterylist",
73
   data() {
71
   data() {
76
       ActivityInformation,
74
       ActivityInformation,
77
       AudioPlay,
75
       AudioPlay,
78
       IconSearch,
76
       IconSearch,
77
+      tab:'',
78
+      page:1,
79
+      q:'',
79
       // showtoast:false,
80
       // showtoast:false,
80
       // showcommontiast:false,
81
       // showcommontiast:false,
81
-    //   list:[],
82
+      //   list:[],
82
       loading: false,
83
       loading: false,
83
       finished: false
84
       finished: false
84
     };
85
     };
85
   },
86
   },
86
-   components: {
87
+  components: {
87
     // "vue-headful": () => import("vue-headful"),
88
     // "vue-headful": () => import("vue-headful"),
88
     // 'ToastBox':ToastBox,
89
     // 'ToastBox':ToastBox,
89
     // 'CommonToast':CommonToast,
90
     // 'CommonToast':CommonToast,
90
   },
91
   },
92
+  computed: {
93
+    ...mapactivityState({
94
+      detail: s => s.detail
95
+    })
96
+  },
97
+  created() {
98
+    this.getActivityList().then(() => {
99
+      
100
+    })
101
+  },
91
   methods: {
102
   methods: {
92
-        onLoad() {
103
+    ...mapactivityActions(["getActivityList"]),
104
+    onLoad() {
93
       // 异步更新数据
105
       // 异步更新数据
94
       setTimeout(() => {
106
       setTimeout(() => {
95
         for (let i = 0; i < 10; i++) {
107
         for (let i = 0; i < 10; i++) {
110
       });
122
       });
111
     },
123
     },
112
     gotovotingdetails() {
124
     gotovotingdetails() {
113
-        // this.showtoast =true;
125
+      // this.showtoast =true;
114
       this.$router.push({
126
       this.$router.push({
115
         name: "votingdetails"
127
         name: "votingdetails"
116
       });
128
       });
117
-    },
118
-
129
+    }
119
   }
130
   }
120
 };
131
 };
121
 </script>
132
 </script>
122
 
133
 
123
 <style>
134
 <style>
124
-.van-tabs--card{
125
-    width: 100%;
135
+.van-tabs--card {
136
+  width: 100%;
126
 }
137
 }
127
-.van-tabs__nav--card{
128
-    height: 100%;
129
-    border: none;
130
-    margin: 0;
138
+.van-tabs__nav--card {
139
+  height: 100%;
140
+  border: none;
141
+  margin: 0;
131
 }
142
 }
132
-.van-tabs__wrap{
133
-    width: 100%;
134
-    z-index: 1;
143
+.van-tabs__wrap {
144
+  width: 100%;
145
+  z-index: 1;
135
 }
146
 }
136
-.van-tabs__nav--card .van-tab.van-tab--active{
137
-background-color:rgba(240,115,126,1);
138
-border-radius:0.06rem;
147
+.van-tabs__nav--card .van-tab.van-tab--active {
148
+  background-color: rgba(166, 184, 201, 1);
149
+  border-radius: 0.06rem;
139
 }
150
 }
140
-.van-tabs--card .van-tabs__wrap{
141
-height: 0.4rem;
151
+.van-tabs--card .van-tabs__wrap {
152
+  height: 0.4rem;
142
 }
153
 }
143
-.van-tabs__nav--card .van-tab{
144
-    border-right: none;
145
-    background-color:rgba(182,182,182,1);
146
-border-radius:0.06rem;
147
-width: 100%;
148
-margin: 0 0.075rem;
149
-display: flex;
150
-justify-content: center;
151
-align-items: center;
152
-
154
+.van-tabs__nav--card .van-tab {
155
+  border-right: none;
156
+  background-color: rgba(217, 226, 233, 1);
157
+  border-radius: 0.06rem;
158
+  width: 100%;
159
+  margin: 0 0.075rem;
160
+  display: flex;
161
+  justify-content: center;
162
+  align-items: center;
153
 }
163
 }
154
-.van-ellipsis{
155
-font-size:0.16rem;
156
-font-family:PingFangSC-Medium;
157
-font-weight:bold;
158
-color:rgba(255,255,255,1);
159
-line-height:0.22rem;
160
-text-align: center;
164
+.van-ellipsis {
165
+  font-size: 0.16rem;
166
+  font-family: PingFangSC-Medium;
167
+  font-weight: bold;
168
+  color: rgba(255, 255, 255, 1);
169
+  line-height: 0.22rem;
170
+  text-align: center;
161
 }
171
 }
162
 </style>
172
 </style>
163
 
173
 
165
 <style lang="scss" scoped>
175
 <style lang="scss" scoped>
166
 .context {
176
 .context {
167
   width: 100%;
177
   width: 100%;
168
-  background-color: rgba(240, 115, 126, 1);
178
+  background-color: rgba(209, 220, 228, 1);
169
   display: flex;
179
   display: flex;
170
   flex-direction: column;
180
   flex-direction: column;
171
   justify-content: center;
181
   justify-content: center;
180
   .search {
190
   .search {
181
     width: 93%;
191
     width: 93%;
182
     height: 0.44rem;
192
     height: 0.44rem;
183
-    background-color: rgba(242, 132, 141, 1);
193
+    background-color: rgba(201, 214, 224, 1);
184
     border-radius: 6px;
194
     border-radius: 6px;
185
     border: 0.01rem solid rgba(255, 255, 255, 1);
195
     border: 0.01rem solid rgba(255, 255, 255, 1);
186
     display: flex;
196
     display: flex;
190
     margin-bottom: 0.19rem;
200
     margin-bottom: 0.19rem;
191
 
201
 
192
     input {
202
     input {
193
-      padding: 0.11rem 1.2rem 0.11rem 0.13rem;
203
+      // padding: 0.11rem 1.2rem 0.11rem 0.13rem;
194
       background-color: rgba(255, 255, 255, 0);
204
       background-color: rgba(255, 255, 255, 0);
195
       color: rgba(255, 255, 255, 1);
205
       color: rgba(255, 255, 255, 1);
196
       font-size: 0.16rem;
206
       font-size: 0.16rem;
197
       font-family: PingFangSC-Regular;
207
       font-family: PingFangSC-Regular;
198
       font-weight: 400;
208
       font-weight: 400;
199
       line-height: 0.22rem;
209
       line-height: 0.22rem;
210
+      width: 5rem;
211
+      text-indent: 0.1rem;
200
     }
212
     }
201
     input::-webkit-input-placeholder {
213
     input::-webkit-input-placeholder {
202
       color: rgba(255, 255, 255, 1);
214
       color: rgba(255, 255, 255, 1);
224
   .box {
236
   .box {
225
     width: 89%;
237
     width: 89%;
226
     height: 0.12rem;
238
     height: 0.12rem;
227
-    background-color: rgba(244, 152, 159, 1);
239
+    background-color: rgba(255, 255, 255, 0.29);
228
     border-radius: 0.06rem 0.06rem 0 0;
240
     border-radius: 0.06rem 0.06rem 0 0;
229
   }
241
   }
230
   .VoteListBox {
242
   .VoteListBox {
252
           width: 48%;
264
           width: 48%;
253
           height: 3.1rem;
265
           height: 3.1rem;
254
           background: rgba(255, 255, 255, 1);
266
           background: rgba(255, 255, 255, 1);
255
-          box-shadow: 0px 4px 8px 0px rgba(255, 239, 239, 1);
267
+          box-shadow: 0px 4px 8px 0px rgba(166, 184, 201, 0.18);
256
           border-radius: 0.08rem;
268
           border-radius: 0.08rem;
257
           margin-bottom: 0.25rem;
269
           margin-bottom: 0.25rem;
258
           display: flex;
270
           display: flex;
265
             height: 1.83rem;
277
             height: 1.83rem;
266
             border-radius: 0.15rem;
278
             border-radius: 0.15rem;
267
             margin-bottom: 0.11rem;
279
             margin-bottom: 0.11rem;
268
-            border: 0.05rem solid rgba(249, 93, 105, 1);
280
+            border: 0.04rem solid rgba(166, 184, 201, 1);
269
 
281
 
270
             img {
282
             img {
271
               width: 100%;
283
               width: 100%;
276
           .ballot {
288
           .ballot {
277
             position: absolute;
289
             position: absolute;
278
             top: 0;
290
             top: 0;
279
-            background: rgba(249, 93, 105, 1);
291
+            background: rgba(166, 184, 201, 1);
280
             border-radius: 0 0 0.08rem 0.08rem;
292
             border-radius: 0 0 0.08rem 0.08rem;
281
             padding: 0.02rem 0.12rem;
293
             padding: 0.02rem 0.12rem;
282
             font-size: 0.14rem;
294
             font-size: 0.14rem;
299
             width: 56%;
311
             width: 56%;
300
             height: 0.23rem;
312
             height: 0.23rem;
301
             border-radius: 0.25rem;
313
             border-radius: 0.25rem;
302
-            background-color: rgba(252, 93, 95, 1);
314
+            background-color: rgba(166, 184, 201, 1);
303
             border: none;
315
             border: none;
304
             font-size: 0.14rem;
316
             font-size: 0.14rem;
305
             font-family: PingFangSC-Medium;
317
             font-family: PingFangSC-Medium;
336
     width: 91%;
348
     width: 91%;
337
     height: 0.5rem;
349
     height: 0.5rem;
338
     border-radius: 0.25rem;
350
     border-radius: 0.25rem;
339
-    background: linear-gradient(
340
-      360deg,
341
-      rgba(248, 150, 62, 1) 0%,
342
-      rgba(255, 250, 155, 1) 100%
343
-    );
351
+    background: rgba(166, 184, 201, 1);
344
     border: none;
352
     border: none;
345
     font-size: 0.2rem;
353
     font-size: 0.2rem;
346
     font-family: PingFangSC-Medium;
354
     font-family: PingFangSC-Medium;

+ 10
- 11
src/pages/vote/myvote.vue 查看文件

42
 .context {
42
 .context {
43
   width: 100%;
43
   width: 100%;
44
   height: 100%;
44
   height: 100%;
45
-  background-color: rgba(240, 115, 126, 1);
45
+  background-color: rgba(220,229,236,1);;
46
   display: flex;
46
   display: flex;
47
   flex-direction: column;
47
   flex-direction: column;
48
   align-items: center;
48
   align-items: center;
61
     .personnumber {
61
     .personnumber {
62
       position: absolute;
62
       position: absolute;
63
       top: 0;
63
       top: 0;
64
-      background-color: rgba(240, 115, 126, 1);
64
+      background-color:rgba(255,255,255,1);
65
       border-radius: 0 0 0.12rem 0.12rem;
65
       border-radius: 0 0 0.12rem 0.12rem;
66
       padding: 0.01rem 0.25rem;
66
       padding: 0.01rem 0.25rem;
67
       font-size: 0.18rem;
67
       font-size: 0.18rem;
68
       font-family: PingFangSC-Medium;
68
       font-family: PingFangSC-Medium;
69
       font-weight: 500;
69
       font-weight: 500;
70
-      color: rgba(255, 255, 255, 1);
70
+      color:rgba(70,86,101,1);
71
       line-height: 0.25rem;
71
       line-height: 0.25rem;
72
     }
72
     }
73
 
73
 
98
 
98
 
99
       .line {
99
       .line {
100
         width: 0.01rem;
100
         width: 0.01rem;
101
-        border: 1px solid rgba(251, 87, 87, 1);
102
-        background-color: rgba(251, 87, 87, 1);
101
+        border: 1px solid rgba(166,184,201,1);
102
+        background-color: rgba(166,184,201,1);
103
       }
103
       }
104
       .nameinformation {
104
       .nameinformation {
105
         display: flex;
105
         display: flex;
109
         .information {
109
         .information {
110
           font-size: 0.16rem;
110
           font-size: 0.16rem;
111
           font-family: JQLaoSongJT;
111
           font-family: JQLaoSongJT;
112
-          color: rgba(251, 87, 87, 1);
112
+          color:rgba(112,125,138,1);
113
           line-height: 0.28rem;
113
           line-height: 0.28rem;
114
           font-weight: 400;
114
           font-weight: 400;
115
         }
115
         }
116
         .informationnum {
116
         .informationnum {
117
           font-size: 0.24rem;
117
           font-size: 0.24rem;
118
           font-family: JQLaoSongJT;
118
           font-family: JQLaoSongJT;
119
-          color: rgba(251, 87, 87, 1);
119
+          color:rgba(112,125,138,1);
120
           line-height: 0.28rem;
120
           line-height: 0.28rem;
121
         }
121
         }
122
       }
122
       }
123
     }
123
     }
124
   }
124
   }
125
-
126
   .showorhide {
125
   .showorhide {
127
     width: 100%;
126
     width: 100%;
128
     display: flex;
127
     display: flex;
133
 
132
 
134
     .dashedline {
133
     .dashedline {
135
       width: 100%;
134
       width: 100%;
136
-      border-bottom: 1px dashed rgba(255, 255, 255, 1);
135
+      border-bottom: 1px dashed rgba(166,184,201,1);
137
       text-decoration: none;
136
       text-decoration: none;
138
     }
137
     }
139
     .writeword {
138
     .writeword {
140
-      width: 92%;
139
+      width: 90%;
141
       padding-top: 0.18rem;
140
       padding-top: 0.18rem;
142
       word-wrap: break-word;
141
       word-wrap: break-word;
143
       word-break: normal;
142
       word-break: normal;
144
       font-size: 0.14rem;
143
       font-size: 0.14rem;
145
       font-family: PingFangSC-Regular;
144
       font-family: PingFangSC-Regular;
146
       font-weight: 400;
145
       font-weight: 400;
147
-      color: rgba(255, 255, 255, 1);
146
+      color: rgba(77,87,97,1);
148
       line-height: 0.2rem;
147
       line-height: 0.2rem;
149
     }
148
     }
150
   }
149
   }

+ 32
- 14
src/pages/vote/signup.vue 查看文件

13
       <div class="input_content">
13
       <div class="input_content">
14
         <textarea id="textArea" class="content_txt" maxlength="200"></textarea>
14
         <textarea id="textArea" class="content_txt" maxlength="200"></textarea>
15
         <span class="number">
15
         <span class="number">
16
-          <span id="textNum" style="color:#FB6B2F">0</span>
17
-          <span>/200</span>
16
+          <span id="textNum">0</span>
17
+          <span class="totalnum" >/200</span>
18
         </span>
18
         </span>
19
       </div>
19
       </div>
20
       <div class="ContactInformation">
20
       <div class="ContactInformation">
54
 .context {
54
 .context {
55
   width: 100%;
55
   width: 100%;
56
   height: 100%;
56
   height: 100%;
57
-  background-color: rgba(240, 115, 126, 1);
57
+  background-color: rgba(209,220,228,1);
58
   display: flex;
58
   display: flex;
59
   justify-content: center;
59
   justify-content: center;
60
 
60
 
79
         font-size: 0.16rem;
79
         font-size: 0.16rem;
80
         font-family: PingFangSC-Medium;
80
         font-family: PingFangSC-Medium;
81
         font-weight: bold;
81
         font-weight: bold;
82
-        color: rgba(240, 115, 126, 1);
82
+        color:rgba(112,125,138,1);
83
         line-height: 0.22rem;
83
         line-height: 0.22rem;
84
         padding-left: 0.03rem;
84
         padding-left: 0.03rem;
85
       }
85
       }
104
         font-size: 0.16rem;
104
         font-size: 0.16rem;
105
         font-family: PingFangSC-Medium;
105
         font-family: PingFangSC-Medium;
106
         font-weight: bold;
106
         font-weight: bold;
107
-        color: rgba(240, 115, 126, 1);
107
+        color:rgba(112,125,138,1);
108
         line-height: 0.22rem;
108
         line-height: 0.22rem;
109
         padding-left: 0.03rem;
109
         padding-left: 0.03rem;
110
       }
110
       }
121
         padding: 2% 3% 0 3%;
121
         padding: 2% 3% 0 3%;
122
         margin-left: 5%;
122
         margin-left: 5%;
123
         border: none;
123
         border: none;
124
-        font-size: 0.12rem;
124
+        font-size: 0.16rem;
125
         font-weight: 400;
125
         font-weight: 400;
126
-        color: rgba(170, 170, 170, 1);
127
-        line-height: 0.17rem;
126
+        background:rgba(220,229,236,0.63);
127
+        line-height: 0.22rem;
128
         border-radius: 0.06rem;
128
         border-radius: 0.06rem;
129
-        background-color: rgba(255, 241, 241, 1);
129
+        font-weight:bold;
130
+color:rgba(112,125,138,1);
130
       }
131
       }
131
       .number {
132
       .number {
132
         position: absolute;
133
         position: absolute;
133
         bottom: 0;
134
         bottom: 0;
134
         right: -0.1rem;
135
         right: -0.1rem;
136
+
137
+        #textNum{
138
+color:#707D8A;
139
+font-size:0.14rem;
140
+font-family:PingFangSC-Medium;
141
+font-weight:bold;
142
+line-height:0.2rem;
143
+        }
144
+
145
+        .totalnum{
146
+color:#B8C2CB;
147
+font-size:0.14rem;
148
+font-family:PingFangSC-Medium;
149
+font-weight:bold;
150
+line-height:0.2rem;
151
+        }
135
       }
152
       }
136
     }
153
     }
137
 
154
 
148
           font-size: 0.16rem;
165
           font-size: 0.16rem;
149
         font-family: PingFangSC-Medium;
166
         font-family: PingFangSC-Medium;
150
         font-weight: bold;
167
         font-weight: bold;
151
-        color: rgba(240, 115, 126, 1);
168
+        color:rgba(112,125,138,1);
152
         line-height: 0.22rem;
169
         line-height: 0.22rem;
153
         padding-left: 0.03rem;
170
         padding-left: 0.03rem;
154
       }
171
       }
156
     input{
173
     input{
157
         width: 84%;
174
         width: 84%;
158
         height: 0.4rem;
175
         height: 0.4rem;
159
-        background-color:rgba(255,241,241,1);;
176
+        background-color:rgba(220,229,236,0.63);
160
 border-radius:0.06rem;
177
 border-radius:0.06rem;
161
 padding: 0.02rem 0.1rem;
178
 padding: 0.02rem 0.1rem;
162
     margin: 0 0 2% 5%;
179
     margin: 0 0 2% 5%;
166
      font-size:0.16rem;
183
      font-size:0.16rem;
167
 font-family:PingFangSC-Medium;
184
 font-family:PingFangSC-Medium;
168
 font-weight:bold;
185
 font-weight:bold;
169
-color:rgba(252,93,95,1);
186
+color:rgba(117,132,146,1);
170
 line-height:0.22rem;
187
 line-height:0.22rem;
171
     }
188
     }
172
 
189
 
182
      font-size:0.16rem;
199
      font-size:0.16rem;
183
 font-family:PingFangSC-Medium;
200
 font-family:PingFangSC-Medium;
184
 font-weight:bold;
201
 font-weight:bold;
185
-color:rgba(252,93,95,1);
202
+color:rgba(112,125,138,1);
186
 line-height:0.22rem;
203
 line-height:0.22rem;
187
     }
204
     }
188
 .btn{
205
 .btn{
196
         width: 44%;
213
         width: 44%;
197
     height: 0.5rem;
214
     height: 0.5rem;
198
     border-radius: 0.23rem;
215
     border-radius: 0.23rem;
199
-    background-color: rgba(252, 93, 95, 1);
216
+   background:rgba(166,184,201,1);
217
+box-shadow:0px 2px 10px 0px rgba(207,217,227,1);
200
     border: none;
218
     border: none;
201
     font-size: 0.2rem;
219
     font-size: 0.2rem;
202
     font-family: PingFangSC-Medium;
220
     font-family: PingFangSC-Medium;

+ 10
- 14
src/pages/vote/votingdetails.vue 查看文件

43
 .context {
43
 .context {
44
   width: 100%;
44
   width: 100%;
45
   height: 100%;
45
   height: 100%;
46
-  background-color: rgba(240, 115, 126, 1);
46
+  background-color: rgba(220,229,236,1);;
47
   display: flex;
47
   display: flex;
48
   flex-direction: column;
48
   flex-direction: column;
49
   align-items: center;
49
   align-items: center;
62
     .personnumber {
62
     .personnumber {
63
       position: absolute;
63
       position: absolute;
64
       top: 0;
64
       top: 0;
65
-      background-color: rgba(240, 115, 126, 1);
65
+      background-color:rgba(255,255,255,1);
66
       border-radius: 0 0 0.12rem 0.12rem;
66
       border-radius: 0 0 0.12rem 0.12rem;
67
       padding: 0.01rem 0.25rem;
67
       padding: 0.01rem 0.25rem;
68
       font-size: 0.18rem;
68
       font-size: 0.18rem;
69
       font-family: PingFangSC-Medium;
69
       font-family: PingFangSC-Medium;
70
       font-weight: 500;
70
       font-weight: 500;
71
-      color: rgba(255, 255, 255, 1);
71
+      color:rgba(70,86,101,1);
72
       line-height: 0.25rem;
72
       line-height: 0.25rem;
73
     }
73
     }
74
 
74
 
99
 
99
 
100
       .line {
100
       .line {
101
         width: 0.01rem;
101
         width: 0.01rem;
102
-        border: 1px solid rgba(251, 87, 87, 1);
103
-        background-color: rgba(251, 87, 87, 1);
102
+        border: 1px solid rgba(166,184,201,1);
103
+        background-color: rgba(166,184,201,1);
104
       }
104
       }
105
       .nameinformation {
105
       .nameinformation {
106
         display: flex;
106
         display: flex;
110
         .information {
110
         .information {
111
           font-size: 0.16rem;
111
           font-size: 0.16rem;
112
           font-family: JQLaoSongJT;
112
           font-family: JQLaoSongJT;
113
-          color: rgba(251, 87, 87, 1);
113
+          color:rgba(112,125,138,1);
114
           line-height: 0.28rem;
114
           line-height: 0.28rem;
115
           font-weight: 400;
115
           font-weight: 400;
116
         }
116
         }
117
         .informationnum {
117
         .informationnum {
118
           font-size: 0.24rem;
118
           font-size: 0.24rem;
119
           font-family: JQLaoSongJT;
119
           font-family: JQLaoSongJT;
120
-          color: rgba(251, 87, 87, 1);
120
+          color:rgba(112,125,138,1);
121
           line-height: 0.28rem;
121
           line-height: 0.28rem;
122
         }
122
         }
123
       }
123
       }
127
   .votebtn {
127
   .votebtn {
128
     width: 59%;
128
     width: 59%;
129
     height: 0.42rem;
129
     height: 0.42rem;
130
-    background: linear-gradient(
131
-      360deg,
132
-      rgba(248, 150, 62, 1) 0%,
133
-      rgba(255, 250, 155, 1) 100%
134
-    );
130
+    background: rgba(166,184,201,1);
135
     border-radius: 0.23rem;
131
     border-radius: 0.23rem;
136
     font-size: 0.2rem;
132
     font-size: 0.2rem;
137
     font-family: PingFangSC-Medium;
133
     font-family: PingFangSC-Medium;
151
 
147
 
152
     .dashedline {
148
     .dashedline {
153
       width: 100%;
149
       width: 100%;
154
-      border-bottom: 1px dashed rgba(255, 255, 255, 1);
150
+      border-bottom: 1px dashed rgba(166,184,201,1);
155
       text-decoration: none;
151
       text-decoration: none;
156
     }
152
     }
157
     .writeword {
153
     .writeword {
162
       font-size: 0.14rem;
158
       font-size: 0.14rem;
163
       font-family: PingFangSC-Regular;
159
       font-family: PingFangSC-Regular;
164
       font-weight: 400;
160
       font-weight: 400;
165
-      color: rgba(255, 255, 255, 1);
161
+      color: rgba(77,87,97,1);
166
       line-height: 0.2rem;
162
       line-height: 0.2rem;
167
     }
163
     }
168
   }
164
   }

+ 39
- 0
src/store/activitylist.js 查看文件

1
+import request from '../utils/request'
2
+import getAPI from '../config/apis'
3
+export default {
4
+    namespaced: true,
5
+      state: {
6
+        detail: {},
7
+      },
8
+      mutations: {
9
+        updateActivityList(state, detail) {
10
+          state.detail = detail;
11
+        },
12
+      },
13
+      actions: {
14
+          
15
+        getActivityList({ commit }, params) {
16
+          return new Promise((resolve, reject) => {
17
+            request({ ...getAPI('homepage.getactivitylist'),params}).then((data) => {
18
+              commit('updateActivityList', data)
19
+              resolve()            
20
+            }).catch(reject)
21
+          });
22
+        },
23
+        // getActivityList (context, payload) { // 获取附近课程
24
+        //     return new Promise((resolve, reject) => {
25
+        //       Ajax(api.homepage.getactivity.url, {
26
+        //         method: api.homepage.getactivity.method,
27
+        //         queryData: { ...payload }
28
+        //       }).then(res => {
29
+        //         context.commit('updateActivityList', res)
30
+        //         resolve(res)
31
+        //       }).catch((err) => {
32
+        //         reject(err)
33
+        //       })
34
+        //     })
35
+        //   },
36
+      }
37
+
38
+      
39
+    }

+ 23
- 0
src/store/homepage.js 查看文件

1
+import request from '../utils/request'
2
+import getAPI from '../config/apis'
3
+export default {
4
+    namespaced: true,
5
+      state: {
6
+        activitydetail: {},
7
+      },
8
+      mutations: {
9
+        updateActivity(state, activitydetail) {
10
+          state.activitydetail = activitydetail;
11
+        },
12
+      },
13
+      actions: {
14
+        getActivity({ commit }, params) {
15
+          return new Promise((resolve, reject) => {
16
+            request({...getAPI('homepage.getactivity', params)}).then((data) => {
17
+              commit('updateActivity', data)
18
+              resolve()            
19
+            }).catch(reject)
20
+          });
21
+        },
22
+      }
23
+    }

+ 2
- 1
src/store/index.js 查看文件

5
 
5
 
6
 const store = new Vuex.Store({
6
 const store = new Vuex.Store({
7
   modules: {
7
   modules: {
8
-    // app: require('./app.js').default,
8
+    homepage: require('./homepage.js').default,
9
+    activitylist: require('./activitylist.js').default,
9
   }
10
   }
10
 });
11
 });
11
 
12
 

+ 1
- 1
src/utils/request.js 查看文件

41
     }).then((response) => {
41
     }).then((response) => {
42
       const data = response.data;
42
       const data = response.data;
43
       if (data.code === 200) {
43
       if (data.code === 200) {
44
-        resolve(data);
44
+        resolve(data.result);
45
       } else {
45
       } else {
46
         reject('请求数据失败');
46
         reject('请求数据失败');
47
       }
47
       }

+ 1
- 1
vue.config.js 查看文件

3
     devServer: {
3
     devServer: {
4
       proxy: {
4
       proxy: {
5
         '/api': {
5
         '/api': {
6
-          target: 'http://192.168.0.166:8087', // wf
6
+          target: 'http://192.168.0.62:8080', // wf
7
           // target: 'http://127.0.0.1:8082/hj_wechat', // wf
7
           // target: 'http://127.0.0.1:8082/hj_wechat', // wf
8
           changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
8
           changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
9
           // pathRewrite: {
9
           // pathRewrite: {