wangfei 6 gadus atpakaļ
vecāks
revīzija
9729f9942e
6 mainītis faili ar 269 papildinājumiem un 368 dzēšanām
  1. 2
    2
      src/App.vue
  2. 2
    1
      src/store/vote.js
  3. 1
    1
      src/util/ajax.js
  4. 157
    170
      src/views/vote/detail.vue
  5. 105
    192
      src/views/vote/signup.vue
  6. 2
    2
      vue.config.js

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

@@ -35,7 +35,7 @@ export default {
35 35
     //     this.toolClass.getCode('wx32e2e8c81f66070e')
36 36
     //   } else {
37 37
     //     localStorage.setItem('code', this.code)
38
-    //     this.customer(this.code).then(() => {
38
+    //     this.getUser({code: this.code}).then(() => {
39 39
     //       this.showPage = true
40 40
     //     })
41 41
     //   }
@@ -44,7 +44,7 @@ export default {
44 44
     // }
45 45
   },
46 46
   methods: {
47
-    ...mapIndexActions(["user"])
47
+    ...mapIndexActions(["getUser"])
48 48
   }
49 49
 };
50 50
 </script>

+ 2
- 1
src/store/vote.js Parādīt failu

@@ -18,7 +18,8 @@ export default {
18 18
       state.theme = data.ActivityId || 1
19 19
     },
20 20
     updateUser(state, data) {
21
-      state.user = data
21
+      state.user = data.openid
22
+      state.myprofile = data.member
22 23
     },
23 24
     updateDetail(state, data) {
24 25
       state.detail = data || {}

+ 1
- 1
src/util/ajax.js Parādīt failu

@@ -78,7 +78,7 @@ const ajax = (...args) => {
78 78
       } else if (code === 401) {
79 79
         // console.log(result)
80 80
         // reject(code)
81
-        toolClass.getCode(result.appid)
81
+        // toolClass.getCode(result.appid)
82 82
       } else if (code === 406) {
83 83
         // console.log(router.history.current.name)
84 84
         if (router.history.current.name !== 'bindMobile') {

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

@@ -1,27 +1,27 @@
1 1
 <template>
2
-  <div class="context" :style="{backgroundImage: 'url(' + (coverImgUrl ?BgImage:BgImg) + ')'}">
2
+  <div :class="'context theme'+theme">
3 3
     <div class="ContextbBox">
4
-      <span :class="desc?personnumber1:personnumber2">NO.{{detail.MemberId}}</span>
4
+      <span class="personnumber">NO.{{detail.MemberId}}</span>
5 5
       <span class="votelist" @click="tolist">投票列表</span>
6 6
       <img :src="detail.Photo">
7 7
       <div class="detailinformation">
8 8
         <div class="nameinformation">
9
-          <span :class="desc?information1:information2">{{detail.Name}}</span>
10
-          <span :class="desc?information1:information2">姓名</span>
9
+          <span class="information">{{detail.Name}}</span>
10
+          <span class="information">姓名</span>
11 11
         </div>
12
-        <span :class="desc?line1:line2"></span>
12
+        <span class="line"></span>
13 13
         <div class="nameinformation">
14
-          <span :class="desc?informationnum1:informationnum2">{{detail.Vote}}</span>
15
-          <span :class="desc?information1:information2">当前票数</span>
14
+          <span class="informationnum">{{detail.Vote}}</span>
15
+          <span class="information">当前票数</span>
16 16
         </div>
17
-        <span :class="desc?line1:line2"></span>
17
+        <span class="line"></span>
18 18
         <div class="nameinformation">
19
-          <span :class="desc?information1:information2">{{detail.Rank}}名</span>
20
-          <span :class="desc?information1:information2">排名</span>
19
+          <span class="information">{{detail.Rank}}名</span>
20
+          <span class="information">排名</span>
21 21
         </div>
22 22
       </div>
23 23
     </div>
24
-    <button :class="desc?votebtn1:votebtn2" @click="Vote">投TA一票</button>
24
+    <button class="votebtn" @click="Vote">投TA一票</button>
25 25
     <div class="showorhide" v-if="detail.Message != ''">
26 26
       <span class="dashedline"></span>
27 27
       <span class="writeword">寄语:{{detail.Message}}</span>
@@ -44,20 +44,6 @@ export default {
44 44
       actid: '',
45 45
       memberid: '',
46 46
       show: false,
47
-      coverImgUrl:true,
48
-      BgImg,
49
-      BgImage,
50
-      desc:true,
51
-      personnumber1:'personnumber1',
52
-      personnumber2:'personnumber2',
53
-      information1:'information1',
54
-      information2:'information2',
55
-      informationnum1:'informationnum1',
56
-      informationnum2:"informationnum2",
57
-      line1:'line1',
58
-      line2:'line2',
59
-      votebtn1:'votebtn1',
60
-      votebtn2:'votebtn2',
61 47
     };
62 48
   },
63 49
   components: {
@@ -65,13 +51,6 @@ export default {
65 51
   },
66 52
   mounted() {
67 53
     this.actid = this.$route.params.actid;
68
-    if(this.actid==1){
69
- this.coverImgUrl = true;
70
- this.desc = true;
71
-    }else if(this.actid==2){
72
-this.coverImgUrl = false;
73
-this.desc = false;
74
-    }
75 54
     this.memberid = this.$route.params.memberid;
76 55
     this.getActivity({
77 56
       actid: this.actid,
@@ -97,6 +76,7 @@ this.desc = false;
97 76
       info: x => x.activity,
98 77
       detail: x => x.detail,
99 78
       user: x => x.user,
79
+      theme: x => x.theme,
100 80
     })
101 81
   },
102 82
   methods: {
@@ -133,127 +113,96 @@ this.desc = false;
133 113
 };
134 114
 </script>
135 115
 <style lang="scss" scoped>
136
-.context {
137
-  width: 100%;
138
-  height: 100%;
139
-  // background-color: rgba(220,229,236,1);;
116
+
117
+.ContextbBox {
118
+  width: 93.6%;
119
+  height: 4.05rem;
120
+  background-color: rgba(255, 255, 255, 1);
121
+  border-radius: 0.02rem;
122
+  margin-top: 0.7rem;
140 123
   display: flex;
141 124
   flex-direction: column;
142 125
   align-items: center;
126
+  position: relative;
127
+}
143 128
 
144
-  .ContextbBox {
145
-    width: 93.6%;
146
-    height: 4.05rem;
147
-    background-color: rgba(255, 255, 255, 1);
148
-    border-radius: 0.02rem;
149
-    margin-top: 0.7rem;
150
-    display: flex;
151
-    flex-direction: column;
152
-    align-items: center;
153
-    position: relative;
154
-
155
-    .personnumber1 {
156
-      position: absolute;
157
-      top: 0;
158
-      background-color:rgba(255,255,255,1);
159
-      border-radius: 0 0 0.12rem 0.12rem;
160
-      padding: 0.01rem 0.25rem;
161
-      font-size: 0.18rem;
162
-      font-family: PingFangSC-Medium;
163
-      font-weight: bolder;
164
-      color:rgba(70,86,101,1);
165
-      line-height: 0.25rem;
166
-    }
167
-    .personnumber2 {
168
-      position: absolute;
169
-      top: 0;
170
-      background-color:rgba(255,255,255,1);
171
-      border-radius: 0 0 0.12rem 0.12rem;
172
-      padding: 0.01rem 0.25rem;
173
-      font-size: 0.18rem;
174
-      font-family: PingFangSC-Medium;
175
-      font-weight: bolder;
176
-      color:rgba(112,84,75,1);
177
-      line-height: 0.25rem;
178
-    }
129
+.votelist {
130
+  position: absolute;
131
+  top: 0.43rem;
132
+  right: 0;
133
+  background-color: rgba(84, 84, 84, 0.8);
134
+  border-radius: 0.23rem 0 0 0.23rem;
135
+  padding: 0.05rem 0.05rem 0.05rem 0.16rem;
136
+  font-size: 0.18rem;
137
+  font-family: PingFangSC-Medium;
138
+  font-weight: bolder;
139
+  color: rgba(255, 255, 255, 1);
140
+  line-height: 0.25rem;
141
+}
179 142
 
180
-    .votelist {
181
-      position: absolute;
182
-      top: 0.43rem;
183
-      right: 0;
184
-      background-color: rgba(84, 84, 84, 0.8);
185
-      border-radius: 0.23rem 0 0 0.23rem;
186
-      padding: 0.05rem 0.05rem 0.05rem 0.16rem;
187
-      font-size: 0.18rem;
188
-      font-family: PingFangSC-Medium;
189
-      font-weight: bolder;
190
-      color: rgba(255, 255, 255, 1);
191
-      line-height: 0.25rem;
192
-    }
143
+img {
144
+  width: 93%;
145
+  height: 3.16rem;
146
+  margin: 0.1rem 0;
147
+}
148
+.detailinformation {
149
+  width: 82%;
150
+  display: flex;
151
+  flex-direction: row;
152
+  justify-content: space-between;
153
+}
193 154
 
194
-    img {
195
-      width: 93%;
196
-      height: 3.16rem;
197
-      margin: 0.1rem 0;
198
-    }
199
-    .detailinformation {
200
-      width: 82%;
201
-      display: flex;
202
-      flex-direction: row;
203
-      justify-content: space-between;
155
+.nameinformation {
156
+  display: flex;
157
+  flex-direction: column;
158
+  align-items: center;
159
+}
204 160
 
205
-      .line1 {
206
-        // width: 0.01rem;
207
-        border: 0.01rem solid rgba(166,184,201,1);
208
-        background-color: rgba(166,184,201,1);
209
-      }
210
-      .line2 {
211
-        // width: 0.01rem;
212
-        border: 0.01rem solid rgba(166,184,201,1);
213
-        background-color: rgba(166,184,201,1);
214
-      }
215
-      .nameinformation {
216
-        display: flex;
217
-        flex-direction: column;
218
-        align-items: center;
161
+.context {
162
+  width: 100%;
163
+  height: 100%;
164
+  // background-color: rgba(220,229,236,1);;
165
+  display: flex;
166
+  flex-direction: column;
167
+  align-items: center;
168
+}
219 169
 
220
-        .information1 {
221
-          font-size: 0.16rem;
222
-          font-family: JQLaoSongJT;
223
-          color:rgba(112,125,138,1);
224
-          line-height: 0.28rem;
225
-          font-weight: bold;
226
-          height: 0.28rem;
227
-        }
228
-        .information2 {
229
-          font-size: 0.16rem;
230
-          font-family: JQLaoSongJT;
231
-          color:rgba(112,84,75,1);
232
-          line-height: 0.28rem;
233
-          font-weight: bold;
234
-           height: 0.28rem;
235
-        }
236
-        .informationnum1 {
237
-          font-size: 0.24rem;
238
-          font-family: JQLaoSongJT;
239
-          color:rgba(112,125,138,1);
240
-          font-weight: bolder;
241
-          line-height: 0.28rem;
242
-           height: 0.28rem;
243
-        }
244
-          .informationnum2 {
245
-          font-size: 0.24rem;
246
-          font-family: JQLaoSongJT;
247
-          color:rgba(112,84,75,1);
248
-          font-weight: bolder;
249
-          line-height: 0.28rem;
250
-           height: 0.28rem;
251
-        }
252
-      }
253
-    }
170
+.theme1 {  
171
+  background-image: url('../../assets/yttjbg.png');
172
+  .personnumber {
173
+    position: absolute;
174
+    top: 0;
175
+    background-color:rgba(255,255,255,1);
176
+    border-radius: 0 0 0.12rem 0.12rem;
177
+    padding: 0.01rem 0.25rem;
178
+    font-size: 0.18rem;
179
+    font-family: PingFangSC-Medium;
180
+    font-weight: bolder;
181
+    color:rgba(70,86,101,1);
182
+    line-height: 0.25rem;
254 183
   }
255
-
256
-  .votebtn1 {
184
+  .line {
185
+    // width: 0.01rem;
186
+    border: 0.01rem solid rgba(166,184,201,1);
187
+    background-color: rgba(166,184,201,1);
188
+  }
189
+  .information {
190
+    font-size: 0.16rem;
191
+    font-family: JQLaoSongJT;
192
+    color:rgba(112,125,138,1);
193
+    line-height: 0.28rem;
194
+    font-weight: bold;
195
+    height: 0.28rem;
196
+  }
197
+  .informationnum {
198
+    font-size: 0.24rem;
199
+    font-family: JQLaoSongJT;
200
+    color:rgba(112,125,138,1);
201
+    font-weight: bolder;
202
+    line-height: 0.28rem;
203
+      height: 0.28rem;
204
+  }
205
+  .votebtn {
257 206
     width: 59%;
258 207
     height: 0.42rem;
259 208
     background: rgba(166,184,201,1);
@@ -266,7 +215,70 @@ this.desc = false;
266 215
     border: none;
267 216
     margin-top: 0.18rem;
268 217
   }
269
-  .votebtn2{
218
+}
219
+ 
220
+.showorhide {
221
+  width: 100%;
222
+  display: flex;
223
+  flex-direction: column;
224
+  justify-content: center;
225
+  align-items: center;
226
+  margin-top: 0.18rem;
227
+
228
+  .dashedline {
229
+    width: 100%;
230
+    border-bottom: 1px dashed rgba(166,184,201,1);
231
+    text-decoration: none;
232
+  }
233
+  .writeword {
234
+    width: 90%;
235
+    padding-top: 0.18rem;
236
+    word-wrap: break-word;
237
+    word-break: normal;
238
+    font-size: 0.14rem;
239
+    font-family: PingFangSC-Regular;
240
+    font-weight: bold;
241
+    color: rgba(77,87,97,1);
242
+    line-height: 0.2rem;
243
+  }
244
+}
245
+
246
+.theme2 {
247
+  background-image: url('../../assets/bgimg.jpg');
248
+  .personnumber {
249
+    position: absolute;
250
+    top: 0;
251
+    background-color:rgba(255,255,255,1);
252
+    border-radius: 0 0 0.12rem 0.12rem;
253
+    padding: 0.01rem 0.25rem;
254
+    font-size: 0.18rem;
255
+    font-family: PingFangSC-Medium;
256
+    font-weight: bolder;
257
+    color:rgba(112,84,75,1);
258
+    line-height: 0.25rem;
259
+  }
260
+  .line {
261
+    // width: 0.01rem;
262
+    border: 0.01rem solid rgba(166,184,201,1);
263
+    background-color: rgba(166,184,201,1);
264
+  }
265
+  .information {
266
+    font-size: 0.16rem;
267
+    font-family: JQLaoSongJT;
268
+    color:rgba(112,84,75,1);
269
+    line-height: 0.28rem;
270
+    font-weight: bold;
271
+    height: 0.28rem;
272
+  }
273
+  .informationnum {
274
+    font-size: 0.24rem;
275
+    font-family: JQLaoSongJT;
276
+    color:rgba(112,84,75,1);
277
+    font-weight: bolder;
278
+    line-height: 0.28rem;
279
+      height: 0.28rem;
280
+  }
281
+  .votebtn{
270 282
     width: 59%;
271 283
     height: 0.42rem;
272 284
     background: rgba(173,145,129,1);
@@ -279,31 +291,6 @@ this.desc = false;
279 291
     border: none;
280 292
     margin-top: 0.18rem;
281 293
   }
282
-  .showorhide {
283
-    width: 100%;
284
-    display: flex;
285
-    flex-direction: column;
286
-    justify-content: center;
287
-    align-items: center;
288
-    margin-top: 0.18rem;
289
-
290
-    .dashedline {
291
-      width: 100%;
292
-      border-bottom: 1px dashed rgba(166,184,201,1);
293
-      text-decoration: none;
294
-    }
295
-    .writeword {
296
-      width: 90%;
297
-      padding-top: 0.18rem;
298
-      word-wrap: break-word;
299
-      word-break: normal;
300
-      font-size: 0.14rem;
301
-      font-family: PingFangSC-Regular;
302
-      font-weight: bold;
303
-      color: rgba(77,87,97,1);
304
-      line-height: 0.2rem;
305
-    }
306
-  }
307 294
 }
308 295
 </style>
309 296
 

+ 105
- 192
src/views/vote/signup.vue Parādīt failu

@@ -1,18 +1,18 @@
1 1
 <template>
2
-  <div class="context" :style="{backgroundImage: 'url(' + (coverImgUrl ?BgImage:BgImg) + ')'}">
2
+  <div :class="'context theme'+theme">
3 3
     <div class="ContextBox">
4 4
       <div class="uploadimg">
5
-        <img :src="img?yttjlove:yjslove">
6
-        <span :class="desc?desc1:desc2">上传您认为最美的全家福照片</span>
5
+        <img :src="theme===1?yttjlove:yjslove">
6
+        <span class="desc">上传您认为最美的全家福照片</span>
7 7
       </div>
8 8
       <van-uploader :after-read="onRead">
9
-        <img class="uploadimgbox" :src="desc?uploadimg1:uploadimg2">
9
+        <img class="uploadimgbox" :src="uploadimg">
10 10
       </van-uploader>
11
-      <div class="WriteWord" v-if="writeword">
12
-        <img :src="img?yttjpen:yjspen">
13
-        <span :class="desc?desc1:desc2">寄语</span>
11
+      <div class="WriteWord" v-if="theme===1">
12
+        <img :src="theme===1?yttjpen:yjspen">
13
+        <span class="desc">寄语</span>
14 14
       </div>
15
-      <div class="input_content" v-if="writeword">
15
+      <div class="input_content" v-if="theme===1">
16 16
         <textarea
17 17
           id="textArea"
18 18
           @input="messageWrite"
@@ -26,21 +26,21 @@
26 26
         </span>
27 27
       </div>
28 28
       <div class="ContactInformation">
29
-        <img :src="img?yttjphone:yjsphone">
30
-        <span :class="desc?desc1:desc2">联系方式</span>
29
+        <img :src="theme===1?yttjphone:yjsphone">
30
+        <span class="desc">联系方式</span>
31 31
       </div>
32
-      <div :class="desc?inputbox1:inputbox2">
32
+      <div class="inputbox cinput">
33 33
         <input placeholder="输入手机号" v-model="postData.phone">
34 34
       </div>
35 35
 
36
-      <div :class="desc?inputbox1:inputbox2">
36
+      <div class="inputbox cinput">
37 37
         <input placeholder="输入姓名" v-model="postData.name">
38 38
       </div>
39
-      <div :class="desc?textareabox1:textareabox2" v-if="address">
39
+      <div class="textareabox cinput" v-if="theme===2">
40 40
         <textarea class="addressarea" placeholder="所在社区"></textarea>
41 41
       </div>
42 42
       <div class="btn">
43
-        <button :class="desc?SubmitBtn1:SubmitBtn2" @click="SubmitBtn">提交</button>
43
+        <button class="SubmitBtn cbtn" @click="SubmitBtn">提交</button>
44 44
       </div>
45 45
     </div>
46 46
   </div>
@@ -48,8 +48,6 @@
48 48
 
49 49
 <script>
50 50
 import { createNamespacedHelpers } from "vuex";
51
-import BgImg from "../../assets/bgimg.jpg";
52
-import BgImage from "../../assets/yttjbg.png";
53 51
 const {
54 52
   mapState: mapVoteState,
55 53
   mapActions: mapVoteActions
@@ -57,27 +55,17 @@ const {
57 55
 export default {
58 56
   name: "signup",
59 57
   data() {
60
-    return {
61
-      writeword: false,
62
-      address: false,
63
-      desc: true,
64
-      desc1: "desc1",
65
-      desc2: "desc2",
66
-      inputbox1: "inputbox1",
67
-      inputbox2: "inputbox2",
68
-      textareabox1: "textareabox1",
69
-      textareabox2: "textareabox2",
70
-      SubmitBtn1: "SubmitBtn1",
71
-      SubmitBtn2: "SubmitBtn2",
72
-      coverImgUrl: true,
73
-      BgImg,
74
-      BgImage,
75
-      img: true,
76
-      isLoading: false,
77
-      uploadimg1:
78
-        "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/uploadimg.png",
79
-      uploadimg2:
80
-        "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yjsuploadimg.png",
58
+    return{
59
+      messagenum: 0,
60
+      postData: {
61
+        photo: "",
62
+        phone: "",
63
+        name: "",
64
+        addr: "",
65
+        message: ""
66
+      },
67
+      uploadimg: '',
68
+      actid: "",
81 69
       yttjlove:
82 70
         "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yttj_icon_love.png",
83 71
       yttjpen:
@@ -90,47 +78,34 @@ export default {
90 78
         "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/xiegenjin.png",
91 79
       yjsphone:
92 80
         "https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/dianhua.png",
93
-      messagenum: 0,
94
-      postData: {
95
-        photo: "",
96
-        phone: "",
97
-        name: "",
98
-        addr: "",
99
-        message: ""
100
-      },
101
-      actid: ""
102 81
     };
103 82
   },
104 83
   computed: {
105 84
     ...mapVoteState({
106
-      user: x => x.user
85
+      user: x => x.user,
86
+      theme: x => x.theme,
107 87
     })
108 88
   },
109 89
   created() {
110 90
     this.actid = this.$route.params.actid;
111
-    if (this.actid == 1) {
112
-      this.coverImgUrl = true;
113
-      this.img = true;
114
-      this.address = false;
115
-      this.writeword = true;
116
-      this.desc = true;
117
-    } else if (this.actid == 2) {
118
-      this.coverImgUrl = false;
119
-      this.img = false;
120
-      this.address = true;
121
-      this.writeword = false;
122
-      this.desc = false;
123
-    }
124 91
     if (this.$route.params.actid != "") {
125 92
       this.actid = this.$route.params.actid;
93
+      this.getActivity({
94
+        actid: this.actid,
95
+      }).then(() => {
96
+        if (this.theme === 1){
97
+          this.uploadimg = 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/uploadimg.png'
98
+        } else {
99
+          this.uploadimg = 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/voting/yjsuploadimg.png'
100
+        }
101
+      })
126 102
     } else {
127 103
       alert("不存在对应的活动信息!");
128 104
     }
129 105
   },
130 106
   methods: {
131
-    ...mapVoteActions(["voteMember"]),
107
+    ...mapVoteActions(["voteMember","getActivity"]),
132 108
     onRead(file) {
133
-      console.log(file);
134 109
       let that = this;
135 110
       this.isLoading = true;
136 111
       let reader = new FileReader();
@@ -174,10 +149,7 @@ export default {
174 149
 <style lang='scss' scoped>
175 150
 .context {
176 151
   width: 100%;
177
-  // height: 100%;
178
-  // background-color: rgba(209, 220, 228, 1);
179
-  // background:no-repeat center;
180
-  // background-size:100% 100%;
152
+  height: 100%;
181 153
   display: flex;
182 154
   justify-content: center;
183 155
 
@@ -199,21 +171,6 @@ export default {
199 171
         width: 0.22rem;
200 172
         height: 0.2rem;
201 173
       }
202
-
203
-      .desc1 {
204
-        font-size: 0.16rem;
205
-        font-weight: bolder;
206
-        color: rgba(112, 125, 138, 1);
207
-        line-height: 0.22rem;
208
-        padding-left: 0.03rem;
209
-      }
210
-      .desc2 {
211
-        font-size: 0.16rem;
212
-        font-weight: bolder;
213
-        color: rgba(112, 84, 75, 1);
214
-        line-height: 0.22rem;
215
-        padding-left: 0.03rem;
216
-      }
217 174
     }
218 175
 
219 176
     .uploadimgbox {
@@ -231,20 +188,6 @@ export default {
231 188
         width: 0.22rem;
232 189
         height: 0.2rem;
233 190
       }
234
-      .desc1 {
235
-        font-size: 0.16rem;
236
-        font-weight: bolder;
237
-        color: rgba(112, 125, 138, 1);
238
-        line-height: 0.22rem;
239
-        padding-left: 0.03rem;
240
-      }
241
-      .desc2 {
242
-        font-size: 0.16rem;
243
-        font-weight: bolder;
244
-        color: rgba(112, 84, 75, 1);
245
-        line-height: 0.22rem;
246
-        padding-left: 0.03rem;
247
-      }
248 191
     }
249 192
 
250 193
     .input_content {
@@ -298,51 +241,12 @@ export default {
298 241
         width: 0.22rem;
299 242
         height: 0.2rem;
300 243
       }
301
-      .desc1 {
302
-        font-size: 0.16rem;
303
-        font-family: PingFangSC-Medium;
304
-        font-weight: bolder;
305
-        color: rgba(112, 125, 138, 1);
306
-        line-height: 0.22rem;
307
-        padding-left: 0.03rem;
308
-      }
309
-      .desc2 {
310
-        font-size: 0.16rem;
311
-        font-family: PingFangSC-Medium;
312
-        font-weight: bolder;
313
-        color: rgba(112, 84, 75, 1);
314
-        line-height: 0.22rem;
315
-        padding-left: 0.03rem;
316
-      }
317 244
     }
318 245
 
319
-    .inputbox1 {
246
+    .inputbox {
320 247
       width: 92%;
321 248
       height: 0.4rem;
322
-      background-color: rgba(220, 229, 236, 0.63);
323
-      margin-left: calc(4%);
324
-      margin-bottom: 0.08rem;
325
-      border-radius: 0.06rem;
326
-      input {
327
-        width: 100%;
328
-        height: 100%;
329
-        background-color: rgba(255, 255, 255, 0);
330
-        text-indent: 0.12rem;
331
-      }
332 249
 
333
-      input::-webkit-input-placeholder {
334
-        font-size: 0.16rem;
335
-        font-family: PingFangSC-Medium;
336
-        font-weight: bolder;
337
-        color: rgba(117, 132, 146, 0.4);
338
-        line-height: 0.22rem;
339
-      }
340
-    }
341
-
342
-    .inputbox2 {
343
-      width: 92%;
344
-      height: 0.4rem;
345
-      background-color: rgba(232, 224, 220, 1);
346 250
       margin-left: calc(4%);
347 251
       margin-bottom: 0.08rem;
348 252
       border-radius: 0.06rem;
@@ -352,41 +256,10 @@ export default {
352 256
         background-color: rgba(255, 255, 255, 0);
353 257
         text-indent: 0.12rem;
354 258
       }
355
-
356
-      input::-webkit-input-placeholder {
357
-        font-size: 0.16rem;
358
-        font-family: PingFangSC-Medium;
359
-        font-weight: bolder;
360
-        color: rgba(139, 116, 102, 0.4);
361
-        line-height: 0.22rem;
362
-      }
363
-    }
364
-    .textareabox1 {
365
-      width: 92%;
366
-      height: 0.8rem;
367
-      background-color: rgba(220, 229, 236, 0.63);
368
-      border-radius: 0.06rem;
369
-      margin-left: calc(4%);
370
-      .addressarea {
371
-        width: 100%;
372
-        height: 100%;
373
-        margin-top: 0.08rem;
374
-        background-color: rgba(255, 255, 255, 0);
375
-        margin-left: 0.12rem;
376
-      }
377
-      textarea::-webkit-input-placeholder {
378
-        font-size: 0.16rem;
379
-        font-family: PingFangSC-Medium;
380
-        font-weight: bolder;
381
-        color: rgba(112, 125, 138, 0.4);
382
-        line-height: 0.22rem;
383
-      }
384 259
     }
385
-
386
-    .textareabox2 {
260
+    .textareabox {
387 261
       width: 92%;
388 262
       height: 0.8rem;
389
-      background-color: rgba(232, 224, 220, 1);
390 263
       border-radius: 0.06rem;
391 264
       margin-left: calc(4%);
392 265
       .addressarea {
@@ -396,15 +269,7 @@ export default {
396 269
         background-color: rgba(255, 255, 255, 0);
397 270
         margin-left: 0.12rem;
398 271
       }
399
-      textarea::-webkit-input-placeholder {
400
-        font-size: 0.16rem;
401
-        font-family: PingFangSC-Medium;
402
-        font-weight: bolder;
403
-        color: rgba(139, 116, 102, 0.4);
404
-        line-height: 0.22rem;
405
-      }
406 272
     }
407
-
408 273
     .btn {
409 274
       width: 100%;
410 275
       display: flex;
@@ -416,12 +281,10 @@ export default {
416 281
       // left: 0;
417 282
       // bottom: 0.32rem;
418 283
 
419
-      .SubmitBtn1 {
284
+      .SubmitBtn {
420 285
         width: 44%;
421 286
         height: 0.5rem;
422 287
         border-radius: 0.23rem;
423
-        background: rgba(166, 184, 201, 1);
424
-        box-shadow: 0px 2px 10px 0px rgba(207, 217, 227, 1);
425 288
         border: none;
426 289
         font-size: 0.2rem;
427 290
         font-family: PingFangSC-Medium;
@@ -430,23 +293,73 @@ export default {
430 293
         line-height: 0.28rem;
431 294
         // padding-top: 0.32rem;
432 295
       }
433
-      .SubmitBtn2 {
434
-        width: 44%;
435
-        height: 0.5rem;
436
-        border-radius: 0.23rem;
437
-        background: rgba(173, 145, 129, 1);
438
-        box-shadow: 0px 2px 10px 0px rgba(120, 108, 101, 0.46);
439
-        border: none;
440
-        font-size: 0.2rem;
441
-        font-family: PingFangSC-Medium;
442
-        font-weight: bolder;
443
-        color: rgba(255, 255, 255, 1);
444
-        line-height: 0.28rem;
445
-        margin-top: 1rem;
446
-      }
447 296
     }
448 297
   }
449 298
 }
299
+
300
+.theme1{
301
+  background-image: url("../../assets/yttjbg.png");
302
+  .desc{
303
+    font-size: 0.16rem;
304
+    font-weight: bolder;
305
+    color: rgba(112, 125, 138, 1);
306
+    line-height: 0.22rem;
307
+    padding-left: 0.03rem;
308
+  }
309
+  .cinput{
310
+    background-color: rgba(220, 229, 236, 0.63);
311
+  }
312
+  .cbtn{
313
+    background: rgba(166, 184, 201, 1);
314
+    box-shadow: 0px 2px 10px 0px rgba(207, 217, 227, 1);
315
+  }
316
+  input::-webkit-input-placeholder {
317
+    font-size: 0.16rem;
318
+    font-family: PingFangSC-Medium;
319
+    font-weight: bolder;
320
+    color: rgba(117, 132, 146, 0.4);
321
+    line-height: 0.22rem;
322
+  }
323
+  textarea::-webkit-input-placeholder {
324
+    font-size: 0.16rem;
325
+    font-family: PingFangSC-Medium;
326
+    font-weight: bolder;
327
+    color: rgba(112, 125, 138, 0.4);
328
+    line-height: 0.22rem;
329
+  }
330
+}
331
+
332
+.theme2{
333
+  background-image: url("../../assets/bgimg.jpg");
334
+  .desc{
335
+    font-size: 0.16rem;
336
+    font-weight: bolder;
337
+    color: rgba(112, 84, 75, 1);
338
+    line-height: 0.22rem;
339
+    padding-left: 0.03rem;
340
+  }
341
+  .cinput{
342
+    background-color: rgba(232, 224, 220, 1);
343
+  }
344
+  .cbtn{
345
+    background: rgba(173, 145, 129, 1);
346
+    box-shadow: 0px 2px 10px 0px rgba(120, 108, 101, 0.46);
347
+  }
348
+  input::-webkit-input-placeholder {
349
+    font-size: 0.16rem;
350
+    font-family: PingFangSC-Medium;
351
+    font-weight: bolder;
352
+    color: rgba(139, 116, 102, 0.4);
353
+    line-height: 0.22rem;
354
+  }
355
+  textarea::-webkit-input-placeholder {
356
+    font-size: 0.16rem;
357
+    font-family: PingFangSC-Medium;
358
+    font-weight: bolder;
359
+    color: rgba(139, 116, 102, 0.4);
360
+    line-height: 0.22rem;
361
+  }
362
+}
450 363
 </style>
451 364
 
452 365
 

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

@@ -7,9 +7,9 @@ module.exports = {
7 7
     proxy: {
8 8
       '/api': {
9 9
         // target: 'http://wechatconfigdev.ycjcjy.com',
10
-        // target: 'http://192.168.0.62:8080', // wf
10
+        target: 'http://localhost: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: {