yuantianjiao il y a 6 ans
Parent
révision
849a260c40

+ 4
- 3
config/index.js Voir le fichier

@@ -10,13 +10,14 @@ module.exports = {
10 10
     assetsSubDirectory: 'static',
11 11
     assetsPublicPath: '/',
12 12
     proxyTable: {
13
-      '/api': {
13
+      '/check-api': {
14 14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
-        target: 'http://192.168.0.62:8788', //wf
15
+        // target: 'http://192.168.0.62:8788', //wf
16
+        target: 'http://dev.ycjcjy.com', //dev
16 17
         // target: 'http://192.168.0.11:8088', //zys
17 18
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
18 19
         // pathRewrite: {
19
-        //   '^/api': 'api'
20
+        //   '^/check-api': ''
20 21
         // },
21 22
       },
22 23
     },

+ 2
- 1
src/components/qrCodeCard/qrCodeCard.vue Voir le fichier

@@ -21,7 +21,8 @@ export default {
21 21
         801: '1012-',
22 22
         802: '1011-',
23 23
         803: '1010-',
24
-        804: '1013-'
24
+        804: '1013-',
25
+        777: '777'
25 26
       }
26 27
     }
27 28
   },

+ 3
- 5
src/page/index/index.vue Voir le fichier

@@ -170,11 +170,9 @@ export default {
170 170
     }
171 171
   },
172 172
   created () {
173
-    console.log(this.toolClass.UrlSearch(location.search))
174
-    localStorage.setItem('code', this.toolClass.UrlSearch(location.search).code)
175
-    this.code = localStorage.getItem('code')
173
+    this.code = this.toolClass.UrlSearch(location.search)
176 174
     this.getUserInfo({ code: this.code, luckdrawid: this.lotteryId }).then((res) => {
177
-      this.data.userInfo = this.userInfo
175
+      localStorage.setItem('userInfo', this.userInfo)
178 176
       if (this.data.userInfo.record) {
179 177
         this.winning = this.data.userInfo.record.PrizeName
180 178
         this.showDialog = true
@@ -289,7 +287,7 @@ export default {
289 287
 <style lang="scss" scoped>
290 288
 @font-face {
291 289
   font-family: myFont;
292
-  src: url("../../assets/hkhb.ttf")
290
+  src: url("../../assets/hkhb.ttf");
293 291
 }
294 292
 @import "page.scss";
295 293
 </style>

+ 1
- 1
src/page/lotteryDetail/index.vue Voir le fichier

@@ -23,7 +23,7 @@ export default {
23 23
         detail: {}
24 24
       },
25 25
       msg: {
26
-        course_type: 800
26
+        course_type: 777
27 27
       },
28 28
       bottomMsg
29 29
     }

+ 3
- 6
src/page/lotteryList/index.vue Voir le fichier

@@ -31,12 +31,9 @@ export default {
31 31
     })
32 32
   },
33 33
   created () {
34
-    this.code = localStorage.getItem('code')
35
-    this.getUserInfo({ code: this.code, luckdrawid: this.lotteryId }).then((res) => {
36
-      this.data.userInfo = this.userInfo
37
-      this.getLotteryList({ userid: this.data.userInfo.user.Id }).then((res) => {
38
-        this.data.list = this.list
39
-      })
34
+    this.data.userInfo = JSON.parse(localStorage.getItem('userInfo'))
35
+    this.getLotteryList({ userid: this.data.userInfo.user.Id }).then((res) => {
36
+      this.data.list = this.list
40 37
     })
41 38
   },
42 39
   methods: {