Explorar el Código

Merge branch 'master' of http://git.ycjcjy.com/xuchengxiang/niucai-user into master

张延森 hace 4 años
padre
commit
b6c21e75f8

+ 1
- 1
index.html Ver fichero

@@ -5,7 +5,7 @@
5 5
   <meta charset='utf-8'>
6 6
   <meta content='width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0' name='viewport'>
7 7
   <meta name="referrer" content="no-referrer">
8
-  <link rel="stylesheet" href="//at.alicdn.com/t/font_2022160_zgncjv2mcd.css">
8
+  <link rel="stylesheet" href="//at.alicdn.com/t/font_2022160_w52az879v6.css">
9 9
   <title>牛彩</title>
10 10
   <script>
11 11
     let Width = document.documentElement.clientWidth / 375 * 100

+ 223
- 37
package-lock.json Ver fichero

@@ -426,7 +426,6 @@
426 426
       "version": "3.2.1",
427 427
       "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
428 428
       "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
429
-      "dev": true,
430 429
       "requires": {
431 430
         "color-convert": "^1.9.0"
432 431
       }
@@ -2090,8 +2089,7 @@
2090 2089
     "base64-js": {
2091 2090
       "version": "1.3.0",
2092 2091
       "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz",
2093
-      "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==",
2094
-      "dev": true
2092
+      "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw=="
2095 2093
     },
2096 2094
     "batch": {
2097 2095
       "version": "0.6.1",
@@ -2380,11 +2378,29 @@
2380 2378
         "isarray": "^1.0.0"
2381 2379
       }
2382 2380
     },
2381
+    "buffer-alloc": {
2382
+      "version": "1.2.0",
2383
+      "resolved": "https://registry.npm.taobao.org/buffer-alloc/download/buffer-alloc-1.2.0.tgz",
2384
+      "integrity": "sha1-iQ3ZDZI6hz4I4Q5f1RpX5bfM4Ow=",
2385
+      "requires": {
2386
+        "buffer-alloc-unsafe": "^1.1.0",
2387
+        "buffer-fill": "^1.0.0"
2388
+      }
2389
+    },
2390
+    "buffer-alloc-unsafe": {
2391
+      "version": "1.1.0",
2392
+      "resolved": "https://registry.npm.taobao.org/buffer-alloc-unsafe/download/buffer-alloc-unsafe-1.1.0.tgz",
2393
+      "integrity": "sha1-vX3CauKXLQ7aJTvgYdupkjScGfA="
2394
+    },
2395
+    "buffer-fill": {
2396
+      "version": "1.0.0",
2397
+      "resolved": "https://registry.npm.taobao.org/buffer-fill/download/buffer-fill-1.0.0.tgz",
2398
+      "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw="
2399
+    },
2383 2400
     "buffer-from": {
2384 2401
       "version": "1.1.1",
2385 2402
       "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
2386
-      "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
2387
-      "dev": true
2403
+      "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
2388 2404
     },
2389 2405
     "buffer-indexof": {
2390 2406
       "version": "1.1.1",
@@ -2980,7 +2996,6 @@
2980 2996
       "version": "1.9.3",
2981 2997
       "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
2982 2998
       "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
2983
-      "dev": true,
2984 2999
       "requires": {
2985 3000
         "color-name": "1.1.3"
2986 3001
       }
@@ -2988,8 +3003,7 @@
2988 3003
     "color-name": {
2989 3004
       "version": "1.1.3",
2990 3005
       "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
2991
-      "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
2992
-      "dev": true
3006
+      "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
2993 3007
     },
2994 3008
     "color-string": {
2995 3009
       "version": "0.3.0",
@@ -3780,8 +3794,7 @@
3780 3794
     "decamelize": {
3781 3795
       "version": "1.2.0",
3782 3796
       "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
3783
-      "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
3784
-      "dev": true
3797
+      "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
3785 3798
     },
3786 3799
     "decode-uri-component": {
3787 3800
       "version": "0.2.0",
@@ -4000,6 +4013,11 @@
4000 4013
         "randombytes": "^2.0.0"
4001 4014
       }
4002 4015
     },
4016
+    "dijkstrajs": {
4017
+      "version": "1.0.1",
4018
+      "resolved": "https://registry.npm.taobao.org/dijkstrajs/download/dijkstrajs-1.0.1.tgz",
4019
+      "integrity": "sha1-082BIh4+pAdCz83lVtTpnpjdxxs="
4020
+    },
4003 4021
     "dir-glob": {
4004 4022
       "version": "2.0.0",
4005 4023
       "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz",
@@ -4230,8 +4248,7 @@
4230 4248
     "emoji-regex": {
4231 4249
       "version": "7.0.3",
4232 4250
       "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
4233
-      "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
4234
-      "dev": true
4251
+      "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA=="
4235 4252
     },
4236 4253
     "emojis-list": {
4237 4254
       "version": "2.1.0",
@@ -5520,7 +5537,8 @@
5520 5537
         "ansi-regex": {
5521 5538
           "version": "2.1.1",
5522 5539
           "bundled": true,
5523
-          "dev": true
5540
+          "dev": true,
5541
+          "optional": true
5524 5542
         },
5525 5543
         "aproba": {
5526 5544
           "version": "1.2.0",
@@ -5541,12 +5559,14 @@
5541 5559
         "balanced-match": {
5542 5560
           "version": "1.0.0",
5543 5561
           "bundled": true,
5544
-          "dev": true
5562
+          "dev": true,
5563
+          "optional": true
5545 5564
         },
5546 5565
         "brace-expansion": {
5547 5566
           "version": "1.1.11",
5548 5567
           "bundled": true,
5549 5568
           "dev": true,
5569
+          "optional": true,
5550 5570
           "requires": {
5551 5571
             "balanced-match": "^1.0.0",
5552 5572
             "concat-map": "0.0.1"
@@ -5561,17 +5581,20 @@
5561 5581
         "code-point-at": {
5562 5582
           "version": "1.1.0",
5563 5583
           "bundled": true,
5564
-          "dev": true
5584
+          "dev": true,
5585
+          "optional": true
5565 5586
         },
5566 5587
         "concat-map": {
5567 5588
           "version": "0.0.1",
5568 5589
           "bundled": true,
5569
-          "dev": true
5590
+          "dev": true,
5591
+          "optional": true
5570 5592
         },
5571 5593
         "console-control-strings": {
5572 5594
           "version": "1.1.0",
5573 5595
           "bundled": true,
5574
-          "dev": true
5596
+          "dev": true,
5597
+          "optional": true
5575 5598
         },
5576 5599
         "core-util-is": {
5577 5600
           "version": "1.0.2",
@@ -5688,7 +5711,8 @@
5688 5711
         "inherits": {
5689 5712
           "version": "2.0.3",
5690 5713
           "bundled": true,
5691
-          "dev": true
5714
+          "dev": true,
5715
+          "optional": true
5692 5716
         },
5693 5717
         "ini": {
5694 5718
           "version": "1.3.5",
@@ -5700,6 +5724,7 @@
5700 5724
           "version": "1.0.0",
5701 5725
           "bundled": true,
5702 5726
           "dev": true,
5727
+          "optional": true,
5703 5728
           "requires": {
5704 5729
             "number-is-nan": "^1.0.0"
5705 5730
           }
@@ -5714,6 +5739,7 @@
5714 5739
           "version": "3.0.4",
5715 5740
           "bundled": true,
5716 5741
           "dev": true,
5742
+          "optional": true,
5717 5743
           "requires": {
5718 5744
             "brace-expansion": "^1.1.7"
5719 5745
           }
@@ -5721,12 +5747,14 @@
5721 5747
         "minimist": {
5722 5748
           "version": "0.0.8",
5723 5749
           "bundled": true,
5724
-          "dev": true
5750
+          "dev": true,
5751
+          "optional": true
5725 5752
         },
5726 5753
         "minipass": {
5727 5754
           "version": "2.2.4",
5728 5755
           "bundled": true,
5729 5756
           "dev": true,
5757
+          "optional": true,
5730 5758
           "requires": {
5731 5759
             "safe-buffer": "^5.1.1",
5732 5760
             "yallist": "^3.0.0"
@@ -5745,6 +5773,7 @@
5745 5773
           "version": "0.5.1",
5746 5774
           "bundled": true,
5747 5775
           "dev": true,
5776
+          "optional": true,
5748 5777
           "requires": {
5749 5778
             "minimist": "0.0.8"
5750 5779
           }
@@ -5825,7 +5854,8 @@
5825 5854
         "number-is-nan": {
5826 5855
           "version": "1.0.1",
5827 5856
           "bundled": true,
5828
-          "dev": true
5857
+          "dev": true,
5858
+          "optional": true
5829 5859
         },
5830 5860
         "object-assign": {
5831 5861
           "version": "4.1.1",
@@ -5837,6 +5867,7 @@
5837 5867
           "version": "1.4.0",
5838 5868
           "bundled": true,
5839 5869
           "dev": true,
5870
+          "optional": true,
5840 5871
           "requires": {
5841 5872
             "wrappy": "1"
5842 5873
           }
@@ -5922,7 +5953,8 @@
5922 5953
         "safe-buffer": {
5923 5954
           "version": "5.1.1",
5924 5955
           "bundled": true,
5925
-          "dev": true
5956
+          "dev": true,
5957
+          "optional": true
5926 5958
         },
5927 5959
         "safer-buffer": {
5928 5960
           "version": "2.1.2",
@@ -5958,6 +5990,7 @@
5958 5990
           "version": "1.0.2",
5959 5991
           "bundled": true,
5960 5992
           "dev": true,
5993
+          "optional": true,
5961 5994
           "requires": {
5962 5995
             "code-point-at": "^1.0.0",
5963 5996
             "is-fullwidth-code-point": "^1.0.0",
@@ -5977,6 +6010,7 @@
5977 6010
           "version": "3.0.1",
5978 6011
           "bundled": true,
5979 6012
           "dev": true,
6013
+          "optional": true,
5980 6014
           "requires": {
5981 6015
             "ansi-regex": "^2.0.0"
5982 6016
           }
@@ -6020,12 +6054,14 @@
6020 6054
         "wrappy": {
6021 6055
           "version": "1.0.2",
6022 6056
           "bundled": true,
6023
-          "dev": true
6057
+          "dev": true,
6058
+          "optional": true
6024 6059
         },
6025 6060
         "yallist": {
6026 6061
           "version": "3.0.2",
6027 6062
           "bundled": true,
6028
-          "dev": true
6063
+          "dev": true,
6064
+          "optional": true
6029 6065
         }
6030 6066
       }
6031 6067
     },
@@ -6736,8 +6772,7 @@
6736 6772
     "ieee754": {
6737 6773
       "version": "1.1.12",
6738 6774
       "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz",
6739
-      "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==",
6740
-      "dev": true
6775
+      "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA=="
6741 6776
     },
6742 6777
     "iferr": {
6743 6778
       "version": "0.1.5",
@@ -7061,8 +7096,7 @@
7061 7096
     "is-fullwidth-code-point": {
7062 7097
       "version": "2.0.0",
7063 7098
       "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
7064
-      "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
7065
-      "dev": true
7099
+      "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
7066 7100
     },
7067 7101
     "is-generator-fn": {
7068 7102
       "version": "1.0.0",
@@ -9618,8 +9652,7 @@
9618 9652
     "path-exists": {
9619 9653
       "version": "3.0.0",
9620 9654
       "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
9621
-      "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
9622
-      "dev": true
9655
+      "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
9623 9656
     },
9624 9657
     "path-is-absolute": {
9625 9658
       "version": "1.0.1",
@@ -9729,6 +9762,11 @@
9729 9762
       "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
9730 9763
       "dev": true
9731 9764
     },
9765
+    "pngjs": {
9766
+      "version": "3.4.0",
9767
+      "resolved": "https://registry.npm.taobao.org/pngjs/download/pngjs-3.4.0.tgz",
9768
+      "integrity": "sha1-mcp9clll+2VYFOr2XzjxK72/VV8="
9769
+    },
9732 9770
     "portfinder": {
9733 9771
       "version": "1.0.19",
9734 9772
       "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.19.tgz",
@@ -12023,6 +12061,158 @@
12023 12061
       "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=",
12024 12062
       "dev": true
12025 12063
     },
12064
+    "qrcode": {
12065
+      "version": "1.4.4",
12066
+      "resolved": "https://registry.npm.taobao.org/qrcode/download/qrcode-1.4.4.tgz",
12067
+      "integrity": "sha1-8MQ1aKfnUQpV78O4jZYC9xlj6oM=",
12068
+      "requires": {
12069
+        "buffer": "^5.4.3",
12070
+        "buffer-alloc": "^1.2.0",
12071
+        "buffer-from": "^1.1.1",
12072
+        "dijkstrajs": "^1.0.1",
12073
+        "isarray": "^2.0.1",
12074
+        "pngjs": "^3.3.0",
12075
+        "yargs": "^13.2.4"
12076
+      },
12077
+      "dependencies": {
12078
+        "ansi-regex": {
12079
+          "version": "4.1.0",
12080
+          "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz",
12081
+          "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc="
12082
+        },
12083
+        "buffer": {
12084
+          "version": "5.6.0",
12085
+          "resolved": "https://registry.npm.taobao.org/buffer/download/buffer-5.6.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuffer%2Fdownload%2Fbuffer-5.6.0.tgz",
12086
+          "integrity": "sha1-oxdJ3H2B2E2wir+Te2uMQDP2J4Y=",
12087
+          "requires": {
12088
+            "base64-js": "^1.0.2",
12089
+            "ieee754": "^1.1.4"
12090
+          }
12091
+        },
12092
+        "camelcase": {
12093
+          "version": "5.3.1",
12094
+          "resolved": "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz?cache=0&sync_timestamp=1602349921044&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcamelcase%2Fdownload%2Fcamelcase-5.3.1.tgz",
12095
+          "integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA="
12096
+        },
12097
+        "cliui": {
12098
+          "version": "5.0.0",
12099
+          "resolved": "https://registry.npm.taobao.org/cliui/download/cliui-5.0.0.tgz?cache=0&sync_timestamp=1602861359936&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-5.0.0.tgz",
12100
+          "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=",
12101
+          "requires": {
12102
+            "string-width": "^3.1.0",
12103
+            "strip-ansi": "^5.2.0",
12104
+            "wrap-ansi": "^5.1.0"
12105
+          }
12106
+        },
12107
+        "find-up": {
12108
+          "version": "3.0.0",
12109
+          "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz",
12110
+          "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=",
12111
+          "requires": {
12112
+            "locate-path": "^3.0.0"
12113
+          }
12114
+        },
12115
+        "get-caller-file": {
12116
+          "version": "2.0.5",
12117
+          "resolved": "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz",
12118
+          "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34="
12119
+        },
12120
+        "isarray": {
12121
+          "version": "2.0.5",
12122
+          "resolved": "https://registry.npm.taobao.org/isarray/download/isarray-2.0.5.tgz",
12123
+          "integrity": "sha1-ivHkwSISRMxiRZ+vOJQNTmRKVyM="
12124
+        },
12125
+        "locate-path": {
12126
+          "version": "3.0.0",
12127
+          "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-3.0.0.tgz",
12128
+          "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=",
12129
+          "requires": {
12130
+            "p-locate": "^3.0.0",
12131
+            "path-exists": "^3.0.0"
12132
+          }
12133
+        },
12134
+        "p-limit": {
12135
+          "version": "2.3.0",
12136
+          "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz?cache=0&sync_timestamp=1594559696906&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-2.3.0.tgz",
12137
+          "integrity": "sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE=",
12138
+          "requires": {
12139
+            "p-try": "^2.0.0"
12140
+          }
12141
+        },
12142
+        "p-locate": {
12143
+          "version": "3.0.0",
12144
+          "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-3.0.0.tgz",
12145
+          "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=",
12146
+          "requires": {
12147
+            "p-limit": "^2.0.0"
12148
+          }
12149
+        },
12150
+        "p-try": {
12151
+          "version": "2.2.0",
12152
+          "resolved": "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz",
12153
+          "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY="
12154
+        },
12155
+        "require-main-filename": {
12156
+          "version": "2.0.0",
12157
+          "resolved": "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz",
12158
+          "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs="
12159
+        },
12160
+        "string-width": {
12161
+          "version": "3.1.0",
12162
+          "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz",
12163
+          "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=",
12164
+          "requires": {
12165
+            "emoji-regex": "^7.0.1",
12166
+            "is-fullwidth-code-point": "^2.0.0",
12167
+            "strip-ansi": "^5.1.0"
12168
+          }
12169
+        },
12170
+        "strip-ansi": {
12171
+          "version": "5.2.0",
12172
+          "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz",
12173
+          "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=",
12174
+          "requires": {
12175
+            "ansi-regex": "^4.1.0"
12176
+          }
12177
+        },
12178
+        "wrap-ansi": {
12179
+          "version": "5.1.0",
12180
+          "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-5.1.0.tgz",
12181
+          "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=",
12182
+          "requires": {
12183
+            "ansi-styles": "^3.2.0",
12184
+            "string-width": "^3.0.0",
12185
+            "strip-ansi": "^5.0.0"
12186
+          }
12187
+        },
12188
+        "yargs": {
12189
+          "version": "13.3.2",
12190
+          "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.3.2.tgz?cache=0&sync_timestamp=1602805668950&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-13.3.2.tgz",
12191
+          "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=",
12192
+          "requires": {
12193
+            "cliui": "^5.0.0",
12194
+            "find-up": "^3.0.0",
12195
+            "get-caller-file": "^2.0.1",
12196
+            "require-directory": "^2.1.1",
12197
+            "require-main-filename": "^2.0.0",
12198
+            "set-blocking": "^2.0.0",
12199
+            "string-width": "^3.0.0",
12200
+            "which-module": "^2.0.0",
12201
+            "y18n": "^4.0.0",
12202
+            "yargs-parser": "^13.1.2"
12203
+          }
12204
+        },
12205
+        "yargs-parser": {
12206
+          "version": "13.1.2",
12207
+          "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.1.2.tgz?cache=0&sync_timestamp=1602861360075&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.1.2.tgz",
12208
+          "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=",
12209
+          "requires": {
12210
+            "camelcase": "^5.0.0",
12211
+            "decamelize": "^1.2.0"
12212
+          }
12213
+        }
12214
+      }
12215
+    },
12026 12216
     "qs": {
12027 12217
       "version": "6.9.4",
12028 12218
       "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.9.4.tgz",
@@ -12743,8 +12933,7 @@
12743 12933
     "require-directory": {
12744 12934
       "version": "2.1.1",
12745 12935
       "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
12746
-      "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
12747
-      "dev": true
12936
+      "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
12748 12937
     },
12749 12938
     "require-from-string": {
12750 12939
       "version": "2.0.2",
@@ -13530,8 +13719,7 @@
13530 13719
     "set-blocking": {
13531 13720
       "version": "2.0.0",
13532 13721
       "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
13533
-      "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
13534
-      "dev": true
13722
+      "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
13535 13723
     },
13536 13724
     "set-value": {
13537 13725
       "version": "2.0.0",
@@ -15767,8 +15955,7 @@
15767 15955
     "which-module": {
15768 15956
       "version": "2.0.0",
15769 15957
       "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
15770
-      "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
15771
-      "dev": true
15958
+      "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
15772 15959
     },
15773 15960
     "wide-align": {
15774 15961
       "version": "1.1.3",
@@ -15897,8 +16084,7 @@
15897 16084
     "y18n": {
15898 16085
       "version": "4.0.0",
15899 16086
       "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
15900
-      "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
15901
-      "dev": true
16087
+      "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w=="
15902 16088
     },
15903 16089
     "yallist": {
15904 16090
       "version": "2.1.2",

+ 1
- 0
package.json Ver fichero

@@ -19,6 +19,7 @@
19 19
     "exports-loader": "^0.7.0",
20 20
     "js-md5": "^0.7.3",
21 21
     "mint-ui": "^2.2.13",
22
+    "qrcode": "^1.4.4",
22 23
     "qs": "^6.9.4",
23 24
     "script-loader": "^0.7.2",
24 25
     "vant": "^2.10.6",

BIN
src/assets/img/yaoqing.jpg Ver fichero


+ 1
- 1
src/components/common/MainPageContainer/index.vue Ver fichero

@@ -25,7 +25,7 @@
25 25
     <!-- tabbar -->
26 26
     <div class="TabBar flex-h" :style="{paddingBottom: `${MainPaddingBottom}px`}" v-if="ShowMainTabBar">
27 27
       <div class="flex-item" v-for="(item, index) in MainTabBar" :key="index">
28
-        <router-link :to="{name: item.router}" :class="{'active': item.id === MainTabBarActiveId}">
28
+        <router-link :to="{name: item.router}" :class="{'active': item.id === MainTabBarActiveId}" :replace="true">
29 29
           <i class="iconfont" :class="item.icon"></i>
30 30
           <span>{{item.name}}</span>
31 31
         </router-link>

+ 1
- 2
src/pages/Register/index.vue Ver fichero

@@ -74,7 +74,7 @@ export default {
74 74
     return {
75 75
       Phone: '',
76 76
       Code: '',
77
-      InviteCode: '',
77
+      InviteCode: this.$route.query.code || null,
78 78
       Password: '',
79 79
       DataLock: false,
80 80
       Timer: null,
@@ -100,7 +100,6 @@ export default {
100 100
       'SignIn'
101 101
     ]),
102 102
     Init () { // 初始化
103
-      // this.GetRegPhoneCode({ urlData: { phone: 18267901393 } })
104 103
     },
105 104
     ToReg () { // 去注册
106 105
       if (this.DataLock || !this.IsPhone(this.Phone) || this.Code === '' || this.Password === '') return

+ 26
- 2
src/pages/WoDe/XiaZaiErWeiMa/index.vue Ver fichero

@@ -1,22 +1,39 @@
1 1
 <template>
2 2
   <div class="Page">
3
-    <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="下载二维码">
3
+    <MainPageContainer @UserInfoChange="Init" :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="邀请注册">
4 4
       <div class="PageContainer">
5
-        下载二维码
5
+        <img src="../../../assets/img/yaoqing.jpg" width="100%" alt="">
6
+        <div class="centerLabel">
7
+          <span>您的邀请码为</span>
8
+          <span v-if="UserInfo !== null">{{UserInfo.inviteCode}}</span>
9
+          <span>好友也可在注册时直接填写邀请码</span>
10
+          <div class="QrCode">
11
+            <div>
12
+              <img v-if="QrCodeUrl !== null" :src="QrCodeUrl" class="contain" alt="">
13
+            </div>
14
+          </div>
15
+        </div>
6 16
       </div>
7 17
     </MainPageContainer>
8 18
   </div>
9 19
 </template>
10 20
 
11 21
 <script>
22
+import QRCode from 'qrcode'
12 23
 import MainPageContainer from '../../../components/common/MainPageContainer'
24
+import { createNamespacedHelpers } from 'vuex'
25
+const { mapState: mapUserState } = createNamespacedHelpers('user')
13 26
 export default {
14 27
   name: '',
15 28
   data () {
16 29
     return {
30
+      QrCodeUrl: null
17 31
     }
18 32
   },
19 33
   computed: {
34
+    ...mapUserState({
35
+      UserInfo: x => x.UserInfo
36
+    })
20 37
   },
21 38
   components: {
22 39
     MainPageContainer
@@ -28,6 +45,13 @@ export default {
28 45
     })
29 46
   },
30 47
   methods: {
48
+    Init () {
49
+      QRCode.toDataURL(`https://app.xnsport.cn/#/Register?code=${this.UserInfo.inviteCode}`).then((res) => {
50
+        this.QrCodeUrl = res
51
+      }).catch((res) => {
52
+        console.log(res)
53
+      })
54
+    }
31 55
   }
32 56
 }
33 57
 </script>

+ 43
- 0
src/pages/WoDe/XiaZaiErWeiMa/page.scss Ver fichero

@@ -7,5 +7,48 @@
7 7
     width: 100%;
8 8
     height: 100%;
9 9
     position: relative;
10
+    > div {
11
+      z-index: 2;
12
+      width: 70%;
13
+      background: #fff;
14
+      box-shadow: 0 0 0.02rem 0.02rem rgba(0, 0, 0, 0.05);
15
+      border-radius: 0.06rem;
16
+      padding: 0.15rem;
17
+      > span {
18
+        display: block;
19
+        text-align: center;
20
+        line-height: 1.5;
21
+        margin-top: 0.02rem;
22
+        &:nth-child(1) {
23
+          font-size: 0.16rem;
24
+          font-weight: bold;
25
+        }
26
+        &:nth-child(2) {
27
+          font-size: 0.2rem;
28
+          font-weight: bold;
29
+          color: #ff5100;
30
+        }
31
+        &:nth-child(3) {
32
+          font-size: 0.12rem;
33
+          color: #999;
34
+        }
35
+      }
36
+      > .QrCode {
37
+        border-top: 0.01rem dashed #ccc;
38
+        margin-top: 0.15rem;
39
+        padding-bottom: 100%;
40
+        position: relative;
41
+        overflow: hidden;
42
+        height: 0;
43
+        > div {
44
+          width: 50%;
45
+          position: absolute;
46
+          left: 25%;
47
+          top: 25%;
48
+          bottom: 25%;
49
+          overflow: hidden;
50
+        }
51
+      }
52
+    }
10 53
   }
11 54
 }

+ 24
- 0
src/pages/index/DaLeTouDingDan/index.vue Ver fichero

@@ -57,6 +57,18 @@
57 57
 
58 58
         <div class="Layer" v-if="ShowStore">
59 59
           <div class="centerLabel">
60
+            <span v-if="MyStoreList.length">我的店铺:</span>
61
+            <ul v-if="MyStoreList.length">
62
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
63
+                <div class="flex-item">
64
+                  <div>
65
+                    <span>{{item.name}}</span>
66
+                  </div>
67
+                </div>
68
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
69
+                <i class="iconfont iconyigouxuan active" v-else></i>
70
+              </li>
71
+            </ul>
60 72
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
61 73
             <ul v-if="RecommendStoreList.length">
62 74
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -102,6 +114,7 @@ export default {
102 114
   name: '',
103 115
   data () {
104 116
     return {
117
+      MyStoreList: [], // 我的店铺
105 118
       CurrentStoreName: null, // 当前选择店铺名称
106 119
       CurrentStoreId: null, // 当前选择店铺id
107 120
       RecommendStoreList: [], // 推荐店铺列表
@@ -135,6 +148,17 @@ export default {
135 148
     }).then((res) => {
136 149
       this.StoreList = res.data.data.nearest || []
137 150
       this.RecommendStoreList = res.data.data.recommend || []
151
+      this.MyStoreList = res.data.data.mine || []
152
+      if (this.MyStoreList.length) {
153
+        this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
154
+        this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
155
+      } else if (this.RecommendStoreList.length) {
156
+        this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
157
+        this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
158
+      } else if (this.StoreList.length) {
159
+        this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
160
+        this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
161
+      }
138 162
     })
139 163
   },
140 164
   mounted () {

+ 22
- 21
src/pages/index/DingDanZhiFuZhuangTai/index.vue Ver fichero

@@ -1,8 +1,16 @@
1 1
 <template>
2 2
   <div class="Page">
3
-    <MainPageContainer :ShowMainHeader="true" :ShowMainTabBar="true" MainHeaderTitle="首页" :MainTabBarActiveId="1">
3
+    <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="订单状态">
4 4
       <div class="PageContainer">
5
-        订单支付状态
5
+        <div class="centerLabel">
6
+          <i class="iconfont iconshibai" v-if="OrderStatus === 'Error'"></i>
7
+          <span v-if="OrderStatus === 'Error'">支付失败</span>
8
+          <i class="iconfont iconchenggong active" v-if="OrderStatus === 'Success'"></i>
9
+          <span v-if="OrderStatus === 'Success'">支付成功</span>
10
+          <a v-if="OrderStatus === 'Error'" :href="`/api/app/order/alipay/buylottery?orderId=${$route.query.id}&returlURL=${LocationOrigin}&token=${Jwt}`">重新支付</a>
11
+          <router-link :to="{ name: 'index' }">返回首页</router-link>
12
+          <a @click="$router.go(-1)">继续投注</a>
13
+        </div>
6 14
       </div>
7 15
     </MainPageContainer>
8 16
   </div>
@@ -10,21 +18,18 @@
10 18
 
11 19
 <script>
12 20
 import MainPageContainer from '../../../components/common/MainPageContainer'
13
-import { mapState, mapActions, createNamespacedHelpers } from 'vuex'
14
-const { mapState: mapIndexState, mapActions: mapIndexActions, mapMutations: mapIndexMutations } = createNamespacedHelpers('index')
21
+import { createNamespacedHelpers } from 'vuex'
22
+const { mapActions: mapUserActions } = createNamespacedHelpers('user')
15 23
 export default {
16 24
   name: 'index',
17 25
   data () {
18 26
     return {
27
+      OrderStatus: null,
28
+      LocationOrigin: encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${this.$route.query.id}`),
29
+      Jwt: window.localStorage.Jwt
19 30
     }
20 31
   },
21 32
   computed: {
22
-    ...mapState({
23
-      AllLotteryType: x => x.AllLotteryType // 所有彩种类型
24
-    }),
25
-    ...mapIndexState({
26
-      NewstLotteryRes: x => x.NewstLotteryRes // 最新数字彩开奖结果列表
27
-    })
28 33
   },
29 34
   components: {
30 35
     MainPageContainer
@@ -37,19 +42,15 @@ export default {
37 42
     })
38 43
   },
39 44
   methods: {
40
-    ...mapActions([
41
-      'GetAllLotteryType'
42
-    ]),
43
-    ...mapIndexActions([
44
-      'GetBanner',
45
-      'GetLotteryRes',
46
-      'GetNewstLotteryRes'
47
-    ]),
48
-    ...mapIndexMutations([
49
-      'EmptyBanner'
45
+    ...mapUserActions([
46
+      'GetAliPayStatus'
50 47
     ]),
51 48
     Init () { // 初始化
52
-
49
+      if (this.$route.query.id !== undefined) {
50
+        this.GetAliPayStatus({ urlData: { id: this.$route.query.id } }).then((res) => {
51
+          this.OrderStatus = res.data.data === 1 ? 'Success' : 'Error'
52
+        })
53
+      }
53 54
     }
54 55
   }
55 56
 }

+ 31
- 0
src/pages/index/DingDanZhiFuZhuangTai/page.scss Ver fichero

@@ -8,5 +8,36 @@
8 8
     height: 100%;
9 9
     position: relative;
10 10
     overflow: hidden;
11
+    > div {
12
+      width: 100%;
13
+      text-align: center;
14
+      > i {
15
+        font-size: 1rem;
16
+        color: #f10404;
17
+        &.active {
18
+          color: #39ce09;
19
+        }
20
+      }
21
+      > span {
22
+        display: block;
23
+        text-align: center;
24
+        font-size: 0.14rem;
25
+        line-height: 0.2rem;
26
+        margin-top: 0.2rem;
27
+        + a {
28
+          margin-top: 0.4rem;
29
+        }
30
+      }
31
+      > a {
32
+        width: 80%;
33
+        display: block;
34
+        font-size: 0.14rem;
35
+        color: #fff;
36
+        line-height: 0.4rem;
37
+        border-radius: 0.06rem;
38
+        background: #ff5100;
39
+        margin: 0.2rem auto 0;
40
+      }
41
+    }
11 42
   }
12 43
 }

+ 30
- 1
src/pages/index/LanQiuDingDan/index.vue Ver fichero

@@ -75,6 +75,18 @@
75 75
 
76 76
         <div class="Layer" v-if="ShowStore">
77 77
           <div class="centerLabel">
78
+            <span v-if="MyStoreList.length">我的店铺:</span>
79
+            <ul v-if="MyStoreList.length">
80
+              <li v-for="(item, index) in MyStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
81
+                <div class="flex-item">
82
+                  <div>
83
+                    <span>{{item.name}}</span>
84
+                  </div>
85
+                </div>
86
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
87
+                <i class="iconfont iconyigouxuan active" v-else></i>
88
+              </li>
89
+            </ul>
78 90
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
79 91
             <ul v-if="RecommendStoreList.length">
80 92
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
@@ -122,6 +134,7 @@ export default {
122 134
   name: '',
123 135
   data () {
124 136
     return {
137
+      MyStoreList: [],
125 138
       PriceArr: [0, 0], // 奖金区间
126 139
       AllParts: [], // 投注生成结果
127 140
       CurrentPassUnitNum: 0,
@@ -172,7 +185,6 @@ export default {
172 185
     ]),
173 186
     Init () { // 初始化
174 187
       this.PageList = [...this.LanQiuCart] // 赋值页面数据
175
-      console.log(this.PageList)
176 188
       this.ToGetStoreList() // 获取店铺列表
177 189
       if (this.$route.query.type === 'single') { // 单关
178 190
         this.CurrentPassCode = '1*1'
@@ -219,6 +231,7 @@ export default {
219 231
         this.TotalPrice = 0
220 232
         this.Multiple = 1
221 233
         this.DataLock = false
234
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
222 235
       }).catch((res) => {
223 236
         this.Toast(res.data.message)
224 237
         this.DataLock = false
@@ -233,6 +246,7 @@ export default {
233 246
       }).then((res) => {
234 247
         let StoreList = res.data.data.nearest || []
235 248
         let RecommendStoreList = res.data.data.recommend || []
249
+        let MyStoreList = res.data.data.mine || []
236 250
         StoreList.map((item) => {
237 251
           if (item.status - 0 === 1) {
238 252
             this.StoreList.push(item)
@@ -243,6 +257,21 @@ export default {
243 257
             this.RecommendStoreList.push(item)
244 258
           }
245 259
         })
260
+        MyStoreList.map((item) => {
261
+          if (item.status - 0 === 1) {
262
+            this.MyStoreList.push(item)
263
+          }
264
+        })
265
+        if (this.MyStoreList.length) {
266
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
267
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
268
+        } else if (this.RecommendStoreList.length) {
269
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
270
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
271
+        } else if (this.StoreList.length) {
272
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
273
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
274
+        }
246 275
       })
247 276
     },
248 277
     ToGetAllParts () { // 枚举投注

+ 25
- 0
src/pages/index/PaiLie3DingDan/index.vue Ver fichero

@@ -103,6 +103,18 @@
103 103
 
104 104
         <div class="Layer" v-if="ShowStore">
105 105
           <div class="centerLabel">
106
+            <span v-if="MyStoreList.length">我的店铺:</span>
107
+            <ul v-if="MyStoreList.length">
108
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
109
+                <div class="flex-item">
110
+                  <div>
111
+                    <span>{{item.name}}</span>
112
+                  </div>
113
+                </div>
114
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
115
+                <i class="iconfont iconyigouxuan active" v-else></i>
116
+              </li>
117
+            </ul>
106 118
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
107 119
             <ul v-if="RecommendStoreList.length">
108 120
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -147,6 +159,7 @@ export default {
147 159
   name: '',
148 160
   data () {
149 161
     return {
162
+      MyStoreList: [],
150 163
       CurrentStoreName: null, // 当前选择店铺名称
151 164
       CurrentStoreId: null, // 当前选择店铺id
152 165
       RecommendStoreList: [], // 推荐店铺列表
@@ -194,6 +207,17 @@ export default {
194 207
       }).then((res) => {
195 208
         this.StoreList = res.data.data.nearest || []
196 209
         this.RecommendStoreList = res.data.data.recommend || []
210
+        this.MyStoreList = res.data.data.mine || []
211
+        if (this.MyStoreList.length) {
212
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
213
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
214
+        } else if (this.RecommendStoreList.length) {
215
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
216
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
217
+        } else if (this.StoreList.length) {
218
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
219
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
220
+        }
197 221
       })
198 222
     },
199 223
     ReturnType (type) { // 投注类型返回值
@@ -265,6 +289,7 @@ export default {
265 289
         this.TotalPrize = 0
266 290
         this.Multiple = 1
267 291
         this.DataLock = false
292
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
268 293
       }).catch((res) => {
269 294
         this.Toast(res.data.message)
270 295
         this.DataLock = false

+ 25
- 0
src/pages/index/PaiLie5DingDan/index.vue Ver fichero

@@ -94,6 +94,18 @@
94 94
 
95 95
         <div class="Layer" v-if="ShowStore">
96 96
           <div class="centerLabel">
97
+            <span v-if="MyStoreList.length">我的店铺:</span>
98
+            <ul v-if="MyStoreList.length">
99
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
100
+                <div class="flex-item">
101
+                  <div>
102
+                    <span>{{item.name}}</span>
103
+                  </div>
104
+                </div>
105
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
106
+                <i class="iconfont iconyigouxuan active" v-else></i>
107
+              </li>
108
+            </ul>
97 109
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
98 110
             <ul v-if="RecommendStoreList.length">
99 111
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -138,6 +150,7 @@ export default {
138 150
   name: '',
139 151
   data () {
140 152
     return {
153
+      MyStoreList: [],
141 154
       CurrentStoreName: null, // 当前选择店铺名称
142 155
       CurrentStoreId: null, // 当前选择店铺id
143 156
       RecommendStoreList: [], // 推荐店铺列表
@@ -193,6 +206,17 @@ export default {
193 206
       }).then((res) => {
194 207
         this.StoreList = res.data.data.nearest || []
195 208
         this.RecommendStoreList = res.data.data.recommend || []
209
+        this.MyStoreList = res.data.data.mine || []
210
+        if (this.MyStoreList.length) {
211
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
212
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
213
+        } else if (this.RecommendStoreList.length) {
214
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
215
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
216
+        } else if (this.StoreList.length) {
217
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
218
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
219
+        }
196 220
       })
197 221
     },
198 222
     ToPostBetting () { // 去下注
@@ -237,6 +261,7 @@ export default {
237 261
         this.TotalPrize = 0
238 262
         this.Multiple = 1
239 263
         this.DataLock = false
264
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
240 265
       }).catch((res) => {
241 266
         this.Toast(res.data.message)
242 267
         this.DataLock = false

+ 25
- 0
src/pages/index/ShuangSeQiuDingDan/index.vue Ver fichero

@@ -56,6 +56,18 @@
56 56
 
57 57
         <div class="Layer" v-if="ShowStore">
58 58
           <div class="centerLabel">
59
+            <span v-if="MyStoreList.length">我的店铺:</span>
60
+            <ul v-if="MyStoreList.length">
61
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
62
+                <div class="flex-item">
63
+                  <div>
64
+                    <span>{{item.name}}</span>
65
+                  </div>
66
+                </div>
67
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
68
+                <i class="iconfont iconyigouxuan active" v-else></i>
69
+              </li>
70
+            </ul>
59 71
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
60 72
             <ul v-if="RecommendStoreList.length">
61 73
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -101,6 +113,7 @@ export default {
101 113
   name: '',
102 114
   data () {
103 115
     return {
116
+      MyStoreList: [],
104 117
       CurrentStoreName: null, // 当前选择店铺名称
105 118
       CurrentStoreId: null, // 当前选择店铺id
106 119
       RecommendStoreList: [], // 推荐店铺列表
@@ -134,6 +147,17 @@ export default {
134 147
     }).then((res) => {
135 148
       this.StoreList = res.data.data.nearest || []
136 149
       this.RecommendStoreList = res.data.data.recommend || []
150
+      this.MyStoreList = res.data.data.mine || []
151
+      if (this.MyStoreList.length) {
152
+        this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
153
+        this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
154
+      } else if (this.RecommendStoreList.length) {
155
+        this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
156
+        this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
157
+      } else if (this.StoreList.length) {
158
+        this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
159
+        this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
160
+      }
137 161
     })
138 162
   },
139 163
   mounted () {
@@ -188,6 +212,7 @@ export default {
188 212
         this.TotalPrize = 0
189 213
         this.Multiple = 1
190 214
         this.DataLock = false
215
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
191 216
       }).catch((res) => {
192 217
         this.Toast(res.data.message)
193 218
         this.DataLock = false

+ 30
- 0
src/pages/index/ZuQiuDingDan/index.vue Ver fichero

@@ -75,6 +75,18 @@
75 75
 
76 76
         <div class="Layer" v-if="ShowStore">
77 77
           <div class="centerLabel">
78
+            <span v-if="MyStoreList.length">我的店铺:</span>
79
+            <ul v-if="MyStoreList.length">
80
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
81
+                <div class="flex-item">
82
+                  <div>
83
+                    <span>{{item.name}}</span>
84
+                  </div>
85
+                </div>
86
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
87
+                <i class="iconfont iconyigouxuan active" v-else></i>
88
+              </li>
89
+            </ul>
78 90
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
79 91
             <ul v-if="RecommendStoreList.length">
80 92
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
@@ -122,6 +134,7 @@ export default {
122 134
   name: '',
123 135
   data () {
124 136
     return {
137
+      MyStoreList: [],
125 138
       PriceArr: [0, 0], // 奖金区间
126 139
       AllParts: [], // 投注生成结果
127 140
       CurrentPassUnitNum: 0,
@@ -219,6 +232,7 @@ export default {
219 232
         this.TotalPrice = 0
220 233
         this.Multiple = 1
221 234
         this.DataLock = false
235
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
222 236
       }).catch((res) => {
223 237
         this.Toast(res.data.message)
224 238
         this.DataLock = false
@@ -233,6 +247,7 @@ export default {
233 247
       }).then((res) => {
234 248
         let StoreList = res.data.data.nearest || []
235 249
         let RecommendStoreList = res.data.data.recommend || []
250
+        let MyStoreList = res.data.data.mine || []
236 251
         StoreList.map((item) => {
237 252
           if (item.status - 0 === 1) {
238 253
             this.StoreList.push(item)
@@ -243,6 +258,21 @@ export default {
243 258
             this.RecommendStoreList.push(item)
244 259
           }
245 260
         })
261
+        MyStoreList.map((item) => {
262
+          if (item.status - 0 === 1) {
263
+            this.MyStoreList.push(item)
264
+          }
265
+        })
266
+        if (this.MyStoreList.length) {
267
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
268
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
269
+        } else if (this.RecommendStoreList.length) {
270
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
271
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
272
+        } else if (this.StoreList.length) {
273
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
274
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
275
+        }
246 276
       })
247 277
     },
248 278
     ToGetAllParts () { // 枚举投注

+ 5
- 0
src/store/user/index.js Ver fichero

@@ -114,6 +114,11 @@ export default {
114 114
     }
115 115
   },
116 116
   actions: {
117
+    GetAliPayStatus (context, payload) { // 获取支付宝支付结果
118
+      return new Promise((resolve, reject) => {
119
+        ToolClass.Axios(resolve, reject, Api.GetAliPayStatus, context, payload, 1000)
120
+      })
121
+    },
117 122
     CreateAliPayOrder (context, payload) { // 创建支付宝订单
118 123
       return new Promise((resolve, reject) => {
119 124
         ToolClass.Axios(resolve, reject, Api.CreateAliPayOrder, context, payload, 1000)

+ 4
- 0
src/util/Api.js Ver fichero

@@ -77,6 +77,10 @@ const $api = {
77 77
   UpdateUserInfo: { // 更新用户信息
78 78
     method: 'put',
79 79
     url: `${prefix}/app/customer/:id`
80
+  },
81
+  GetAliPayStatus: { // 获取支付宝支付结果
82
+    method: 'get',
83
+    url: `${prefix}/app/order/:id/paystatus`
80 84
   }
81 85
 }
82 86