Browse Source

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

张延森 4 years ago
parent
commit
b6c21e75f8

+ 1
- 1
index.html View File

5
   <meta charset='utf-8'>
5
   <meta charset='utf-8'>
6
   <meta content='width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0' name='viewport'>
6
   <meta content='width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0' name='viewport'>
7
   <meta name="referrer" content="no-referrer">
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
   <title>牛彩</title>
9
   <title>牛彩</title>
10
   <script>
10
   <script>
11
     let Width = document.documentElement.clientWidth / 375 * 100
11
     let Width = document.documentElement.clientWidth / 375 * 100

+ 223
- 37
package-lock.json View File

426
       "version": "3.2.1",
426
       "version": "3.2.1",
427
       "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
427
       "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
428
       "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
428
       "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
429
-      "dev": true,
430
       "requires": {
429
       "requires": {
431
         "color-convert": "^1.9.0"
430
         "color-convert": "^1.9.0"
432
       }
431
       }
2090
     "base64-js": {
2089
     "base64-js": {
2091
       "version": "1.3.0",
2090
       "version": "1.3.0",
2092
       "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz",
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
     "batch": {
2094
     "batch": {
2097
       "version": "0.6.1",
2095
       "version": "0.6.1",
2380
         "isarray": "^1.0.0"
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
     "buffer-from": {
2400
     "buffer-from": {
2384
       "version": "1.1.1",
2401
       "version": "1.1.1",
2385
       "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
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
     "buffer-indexof": {
2405
     "buffer-indexof": {
2390
       "version": "1.1.1",
2406
       "version": "1.1.1",
2980
       "version": "1.9.3",
2996
       "version": "1.9.3",
2981
       "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
2997
       "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
2982
       "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
2998
       "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
2983
-      "dev": true,
2984
       "requires": {
2999
       "requires": {
2985
         "color-name": "1.1.3"
3000
         "color-name": "1.1.3"
2986
       }
3001
       }
2988
     "color-name": {
3003
     "color-name": {
2989
       "version": "1.1.3",
3004
       "version": "1.1.3",
2990
       "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
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
     "color-string": {
3008
     "color-string": {
2995
       "version": "0.3.0",
3009
       "version": "0.3.0",
3780
     "decamelize": {
3794
     "decamelize": {
3781
       "version": "1.2.0",
3795
       "version": "1.2.0",
3782
       "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
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
     "decode-uri-component": {
3799
     "decode-uri-component": {
3787
       "version": "0.2.0",
3800
       "version": "0.2.0",
4000
         "randombytes": "^2.0.0"
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
     "dir-glob": {
4021
     "dir-glob": {
4004
       "version": "2.0.0",
4022
       "version": "2.0.0",
4005
       "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz",
4023
       "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz",
4230
     "emoji-regex": {
4248
     "emoji-regex": {
4231
       "version": "7.0.3",
4249
       "version": "7.0.3",
4232
       "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
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
     "emojis-list": {
4253
     "emojis-list": {
4237
       "version": "2.1.0",
4254
       "version": "2.1.0",
5520
         "ansi-regex": {
5537
         "ansi-regex": {
5521
           "version": "2.1.1",
5538
           "version": "2.1.1",
5522
           "bundled": true,
5539
           "bundled": true,
5523
-          "dev": true
5540
+          "dev": true,
5541
+          "optional": true
5524
         },
5542
         },
5525
         "aproba": {
5543
         "aproba": {
5526
           "version": "1.2.0",
5544
           "version": "1.2.0",
5541
         "balanced-match": {
5559
         "balanced-match": {
5542
           "version": "1.0.0",
5560
           "version": "1.0.0",
5543
           "bundled": true,
5561
           "bundled": true,
5544
-          "dev": true
5562
+          "dev": true,
5563
+          "optional": true
5545
         },
5564
         },
5546
         "brace-expansion": {
5565
         "brace-expansion": {
5547
           "version": "1.1.11",
5566
           "version": "1.1.11",
5548
           "bundled": true,
5567
           "bundled": true,
5549
           "dev": true,
5568
           "dev": true,
5569
+          "optional": true,
5550
           "requires": {
5570
           "requires": {
5551
             "balanced-match": "^1.0.0",
5571
             "balanced-match": "^1.0.0",
5552
             "concat-map": "0.0.1"
5572
             "concat-map": "0.0.1"
5561
         "code-point-at": {
5581
         "code-point-at": {
5562
           "version": "1.1.0",
5582
           "version": "1.1.0",
5563
           "bundled": true,
5583
           "bundled": true,
5564
-          "dev": true
5584
+          "dev": true,
5585
+          "optional": true
5565
         },
5586
         },
5566
         "concat-map": {
5587
         "concat-map": {
5567
           "version": "0.0.1",
5588
           "version": "0.0.1",
5568
           "bundled": true,
5589
           "bundled": true,
5569
-          "dev": true
5590
+          "dev": true,
5591
+          "optional": true
5570
         },
5592
         },
5571
         "console-control-strings": {
5593
         "console-control-strings": {
5572
           "version": "1.1.0",
5594
           "version": "1.1.0",
5573
           "bundled": true,
5595
           "bundled": true,
5574
-          "dev": true
5596
+          "dev": true,
5597
+          "optional": true
5575
         },
5598
         },
5576
         "core-util-is": {
5599
         "core-util-is": {
5577
           "version": "1.0.2",
5600
           "version": "1.0.2",
5688
         "inherits": {
5711
         "inherits": {
5689
           "version": "2.0.3",
5712
           "version": "2.0.3",
5690
           "bundled": true,
5713
           "bundled": true,
5691
-          "dev": true
5714
+          "dev": true,
5715
+          "optional": true
5692
         },
5716
         },
5693
         "ini": {
5717
         "ini": {
5694
           "version": "1.3.5",
5718
           "version": "1.3.5",
5700
           "version": "1.0.0",
5724
           "version": "1.0.0",
5701
           "bundled": true,
5725
           "bundled": true,
5702
           "dev": true,
5726
           "dev": true,
5727
+          "optional": true,
5703
           "requires": {
5728
           "requires": {
5704
             "number-is-nan": "^1.0.0"
5729
             "number-is-nan": "^1.0.0"
5705
           }
5730
           }
5714
           "version": "3.0.4",
5739
           "version": "3.0.4",
5715
           "bundled": true,
5740
           "bundled": true,
5716
           "dev": true,
5741
           "dev": true,
5742
+          "optional": true,
5717
           "requires": {
5743
           "requires": {
5718
             "brace-expansion": "^1.1.7"
5744
             "brace-expansion": "^1.1.7"
5719
           }
5745
           }
5721
         "minimist": {
5747
         "minimist": {
5722
           "version": "0.0.8",
5748
           "version": "0.0.8",
5723
           "bundled": true,
5749
           "bundled": true,
5724
-          "dev": true
5750
+          "dev": true,
5751
+          "optional": true
5725
         },
5752
         },
5726
         "minipass": {
5753
         "minipass": {
5727
           "version": "2.2.4",
5754
           "version": "2.2.4",
5728
           "bundled": true,
5755
           "bundled": true,
5729
           "dev": true,
5756
           "dev": true,
5757
+          "optional": true,
5730
           "requires": {
5758
           "requires": {
5731
             "safe-buffer": "^5.1.1",
5759
             "safe-buffer": "^5.1.1",
5732
             "yallist": "^3.0.0"
5760
             "yallist": "^3.0.0"
5745
           "version": "0.5.1",
5773
           "version": "0.5.1",
5746
           "bundled": true,
5774
           "bundled": true,
5747
           "dev": true,
5775
           "dev": true,
5776
+          "optional": true,
5748
           "requires": {
5777
           "requires": {
5749
             "minimist": "0.0.8"
5778
             "minimist": "0.0.8"
5750
           }
5779
           }
5825
         "number-is-nan": {
5854
         "number-is-nan": {
5826
           "version": "1.0.1",
5855
           "version": "1.0.1",
5827
           "bundled": true,
5856
           "bundled": true,
5828
-          "dev": true
5857
+          "dev": true,
5858
+          "optional": true
5829
         },
5859
         },
5830
         "object-assign": {
5860
         "object-assign": {
5831
           "version": "4.1.1",
5861
           "version": "4.1.1",
5837
           "version": "1.4.0",
5867
           "version": "1.4.0",
5838
           "bundled": true,
5868
           "bundled": true,
5839
           "dev": true,
5869
           "dev": true,
5870
+          "optional": true,
5840
           "requires": {
5871
           "requires": {
5841
             "wrappy": "1"
5872
             "wrappy": "1"
5842
           }
5873
           }
5922
         "safe-buffer": {
5953
         "safe-buffer": {
5923
           "version": "5.1.1",
5954
           "version": "5.1.1",
5924
           "bundled": true,
5955
           "bundled": true,
5925
-          "dev": true
5956
+          "dev": true,
5957
+          "optional": true
5926
         },
5958
         },
5927
         "safer-buffer": {
5959
         "safer-buffer": {
5928
           "version": "2.1.2",
5960
           "version": "2.1.2",
5958
           "version": "1.0.2",
5990
           "version": "1.0.2",
5959
           "bundled": true,
5991
           "bundled": true,
5960
           "dev": true,
5992
           "dev": true,
5993
+          "optional": true,
5961
           "requires": {
5994
           "requires": {
5962
             "code-point-at": "^1.0.0",
5995
             "code-point-at": "^1.0.0",
5963
             "is-fullwidth-code-point": "^1.0.0",
5996
             "is-fullwidth-code-point": "^1.0.0",
5977
           "version": "3.0.1",
6010
           "version": "3.0.1",
5978
           "bundled": true,
6011
           "bundled": true,
5979
           "dev": true,
6012
           "dev": true,
6013
+          "optional": true,
5980
           "requires": {
6014
           "requires": {
5981
             "ansi-regex": "^2.0.0"
6015
             "ansi-regex": "^2.0.0"
5982
           }
6016
           }
6020
         "wrappy": {
6054
         "wrappy": {
6021
           "version": "1.0.2",
6055
           "version": "1.0.2",
6022
           "bundled": true,
6056
           "bundled": true,
6023
-          "dev": true
6057
+          "dev": true,
6058
+          "optional": true
6024
         },
6059
         },
6025
         "yallist": {
6060
         "yallist": {
6026
           "version": "3.0.2",
6061
           "version": "3.0.2",
6027
           "bundled": true,
6062
           "bundled": true,
6028
-          "dev": true
6063
+          "dev": true,
6064
+          "optional": true
6029
         }
6065
         }
6030
       }
6066
       }
6031
     },
6067
     },
6736
     "ieee754": {
6772
     "ieee754": {
6737
       "version": "1.1.12",
6773
       "version": "1.1.12",
6738
       "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz",
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
     "iferr": {
6777
     "iferr": {
6743
       "version": "0.1.5",
6778
       "version": "0.1.5",
7061
     "is-fullwidth-code-point": {
7096
     "is-fullwidth-code-point": {
7062
       "version": "2.0.0",
7097
       "version": "2.0.0",
7063
       "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
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
     "is-generator-fn": {
7101
     "is-generator-fn": {
7068
       "version": "1.0.0",
7102
       "version": "1.0.0",
9618
     "path-exists": {
9652
     "path-exists": {
9619
       "version": "3.0.0",
9653
       "version": "3.0.0",
9620
       "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
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
     "path-is-absolute": {
9657
     "path-is-absolute": {
9625
       "version": "1.0.1",
9658
       "version": "1.0.1",
9729
       "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
9762
       "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
9730
       "dev": true
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
     "portfinder": {
9770
     "portfinder": {
9733
       "version": "1.0.19",
9771
       "version": "1.0.19",
9734
       "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.19.tgz",
9772
       "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.19.tgz",
12023
       "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=",
12061
       "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=",
12024
       "dev": true
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
     "qs": {
12216
     "qs": {
12027
       "version": "6.9.4",
12217
       "version": "6.9.4",
12028
       "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.9.4.tgz",
12218
       "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.9.4.tgz",
12743
     "require-directory": {
12933
     "require-directory": {
12744
       "version": "2.1.1",
12934
       "version": "2.1.1",
12745
       "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
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
     "require-from-string": {
12938
     "require-from-string": {
12750
       "version": "2.0.2",
12939
       "version": "2.0.2",
13530
     "set-blocking": {
13719
     "set-blocking": {
13531
       "version": "2.0.0",
13720
       "version": "2.0.0",
13532
       "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
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
     "set-value": {
13724
     "set-value": {
13537
       "version": "2.0.0",
13725
       "version": "2.0.0",
15767
     "which-module": {
15955
     "which-module": {
15768
       "version": "2.0.0",
15956
       "version": "2.0.0",
15769
       "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
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
     "wide-align": {
15960
     "wide-align": {
15774
       "version": "1.1.3",
15961
       "version": "1.1.3",
15897
     "y18n": {
16084
     "y18n": {
15898
       "version": "4.0.0",
16085
       "version": "4.0.0",
15899
       "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
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
     "yallist": {
16089
     "yallist": {
15904
       "version": "2.1.2",
16090
       "version": "2.1.2",

+ 1
- 0
package.json View File

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

BIN
src/assets/img/yaoqing.jpg View File


+ 1
- 1
src/components/common/MainPageContainer/index.vue View File

25
     <!-- tabbar -->
25
     <!-- tabbar -->
26
     <div class="TabBar flex-h" :style="{paddingBottom: `${MainPaddingBottom}px`}" v-if="ShowMainTabBar">
26
     <div class="TabBar flex-h" :style="{paddingBottom: `${MainPaddingBottom}px`}" v-if="ShowMainTabBar">
27
       <div class="flex-item" v-for="(item, index) in MainTabBar" :key="index">
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
           <i class="iconfont" :class="item.icon"></i>
29
           <i class="iconfont" :class="item.icon"></i>
30
           <span>{{item.name}}</span>
30
           <span>{{item.name}}</span>
31
         </router-link>
31
         </router-link>

+ 1
- 2
src/pages/Register/index.vue View File

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

+ 26
- 2
src/pages/WoDe/XiaZaiErWeiMa/index.vue View File

1
 <template>
1
 <template>
2
   <div class="Page">
2
   <div class="Page">
3
-    <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="下载二维码">
3
+    <MainPageContainer @UserInfoChange="Init" :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="邀请注册">
4
       <div class="PageContainer">
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
       </div>
16
       </div>
7
     </MainPageContainer>
17
     </MainPageContainer>
8
   </div>
18
   </div>
9
 </template>
19
 </template>
10
 
20
 
11
 <script>
21
 <script>
22
+import QRCode from 'qrcode'
12
 import MainPageContainer from '../../../components/common/MainPageContainer'
23
 import MainPageContainer from '../../../components/common/MainPageContainer'
24
+import { createNamespacedHelpers } from 'vuex'
25
+const { mapState: mapUserState } = createNamespacedHelpers('user')
13
 export default {
26
 export default {
14
   name: '',
27
   name: '',
15
   data () {
28
   data () {
16
     return {
29
     return {
30
+      QrCodeUrl: null
17
     }
31
     }
18
   },
32
   },
19
   computed: {
33
   computed: {
34
+    ...mapUserState({
35
+      UserInfo: x => x.UserInfo
36
+    })
20
   },
37
   },
21
   components: {
38
   components: {
22
     MainPageContainer
39
     MainPageContainer
28
     })
45
     })
29
   },
46
   },
30
   methods: {
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
 </script>
57
 </script>

+ 43
- 0
src/pages/WoDe/XiaZaiErWeiMa/page.scss View File

7
     width: 100%;
7
     width: 100%;
8
     height: 100%;
8
     height: 100%;
9
     position: relative;
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 View File

57
 
57
 
58
         <div class="Layer" v-if="ShowStore">
58
         <div class="Layer" v-if="ShowStore">
59
           <div class="centerLabel">
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
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
72
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
61
             <ul v-if="RecommendStoreList.length">
73
             <ul v-if="RecommendStoreList.length">
62
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
74
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
102
   name: '',
114
   name: '',
103
   data () {
115
   data () {
104
     return {
116
     return {
117
+      MyStoreList: [], // 我的店铺
105
       CurrentStoreName: null, // 当前选择店铺名称
118
       CurrentStoreName: null, // 当前选择店铺名称
106
       CurrentStoreId: null, // 当前选择店铺id
119
       CurrentStoreId: null, // 当前选择店铺id
107
       RecommendStoreList: [], // 推荐店铺列表
120
       RecommendStoreList: [], // 推荐店铺列表
135
     }).then((res) => {
148
     }).then((res) => {
136
       this.StoreList = res.data.data.nearest || []
149
       this.StoreList = res.data.data.nearest || []
137
       this.RecommendStoreList = res.data.data.recommend || []
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
   mounted () {
164
   mounted () {

+ 22
- 21
src/pages/index/DingDanZhiFuZhuangTai/index.vue View File

1
 <template>
1
 <template>
2
   <div class="Page">
2
   <div class="Page">
3
-    <MainPageContainer :ShowMainHeader="true" :ShowMainTabBar="true" MainHeaderTitle="首页" :MainTabBarActiveId="1">
3
+    <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="订单状态">
4
       <div class="PageContainer">
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
       </div>
14
       </div>
7
     </MainPageContainer>
15
     </MainPageContainer>
8
   </div>
16
   </div>
10
 
18
 
11
 <script>
19
 <script>
12
 import MainPageContainer from '../../../components/common/MainPageContainer'
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
 export default {
23
 export default {
16
   name: 'index',
24
   name: 'index',
17
   data () {
25
   data () {
18
     return {
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
   computed: {
32
   computed: {
22
-    ...mapState({
23
-      AllLotteryType: x => x.AllLotteryType // 所有彩种类型
24
-    }),
25
-    ...mapIndexState({
26
-      NewstLotteryRes: x => x.NewstLotteryRes // 最新数字彩开奖结果列表
27
-    })
28
   },
33
   },
29
   components: {
34
   components: {
30
     MainPageContainer
35
     MainPageContainer
37
     })
42
     })
38
   },
43
   },
39
   methods: {
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
     Init () { // 初始化
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 View File

8
     height: 100%;
8
     height: 100%;
9
     position: relative;
9
     position: relative;
10
     overflow: hidden;
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 View File

75
 
75
 
76
         <div class="Layer" v-if="ShowStore">
76
         <div class="Layer" v-if="ShowStore">
77
           <div class="centerLabel">
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
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
90
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
79
             <ul v-if="RecommendStoreList.length">
91
             <ul v-if="RecommendStoreList.length">
80
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
92
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
122
   name: '',
134
   name: '',
123
   data () {
135
   data () {
124
     return {
136
     return {
137
+      MyStoreList: [],
125
       PriceArr: [0, 0], // 奖金区间
138
       PriceArr: [0, 0], // 奖金区间
126
       AllParts: [], // 投注生成结果
139
       AllParts: [], // 投注生成结果
127
       CurrentPassUnitNum: 0,
140
       CurrentPassUnitNum: 0,
172
     ]),
185
     ]),
173
     Init () { // 初始化
186
     Init () { // 初始化
174
       this.PageList = [...this.LanQiuCart] // 赋值页面数据
187
       this.PageList = [...this.LanQiuCart] // 赋值页面数据
175
-      console.log(this.PageList)
176
       this.ToGetStoreList() // 获取店铺列表
188
       this.ToGetStoreList() // 获取店铺列表
177
       if (this.$route.query.type === 'single') { // 单关
189
       if (this.$route.query.type === 'single') { // 单关
178
         this.CurrentPassCode = '1*1'
190
         this.CurrentPassCode = '1*1'
219
         this.TotalPrice = 0
231
         this.TotalPrice = 0
220
         this.Multiple = 1
232
         this.Multiple = 1
221
         this.DataLock = false
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
       }).catch((res) => {
235
       }).catch((res) => {
223
         this.Toast(res.data.message)
236
         this.Toast(res.data.message)
224
         this.DataLock = false
237
         this.DataLock = false
233
       }).then((res) => {
246
       }).then((res) => {
234
         let StoreList = res.data.data.nearest || []
247
         let StoreList = res.data.data.nearest || []
235
         let RecommendStoreList = res.data.data.recommend || []
248
         let RecommendStoreList = res.data.data.recommend || []
249
+        let MyStoreList = res.data.data.mine || []
236
         StoreList.map((item) => {
250
         StoreList.map((item) => {
237
           if (item.status - 0 === 1) {
251
           if (item.status - 0 === 1) {
238
             this.StoreList.push(item)
252
             this.StoreList.push(item)
243
             this.RecommendStoreList.push(item)
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
     ToGetAllParts () { // 枚举投注
277
     ToGetAllParts () { // 枚举投注

+ 25
- 0
src/pages/index/PaiLie3DingDan/index.vue View File

103
 
103
 
104
         <div class="Layer" v-if="ShowStore">
104
         <div class="Layer" v-if="ShowStore">
105
           <div class="centerLabel">
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
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
118
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
107
             <ul v-if="RecommendStoreList.length">
119
             <ul v-if="RecommendStoreList.length">
108
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
120
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
147
   name: '',
159
   name: '',
148
   data () {
160
   data () {
149
     return {
161
     return {
162
+      MyStoreList: [],
150
       CurrentStoreName: null, // 当前选择店铺名称
163
       CurrentStoreName: null, // 当前选择店铺名称
151
       CurrentStoreId: null, // 当前选择店铺id
164
       CurrentStoreId: null, // 当前选择店铺id
152
       RecommendStoreList: [], // 推荐店铺列表
165
       RecommendStoreList: [], // 推荐店铺列表
194
       }).then((res) => {
207
       }).then((res) => {
195
         this.StoreList = res.data.data.nearest || []
208
         this.StoreList = res.data.data.nearest || []
196
         this.RecommendStoreList = res.data.data.recommend || []
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
     ReturnType (type) { // 投注类型返回值
223
     ReturnType (type) { // 投注类型返回值
265
         this.TotalPrize = 0
289
         this.TotalPrize = 0
266
         this.Multiple = 1
290
         this.Multiple = 1
267
         this.DataLock = false
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
       }).catch((res) => {
293
       }).catch((res) => {
269
         this.Toast(res.data.message)
294
         this.Toast(res.data.message)
270
         this.DataLock = false
295
         this.DataLock = false

+ 25
- 0
src/pages/index/PaiLie5DingDan/index.vue View File

94
 
94
 
95
         <div class="Layer" v-if="ShowStore">
95
         <div class="Layer" v-if="ShowStore">
96
           <div class="centerLabel">
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
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
109
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
98
             <ul v-if="RecommendStoreList.length">
110
             <ul v-if="RecommendStoreList.length">
99
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
111
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
138
   name: '',
150
   name: '',
139
   data () {
151
   data () {
140
     return {
152
     return {
153
+      MyStoreList: [],
141
       CurrentStoreName: null, // 当前选择店铺名称
154
       CurrentStoreName: null, // 当前选择店铺名称
142
       CurrentStoreId: null, // 当前选择店铺id
155
       CurrentStoreId: null, // 当前选择店铺id
143
       RecommendStoreList: [], // 推荐店铺列表
156
       RecommendStoreList: [], // 推荐店铺列表
193
       }).then((res) => {
206
       }).then((res) => {
194
         this.StoreList = res.data.data.nearest || []
207
         this.StoreList = res.data.data.nearest || []
195
         this.RecommendStoreList = res.data.data.recommend || []
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
     ToPostBetting () { // 去下注
222
     ToPostBetting () { // 去下注
237
         this.TotalPrize = 0
261
         this.TotalPrize = 0
238
         this.Multiple = 1
262
         this.Multiple = 1
239
         this.DataLock = false
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
       }).catch((res) => {
265
       }).catch((res) => {
241
         this.Toast(res.data.message)
266
         this.Toast(res.data.message)
242
         this.DataLock = false
267
         this.DataLock = false

+ 25
- 0
src/pages/index/ShuangSeQiuDingDan/index.vue View File

56
 
56
 
57
         <div class="Layer" v-if="ShowStore">
57
         <div class="Layer" v-if="ShowStore">
58
           <div class="centerLabel">
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
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
71
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
60
             <ul v-if="RecommendStoreList.length">
72
             <ul v-if="RecommendStoreList.length">
61
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
73
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
101
   name: '',
113
   name: '',
102
   data () {
114
   data () {
103
     return {
115
     return {
116
+      MyStoreList: [],
104
       CurrentStoreName: null, // 当前选择店铺名称
117
       CurrentStoreName: null, // 当前选择店铺名称
105
       CurrentStoreId: null, // 当前选择店铺id
118
       CurrentStoreId: null, // 当前选择店铺id
106
       RecommendStoreList: [], // 推荐店铺列表
119
       RecommendStoreList: [], // 推荐店铺列表
134
     }).then((res) => {
147
     }).then((res) => {
135
       this.StoreList = res.data.data.nearest || []
148
       this.StoreList = res.data.data.nearest || []
136
       this.RecommendStoreList = res.data.data.recommend || []
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
   mounted () {
163
   mounted () {
188
         this.TotalPrize = 0
212
         this.TotalPrize = 0
189
         this.Multiple = 1
213
         this.Multiple = 1
190
         this.DataLock = false
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
       }).catch((res) => {
216
       }).catch((res) => {
192
         this.Toast(res.data.message)
217
         this.Toast(res.data.message)
193
         this.DataLock = false
218
         this.DataLock = false

+ 30
- 0
src/pages/index/ZuQiuDingDan/index.vue View File

75
 
75
 
76
         <div class="Layer" v-if="ShowStore">
76
         <div class="Layer" v-if="ShowStore">
77
           <div class="centerLabel">
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
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
90
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
79
             <ul v-if="RecommendStoreList.length">
91
             <ul v-if="RecommendStoreList.length">
80
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
92
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
122
   name: '',
134
   name: '',
123
   data () {
135
   data () {
124
     return {
136
     return {
137
+      MyStoreList: [],
125
       PriceArr: [0, 0], // 奖金区间
138
       PriceArr: [0, 0], // 奖金区间
126
       AllParts: [], // 投注生成结果
139
       AllParts: [], // 投注生成结果
127
       CurrentPassUnitNum: 0,
140
       CurrentPassUnitNum: 0,
219
         this.TotalPrice = 0
232
         this.TotalPrice = 0
220
         this.Multiple = 1
233
         this.Multiple = 1
221
         this.DataLock = false
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
       }).catch((res) => {
236
       }).catch((res) => {
223
         this.Toast(res.data.message)
237
         this.Toast(res.data.message)
224
         this.DataLock = false
238
         this.DataLock = false
233
       }).then((res) => {
247
       }).then((res) => {
234
         let StoreList = res.data.data.nearest || []
248
         let StoreList = res.data.data.nearest || []
235
         let RecommendStoreList = res.data.data.recommend || []
249
         let RecommendStoreList = res.data.data.recommend || []
250
+        let MyStoreList = res.data.data.mine || []
236
         StoreList.map((item) => {
251
         StoreList.map((item) => {
237
           if (item.status - 0 === 1) {
252
           if (item.status - 0 === 1) {
238
             this.StoreList.push(item)
253
             this.StoreList.push(item)
243
             this.RecommendStoreList.push(item)
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
     ToGetAllParts () { // 枚举投注
278
     ToGetAllParts () { // 枚举投注

+ 5
- 0
src/store/user/index.js View File

114
     }
114
     }
115
   },
115
   },
116
   actions: {
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
     CreateAliPayOrder (context, payload) { // 创建支付宝订单
122
     CreateAliPayOrder (context, payload) { // 创建支付宝订单
118
       return new Promise((resolve, reject) => {
123
       return new Promise((resolve, reject) => {
119
         ToolClass.Axios(resolve, reject, Api.CreateAliPayOrder, context, payload, 1000)
124
         ToolClass.Axios(resolve, reject, Api.CreateAliPayOrder, context, payload, 1000)

+ 4
- 0
src/util/Api.js View File

77
   UpdateUserInfo: { // 更新用户信息
77
   UpdateUserInfo: { // 更新用户信息
78
     method: 'put',
78
     method: 'put',
79
     url: `${prefix}/app/customer/:id`
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