123
dcc
2024-06-29 68a34d95db63a264e7a577051d586ea496c63ca0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
import Vue from "vue";
import Router from "vue-router";
import store from "../store";
Vue.use(Router);
import { Toast } from "vant";
import i18n from "@/i18n";
 
const router = new Router({
  scrollBehavior(to, from, savedPosition) {
    // return 期望滚动到哪个位置
    // 返回原来的位置
    // return savePosition
    // 返回页面顶部
    return { x: 0, y: 0 };
  },
  routes: [
    {
      path: "/home",
      name: "Home",
      meta: { index: 0, keepAlive: true, footer: true },
      component: () => import(/* webpackChunkName: "Home" */ "@/page/home.vue"),
    },
    {
      path: "/quotes",
      name: "Quotes",
      meta: { index: 2, footer: true, keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/quotes.vue"
        ),
    },
    {
      path: "/funds",
      name: "Funds",
      meta: { footer: true, requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/assetsCenter/index.vue"
        ),
    },
    {
      //个人中心
      path: "/userCenter",
      name: "userCenter",
      meta: { footer: true, requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "userCenter" */ /* webpackPrefetch: true */ "@/page/userCenter/index.vue"
        ),
    },
    {
      path: "/profile",
      name: "profile",
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/assetsCenter/profile.vue"
        ),
    },
    {
      path: "/assetsCenter/index",
      name: "Assets",
      meta: { index: 3 },
      component: () =>
        import(
          /* webpackChunkName: "Assets" */ /* webpackPrefetch: true */ "@/page/assetsCenter/index.vue"
        ),
    },
    {
      //充提记录
      path: "/assetsCenter/rechargeWithdrawRecord",
      name: "rechargeWithdrawRecord",
      meta: { index: 4 },
      component: () =>
        import(
          /* webpackChunkName: "rechargeWithdrawRecord" */ /* webpackPrefetch: true */ "@/page/assetsCenter/rechargeWithdrawRecord.vue"
        ),
    },
    {
      //充值列表
      path: "/recharge/rechargeList",
      name: "rechargeList",
      meta: { index: 5, keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/recharge/rechargeList.vue"
        ),
    },
    {
      //充值页面
      path: "/recharge/rechargePage",
      name: "rechargePage",
      meta: { index: 6 },
      component: () =>
        import(
          /* webpackChunkName: "rechargePage" */ /* webpackPrefetch: true */ "@/page/recharge/rechargePage.vue"
        ),
    },
    {
      //充值提交
      path: "/recharge/rechargeSubmit",
      name: "rechargeSubmit",
      meta: { index: 7 },
      component: () =>
        import(
          /* webpackChunkName: "rechargeSubmit" */ /* webpackPrefetch: true */ "@/page/recharge/rechargeSubmit.vue"
        ),
    },
    {
      //充值详情
      path: "/recharge/rechargeDetail",
      name: "rechargeDetail",
      meta: { index: 8 },
      component: () =>
        import(
          /* webpackChunkName: "rechargeDetail" */ /* webpackPrefetch: true */ "@/page/recharge/rechargeDetail.vue"
        ),
    },
    {
      //提现页面
      path: "/withdraw/withdrawPage",
      name: "withdrawPage",
      meta: { index: 9, kyc: true, requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "withdrawPage" */ /* webpackPrefetch: true */ "@/page/withdraw/withdrawPage.vue"
        ),
    },
    {
      //提现申请提交
      path: "/withdraw/withdrawSumbit",
      name: "withdrawSumbit",
      meta: { index: 10 },
      component: () =>
        import(
          /* webpackChunkName: "withdrawSumbit" */ /* webpackPrefetch: true */ "@/page/withdraw/withdrawSumbit.vue"
        ),
    },
    {
      //提现申请密码验证
      path: "/withdraw/securityVerification",
      name: "SecurityVerification",
      meta: { index: 10 },
      props(route) {
        return {
          ...route.query,
        };
      },
      component: () =>
        import(
          /* webpackChunkName: "SecurityVerification" */ /* webpackPrefetch: true */ "@/page/withdraw/withdrawalSecurityVerification"
        ),
    },
    {
      //提现详情
      path: "/withdraw/withdrawDetail",
      name: "withdrawDetail",
      meta: { index: 11 },
      component: () =>
        import(
          /* webpackChunkName: "withdrawDetail" */ /* webpackPrefetch: true */ "@/page/withdraw/withdrawDetail.vue"
        ),
    },
    {
      //闪兑页面
      path: "/exchange/exchangePage",
      name: "exchangePage",
      meta: { index: 12, requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/exchange/exchangePage.vue"
        ),
    },
    {
      //闪兑提交
      path: "/exchange/exchangeSubmit",
      name: "exchangeSubmit",
      meta: { index: 13 },
      component: () =>
        import(
          /* webpackChunkName: "exchangeSubmit" */ /* webpackPrefetch: true */ "@/page/exchange/exchangeSubmit.vue"
        ),
    },
    {
      //闪兑历史
      path: "/exchange/exchangeHistory",
      name: "exchangeHistory",
      meta: { index: 14 },
      component: () =>
        import(
          /* webpackChunkName: "exchangeHistory" */ /* webpackPrefetch: true */ "@/page/exchange/exchangeHistory.vue"
        ),
    },
    {
      //常见问题
      path: "/CommonProblem",
      name: "CommonProblem",
      meta: { index: 15 },
      component: () =>
        import(
          /* webpackChunkName: "CommonProblem" */ /* webpackPrefetch: true */ "@/page/CommonProblem/index.vue"
        ),
    },
    {
      //帮助中心
      path: "/helpCenter",
      name: "helpCenter",
      meta: { index: 16 },
      component: () =>
        import(
          /* webpackChunkName: "helpCenter" */ /* webpackPrefetch: true */ "@/page/helpCenter/index.vue"
        ),
    },
    {
      //问题详情
      path: "/helpDetail",
      name: "helpDetail",
      meta: { index: 17 },
      component: () =>
        import(
          /* webpackChunkName: "helpDetail" */ /* webpackPrefetch: true */ "@/page/helpCenter/detail"
        ),
    },
    {
      //货币理财盈亏订单详情
      path: "/profitLoss",
      name: "profitLoss",
      component: () =>
        import(
          /* webpackChunkName: "profitLoss" */ /* webpackPrefetch: true */ "@/page/order/CurrencyOrder/profitLoss"
        ),
    },
    {
      //理财订单详情
      path: "/financialOrder",
      name: "FinancialOrder",
      component: () =>
        import(
          /* webpackChunkName: "FinancialOrder" */ /* webpackPrefetch: true */ "@/page/order/FinancialOrder/index"
        ),
    },
    {
      //矿机订单详情
      path: "/miningMachineOrder",
      name: "MiningMachineOrder",
      component: () =>
        import(
          /* webpackChunkName: "MiningMachineOrder" */ /* webpackPrefetch: true */ "@/page/order/MiningMachineOrder/index"
        ),
    },
    {
      //矿机理财购买确认
      path: "/machine-confirm",
      name: "MachineConfirm",
      component: () =>
        import(
          /* webpackChunkName: "MachineConfirm" */ /* webpackPrefetch: true */ "@/page/financialManagement/machineConfirm"
        ),
    },
    {
      //基金理财购买确认
      path: "/financial-confirm",
      name: "FinancialConfirm",
      component: () =>
        import(
          /* webpackChunkName: "FinancialConfirm" */ /* webpackPrefetch: true */ "@/page/financialManagement/FinancialManagementConfirm"
        ),
    },
    {
      //理财历史
      path: "/financialHistory",
      name: "FinancialHistory",
      component: () =>
        import(
          /* webpackChunkName: "FinancialHistory" */ /* webpackPrefetch: true */ "@/page/FinancialHistory"
        ),
    },
    {
      //服务条款
      path: "/TermsOfService",
      name: "TermsOfService",
      component: () =>
        import(
          /* webpackChunkName: "TermsOfService" */ /* webpackPrefetch: true */ "@/page/TermsOfService/index.vue"
        ),
    },
    {
      //汇率设置
      path: "/exchangeRate",
      name: "exchangeRate",
      component: () =>
        import(
          /* webpackChunkName: "exchangeRate" */ /* webpackPrefetch: true */ "@/page/exchangeRate/index.vue"
        ),
    },
    {
      //账变记录
      path: "/accountChange",
      name: "accountChange",
      meta: { requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "accountChange" */ /* webpackPrefetch: true */ "@/page/accountChange/index.vue"
        ),
    },
    {
      //身份认证
      path: "/authentication",
      name: "authentication",
      component: () =>
        import(
          /* webpackChunkName: "authentication" */ /* webpackPrefetch: true */ "@/page/authentication/index.vue"
        ),
    },
    {
      //身份已认证
      path: "/verified",
      name: "verified",
      component: () =>
        import(
          /* webpackChunkName: "verified" */ /* webpackPrefetch: true */ "@/page/authentication/verified.vue"
        ),
    },
    {
      //语言设置
      path: "/language",
      name: "language",
      component: () =>
        import(
          /* webpackChunkName: "language" */ /* webpackPrefetch: true */ "@/page/language/index.vue"
        ),
    },
    {
      //推广中心
      path: "/promote",
      name: "promote",
      meta: { requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "promote" */ /* webpackPrefetch: true */ "@/page/promote/index.vue"
        ),
    },
    {
      //推广规则
      path: "/promote/rules",
      name: "promoteRules",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */ "@/page/promote/Rules.vue"
        ),
    },
    {
      //分享二维码
      path: "/ShareQRCode",
      name: "ShareQRCode",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */ "@/page/promote/ShareQRCode.vue"
        ),
    },
    {
      //分享海报
      path: "/SharePoster",
      name: "SharePoster",
      // meta: { keepAlive: true},
      component: () =>
        import(
          /* webpackChunkName: "SharePoster" */ /* webpackPrefetch: true */ "@/page/promote/SharePoster.vue"
        ),
    },
    {
      //永续合约
      path: "/perpetualContract/:symbol",
      name: "perpetualContract",
      component: () =>
        import(
          /* webpackChunkName: "perpetualContract" */ /* webpackPrefetch: true */ "@/page/perpetualContract/index.vue"
        ),
      meta: { keepAlive: true, footer: true },
    },
    {
      //U本位历史
      path: "/perpetualHistory",
      name: "perpetualHistory",
      component: () =>
        import(
          /* webpackChunkName: "perpetualHistory" */ /* webpackPrefetch: true */ "@/page/perpetualContract/perpetualHistory.vue"
        ),
    },
    {
      //永续合约委托详情
      path: "/entrustDetail",
      name: "entrustDetail",
      component: () =>
        import(
          /* webpackChunkName: "entrustDetail" */ /* webpackPrefetch: true */ "@/page/perpetualContract/entrustDetail.vue"
        ),
    },
    {
      //永续合约订单详情
      path: "/orderDetail",
      name: "orderDetail",
      component: () =>
        import(
          /* webpackChunkName: "orderDetail" */ /* webpackPrefetch: true */ "@/page/perpetualContract/orderDetail.vue"
        ),
    },
    {
      //交割合约
      path: "/deliveryContract",
      name: "deliveryContract",
      component: () =>
        import(
          /* webpackChunkName: "deliveryContract" */ /* webpackPrefetch: true */ "@/page/deliveryContract/index.vue"
        ),
    },
    {
      //交割合约历史
      path: "/deliveryContractHistory",
      name: "DeliveryContractHistory",
      component: () =>
        import(
          /* webpackChunkName: "DeliveryContractHistory" */ /* webpackPrefetch: true */ "@/page/DeliveryContractHistory/index.vue"
        ),
    },
    {
      //详情走势图
      path: "/trendDetails/:symbol",
      name: "trendDetails",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/TtrendDetails/index.vue"
        ),
    },
    {
      //客服
      path: "/customerService",
      name: "customerService",
      component: () =>
        import(
          /* webpackChunkName: "customerService" */ /* webpackPrefetch: true */ "@/page/customerService/index.vue"
        ),
    },
    {
      //登录
      path: "/login",
      name: "login",
      component: () =>
        import(
          /* webpackChunkName: "login" */ /* webpackPrefetch: true */ "@/page/login/index.vue"
        ),
      meta: { keepAlive: true },
    },
    {
      //注册
      path: "/register",
      name: "register",
      component: () =>
        import(
          /* webpackChunkName: "register" */ /* webpackPrefetch: true */ "@/page/register/index.vue"
        ),
    },
    {
      //验证码
      path: "/verify",
      name: "verify",
      component: () =>
        import(
          /* webpackChunkName: "verify" */ /* webpackPrefetch: true */ "@/page/register/verify.vue"
        ),
    },
    {
      //设置资金密码
      path: "/setFond",
      name: "setFond",
      component: () =>
        import(
          /* webpackChunkName: "setFond" */ /* webpackPrefetch: true */ "@/page/register/setFond.vue"
        ),
    },
    {
      //注册身份认证
      path: "/identity",
      name: "identity",
      component: () =>
        import(
          /* webpackChunkName: "identity" */ /* webpackPrefetch: true */ "@/page/register/identity.vue"
        ),
    },
    {
      //谷歌验证
      path: "/gooleVerify",
      name: "gooleVerify",
      component: () =>
        import(
          /* webpackChunkName: "gooleVerify" */ /* webpackPrefetch: true */ "@/page/register/gooleVerify.vue"
        ),
    },
    {
      //注册完成
      path: "/finish",
      name: "finish",
      component: () =>
        import(
          /* webpackChunkName: "finish" */ /* webpackPrefetch: true */ "@/page/register/finish.vue"
        ),
    },
    {
      path: "/trade/:symbol",
      name: "Trade",
      meta: { footer: true, keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/trade/index.vue"
        ),
    },
    {
      //币币详情
      path: "/tradeDetail",
      name: "tradeDetail",
      component: () =>
        import(
          /* webpackChunkName: "tradeDetail" */ /* webpackPrefetch: true */ "@/page/tradeDetail/index.vue"
        ),
    },
    {
      //币币记录
      path: "/tradeRecord/:symbol",
      name: "tradeRecord",
      component: () =>
        import(
          /* webpackChunkName: "tradeRecord" */ /* webpackPrefetch: true */ "@/page/tradeRecord/index.vue"
        ),
    },
    {
      //忘记密码
      path: "/forget",
      name: "forget",
      component: () =>
        import(
          /* webpackChunkName: "forget" */ /* webpackPrefetch: true */ "@/page/forget/index.vue"
        ),
    },
    {
      //重置登录密码
      path: "/resetPassword",
      name: "resetPassword",
      component: () =>
        import(
          /* webpackChunkName: "resetPassword" */ /* webpackPrefetch: true */ "@/page/forget/resetPassword.vue"
        ),
    },
    {
      //忘记密码修改成功
      path: "/passSuccess",
      name: "passSuccess",
      component: () =>
        import(
          /* webpackChunkName: "passSuccess" */ /* webpackPrefetch: true */ "@/page/forget/passSuccess.vue"
        ),
    },
    {
      //安全验证
      path: "/safeVerify",
      name: "safeVerify",
      component: () =>
        import(
          /* webpackChunkName: "safeVerify" */ /* webpackPrefetch: true */ "@/page/forget/safeVerify.vue"
        ),
    },
   
    {
      //安全中心
      path: "/safety",
      name: "safety",
      component: () =>
        import(
          /* webpackChunkName: "safety" */ /* webpackPrefetch: true */ "@/page/safety/index.vue"
        ),
    },
    {
      //更换绑定
      path: "/changeVerify",
      name: "changeVerify",
      component: () =>
        import(
          /* webpackChunkName: "changeVerify" */ /* webpackPrefetch: true */ "@/page/safety/changeVerify.vue"
        ),
    },
    {
      //修改登录密码
      path: "/changePassword",
      name: "changePassword",
      component: () =>
        import(
          /* webpackChunkName: "changePassword" */ /* webpackPrefetch: true */ "@/page/changePassword/index.vue"
        ),
    },
    {
      //修改登录密码
      path: "/changeFundsPassword",
      name: "changeFundsPassword",
      component: () =>
        import(
          /* webpackChunkName: "changeFundsPassword" */ /* webpackPrefetch: true */ "@/page/changeFundsPassword/index.vue"
        ),
    },
    {
      //绑定验证
      path: "/bindVerify",
      name: "bindVerify",
      component: () =>
        import(
          /* webpackChunkName: "bindVerify" */ /* webpackPrefetch: true */ "@/page/bindVerify/index.vue"
        ),
    },
    {
      //重置绑定
      path: "/resetVerify",
      name: "resetVerify",
      component: () =>
        import(
          /* webpackChunkName: "resetVerify" */ /* webpackPrefetch: true */ "@/page/resetVerify/index.vue"
        ),
    },
    {
      //
      path: "/resetSuccess",
      name: "resetSuccess",
      component: () =>
        import(
          /* webpackChunkName: "resetSuccess" */ /* webpackPrefetch: true */ "@/page/resetVerify/resetSuccess.vue"
        ),
    },
    {
      path: "/fm-home",
      name: "financialManagement",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "financialManagement" */ /* webpackPrefetch: true */ "@/page/financialManagement/index"
        ),
    },
    {
      path: "/pool-lock",
      name: "PooLock",
      component: () =>
        import(
          /* webpackChunkName: "PooLock" */ /* webpackPrefetch: true */ "@/page/financialManagement/poolLock"
        ),
    },
    {
      path: "/machine",
      name: "Machine",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/financialManagement/miningMachineHome"
        ),
    },
    {
      path: "/fund",
      name: "Fund",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/financialManagement/fundHome"
        ),
    },
    {
      path: "/machine-rule",
      name: "Machinerule",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Machinerule" */ /* webpackPrefetch: true */ "@/page/financialManagement/machineRule"
        ),
    },
    {
      path: "/fund-rule",
      name: "Fundrule",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "Fundrule" */ /* webpackPrefetch: true */ "@/page/financialManagement/fundRule"
        ),
    },
    {
      path: "/machine-buy",
      name: "MachineBuy",
      component: () =>
        import(
          /* webpackChunkName: "MachineBuy" */ /* webpackPrefetch: true */ "@/page/financialManagement/machineBuy"
        ),
    },
    {
      path: "/fund-buy",
      name: "FundBuy",
      component: () =>
        import(
          /* webpackChunkName: "FundBuy" */ /* webpackPrefetch: true */ "@/page/financialManagement/fundBuy"
        ),
    },
    {
      //
      path: "/order-success",
      name: "orderSuccess",
      component: () =>
        import(
          /* webpackChunkName: "orderSuccess" */ /* webpackPrefetch: true */ "@/page/financialManagement/orderSuccess.vue"
        ),
    },
    {
      //公告中心
      path: "/announce",
      name: "Announce",
      component: () =>
        import(
          /* webpackChunkName: "Announce" */ /* webpackPrefetch: true */ "@/page/announce/index.vue"
        ),
    },
    {
      //公告详情
      path: "/announceDetail",
      name: "AnnounceDetail",
      component: () =>
        import(
          /* webpackChunkName: "AnnounceDetail" */ /* webpackPrefetch: true */ "@/page/announce/announceDetail.vue"
        ),
    },
    {
      //质押借币
      path: "/pledgeLoan",
      name: "PledgeLoan",
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/index.vue"
        ),
    },
    {
      //质押订单
      path: "/pledgeLoanOrder",
      name: "pledgeLoanOrder",
      component: () =>
        import(
          /* webpackChunkName: "pledgeLoanOrder" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/pledgeLoanOrder.vue"
        ),
    },
    {
      //质押订单详情
      path: "/pledgeLoanOrderDetail",
      name: "PledgeLoanOrderDetail",
      component: () =>
        import(
          /* webpackChunkName: "PledgeLoanOrderDetail" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/pledgeLoanOrderDetail.vue"
        ),
    },
    {
      //新增质押
      path: "/addPledge",
      name: "AddPledge",
      component: () =>
        import(
          /* webpackChunkName: "AddPledge" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/addPledge.vue"
        ),
    },
    {
      //续借
      path: "/pledgeLoanRenew",
      name: "PledgeLoanRenew",
      component: () =>
        import(
          /* webpackChunkName: "PledgeLoanRenew" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/pledgeLoanRenew.vue"
        ),
    },
    {
      //质押记录
      path: "/pledgeRecord",
      name: "PledgeRecord",
      component: () =>
        import(
          /* webpackChunkName: "PledgeRecord" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/pledgeRecord.vue"
        ),
    },
    {
      //还款
      path: "/repayment",
      name: "Repayment",
      component: () =>
        import(
          /* webpackChunkName: "Repayment" */ /* webpackPrefetch: true */ "@/page/pledgeLoan/repayment.vue"
        ),
    },
    {
      //认证中心
      path: "/certificationCenter",
      name: "CertificationCenter",
      component: () =>
        import(
          /* webpackChunkName: "CertificationCenter" */ /* webpackPrefetch: true */ "@/page/certificationCenter/index.vue"
        ),
    },
    {
      //高级认证
      path: "/advancedCtf",
      name: "AdvancedCtf",
      component: () =>
        import(
          /* webpackChunkName: "AdvancedCtf" */ /* webpackPrefetch: true */ "@/page/certificationCenter/advancedCtf.vue"
        ),
    },
    {
      //c2c自选区我要买
      path: "/wantBuy",
      name: "WantBuy",
      meta: {
        keepAlive: false,
      },
      component: () =>
        import(
          /* webpackChunkName: "Home" */ /* webpackPrefetch: true */ "@/page/placeAnOrder/page/wantBuy/index"
        ),
    },
    {
      //广告筛选
      path: "/wantBuy/adScreening",
      name: "adScreening",
      component: () =>
        import(
          /* webpackChunkName: "adScreening" */ /* webpackPrefetch: true */ "@/page/placeAnOrder/page/adScreening"
        ),
    },
    {
      //c2c购买
      path: "/wantBuy/c2cBuy",
      name: "c2cBuy",
      component: () =>
        import(
          /* webpackChunkName: "c2cBuy" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/c2cBuy"
        ),
    },
    {
      //c2c交易相关回答
      path: "/c2cTransactionAnswer",
      name: "C2cTransactionAnswer",
      component: () =>
        import(
          /* webpackChunkName: "C2cTransactionAnswer" */ /* webpackPrefetch: true */ "@/page/c2cAnswer/index"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      //广告详情
      path: "/adDetails",
      name: "AdDetails",
      component: () =>
        import(
          /* webpackChunkName: "AdDetails" */ /* webpackPrefetch: true */ "@/page/myAd/adDetails"
        ),
    },
    {
      //历史广告
      path: "/AdHistory",
      name: "AdHistory",
      component: () =>
        import(
          /* webpackChunkName: "AdHistory" */ /* webpackPrefetch: true */ "@/page/myAd/AdHistory"
        ),
    },
    {
      //编辑广告/发布广告
      path: "/editAd",
      name: "EditAd",
      component: () =>
        import(
          /* webpackChunkName: "EditAd" */ /* webpackPrefetch: true */ "@/page/myAd/editAd"
        ),
    },
    {
      //保存广告
      path: "/saveAd",
      name: "SaveAd",
      component: () =>
        import(
          /* webpackChunkName: "SaveAd" */ /* webpackPrefetch: true */ "@/page/myAd/saveAd"
        ),
    },
    {
      // 收款方式
      path: "/paymentMethod",
      name: "paymentMethod",
      component: () =>
        import(
          /* webpackChunkName: "paymentMethod" */ /* webpackPrefetch: true */ "@/page/placeAnOrder/page/payment-method/PaymentMethod"
        ),
    },
    {
      // 银行卡详情
      path: "/wantBuy/bankCar",
      name: "bankCarDetail",
      component: () =>
        import(
          /* webpackChunkName: "bankCarDetail" */ /* webpackPrefetch: true */ "@/page/placeAnOrder/components/bankCardDetail/index"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // 添加收款方式
      path: "/wantBuy/addPaymentMethod",
      name: "addPaymentMethod",
      component: () =>
        import(
          /* webpackChunkName: "addPaymentMethod" */ /* webpackPrefetch: true */ "@/page/placeAnOrder/page/addPaymentMethod/AddPaymentMethod"
        ),
    },
    {
      // c2c买卖交易
      path: "/c2cTrade",
      name: "c2cTrade",
      meta: {
        keepAlive: false,
      },
      props(route) {
        return {
          ...route.query,
        };
      },
      component: () =>
        import(
          /* webpackChunkName: "c2cTrade" */ /* webpackPrefetch: true */ "@/page/c2c-trade"
        ),
    },
    {
      // c2c用户中心更多数据
      path: "/c2cUser/c2cUserMore",
      name: "c2cUserMore",
      component: () =>
        import(
          /* webpackChunkName: "c2cUserMore" */ /* webpackPrefetch: true */ "@/page/c2cUser/page/c2cUserMore"
        ),
    },
    {
      //c2c帮助中心
      path: "/c2cHelpCenter",
      name: "HelpCenter",
      component: () =>
        import(
          /* webpackChunkName: "c2cHelpCenter" */ /* webpackPrefetch: true */ "@/page/c2cHelpCenter/index"
        ),
    },
    {
      // c2c通知中心
      path: "/c2cNoticeSettings",
      name: "c2cNoticeSettings",
      component: () =>
        import(
          /* webpackChunkName: "c2cNoticeSettings" */ /* webpackPrefetch: true */ "@/page/c2cUser/page/c2cNoticeSettings"
        ),
    },
    {
      // 生成订单详情页
      path: "/orderGeneration",
      name: "orderGeneration",
      component: () =>
        import(
          /* webpackChunkName: "orderGeneration" */ /* webpackPrefetch: true */ "@/page/c2cOrder/order-generation"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // 取消订单
      path: "/cancelOrder",
      name: "cancelOrder",
      component: () =>
        import(
          /* webpackChunkName: "cancelOrder" */ /* webpackPrefetch: true */ "@/page/c2cOrder/cancel-order/cancelOrder"
        ),
    },
    {
      // 申诉
      path: "/appeal",
      name: "appeal",
      component: () =>
        import(
          /* webpackChunkName: "appeal" */ /* webpackPrefetch: true */ "@/page/c2cOrder/appeal"
        ),
    },
    {
      // 申诉成功
      path: "/appeal/page",
      name: "appealSuccess",
      component: () =>
        import(
          /* webpackChunkName: "appealSuccess" */ /* webpackPrefetch: true */ "@/page/c2cOrder/appeal/Appeal"
        ),
    },
    {
      // 付款
      path: "/paymentBuy",
      name: "paymentBuy",
      component: () =>
        import(
          /* webpackChunkName: "paymentBuy" */ /* webpackPrefetch: true */ "@/page/c2cOrder/payment/PaymentBuy"
        ),
    },
    {
      // 付款
      path: "/payment",
      name: "payment",
      component: () =>
        import(
          /* webpackChunkName: "payment" */ /* webpackPrefetch: true */ "@/page/c2cOrder/payment"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // 付款详情
      path: "/paymentDetail",
      name: "paymentDetail",
      component: () =>
        import(
          /* webpackChunkName: "paymentDetail" */ /* webpackPrefetch: true */ "@/page/c2cOrder/payment/PaymentDetail"
        ),
    },
    {
      // 广告商个人信息详情
      path: "/advertisers-info",
      component: () =>
        import(
          /* webpackChunkName: "advertisers-info" */ /* webpackPrefetch: true */ "@/page/advertisers/info"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // c2c收款方式
      path: "/c2cCollection",
      component: () =>
        import(
          /* webpackChunkName: "c2cCollection" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/c2cCollection"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // 广告商个人信息详情
      path: "/advertiserDetail",
      component: () =>
        import(
          /* webpackChunkName: "advertiserDetail" */ /* webpackPrefetch: true */ "@/page/advertiserDetail/index"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // 广告商个人信息详情
      path: "/advertiserDetail/detail",
      component: () =>
        import(
          /* webpackChunkName: "advertiserDetail" */ /* webpackPrefetch: true */ "@/page/advertiserDetail/detail"
        ),
    },
    {
      // 广告历史记录
      path: "/advertiserHistory",
      component: () =>
        import(
          /* webpackChunkName: "advertiserHistory" */ /* webpackPrefetch: true */ "@/page/advertiserHistory/index"
        ),
    },
    {
      // 广告历史记录详情
      path: "/advertiserHistory/detail",
      component: () =>
        import(
          /* webpackChunkName: "advertiserHistory" */ /* webpackPrefetch: true */ "@/page/advertiserHistory/detail"
        ),
    },
    {
      // 成为认证广告商
      path: "/CertifiedAdvertiser",
      component: () =>
        import(
          /* webpackChunkName: "CertifiedAdvertiser" */ /* webpackPrefetch: true */ "@/page/myAd/CertifiedAdvertiser"
        ),
    },
    {
      // 选择法币
      path: "/selectLegalCurrency",
      component: () =>
        import(
          /* webpackChunkName: "selectLegalCurrency" */ /* webpackPrefetch: true */ "@/page/selectLegalCurrency/index"
        ),
    },
    {
      // c2c出售订单生成
      path: "/sellGenerate",
      component: () =>
        import(
          /* webpackChunkName: "sellGenerate" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/SellGenerate"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // 确认收款
      path: "/confirmedPaid",
      meta: { keepAlive: true },
      component: () =>
        import(
          /* webpackChunkName: "confirmedPaid" */ /* webpackPrefetch: true */ "@/page/c2cOrder/payment/ConfirmedPaid"
        ),
    },
    {
      // 验证码验证
      path: "/verification",
      component: () =>
        import(
          /* webpackChunkName: "verification" */ /* webpackPrefetch: true */ "@/page/verification-code/VerificationCode"
        ),
    },
    {
      // 买家交易成功
      path: "/tradeSuccessBuyer",
      component: () =>
        import(
          /* webpackChunkName: "tradeSuccessBuyer" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/TradeSuccessBuyer"
        ),
    },
    {
      // 卖家交易
      path: "/tradeSuccessSell",
      component: () =>
        import(
          /* webpackChunkName: "tradeSuccessSell" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/TradeSuccessSell"
        ),
    },
    {
      // 买家交易成功详情
      path: "/tradeSuccessDetailBuyer",
      component: () =>
        import(
          /* webpackChunkName: "tradeSuccessDetailBuyer" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/TradeSuccessDetailBuyer"
        ),
    },
    {
      // 卖家交易成功详情
      path: "/tradeSuccessDetailSell",
      component: () =>
        import(
          /* webpackChunkName: "tradeSuccessDetailSell" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/TradeSuccessDetailSell"
        ),
    },
    {
      // 联系买家/卖家
      path: "/chat",
      component: () =>
        import(
          /* webpackChunkName: "chat" */ /* webpackPrefetch: true */ "@/page/chat"
        ),
      props(route) {
        return {
          ...route,
        };
      },
    },
    {
      path: "/c2c_normal_user",
      meta: { requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "c2c_normal_user" */ /* webpackPrefetch: true */ "@/page/c2cUser/normalUserCenter"
        ),
    },
    {
      // c2c页面
      path: "/c2c",
      component: () =>
        import(
          /* webpackChunkName: "c2c" */ /* webpackPrefetch: true */ "@/page/c2c"
        ),
      children: [
        {
          path: "c2cUser",
          meta: { requireAuth: true, isMerchant: true },
          component: () => import("@/page/c2cUser"),
        },
 
        {
          // 订单列表
          path: "orderList",
          meta: { requireAuth: true, isMerchant: true },
          component: () => import("@/page/orderList/index"),
        },
        {
          //接单模式广告
          path: "advertise",
          name: "Advertise",
          meta: { requireAuth: true, isMerchant: true },
          component: () => import("@/page/myAd/index"),
        },
        {
          // 接单模式
          path: "receivingBuy",
          meta: { requireAuth: true, isMerchant: true },
          component: () => import("@/page/receivingBuy/index"),
        },
      ],
    },
    {
      // c2c帮助
      path: "/c2cHelp",
      name: "C2cHelp",
      meta: { requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "c2cHelp" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/c2cHelp"
        ),
    },
    // {//质押借币
    //   path: '/pledgeLoan',
    //   name: 'PledgeLoan',
    //   component: () => import('@/page/pledgeLoan/index.vue')
    // },
    // {//质押订单
    //   path: '/pledgeLoanOrder',
    //   name: 'pledgeLoanOrder',
    //   component: () => import('@/page/pledgeLoan/pledgeLoanOrder.vue')
    // },
    // {//质押订单详情
    //   path: '/pledgeLoanOrderDetail',
    //   name: 'PledgeLoanOrderDetail',
    //   component: () => import('@/page/pledgeLoan/pledgeLoanOrderDetail.vue')
    // },
    // {//新增质押
    //   path: '/addPledge',
    //   name: 'AddPledge',
    //   component: () => import('@/page/pledgeLoan/addPledge.vue')
    // },
    // {//续借
    //   path: '/pledgeLoanRenew',
    //   name: 'PledgeLoanRenew',
    //   component: () => import('@/page/pledgeLoan/pledgeLoanRenew.vue')
    // },
    // {//质押记录
    //   path: '/pledgeRecord',
    //   name: 'PledgeRecord',
    //   component: () => import('@/page/pledgeLoan/pledgeRecord.vue')
    // },
    // {//还款
    //   path: '/repayment',
    //   name: 'Repayment',
    //   component: () => import('@/page/pledgeLoan/repayment.vue')
    // },
    // {//认证中心
    //   path: '/certificationCenter',
    //   name: 'CertificationCenter',
    //   component: () => import('@/page/certificationCenter/index.vue')
    // },
    // {//高级认证
    //   path: '/advancedCtf',
    //   name: 'AdvancedCtf',
    //   component: () => import('@/page/certificationCenter/advancedCtf.vue')
    // },
    {
      // c2c订单列表
      path: "/wantBuy/c2cOrderList",
      component: () =>
        import(
          /* webpackChunkName: "c2cOrderList" */ /* webpackPrefetch: true */ "@/page/c2c-order-list"
        ),
      props(route) {
        return {
          ...route.query,
        };
      },
    },
    {
      // c2c订单详情
      path: "/tradeOrderDetail",
      component: () =>
        import(
          /* webpackChunkName: "tradeOrderDetail" */ /* webpackPrefetch: true */ "@/page/c2c-trade/page/tradeOrderDetail"
        ),
    },
    {
      // 快捷区
      path: "/wantBuy/quick",
      component: () =>
        import(
          /* webpackChunkName: "quick" */ /* webpackPrefetch: true */ "@/page/quick"
        ),
    },
    //Trend details
    {
      // 搜索
      path: "/search",
      name: "search",
      component: () =>
        import(
          /* webpackChunkName: "paymentDetail" */ /* webpackPrefetch: true */ "@/page/search/index"
        ),
    },
    {
      // 主题模式切换
      path: "/themeModel",
      name: "themeModel",
      component: () =>
        import(
          /* webpackChunkName: "paymentDetail" */ /* webpackPrefetch: true */ "@/page/themeModel/index"
        ),
    },
    {
      //
      path: "/test",
      name: "test",
      meta: { footer: false },
      component: () =>
        import(
          /* webpackChunkName: "quick" */ /* webpackPrefetch: true */ "@/page/register/test.vue"
        ),
    },
    {
      //
      path: "/new-urrency",
      name: "new-urrency",
      meta: { footer: false, requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "quick" */ /* webpackPrefetch: true */ "@/page/new-urrency/index.vue"
        ),
    },
    {
      //
      path: "/list-urrency",
      name: "list-urrency",
      meta: { footer: false, requireAuth: true },
      component: () =>
        import(
          /* webpackChunkName: "quick" */ /* webpackPrefetch: true */ "@/page/new-urrency/list-urrency"
        ),
    },
    { path: "*", redirect: "/home" },
  ],
});
router.beforeEach((to, from, next) => {
  if (to.meta.requireAuth) {
    // 判断该路由是否需要登录权限
    if (store.state.user.userInfo.token) {
      // 通过vuex state获取当前的token是否存在
 
      if (to.meta.kyc && store.state.user.kyc !== 2) {
        return Toast.fail(i18n.t("请先实名认证!"));
      }
      if (to.meta.isMerchant) {
        if (store.state.user.userInfo.c2c_user_type !== 0) {
          next();
        } else {
          Toast.fail(i18n.t("您不是承兑商!"));
 
          next("/");
        }
      }
      next();
    } else {
      next({
        path: "/login",
        query: { redirect: to.fullPath }, // 将跳转的路由path作为参数,登录成功后跳转到该路由
      });
    }
  } else {
    next();
  }
  //next() //这个是全局的路由守卫 你复习一下   这里做了路由鉴权 不登陆不给访问页面 我现在注释掉了 直接可以通过
});
export default router;