zhangwei
2024-08-20 ef1114c22614762e54e49bc7c600d2a2cd460791
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
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
const http = uni.$u.http
 
// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
// https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F
// const install = (Vue, vm) => {
 
// 获取店铺配置
let shopConfigV2 = (params, config = {}) => http.post('/Api/Common/GetConfigV2', params, {
    custom: {
        methodName: 'common.shopConfigV2',
        needToken: false
    }
});
//获取商城关键词说明
let getServiceDescription = (params, config = {}) => http.post('/Api/Common/GetServiceDescription', params, {
    custom: {
        methodName: 'common.getServiceDescription',
        needToken: false
    }
});
// 用户信息
let userInfo = (params, config = {}) => http.post('/Api/User/GetUserInfo', params, {
    custom: {
        methodName: 'user.info',
        needToken: true
    }
});
// 上传头像
let changeAvatar = (params, config = {}) => http.post('/Api/User/ChangeAvatar', params, {
    custom: {
        methodName: 'user.changeavatar',
        needToken: true
    }
});
// 编辑用户信息
let editInfo = (params, config = {}) => http.post('/Api/User/EditInfo', params, {
    custom: {
        methodName: 'user.editinfo',
        needToken: true
    }
});
// 发送短信验证码
let sms = (params, config = {}) => http.post('/Api/User/SendSms', params, {
    custom: {
        methodName: 'user.sms',
        needToken: false
    }
});
// 短信验证码登录
let smsLogin = (params, config = {}) => http.post('/Api/User/SmsLogin', params, {
    custom: {
        methodName: 'user.smslogin',
        needToken: false
    }
});
// 退出登录
let logout = (params, config = {}) => http.post('/Api/User/LogOut', params, {
    custom: {
        methodName: 'user.logout',
        needToken: true
    }
});
// 获取首页幻灯片
let slider = (params, config = {}) => http.post('/Api/Advert/GetAdvertList', params, {
    custom: {
        methodName: 'advert.getAdvertList',
        needToken: false
    }
});
// 获取广告
let advert = (params, config = {}) => http.post('/Api/Advert/GetPositionList', params, {
    custom: {
        methodName: 'advert.getcarousellists',
        needToken: false
    }
});
// 获取公告列表
let notice = (params, config = {}) => http.post('/Api/Notice/NoticeList', params, {
    custom: {
        methodName: 'notice.noticeList',
        needToken: false
    }
});
// 获取公告详情
let noticeInfo = (params, config = {}) => http.post('/Api/Notice/NoticeInfo', params, {
    custom: {
        methodName: 'notice.noticeInfo',
        needToken: false
    }
});
// 获取文章详情
let articleInfo = (params, config = {}) => http.post('/Api/Article/GetArticleDetail', params, {
    custom: {
        methodName: 'articles.getArticleDetail',
        needToken: false
    }
});
// 获取文章列表
let articleList = (params, config = {}) => http.post('/Api/Article/GetArticleList', params, {
    custom: {
        methodName: 'articles.getArticleList',
        needToken: false
    }
});
 
 
// 获取商品分类
let categories = (params, config = {}) => http.post('/Api/Good/GetAllCategories', params, {
    custom: {
        methodName: 'categories.getallcat',
        needToken: false
    }
});
// 获取商品列表
let goodsList = (params, config = {}) => http.post('/Api/Good/GetGoodsPageList', params, {
    custom: {
        methodName: 'goods.goodsList',
        needToken: false
    }
});
//获取随机推荐商品
let getGoodsRecommendList = (params, config = {}) => http.post('/Api/Good/GetGoodsRecommendList', params, {
    custom: {
        methodName: 'goods.getGoodsRecommendList',
        needToken: false
    }
});
// 获取商品参数信息
let goodsParams = (params, config = {}) => http.post('/Api/Good/GetGoodsParams', params, {
    custom: {
        methodName: 'goods.getgoodsparams',
        needToken: false
    }
});
// 获取设置默认货品
let getProductInfo = (params, config = {}) => http.post('/Api/Good/GetProductInfo', params, {
    custom: {
        methodName: 'goods.getproductinfo',
        needToken: false
    }
});
// 获取商品评论信息
let goodsComment = (params, config = {}) => http.post('/Api/Good/GetGoodsComment', params, {
    custom: {
        methodName: 'goods.getgoodscomment',
        needToken: false
    }
});
// 获取商品详情
let goodsDetail = (params, config = {}) => http.post('/Api/Good/GetDetial', params, {
    custom: {
        methodName: 'goods.getdetial',
        needToken: false
    }
});
// 获取商品详情
let goodsDetailByToken = (params, config = {}) => http.post('/Api/Good/GetDetialByToken', params, {
    custom: {
        methodName: 'goods.getDetialByToken',
        needToken: true
    }
});
 
// 获取商品详情
let goodsSku = (params, config = {}) => http.post('/Api/Good/GetSku', params, {
    custom: {
        methodName: 'goods.getdetial',
        needToken: false
    }
});
// 获取商品详情
let goodsSkuByToken = (params, config = {}) => http.post('/Api/Good/GetSkuByToken', params, {
    custom: {
        methodName: 'goods.getDetialByToken',
        needToken: true
    }
});
 
 
 
 
 
// 添加购物车
let addCart = (params, config = {}) => http.post('/Api/Cart/AddCart', params, {
    custom: {
        methodName: 'cart.add',
        needToken: true
    }
});
// 移除购物车
let removeCart = (params, config = {}) => http.post('/Api/Cart/DoDelete', params, {
    custom: {
        methodName: 'cart.del',
        needToken: true
    }
});
// 获取购物车列表
let cartList = (params, config = {}) => http.post('/Api/Cart/GetList', params, {
    custom: {
        methodName: 'cart.getlist',
        needToken: true
    }
});
// 设置购物车商品数量
let setCartNum = (params, config = {}) => http.post('/Api/Cart/SetCartNum', params, {
    custom: {
        methodName: 'cart.setnums',
        needToken: true
    }
});
// 获取购物车数量
let getCartNum = (params, config = {}) => http.post('/Api/User/GetCartNumber', params, {
    custom: {
        methodName: 'cart.getnumber',
        needToken: true
    }
});
// 获取购物车数量和商品总价格
let getCartNumAndMoney = (params, config = {}) => http.post('/Api/User/GetCartNumberAndMoney', params, {
    custom: {
        methodName: 'cart.getnumber',
        needToken: true
    }
});
// 根据购物车已有数据获取能够使用的优惠券
let getCartCoupon = (params, config = {}) => http.post('/Api/Cart/GetCartAvailableCoupon', params, {
    custom: {
        methodName: 'cart.getCartCoupon',
        needToken: true
    }
});
 
// 获取用户的收货地址列表
let userShip = (params, config = {}) => http.post('/Api/User/GetUserShip', params, {
    custom: {
        methodName: 'user.getusership',
        needToken: true
    }
});
// 获取用户默认收货地址
let userDefaultShip = (params, config = {}) => http.post('/Api/User/GetUserDefaultShip', params, {
    custom: {
        methodName: 'user.getuserdefaultship',
        needToken: true
    }
});
// 存储用户收货地址
let saveUserShip = (params, config = {}) => http.post('/Api/User/SaveUserShip', params, {
    custom: {
        methodName: 'user.vuesaveusership',
        needToken: true
    }
});
// 微信存储收货地址
let saveUserShipWx = (params, config = {}) => http.post('/Api/User/SaveUserShip', params, {
    custom: {
        methodName: 'user.saveusership',
        needToken: true
    }
});
//获取区域ID
let getAreaId = (params, config = {}) => http.post('/Api/User/GetAreaId', params, {
    custom: {
        methodName: 'user.getareaid',
        needToken: false
    }
});
//根据区/县名称获取城市id信息
let getAreaIdByName = (params, config = {}) => http.post('/Api/User/GetAreaIdByName', params, {
    custom: {
        methodName: 'user.getareaid',
        needToken: false
    }
});
// 获取收货地址详情
let shipDetail = (params, config = {}) => http.post('/Api/User/GetShipDetail', params, {
    custom: {
        methodName: 'user.getshipdetail',
        needToken: true
    }
});
// 收货地址编辑
let editShip = (params, config = {}) => http.post('/Api/User/SaveUserShip', params, {
    custom: {
        methodName: 'user.editship',
        needToken: true
    }
});
// 收货地址删除
let removeShip = (params, config = {}) => http.post('/Api/User/RemoveShip', params, {
    custom: {
        methodName: 'user.removeship',
        needToken: true
    }
});
// 设置默认收货地址
let setDefShip = (params, config = {}) => http.post('/Api/User/SetDefShip', params, {
    custom: {
        methodName: 'user.setdefship',
        needToken: true
    }
});
 
// 生成订单
let createOrder = (params, config = {}) => http.post('/Api/Order/CreateOrder', params, {
    custom: {
        methodName: 'order.create',
        needToken: true
    }
});
// 取消订单
let cancelOrder = (params, config = {}) => http.post('/Api/Order/CancelOrder', params, {
    custom: {
        methodName: 'order.cancel',
        needToken: true
    }
});
// 删除订单
let delOrder = (params, config = {}) => http.post('/Api/Order/DeleteOrder', params, {
    custom: {
        methodName: 'order.del',
        needToken: true
    }
});
// 获取订单详情
let orderDetail = (params, config = {}) => http.post('/Api/Order/OrderDetails', params, {
    custom: {
        methodName: 'order.details',
        needToken: true
    }
});
// 确认收货
let confirmOrder = (params, config = {}) => http.post('/Api/Order/OrderConfirm', params, {
    custom: {
        methodName: 'order.confirm',
        needToken: true
    }
});
// 获取配送方式
let orderShip = (params, config = {}) => http.post('/Api/Order/GetShip', params, {
    custom: {
        methodName: 'order.getship',
        needToken: true
    }
});
// 获取全部订单列表
let orderList = (params, config = {}) => http.post('/Api/Order/GetOrderList', params, {
    custom: {
        methodName: 'order.getorderlist',
        needToken: true
    }
});
// 获取订单不同状态的数量
let getOrderStatusSum = (params, config = {}) => http.post('/Api/Order/GetOrderStatusNum', params, {
    custom: {
        methodName: 'order.getorderstatusnum',
        needToken: true
    }
});
// 获取不同类型营销下单支持的配送方式
let getOrderDistributionModel = (params, config = {}) => http.post('/Api/Order/GetOrderDistributionModel', params, {
    custom: {
        methodName: 'order.getOrderdistributionmodel',
        needToken: true
    }
});
 
// 获取派送订单列表
let deliveryList = (params, config = {}) => http.post('/Api/DistributorDelivery/GetList/GetList', params, {
    custom: {
        methodName: 'order.getdeliveryorderlist',
        needToken: true
    }
});
// 确认派送
let confirmDelivery = (params, config = {}) => http.post('/Api/DistributorDelivery/Accepted/Accepted', params, {
    custom: {
        methodName: 'order.confirmDelivery',
        needToken: true
    }
});
 
// 售后单列表
let afterSalesList = (params, config = {}) => http.post('/Api/Order/AftersalesList', params, {
    custom: {
        methodName: 'order.aftersaleslist',
        needToken: true
    }
});
// 售后单详情
let afterSalesInfo = (params, config = {}) => http.post('/Api/Order/Aftersalesinfo', params, {
    custom: {
        methodName: 'order.aftersalesinfo',
        needToken: true
    }
});
// 添加售后单
let addAfterSales = (params, config = {}) => http.post('/Api/Order/AddAftersales', params, {
    custom: {
        methodName: 'order.addaftersales',
        needToken: true
    }
});
// 用户发送退货包裹
let sendShip = (params, config = {}) => http.post('/Api/Order/SendReship', params, {
    custom: {
        methodName: 'order.sendreship',
        needToken: true
    }
});
 
// 添加商品浏览足迹
let addGoodsBrowsing = (params, config = {}) => http.post('/Api/User/AddGoodsBrowsing', params, {
    custom: {
        methodName: 'user.addgoodsbrowsing',
        needToken: true
    }
});
// 删除商品浏览足迹
let delGoodsBrowsing = (params, config = {}) => http.post('/Api/User/DelGoodsBrowsing', params, {
    custom: {
        methodName: 'user.delgoodsbrowsing',
        needToken: true
    }
});
// 获取商品浏览足迹
let goodsBrowsing = (params, config = {}) => http.post('/Api/User/Goodsbrowsing', params, {
    custom: {
        methodName: 'user.goodsbrowsing',
        needToken: true
    }
});
// 商品收藏 关注/取消
let goodsCollection = (params, config = {}) => http.post('/Api/User/GoodsCollectionCreateOrDelete', params, {
    custom: {
        methodName: 'user.goodscollection',
        needToken: true
    }
});
// 获取商品收藏关注列表
let goodsCollectionList = (params, config = {}) => http.post('/Api/User/GoodscollectionList', params, {
    custom: {
        methodName: 'user.goodscollectionlist',
        needToken: true
    }
});
 
// 获取店铺支付方式列表
let paymentList = (params, config = {}) => http.post('/Api/Payments/GetList', params, {
    custom: {
        methodName: 'payments.getlist',
        needToken: false
    }
});
// 获取支付单详情
let paymentInfo = (params, config = {}) => http.post('/Api/Payments/GetInfo', params, {
    custom: {
        methodName: 'payments.getinfo',
        needToken: true
    }
});
// 支付接口
let pay = (params, config = {}) => http.post('/Api/User/Pay', params, {
    custom: {
        methodName: 'user.pay',
        needToken: true
    }
});
// 订单评价接口
let orderEvaluate = (params, config = {}) => http.post('/Api/User/OrderEvaluate', params, {
    custom: {
        methodName: 'user.orderevaluate',
        needToken: true
    }
});
 
// 签到接口
let userCheckIn = (params, config = {}) => http.post('/Api/CheckIn/DoUserCheckIn', params, {
    custom: {
        methodName: 'user.doUserCheckIn',
        needToken: true
    }
});
//获取用户按月签到数据
let getUserCheckByMonth = (params, config = {}) => http.post('/Api/CheckIn/GetUserCheckByMonth', params, {
    custom: {
        methodName: 'user.getUserCheckByMonth',
        needToken: true
    }
});
//获取用户总签到次数
let getUserCheckCount = (params, config = {}) => http.post('/Api/CheckIn/GetUserCheckCount', params, {
    custom: {
        methodName: 'user.getUserCheckCount',
        needToken: true
    }
});
 
 
// 积分记录
let pointLog = (params, config = {}) => http.post('/Api/User/UserPointLog', params, {
    custom: {
        methodName: 'user.userpointlog',
        needToken: true
    }
});
// 物流信息接口
let logistics = (params, config = {}) => http.post('/Api/Order/LogisticsByApi', params, {
    custom: {
        methodName: 'order.logisticbyapi',
        needToken: true
    }
});
// 优惠券列表
let couponList = (params, config = {}) => http.post('/Api/Coupon/CouponList', params, {
    custom: {
        methodName: 'coupon.couponlist',
        needToken: false
    }
});
// 优惠券详情
let couponDetail = (params, config = {}) => http.post('/Api/Coupon/CouponDetail', params, {
    custom: {
        methodName: 'coupon.coupondetail',
        needToken: false
    }
});
// 用户领取优惠券
let getCoupon = (params, config = {}) => http.post('/Api/Coupon/GetCoupon', params, {
    custom: {
        methodName: 'coupon.getcoupon',
        needToken: true
    }
});
// 用户已领取的优惠券列表
let userCoupon = (params, config = {}) => http.post('/Api/Coupon/UserCoupon', params, {
    custom: {
        methodName: 'coupon.usercoupon',
        needToken: true
    }
});
// 获取我的银行卡列表
let getBankCardList = (params, config = {}) => http.post('/Api/User/GetMyBankcardsList', params, {
    custom: {
        methodName: 'user.getbankcardlist',
        needToken: true
    }
});
// 获取默认的银行卡
let getDefaultBankCard = (params, config = {}) => http.post('/Api/User/GetDefaultBankCard', params, {
    custom: {
        methodName: 'user.getdefaultbankcard',
        needToken: true
    }
});
// 添加银行卡
let addBankCard = (params, config = {}) => http.post('/Api/User/AddBankCards', params, {
    custom: {
        methodName: 'user.addbankcard',
        needToken: true
    }
});
// 删除银行卡
let removeBankCard = (params, config = {}) => http.post('/Api/User/Removebankcard', params, {
    custom: {
        methodName: 'user.removebankcard',
        needToken: true
    }
});
// 设置默认银行卡
let setDefaultBankCard = (params, config = {}) => http.post('/Api/User/SetDefaultBankCard', params, {
    custom: {
        methodName: 'user.setdefaultbankcard',
        needToken: true
    }
});
// 获取银行卡信息
let getBankCardInfo = (params, config = {}) => http.post('/Api/User/GetBankCardInfo', params, {
    custom: {
        methodName: 'user.getbankcardinfo',
        needToken: true
    }
});
// 获取银行卡组织信息
let getBankCardOrganization = (params, config = {}) => http.post('/Api/User/GetBankCardsOrganization', params, {
    custom: {
        methodName: 'user.getbankcardorganization',
        needToken: true
    }
});
// 用户修改密码
let editPwd = (params, config = {}) => http.post('/Api/User/EditPwd', params, {
    custom: {
        methodName: 'user.editpwd',
        needToken: true
    }
});
// 用户找回密码
let forgotPwd = (params, config = {}) => http.post('/Api/Common/InterFaceTest', params, {
    custom: {
        methodName: 'user.forgotpwd',
        needToken: true
    }
});
// 获取用户余额明细
let getBalanceList = (params, config = {}) => http.post('/Api/User/UserBalance', params, {
    custom: {
        methodName: 'user.balancelist',
        needToken: true
    }
});
// 用户推荐列表
let recommendUserList = (params, config = {}) => http.post('/Api/User/Recommend', params, {
    custom: {
        methodName: 'user.recommend',
        needToken: true
    }
});
// 邀请码
let shareCode = (params, config = {}) => http.post('/Api/User/ShareCode', params, {
    custom: {
        methodName: 'user.sharecode',
        needToken: true
    }
});
// 用户提现
let userToCash = (params, config = {}) => http.post('/Api/User/Cash', params, {
    custom: {
        methodName: 'user.cash',
        needToken: true
    }
});
// 用户提现列表
let cashList = (params, config = {}) => http.post('/Api/User/CashList', params, {
    custom: {
        methodName: 'user.cashlist',
        needToken: true
    }
});
// 判断用户下单可以使用多少积分
let usablePoint = (params, config = {}) => http.post('/Api/User/GetUserPoint', params, {
    custom: {
        methodName: 'user.getuserpoint',
        needToken: true
    }
});
 
// 门店列表
let storeList = (params, config = {}) => http.post('/Api/Store/GetStoreList', params, {
    custom: {
        methodName: 'store.getstorelist',
        needToken: false
    }
});
//根据用户序列获取门店数据
let getStoreByUserId = (params, config = {}) => http.post('/Api/Store/GetStoreByUserId', params, {
    custom: {
        methodName: 'store.getStoreByUserId',
        needToken: true
    }
});
//获取单个用户能管理的门店列表
let getStoreListForUser = (params, config = {}) => http.post('/Api/Store/GetStoreListForUser', params, {
    custom: {
        methodName: 'store.GetStoreListForUser',
        needToken: true
    }
});
//根据序列获取门店数据
let getStoreById = (params, config = {}) => http.post('/Api/Store/GetStoreById', params, {
    custom: {
        methodName: 'store.getStoreByUserId',
        needToken: false
    }
});
//获取门店订单列表
let getOrderPageByMerchant = (params, config = {}) => http.post('/Api/Store/GetOrderPageByMerchant', params, {
    custom: {
        methodName: 'store.getOrderPageByMerchant',
        needToken: true
    }
});
//获取门店订单列表
let getOrderPageByMerchantSearch = (params, config = {}) => http.post('/Api/Store/GetOrderPageByMerchantSearch',
    params, {
        custom: {
            methodName: 'store.getOrderPageByMerchantSearch',
            needToken: true
        }
    });
 
// 判断是否开启门店自提
let switchStore = (params, config = {}) => http.post('/Api/Store/GetStoreSwitch', params, {
    custom: {
        methodName: 'store.getstoreswitch',
        needToken: false
    }
});
// 获取默认的门店
let defaultStore = (params, config = {}) => http.post('/Api/Store/GetDefaultStore', params, {
    custom: {
        methodName: 'store.getdefaultstore',
        needToken: false
    }
});
// 判断是否开启积分
let isPoint = (params, config = {}) => http.post('/Api/User/isPoint', params, {
    custom: {
        methodName: 'user.ispoint',
        needToken: false
    }
});
// 用户输入code领取优惠券
let couponKey = (params, config = {}) => http.post('/Api/Coupon/GetCouponKey', params, {
    custom: {
        methodName: 'coupon.getcouponkey',
        needToken: true
    }
});
// 判断是否是店员
let isStoreUser = (params, config = {}) => http.post('/Api/Store/IsClerk', params, {
    custom: {
        methodName: 'store.isclerk',
        needToken: true
    }
});
// 获取店铺提货单列表
let storeLadingList = (params, config = {}) => http.post('/Api/Store/StoreLadingList', params, {
    custom: {
        methodName: 'store.storeladinglist',
        needToken: true
    }
});
// 获取提货单详情
let ladingInfo = (params, config = {}) => http.post('/Api/Store/LadingInfo', params, {
    custom: {
        methodName: 'store.ladinginfo',
        needToken: true
    }
});
// 店铺提单核销操作
let ladingExec = (params, config = {}) => http.post('/Api/Store/Lading', params, {
    custom: {
        methodName: 'store.lading',
        needToken: true
    }
});
// 提货单删除
let ladingDel = (params, config = {}) => http.post('/Api/Store/LadingDelete', params, {
    custom: {
        methodName: 'store.ladingdel',
        needToken: true
    }
});
 
 
 
// 获取活动列表
let activityList = (params, config = {}) => http.post('/Api/Group/GetList', params, {
    custom: {
        methodName: 'group.getlist',
        needToken: false
    }
});
// 获取活动详情
let activityDetail = (params, config = {}) => http.post('/Api/Group/GetGoodsDetial', params, {
    custom: {
        methodName: 'group.getgoodsdetial',
        needToken: false
    }
});
//小程序解析code
let onLogin = (params, config = {}) => http.post('/Api/User/OnLogin', params, {
    custom: {
        methodName: 'user.wxappOnlogin',
        needToken: false
    }
});
//小程序登录第二步(核验数据并获取用户详细资料)
let loginByDecodeEncryptedData = (params, config = {}) => http.post('/Api/User/DecodeEncryptedData', params, {
    custom: {
        methodName: 'user.wxapploginByDecodeEncryptedData',
        needToken: false
    }
});
//小程序同步用户数据
let syncWeChatInfo = (params, config = {}) => http.post('/Api/User/SyncWeChatInfo', params, {
    custom: {
        methodName: 'user.SyncWeChatInfo',
        needToken: true
    }
});
//小程序手机授权(拉取手机号码)
let loginByGetPhoneNumber = (params, config = {}) => http.post('/Api/User/DecryptPhoneNumber', params, {
    custom: {
        methodName: 'user.wxapploginByGetPhoneNumber',
        needToken: false
    }
});
//取下级地址列表
let getAreaList = (params, config = {}) => http.post('/Api/Common/GetAreas', params, {
    custom: {
        methodName: 'user.getarealist',
        needToken: false
    }
});
//取搜索页推荐关键字
let getRecommendKeys = (params, config = {}) => http.post('/Api/Common/GetRecommendKeys', params, {
    custom: {
        methodName: 'common.getrecommendkeys',
        needToken: false
    }
});
// 获取我的邀请信息
let myInvite = (params, config = {}) => http.post('/Api/User/MyInvite', params, {
    custom: {
        methodName: 'user.myinvite',
        needToken: true
    }
});
// 设置我的上级邀请人
let setMyInvite = (params, config = {}) => http.post('/Api/User/SetMyInvite', params, {
    custom: {
        methodName: 'user.SetMyInvite',
        needToken: true
    }
});
// 获取我的上级邀请人
let getMyInvite = (params, config = {}) => http.post('/Api/User/GetMyInvite', params, {
    custom: {
        methodName: 'user.GetMyInvite',
        needToken: true
    }
});
//获取我的下级发展用户数量
let getMyChildSum = (params, config = {}) => http.post('/Api/User/GetMyChildSum', params, {
    custom: {
        methodName: 'user.GetMyChildSum',
        needToken: true
    }
});
// 获取秒杀团购
let getGroup = (params, config = {}) => http.post('/Api/Group/GetList', params, {
    custom: {
        methodName: 'group.getlist',
        needToken: false
    }
});
// 获取秒杀团购详情
let groupInfo = (params, config = {}) => http.post('/Api/Group/GetGoodsDetial', params, {
    custom: {
        methodName: 'group.getgoodsdetial',
        needToken: false
    }
});
// 自定义页面
// 修改
let getPageConfig = (params, config = {}) => http.post('/Api/Page/GetPageConfig', params, {
    custom: {
        methodName: 'pages.getpageconfig',
        needToken: false
    }
});
 
 
// 获取经销商进度状态
let getDistributionInfo = (params, config = {}) => http.post('/Api/Distribution/Info', params, {
    custom: {
        methodName: 'distribution_center-api-info',
        needToken: true
    }
});
// 申请经销商
let applyDistribution = (params, config = {}) => http.post('/Api/Distribution/ApplyDistribution', params, {
    custom: {
        methodName: 'distribution_center-api-applydistribution',
        needToken: true
    }
});
// 店铺设置
let setDistributionStore = (params, config = {}) => http.post('/Api/Distribution/SetStore', params, {
    custom: {
        methodName: 'distribution_center-api-setstore',
        needToken: true
    }
});
//获取店铺信息
let getDistributionStoreInfo = (params, config = {}) => http.post('/Api/Distribution/GetStoreInfo', params, {
    custom: {
        methodName: 'distribution_center-api-getstoreinfo',
        needToken: false
    }
});
//我的经销订单
let getDistributionOrder = (params, config = {}) => http.post('/Api/Distribution/MyOrder', params, {
    custom: {
        methodName: 'distribution_center-api-myorder',
        needToken: true
    }
});
//经销团队统计
let getDistributionTeamSum = (params, config = {}) => http.post('/Api/Distribution/GetTeamSum', params, {
    custom: {
        methodName: 'distribution.getTeamSum',
        needToken: true
    }
});
//经销订单统计
let getDistributionOrderSum = (params, config = {}) => http.post('/Api/Distribution/GetOrderSum', params, {
    custom: {
        methodName: 'distribution.getOrderSum',
        needToken: true
    }
});
//获取经销商排行
let getDistributionRanking = (params, config = {}) => http.post('/Api/Distribution/getDistributionRanking', params, {
    custom: {
        methodName: 'distribution.getDistributionRanking',
        needToken: true
    }
});
 
// 获取代理商进度状态
let getAgentInfo = (params, config = {}) => http.post('/Api/Agent/Info', params, {
    custom: {
        methodName: 'agent_center-api-info',
        needToken: true
    }
});
// 申请代理商
let applyAgent = (params, config = {}) => http.post('/Api/Agent/ApplyAgent', params, {
    custom: {
        methodName: 'agent_center-api-applyAgent',
        needToken: true
    }
});
// 店铺设置
let setAgentStore = (params, config = {}) => http.post('/Api/Agent/SetStore', params, {
    custom: {
        methodName: 'agent_center-api-setstore',
        needToken: true
    }
});
//获取店铺信息
let getAgentStoreInfo = (params, config = {}) => http.post('/Api/Agent/GetStoreInfo', params, {
    custom: {
        methodName: 'agent_center-api-getstoreinfo',
        needToken: false
    }
});
//我的代理订单
let getAgentOrder = (params, config = {}) => http.post('/Api/Agent/MyOrder', params, {
    custom: {
        methodName: 'agent_center-api-myorder',
        needToken: true
    }
});
//代理团队统计
let getAgentTeamSum = (params, config = {}) => http.post('/Api/Agent/GetTeamSum', params, {
    custom: {
        methodName: 'agent.getTeamSum',
        needToken: true
    }
});
//代理订单统计
let getAgentOrderSum = (params, config = {}) => http.post('/Api/Agent/GetOrderSum', params, {
    custom: {
        methodName: 'agent.getOrderSum',
        needToken: true
    }
});
//获取代理池商品数据
let getAgentGoodsPageList = (params, config = {}) => http.post('/Api/Agent/GetGoodsPageList', params, {
    custom: {
        methodName: 'agent.getGoodsPageList',
        needToken: true
    }
});
//获取代理商排行
let getAgentRanking = (params, config = {}) => http.post('/Api/Agent/GetAgentRanking', params, {
    custom: {
        methodName: 'agent.getAgentRanking',
        needToken: true
    }
});
 
 
// 拼团列表
let pinTuanList = (params, config = {}) => http.post('/Api/PinTuan/GetList', params, {
    custom: {
        methodName: 'pinTuan.list',
        needToken: false
    }
});
// 拼团商品详情
let pinTuanGoodsInfo = (params, config = {}) => http.post('/Api/PinTuan/GetGoodsInfo', params, {
    custom: {
        methodName: 'pinTuan.goodsinfo',
        needToken: false
    }
});
// 拼团货品详情
let pinTuanProductInfo = (params, config = {}) => http.post('/Api/PinTuan/GetProductInfo', params, {
    custom: {
        methodName: 'pinTuan.productinfo',
        needToken: false
    }
});
//获取我的发票列表
let myInvoiceList = (params, config = {}) => http.post('/Api/User/UserInvoiceList', params, {
    custom: {
        methodName: 'user.myinvoicelist',
        needToken: true
    }
});
//获取支付信息
let paymentsCheckpay = (params, config = {}) => http.post('/Api/Payments/CheckPay', params, {
    custom: {
        methodName: 'payments.checkpay',
        needToken: true
    }
});
//忘记密码
let userForgetpwd = (params, config = {}) => http.post('/Api/User/ForgetPwd', params, {
    custom: {
        methodName: 'user.forgetpwd',
        needToken: false
    }
});
// 根据订单id取拼团信息,用在订单详情页
let getOrderPinTuanTeamInfo = (params, config = {}) => http.post('/Api/PinTuan/GetPinTuanTeam', params, {
    custom: {
        methodName: 'pinTuan.pinTuanteam',
        needToken: true
    }
});
//发票模糊查询
let getTaxInfo = (params, config = {}) => http.post('/Api/Order/GetTaxCode', params, {
    custom: {
        methodName: 'order.gettaxcode',
        needToken: true
    }
});
 
 
// 获取店铺设置
let getSetting = (params, config = {}) => http.post('/Api/User/GetSetting', params, {
    custom: {
        methodName: 'user.getsetting',
        needToken: false
    }
});
// 获取商户配置信息
let getSellerSetting = (params, config = {}) => http.post('/Api/User/GetSellerSetting', params, {
    custom: {
        methodName: 'user.getsellersetting',
        needToken: false
    }
});
// 获取小程序二维码
let getInviteQRCode = (params, config = {}) => http.post('/Api/Store/GetInviteQrCode', params, {
    custom: {
        methodName: 'store.getinviteqrcode',
        needToken: false
    }
});
// 生成海报
let createPoster = (params, config = {}) => http.post('/Api/User/GetPoster', params, {
    custom: {
        methodName: 'user.getposter',
        needToken: false
    }
});
 
//获取表单列表
let getFormList = (params, config = {}) => http.post('/Api/Form/GetList', params, {
    custom: {
        methodName: 'form.getformdetial',
        needToken: false
    }
});
//获取表单详情
let getFormDetial = (params, config = {}) => http.post('/Api/Form/GetFormDetial', params, {
    custom: {
        methodName: 'form.getformdetial',
        needToken: false
    }
});
//============================================================//提交表单
let addSubmitForm = (params, config = {}) => http.post('/Api/Form/AddSubmit', params, {
    custom: {
        methodName: 'form.addsubmit',
        needToken: false
    }
});
 
//================================================================////抽奖规则
let lotteryConfig = (params, config = {}) => http.post('/Api/Lottery/GetLotteryConfig', params, {
    custom: {
        methodName: 'lottery-api-getLotteryConfig',
        needToken: true
    }
});
//================================================================////抽奖操作
let lottery = (params, config = {}) => http.post('/Api/Lottery/Lottery', params, {
    custom: {
        methodName: 'lottery-api-lottery',
        needToken: true
    }
});
//================================================================////获取我的抽奖记录
let myLottery = (params, config = {}) => http.post('/Api/Lottery/LotteryLog', params, {
    custom: {
        methodName: 'lottery-api-lotteryLog',
        needToken: true
    }
});
//================================================================////生成分享URL
let createShareUrl = (params, config = {}) => http.post('/Api/User/ShareUrl', params, {
    custom: {
        methodName: 'user.shareurl',
        needToken: false
    }
});
//================================================================////微信图文消息
let messageDetail = (params, config = {}) => http.post('/Api/Articles/GetWeChatMessage', params, {
    custom: {
        methodName: 'articles.getweixinmessage',
        needToken: false
    }
});
//================================================================////获取APP版本
let getAppVersion = (params, config = {}) => http.post('/Api/Common/GetAppVersions', params, {
    custom: {
        methodName: 'Common.checkVersion',
        needToken: false
    }
});
 
//============================================================//公众号授权获取openid(第三方登录)
let getOpenId = (params, config = {}) => http.post('/Api/User/OfficialLogin', params, {
    custom: {
        methodName: 'user.officiallogin',
        needToken: false
    }
});
//============================================================// 获取授权登录方式(获取第三方登录列表)
let getTrustLogin = (params, config = {}) => http.post('/Api/User/GetTrustLogin', params, {
    custom: {
        methodName: 'user.gettrustlogin',
        needToken: false
    }
});
//============================================================// APP信任登录(app第三方登录方式)
let appTrustLogin = (params, config = {}) => http.post('/Api/User/UniAppLogin', params, {
    custom: {
        methodName: 'user.uniapplogin',
        needToken: false
    }
});
//================================================================//// 绑定授权登录
let trustBind = (params, config = {}) => http.post('/Api/User/TrustBind', params, {
    custom: {
        methodName: 'user.trustbind',
        needToken: false
    }
});
//================================================================//支付宝小程序解析code(第三方支付宝登录方式)
let alilogin1 = (params, config = {}) => http.post('/Api/User/AlipayAppLogin1', params, {
    custom: {
        methodName: 'user.alipayapplogin1',
        needToken: false
    }
});
//================================================================////头条小程序登录
let ttlogin = (params, config = {}) => http.post('/Api/User/TtLogin', params, {
    custom: {
        methodName: 'user.ttlogin',
        needToken: false
    }
});
//获取订阅模板
let getSubscriptionTmplIds = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/Tmpl', params, {
    custom: {
        methodName: 'wechat_applets_message-api-tmpl',
        needToken: true
    }
});
//订阅状态修改
let setSubscriptionStatus = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/SetTip', params, {
    custom: {
        methodName: 'wechat_applets_message-api-settip',
        needToken: true
    }
});
//用户关闭订阅提醒
let subscriptionCloseTip = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/CloseTip', params, {
    custom: {
        methodName: 'wechat_applets_message-api-closetip',
        needToken: true
    }
});
//判断用户是否需要显示订阅提醒
let subscriptionIsTip = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/IsTip', params, {
    custom: {
        methodName: 'wechat_applets_message-api-istip',
        needToken: true
    }
});
//统一分享
let share = (params, config = {}) => http.post('/Api/User/Share', params, {
    custom: {
        methodName: 'user.share',
        needToken: false
    }
});
//统一分享解码
let deshare = (params, config = {}) => http.post('/Api/User/deshare', params, {
    custom: {
        methodName: 'user.deshare',
        needToken: false
    }
});
 
//获取服务列表
let getServicelist = (params, config = {}) => http.post('/Api/Service/GetPageList', params, {
    custom: {
        methodName: 'service.getpagelist',
        needToken: false
    }
});
//获取服务详情
let getServiceDetail = (params, config = {}) => http.post('/Api/Service/GetDetails', params, {
    custom: {
        methodName: 'service.getdetail',
        needToken: false
    }
});
//生成服务购买订单
let addServiceOrder = (params, config = {}) => http.post('/Api/Service/AddServiceOrder', params, {
    custom: {
        methodName: 'service.addServiceOrder',
        needToken: true
    }
});
 
//获取个人服务订单列表
let getUserServicesPageList = (params, config = {}) => http.post('/Api/User/GetServicesPageList', params, {
    custom: {
        methodName: 'user.getServicesPageList',
        needToken: true
    }
});
//获取单个服务订单
let getServicesById = (params, config = {}) => http.post('/Api/User/GetServicesById', params, {
    custom: {
        methodName: 'user.getServicesTickets',
        needToken: true
    }
});
//获取单个服务订单下面服务券
let getServicesTickets = (params, config = {}) => http.post('/Api/User/GetServicesTickets', params, {
    custom: {
        methodName: 'user.getServicesTickets',
        needToken: true
    }
});
 
 
//门店核销的服务券列表
let getverificationPageList = (params, config = {}) => http.post('/Api/Service/VerificationPageList', params, {
    custom: {
        methodName: 'service.verificationPageList',
        needToken: true
    }
});
//删除核销券
let serviceLogDelete = (params, config = {}) => http.post('/Api/Service/LogDelete', params, {
    custom: {
        methodName: 'service.logDelete',
        needToken: true
    }
});
// 获取服务券详情准备核销
let getServiceVerificationTicketInfo = (params, config = {}) => http.post('/Api/Service/GetTicketInfo', params, {
    custom: {
        methodName: 'service.getTicketInfo',
        needToken: true
    }
});
//核销服务券
let serviceVerificationTicket = (params, config = {}) => http.post('/Api/Service/VerificationTicket', params, {
    custom: {
        methodName: 'service.verificationTicket',
        needToken: true
    }
});
 
 
//获取接龙列表
let getSolitairePageList = (params, config = {}) => http.post('/Api/Solitaire/GetList', params, {
    custom: {
        methodName: 'solitaire.getList',
        needToken: false
    }
});
let getSolitaireDetail = (params, config = {}) => http.post('/Api/Solitaire/GetDetail', params, {
    custom: {
        methodName: 'solitaire.getDetail',
        needToken: false
    }
});
 
 
//直播
let getLiveInfo = (params, config = {}) => http.post('/Api/LiveBroadCast/GetLiveInfo', params, {
    custom: {
        methodName: 'liveBroadCast.getLiveInfo',
        needToken: false
    }
});
 
 
//充值规则列表
let getTopUpTypeList = (params, config = {}) => http.post('/Api/TopUp/TypeList', params, {
    custom: {
        methodName: 'topUp.typeList',
        needToken: false
    }
});
//获取单个充值规则
let getTypeDetail = (params, config = {}) => http.post('/Api/TopUp/getTypeDetail', params, {
    custom: {
        methodName: 'topUp.getTypeDetail',
        needToken: false
    }
});
 
 
 
//本地选择图片转base64,再上传服务器存储返回地址 
let uploadFilesFByBase64 = (params, config = {}) => http.post('/Api/Common/UploadFilesFByBase64', params, {
    custom: {
        methodName: 'topUp.uploadFilesFByBase64',
        needToken: true
    }
});
 
//获取全局促销列表
let getPromotionList = (params, config = {}) => http.post('/Api/Promotion/GetPromotionList', params, {
    custom: {
        methodName: 'promotion.getPromotionList',
        needToken: false
    }
});
 
//获取发票是否开具
let checkInvoice = (params, config = {}) => http.post('/Api/Order/CheckInvoice', params, {
    custom: {
        methodName: 'order.checkInvoice',
        needToken: true
    }
});
//提交发票申请
let submitInvoiceApply = (params, config = {}) => http.post('/Api/Order/SubmitInvoiceApply', params, {
    custom: {
        methodName: 'order.submitInvoiceApply',
        needToken: true
    }
});
 
let addOfflineDistributor = (params, config = {}) => http.post('/Api/OfflineDistributor/addOfflineDistributor',
    params, {
        custom: {
            methodName: 'addOfflineDistributor',
            needToken: true
        }
    });
 
//计划订单 获取计划订单详情
let GetPlanOrder = (params, config = {}) => http.post('/Api/Order/GetPlanOrder', params, {
    custom: {
        methodName: 'GetPlanOrder',
        needToken: true
    }
});
 
//计划订单 获取计划订单列表
let GetPlanOrderList = (params, config = {}) => http.post('/Api/Order/GetPlanOrderList', params, {
    custom: {
        methodName: 'GetPlanOrderList',
        needToken: true
    }
});
//计划订单 修改计划订单
let UpdatePlanOrder = (params, config = {}) => http.post('/Api/Order/UpdatePlanOrder', params, {
    custom: {
        methodName: 'UpdatePlanOrder',
        needToken: true
    }
});
 
 
let temLogin = (params, config = {}) => http.get(`/api/LogoIn/LogoinFast?jscode=${params}`, params, {
    custom: {
        methodName: 'LogoinFast',
        needToken: false
    }
});
let CreateUser = (params, config = {}) => http.post(`/api/LogoIn/CreateUser`, params, {
    custom: {
        methodName: 'CreateUser',
        needToken: false
    }
});
 
//本地选择图片转base64,再上传服务器存储返回地址 
let UpdateFileBase64 = (params, config = {}) => http.post('/api/UpFile/UpdateFileBase64', params, {
    custom: {
        methodName: 'topUp.UpdateFileBase64',
        needToken: true
    }
});
 
// 增加人脸特征
let IaiAddPerso = (params, config = {}) => http.post(`/api/UpFile/IaiAddPerso`, params, {
    custom: {
        methodName: 'topUp.IaiAddPerso',
        needToken: true
    },
    params:config
});
 
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
export {
    temLogin, //登录
    CreateUser, //注册并登录
    UpdateFileBase64, //转换成base64
    IaiAddPerso
};
// }
 
// export default {
//     install
// }