yuantianjiao 6 年之前
父節點
當前提交
849a260c40

+ 4
- 3
config/index.js 查看文件

10
     assetsSubDirectory: 'static',
10
     assetsSubDirectory: 'static',
11
     assetsPublicPath: '/',
11
     assetsPublicPath: '/',
12
     proxyTable: {
12
     proxyTable: {
13
-      '/api': {
13
+      '/check-api': {
14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
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
         // target: 'http://192.168.0.11:8088', //zys
17
         // target: 'http://192.168.0.11:8088', //zys
17
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
18
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
18
         // pathRewrite: {
19
         // pathRewrite: {
19
-        //   '^/api': 'api'
20
+        //   '^/check-api': ''
20
         // },
21
         // },
21
       },
22
       },
22
     },
23
     },

+ 2
- 1
src/components/qrCodeCard/qrCodeCard.vue 查看文件

21
         801: '1012-',
21
         801: '1012-',
22
         802: '1011-',
22
         802: '1011-',
23
         803: '1010-',
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 查看文件

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

+ 1
- 1
src/page/lotteryDetail/index.vue 查看文件

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

+ 3
- 6
src/page/lotteryList/index.vue 查看文件

31
     })
31
     })
32
   },
32
   },
33
   created () {
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
   methods: {
39
   methods: {