xiaoe_mp_npm 1.0.6 → 1.0.7-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +44 -44
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +160 -160
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.js +115 -115
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +890 -890
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -23
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -188
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +448 -448
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.json +9 -9
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +222 -222
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxml +81 -81
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +90 -90
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +60 -60
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +39 -39
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.js +249 -249
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +61 -61
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.scss +40 -40
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.js +89 -89
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxml +13 -13
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.js +99 -99
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.json +6 -6
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.scss +150 -150
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -39
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/filter.wxs +6 -6
- package/miniprogram_dist/ConfirmOrder/index.js +110 -110
- package/miniprogram_dist/CopGoodsCard/constans.js +462 -462
- package/miniprogram_dist/CopGoodsCard/index.js +147 -147
- package/miniprogram_dist/CopGoodsCard/index.json +2 -2
- package/miniprogram_dist/CopGoodsCard/index.scss +100 -100
- package/miniprogram_dist/CopGoodsCard/index.wxml +20 -20
- package/miniprogram_dist/CouponList/components/CouponItem/index.css +1715 -1715
- package/miniprogram_dist/CouponList/components/CouponItem/index.js +325 -319
- package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +1 -1
- package/miniprogram_dist/CouponList/components/CouponItem/index.scss +591 -591
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +199 -199
- package/miniprogram_dist/CouponList/couponColumn/index.js +176 -176
- package/miniprogram_dist/CouponList/couponColumn/index.scss +117 -117
- package/miniprogram_dist/CouponList/couponColumn/index.wxml +39 -39
- package/miniprogram_dist/CouponReceivePopup/index.js +72 -72
- package/miniprogram_dist/CouponReceivePopup/index.json +5 -5
- package/miniprogram_dist/CouponReceivePopup/index.scss +99 -99
- package/miniprogram_dist/CouponReceivePopup/index.wxml +85 -85
- package/miniprogram_dist/CustomPopup/index.js +82 -82
- package/miniprogram_dist/CustomPopup/index.wxml +25 -25
- package/miniprogram_dist/GoodsItem/index.js +745 -745
- package/miniprogram_dist/GoodsItem/index.scss +524 -524
- package/miniprogram_dist/GoodsItem/index.wxml +173 -173
- package/miniprogram_dist/GoodsItem/index.wxs +18 -18
- package/miniprogram_dist/GoodsRecommend/fun.wxs +37 -37
- package/miniprogram_dist/GoodsRecommend/index.js +91 -91
- package/miniprogram_dist/GoodsRecommend/index.json +3 -3
- package/miniprogram_dist/GoodsRecommend/index.less +129 -129
- package/miniprogram_dist/GoodsRecommend/index.scss +162 -162
- package/miniprogram_dist/GoodsRecommend/index.wxml +47 -47
- package/miniprogram_dist/LiveGoodsList/Header/index.scss +78 -78
- package/miniprogram_dist/LiveGoodsList/index.js +821 -821
- package/miniprogram_dist/LiveGoodsList/index.scss +92 -92
- package/miniprogram_dist/LiveGoodsList/index.wxml +106 -106
- package/miniprogram_dist/PayModule/button/index.scss +44 -44
- package/miniprogram_dist/PayModule/index/index.js +264 -264
- package/miniprogram_dist/Task/TaskBubble/index.js +117 -117
- package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
- package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
- package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
- package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
- package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
- package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
- package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +19 -19
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +207 -207
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +139 -139
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +43 -43
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +146 -146
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +75 -75
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -9
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +59 -59
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +42 -42
- package/miniprogram_dist/Task/TaskPopup/index.js +113 -113
- package/miniprogram_dist/Task/TaskPopup/index.json +8 -8
- package/miniprogram_dist/Task/TaskPopup/index.scss +113 -113
- package/miniprogram_dist/Task/TaskPopup/index.wxml +67 -67
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +52 -52
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +91 -91
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +53 -53
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
- package/miniprogram_dist/Task/taskReceivePopup/index.js +30 -30
- package/miniprogram_dist/Task/taskReceivePopup/index.json +11 -11
- package/miniprogram_dist/Task/taskReceivePopup/index.wxml +18 -18
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +37 -37
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +17 -17
- package/miniprogram_dist/TeacherGoodsList/index.js +825 -825
- package/miniprogram_dist/TeacherGoodsList/index.json +9 -9
- package/miniprogram_dist/TeacherGoodsList/index.scss +145 -145
- package/miniprogram_dist/TeacherGoodsList/index.wxml +110 -110
- package/miniprogram_dist/common/api/confirmOrder.js +223 -223
- package/miniprogram_dist/common/api/couponlist.js +2 -63
- package/miniprogram_dist/common/api/liveGoodsList.js +89 -89
- package/miniprogram_dist/common/api/sku.js +73 -73
- package/miniprogram_dist/common/utils/index.js +69 -69
- package/miniprogram_dist/coupon/components/CouponItem/index.less +208 -208
- package/miniprogram_dist/coupon/components/CouponItem/index.scss +246 -246
- package/miniprogram_dist/coupon/components/CouponSelect/index.scss +330 -330
- package/miniprogram_dist/coupon/index.js +248 -248
- package/miniprogram_dist/coupon/index.scss +83 -83
- package/package.json +78 -78
- package/src/ConfirmOrder/components/AddressSelect/index.js +160 -160
- package/src/ConfirmOrder/components/ChoosePicker/index.js +115 -115
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +890 -890
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -23
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -188
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +51 -51
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxss +1 -1
- package/src/ConfirmOrder/components/GoodsInfo/index.js +448 -448
- package/src/ConfirmOrder/components/GoodsInfo/index.json +9 -9
- package/src/ConfirmOrder/components/GoodsInfo/index.scss +222 -222
- package/src/ConfirmOrder/components/GoodsInfo/index.wxml +81 -81
- package/src/ConfirmOrder/components/GoodsInfo/index.wxss +673 -673
- package/src/ConfirmOrder/components/IntegralSelect/index.scss +90 -90
- package/src/ConfirmOrder/components/IntegralSelect/index.wxss +218 -218
- package/src/ConfirmOrder/components/Invoice/index.scss +60 -60
- package/src/ConfirmOrder/components/Invoice/index.wxss +93 -93
- package/src/ConfirmOrder/components/LeaveWord/index.scss +39 -39
- package/src/ConfirmOrder/components/LeaveWord/index.wxss +34 -34
- package/src/ConfirmOrder/components/PayBar/index.js +249 -249
- package/src/ConfirmOrder/components/PayBar/index.scss +61 -61
- package/src/ConfirmOrder/components/PayBar/index.wxss +108 -108
- package/src/ConfirmOrder/components/PayDetail/index.scss +40 -40
- package/src/ConfirmOrder/components/PayDetail/index.wxss +50 -50
- package/src/ConfirmOrder/components/PickupSelect/index.js +89 -89
- package/src/ConfirmOrder/components/PickupSelect/index.wxml +13 -13
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.js +99 -99
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.json +6 -6
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.scss +150 -150
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -39
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +266 -266
- package/src/ConfirmOrder/components/SvipSelect/filter.wxs +6 -6
- package/src/ConfirmOrder/index.js +110 -110
- package/src/CopGoodsCard/constans.js +462 -462
- package/src/CopGoodsCard/index.js +147 -147
- package/src/CopGoodsCard/index.json +2 -2
- package/src/CopGoodsCard/index.scss +100 -100
- package/src/CopGoodsCard/index.wxml +20 -20
- package/src/CopGoodsCard/index.wxss +1 -1
- package/src/CouponList/components/CouponItem/index.css +1715 -1715
- package/src/CouponList/components/CouponItem/index.js +325 -319
- package/src/CouponList/components/CouponItem/index.min.css +1 -1
- package/src/CouponList/components/CouponItem/index.scss +591 -591
- package/src/CouponList/components/CouponItem/index.wxml +199 -199
- package/src/CouponList/components/CouponItem/index.wxss +1715 -1715
- package/src/CouponList/couponColumn/index.js +176 -176
- package/src/CouponList/couponColumn/index.scss +117 -117
- package/src/CouponList/couponColumn/index.wxml +39 -39
- package/src/CouponList/couponColumn/index.wxss +265 -265
- package/src/CouponReceivePopup/index.js +72 -72
- package/src/CouponReceivePopup/index.json +5 -5
- package/src/CouponReceivePopup/index.scss +99 -99
- package/src/CouponReceivePopup/index.wxml +85 -85
- package/src/CouponReceivePopup/index.wxss +1 -1
- package/src/CustomPopup/index.js +82 -82
- package/src/CustomPopup/index.wxml +25 -25
- package/src/GoodsItem/index.js +745 -745
- package/src/GoodsItem/index.scss +524 -524
- package/src/GoodsItem/index.wxml +173 -173
- package/src/GoodsItem/index.wxs +18 -18
- package/src/GoodsItem/index.wxss +1935 -1935
- package/src/GoodsRecommend/fun.wxs +37 -37
- package/src/GoodsRecommend/index.js +91 -91
- package/src/GoodsRecommend/index.json +3 -3
- package/src/GoodsRecommend/index.less +129 -129
- package/src/GoodsRecommend/index.scss +162 -162
- package/src/GoodsRecommend/index.wxml +47 -47
- package/src/GoodsRecommend/index.wxss +537 -537
- package/src/LiveGoodsList/Header/index.scss +78 -78
- package/src/LiveGoodsList/Header/index.wxss +190 -190
- package/src/LiveGoodsList/index.js +821 -821
- package/src/LiveGoodsList/index.scss +92 -92
- package/src/LiveGoodsList/index.wxml +106 -106
- package/src/LiveGoodsList/index.wxss +230 -230
- package/src/PayModule/button/index.scss +44 -44
- package/src/PayModule/button/index.wxss +58 -58
- package/src/PayModule/index/index.js +264 -264
- package/src/Sku/commSelect/index.wxss +54 -54
- package/src/Task/TaskBubble/index.js +117 -117
- package/src/Task/TaskBubble/index.json +3 -3
- package/src/Task/TaskBubble/index.scss +125 -125
- package/src/Task/TaskBubble/index.wxml +22 -22
- package/src/Task/TaskBubble/index.wxss +289 -289
- package/src/Task/TaskIcon/index.js +29 -29
- package/src/Task/TaskIcon/index.json +4 -4
- package/src/Task/TaskIcon/index.scss +70 -70
- package/src/Task/TaskIcon/index.wxml +5 -5
- package/src/Task/TaskIcon/index.wxss +130 -130
- package/src/Task/TaskPopup/component/RewardList/index.js +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.wxml +19 -19
- package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
- package/src/Task/TaskPopup/component/TaskItem/index.js +207 -207
- package/src/Task/TaskPopup/component/TaskItem/index.json +5 -5
- package/src/Task/TaskPopup/component/TaskItem/index.scss +139 -139
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +43 -43
- package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +394 -394
- package/src/Task/TaskPopup/component/TaskList/index.js +146 -146
- package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/src/Task/TaskPopup/component/TaskList/index.wxml +39 -39
- package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
- package/src/Task/TaskPopup/component/TaskType/index.js +75 -75
- package/src/Task/TaskPopup/component/TaskType/index.json +9 -9
- package/src/Task/TaskPopup/component/TaskType/index.scss +59 -59
- package/src/Task/TaskPopup/component/TaskType/index.wxml +42 -42
- package/src/Task/TaskPopup/component/TaskType/index.wxss +98 -98
- package/src/Task/TaskPopup/index.js +113 -113
- package/src/Task/TaskPopup/index.json +8 -8
- package/src/Task/TaskPopup/index.scss +113 -113
- package/src/Task/TaskPopup/index.wxml +67 -67
- package/src/Task/TaskPopup/index.wxss +306 -306
- package/src/Task/taskReceivePopup/coupon/index.js +52 -52
- package/src/Task/taskReceivePopup/coupon/index.json +6 -6
- package/src/Task/taskReceivePopup/coupon/index.scss +91 -91
- package/src/Task/taskReceivePopup/coupon/index.wxml +53 -53
- package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
- package/src/Task/taskReceivePopup/coupon/index.wxss +187 -187
- package/src/Task/taskReceivePopup/index.js +30 -30
- package/src/Task/taskReceivePopup/index.json +11 -11
- package/src/Task/taskReceivePopup/index.wxml +18 -18
- package/src/Task/taskReceivePopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/integral/index.js +37 -37
- package/src/Task/taskReceivePopup/integral/index.json +6 -6
- package/src/Task/taskReceivePopup/integral/index.scss +60 -60
- package/src/Task/taskReceivePopup/integral/index.wxml +17 -17
- package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
- package/src/TeacherGoodsList/index.js +825 -825
- package/src/TeacherGoodsList/index.json +9 -9
- package/src/TeacherGoodsList/index.scss +145 -145
- package/src/TeacherGoodsList/index.wxml +110 -110
- package/src/TeacherGoodsList/index.wxss +196 -196
- package/src/common/api/confirmOrder.js +223 -223
- package/src/common/api/couponlist.js +2 -63
- package/src/common/api/liveGoodsList.js +89 -89
- package/src/common/api/sku.js +73 -73
- package/src/common/utils/index.js +69 -69
- package/src/coupon/components/CouponItem/index.less +208 -208
- package/src/coupon/components/CouponItem/index.scss +246 -246
- package/src/coupon/components/CouponItem/index.wxss +821 -821
- package/src/coupon/components/CouponSelect/index.scss +330 -330
- package/src/coupon/components/CouponSelect/index.wxss +1132 -1132
- package/src/coupon/index.js +248 -248
- package/src/coupon/index.scss +83 -83
- package/src/coupon/index.wxss +216 -216
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Descripttion:
|
|
3
|
-
* @version:
|
|
4
|
-
* @Author: conlinchen
|
|
5
|
-
* @Date: 2021-11-10 14:54:43
|
|
6
|
-
* @LastEditors: zongxinliu
|
|
7
|
-
* @LastEditTime: 2021-12-02 17:22:31
|
|
8
|
-
*/
|
|
9
|
-
const http = require("live-mp-tools")
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* ------------------- 接口api -------------------
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// 接口前缀
|
|
16
|
-
let gateway = (data = "_alive/") => {
|
|
17
|
-
return data;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// 确认订单页面API
|
|
21
|
-
const CONFIRM_ORDER = {
|
|
22
|
-
CONFIRM_ORDER_DETAIL: `${gateway()}xe.transaction.order.confirm_detail.get/1.0.0`,
|
|
23
|
-
SWITCH_STATE: `${gateway()}xe.ecommerce.logistics_go.get_self_pick_state/1.0.0`,
|
|
24
|
-
SVIP_INFO_DETAIL: `${gateway()}xe.svip.info.get_by_resource.detail/1.0.0`,
|
|
25
|
-
GOODS_PACKAGE: `${gateway()}xe.spu.goods_package.detail/1.0.0`,
|
|
26
|
-
COP_GOODS_LIST: `${gateway()}xe.ecommerce.goods_detail.c.cop_child_sku_abnormal.check/1.0.0`,
|
|
27
|
-
FEATURE_INFO: `${gateway()}xe.ecommerce.goods_center.get_feature_info_detail/1.0.0`,
|
|
28
|
-
MARKET_INFO: `${gateway()}xe.marketing.basic.activity.info/1.0.0`,
|
|
29
|
-
INFO_V3: `${gateway()}xe.transaction.pay.order_info_v3.get/1.0.0`,
|
|
30
|
-
PACKAGE_GOODS_LIST: `${gateway()}marketing/get_package_goods_list`,
|
|
31
|
-
ORDER_DATA: `${gateway()}xe.order.payment.info/1.0.0`,
|
|
32
|
-
INTEGRAL_DATA: `${gateway()}xe.transaction.integral.order_grant.get/1.0.0`,
|
|
33
|
-
CART_LEAD_GROUP: `${gateway()}get_shop_guide_config`,
|
|
34
|
-
LEAD_GROUP: `${gateway()}get_qrcode_when_purchase_successful`,
|
|
35
|
-
SHOP_MODULE: `${gateway()}shop_conf/get_shop_module_conf`,
|
|
36
|
-
RULE_CONTENT: `${gateway()}xe.point.deduct.rulecontent/1.0.0`,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// 快递、自提相关API
|
|
40
|
-
const ADDRESS = {
|
|
41
|
-
PICHER_INFO: `${gateway()}xe.ecommerce.logistics_go.get_picker_info/1.0.0`,
|
|
42
|
-
SELF_SERVICE_LIST: `${gateway()}xe.ecommce_logistics.self_service.get.list/2.0.0`,
|
|
43
|
-
PICHER_LIST: `${gateway()}xe.ecommce_logistics.picker.get_picker_list/2.0.0`,
|
|
44
|
-
SELECT_RECEIVE_ADDRESS: `${gateway()}entity_goods/select_receive_address`,
|
|
45
|
-
RECEIVE_ADDRESS: `${gateway()}entity_goods/receive_address_list`,
|
|
46
|
-
REGION: `${gateway()}entity_goods/get_region`,
|
|
47
|
-
DELETE_ADDRESS: `${gateway()}entity_goods/delete_receive_address`,
|
|
48
|
-
CREATE_ADDRESS: `${gateway()}entity_goods/create_receive_address`,
|
|
49
|
-
UPDATE_ADDRESS: `${gateway()}entity_goods/update_receive_address`,
|
|
50
|
-
PICKER_ADD: `${gateway()}xe.ecommce_logistics.picker.add_picker_info/2.0.0`,
|
|
51
|
-
PICKER_UPDATE: `${gateway()}xe.ecommce_logistics.picker.update_picker_info/2.0.0`,
|
|
52
|
-
PICKER_DELETE: `${gateway()}xe.ecommce_logistics.picker.delete_picker_info/2.0.0`,
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* ------------------- 封装接口请求 -------------------
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
// 批价信息
|
|
60
|
-
const getPrePayInfoV3 = (params, isNeedBiz = true, config = {}) => {
|
|
61
|
-
return http.player.post(CONFIRM_ORDER.INFO_V3, params, isNeedBiz, config)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// 确认订单信息
|
|
65
|
-
const getConfirmOrderDetail = async (params, isNeedBiz = true, config = {}) => {
|
|
66
|
-
let result = await http.player.post(CONFIRM_ORDER.CONFIRM_ORDER_DETAIL, params, isNeedBiz, config)
|
|
67
|
-
return result;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// 商品配送方式
|
|
71
|
-
const getExpressSwitch = (isNeedBiz = false, config = {}) => {
|
|
72
|
-
return http.player.post(CONFIRM_ORDER.SWITCH_STATE, {}, isNeedBiz, config)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// 自提人信息吧
|
|
76
|
-
const getPickerInfo = (params, isNeedBiz = false, config = {}) => {
|
|
77
|
-
return http.player.post(ADDRESS.PICHER_INFO, params, isNeedBiz, config)
|
|
78
|
-
}
|
|
79
|
-
// 商品的套餐信息
|
|
80
|
-
const getGoodsPackage = (params, isNeedBiz = true, config = {}) => {
|
|
81
|
-
return http.player.post(CONFIRM_ORDER.GOODS_PACKAGE, params, isNeedBiz, config)
|
|
82
|
-
}
|
|
83
|
-
// 获取组合商品
|
|
84
|
-
const getGoodsList = (params, isNeedBiz = false, config = {}) => {
|
|
85
|
-
return http.player.post(CONFIRM_ORDER.COP_GOODS_LIST, params, isNeedBiz, config)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// 获取超级会员相关信息
|
|
89
|
-
const getSuperVipInfo = (params, isNeedBiz = true, config = {}) => {
|
|
90
|
-
return http.player.post(CONFIRM_ORDER.SVIP_INFO_DETAIL, params, isNeedBiz, config)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// 业务特性信息
|
|
94
|
-
const getBusinessFeature = (params, isNeedBiz = true, config = {}) => {
|
|
95
|
-
return http.player.post(CONFIRM_ORDER.FEATURE_INFO, params, isNeedBiz, config)
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// 获取营销活动信息
|
|
99
|
-
const getMarketingInfo = (params, isNeedBiz = true, config = {}) => {
|
|
100
|
-
return http.player.post(CONFIRM_ORDER.MARKET_INFO, params, isNeedBiz, config)
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// 订单数据
|
|
104
|
-
const initOrderData = (params, isNeedBiz = true, config = {}) => {
|
|
105
|
-
return http.player.post(CONFIRM_ORDER.ORDER_DATA, params, isNeedBiz, config)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// 获取积分获取数据
|
|
109
|
-
const getIntegralData = (params, isNeedBiz = true, config = {}) => {
|
|
110
|
-
return http.player.post(CONFIRM_ORDER.INTEGRAL_DATA, params, isNeedBiz, config)
|
|
111
|
-
}
|
|
112
|
-
// 获取购物车跳转到支付完成也特殊调用的引导加群
|
|
113
|
-
const getCartLeadGroup = (params, isNeedBiz = true, config = {}) => {
|
|
114
|
-
return http.player.post(CONFIRM_ORDER.CART_LEAD_GROUP, params, isNeedBiz, config)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// 获取支付完成页引导加群数据
|
|
118
|
-
const getLeadGroup = (params, isNeedBiz = true, config = {}) => {
|
|
119
|
-
return http.player.post(CONFIRM_ORDER.LEAD_GROUP, params, isNeedBiz, config)
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// 获取收货地址列表
|
|
123
|
-
const getReceiveAddress = (isNeedBiz = false, config = {}) => {
|
|
124
|
-
return http.player.post(ADDRESS.RECEIVE_ADDRESS, {}, isNeedBiz, config)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// 查询地址信息
|
|
128
|
-
const getAddressInfo = async (params, isNeedBiz = true, config = {}) => {
|
|
129
|
-
let result = await http.player.post(ADDRESS.SELECT_RECEIVE_ADDRESS, params, isNeedBiz, config)
|
|
130
|
-
return result;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// 省市区
|
|
134
|
-
const getCityList = (isNeedBiz = false, config = {}) => {
|
|
135
|
-
return http.player.post(ADDRESS.REGION, {}, isNeedBiz, config)
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// 删除地址
|
|
139
|
-
const deleteAddress = (params, isNeedBiz = true, config = {}) => {
|
|
140
|
-
return http.player.post(ADDRESS.DELETE_ADDRESS, params, isNeedBiz, config)
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// 修改地址
|
|
144
|
-
const updateAddress = (params, isNeedBiz = true, config = {}) => {
|
|
145
|
-
return http.player.post(ADDRESS.UPDATE_ADDRESS, params, isNeedBiz, config)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// 保存地址
|
|
149
|
-
const createAddress = (params, isNeedBiz = true, config = {}) => {
|
|
150
|
-
return http.player.post(ADDRESS.CREATE_ADDRESS, params, isNeedBiz, config)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// 自提点列表
|
|
154
|
-
const getSelfServiceList = (params, isNeedBiz = true, config = {}) => {
|
|
155
|
-
return http.player.post(ADDRESS.SELF_SERVICE_LIST, params, isNeedBiz, config)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// 获取提货人列表
|
|
159
|
-
const getPickerList = (isNeedBiz = false, config = {}) => {
|
|
160
|
-
return http.player.post(ADDRESS.PICHER_LIST, {}, isNeedBiz, config)
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// 新增提货人
|
|
164
|
-
const addPicker = (params, isNeedBiz = true, config = {}) => {
|
|
165
|
-
return http.player.post(ADDRESS.PICKER_ADD, params, isNeedBiz, config)
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// 修改自提人
|
|
169
|
-
const updatePicker = (params, isNeedBiz = true, config = {}) => {
|
|
170
|
-
return http.player.post(ADDRESS.PICKER_UPDATE, params, isNeedBiz, config)
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// 删除
|
|
174
|
-
const deletePicker = (params, isNeedBiz = true, config = {}) => {
|
|
175
|
-
return http.player.post(ADDRESS.PICKER_DELETE, params, isNeedBiz, config)
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// 获取关联的商品列表
|
|
179
|
-
const getGoodsInfo = (params, isNeedBiz = true, config = {}) => {
|
|
180
|
-
return http.player.post(CONFIRM_ORDER.PACKAGE_GOODS_LIST, params, isNeedBiz, config)
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// 初始化店铺设置信息
|
|
184
|
-
const getShopConf = (isNeedBiz = true, config = {}) => {
|
|
185
|
-
let params = {
|
|
186
|
-
modules: ['switches', 'guideContact', 'physicalGoods']
|
|
187
|
-
}
|
|
188
|
-
return http.player.post(CONFIRM_ORDER.SHOP_MODULE, params, isNeedBiz, config)
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// 获取积分规则
|
|
192
|
-
const getRules = (isNeedBiz = false, config = {}) => {
|
|
193
|
-
return http.player.post(CONFIRM_ORDER.RULE_CONTENT, {}, isNeedBiz, config)
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
module.exports = {
|
|
197
|
-
getPrePayInfoV3,
|
|
198
|
-
getConfirmOrderDetail,
|
|
199
|
-
getExpressSwitch,
|
|
200
|
-
getPickerInfo,
|
|
201
|
-
getGoodsPackage,
|
|
202
|
-
getGoodsList,
|
|
203
|
-
getSuperVipInfo,
|
|
204
|
-
getBusinessFeature,
|
|
205
|
-
getMarketingInfo,
|
|
206
|
-
getReceiveAddress,
|
|
207
|
-
getAddressInfo,
|
|
208
|
-
getCityList,
|
|
209
|
-
deleteAddress,
|
|
210
|
-
updateAddress,
|
|
211
|
-
createAddress,
|
|
212
|
-
getSelfServiceList,
|
|
213
|
-
getPickerList,
|
|
214
|
-
addPicker,
|
|
215
|
-
updatePicker,
|
|
216
|
-
deletePicker,
|
|
217
|
-
getGoodsInfo,
|
|
218
|
-
initOrderData,
|
|
219
|
-
getIntegralData,
|
|
220
|
-
getCartLeadGroup,
|
|
221
|
-
getLeadGroup,
|
|
222
|
-
getShopConf,
|
|
223
|
-
getRules
|
|
1
|
+
/*
|
|
2
|
+
* @Descripttion:
|
|
3
|
+
* @version:
|
|
4
|
+
* @Author: conlinchen
|
|
5
|
+
* @Date: 2021-11-10 14:54:43
|
|
6
|
+
* @LastEditors: zongxinliu
|
|
7
|
+
* @LastEditTime: 2021-12-02 17:22:31
|
|
8
|
+
*/
|
|
9
|
+
const http = require("live-mp-tools")
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* ------------------- 接口api -------------------
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// 接口前缀
|
|
16
|
+
let gateway = (data = "_alive/") => {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// 确认订单页面API
|
|
21
|
+
const CONFIRM_ORDER = {
|
|
22
|
+
CONFIRM_ORDER_DETAIL: `${gateway()}xe.transaction.order.confirm_detail.get/1.0.0`,
|
|
23
|
+
SWITCH_STATE: `${gateway()}xe.ecommerce.logistics_go.get_self_pick_state/1.0.0`,
|
|
24
|
+
SVIP_INFO_DETAIL: `${gateway()}xe.svip.info.get_by_resource.detail/1.0.0`,
|
|
25
|
+
GOODS_PACKAGE: `${gateway()}xe.spu.goods_package.detail/1.0.0`,
|
|
26
|
+
COP_GOODS_LIST: `${gateway()}xe.ecommerce.goods_detail.c.cop_child_sku_abnormal.check/1.0.0`,
|
|
27
|
+
FEATURE_INFO: `${gateway()}xe.ecommerce.goods_center.get_feature_info_detail/1.0.0`,
|
|
28
|
+
MARKET_INFO: `${gateway()}xe.marketing.basic.activity.info/1.0.0`,
|
|
29
|
+
INFO_V3: `${gateway()}xe.transaction.pay.order_info_v3.get/1.0.0`,
|
|
30
|
+
PACKAGE_GOODS_LIST: `${gateway()}marketing/get_package_goods_list`,
|
|
31
|
+
ORDER_DATA: `${gateway()}xe.order.payment.info/1.0.0`,
|
|
32
|
+
INTEGRAL_DATA: `${gateway()}xe.transaction.integral.order_grant.get/1.0.0`,
|
|
33
|
+
CART_LEAD_GROUP: `${gateway()}get_shop_guide_config`,
|
|
34
|
+
LEAD_GROUP: `${gateway()}get_qrcode_when_purchase_successful`,
|
|
35
|
+
SHOP_MODULE: `${gateway()}shop_conf/get_shop_module_conf`,
|
|
36
|
+
RULE_CONTENT: `${gateway()}xe.point.deduct.rulecontent/1.0.0`,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// 快递、自提相关API
|
|
40
|
+
const ADDRESS = {
|
|
41
|
+
PICHER_INFO: `${gateway()}xe.ecommerce.logistics_go.get_picker_info/1.0.0`,
|
|
42
|
+
SELF_SERVICE_LIST: `${gateway()}xe.ecommce_logistics.self_service.get.list/2.0.0`,
|
|
43
|
+
PICHER_LIST: `${gateway()}xe.ecommce_logistics.picker.get_picker_list/2.0.0`,
|
|
44
|
+
SELECT_RECEIVE_ADDRESS: `${gateway()}entity_goods/select_receive_address`,
|
|
45
|
+
RECEIVE_ADDRESS: `${gateway()}entity_goods/receive_address_list`,
|
|
46
|
+
REGION: `${gateway()}entity_goods/get_region`,
|
|
47
|
+
DELETE_ADDRESS: `${gateway()}entity_goods/delete_receive_address`,
|
|
48
|
+
CREATE_ADDRESS: `${gateway()}entity_goods/create_receive_address`,
|
|
49
|
+
UPDATE_ADDRESS: `${gateway()}entity_goods/update_receive_address`,
|
|
50
|
+
PICKER_ADD: `${gateway()}xe.ecommce_logistics.picker.add_picker_info/2.0.0`,
|
|
51
|
+
PICKER_UPDATE: `${gateway()}xe.ecommce_logistics.picker.update_picker_info/2.0.0`,
|
|
52
|
+
PICKER_DELETE: `${gateway()}xe.ecommce_logistics.picker.delete_picker_info/2.0.0`,
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* ------------------- 封装接口请求 -------------------
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
// 批价信息
|
|
60
|
+
const getPrePayInfoV3 = (params, isNeedBiz = true, config = {}) => {
|
|
61
|
+
return http.player.post(CONFIRM_ORDER.INFO_V3, params, isNeedBiz, config)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// 确认订单信息
|
|
65
|
+
const getConfirmOrderDetail = async (params, isNeedBiz = true, config = {}) => {
|
|
66
|
+
let result = await http.player.post(CONFIRM_ORDER.CONFIRM_ORDER_DETAIL, params, isNeedBiz, config)
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 商品配送方式
|
|
71
|
+
const getExpressSwitch = (isNeedBiz = false, config = {}) => {
|
|
72
|
+
return http.player.post(CONFIRM_ORDER.SWITCH_STATE, {}, isNeedBiz, config)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// 自提人信息吧
|
|
76
|
+
const getPickerInfo = (params, isNeedBiz = false, config = {}) => {
|
|
77
|
+
return http.player.post(ADDRESS.PICHER_INFO, params, isNeedBiz, config)
|
|
78
|
+
}
|
|
79
|
+
// 商品的套餐信息
|
|
80
|
+
const getGoodsPackage = (params, isNeedBiz = true, config = {}) => {
|
|
81
|
+
return http.player.post(CONFIRM_ORDER.GOODS_PACKAGE, params, isNeedBiz, config)
|
|
82
|
+
}
|
|
83
|
+
// 获取组合商品
|
|
84
|
+
const getGoodsList = (params, isNeedBiz = false, config = {}) => {
|
|
85
|
+
return http.player.post(CONFIRM_ORDER.COP_GOODS_LIST, params, isNeedBiz, config)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// 获取超级会员相关信息
|
|
89
|
+
const getSuperVipInfo = (params, isNeedBiz = true, config = {}) => {
|
|
90
|
+
return http.player.post(CONFIRM_ORDER.SVIP_INFO_DETAIL, params, isNeedBiz, config)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 业务特性信息
|
|
94
|
+
const getBusinessFeature = (params, isNeedBiz = true, config = {}) => {
|
|
95
|
+
return http.player.post(CONFIRM_ORDER.FEATURE_INFO, params, isNeedBiz, config)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// 获取营销活动信息
|
|
99
|
+
const getMarketingInfo = (params, isNeedBiz = true, config = {}) => {
|
|
100
|
+
return http.player.post(CONFIRM_ORDER.MARKET_INFO, params, isNeedBiz, config)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// 订单数据
|
|
104
|
+
const initOrderData = (params, isNeedBiz = true, config = {}) => {
|
|
105
|
+
return http.player.post(CONFIRM_ORDER.ORDER_DATA, params, isNeedBiz, config)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// 获取积分获取数据
|
|
109
|
+
const getIntegralData = (params, isNeedBiz = true, config = {}) => {
|
|
110
|
+
return http.player.post(CONFIRM_ORDER.INTEGRAL_DATA, params, isNeedBiz, config)
|
|
111
|
+
}
|
|
112
|
+
// 获取购物车跳转到支付完成也特殊调用的引导加群
|
|
113
|
+
const getCartLeadGroup = (params, isNeedBiz = true, config = {}) => {
|
|
114
|
+
return http.player.post(CONFIRM_ORDER.CART_LEAD_GROUP, params, isNeedBiz, config)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 获取支付完成页引导加群数据
|
|
118
|
+
const getLeadGroup = (params, isNeedBiz = true, config = {}) => {
|
|
119
|
+
return http.player.post(CONFIRM_ORDER.LEAD_GROUP, params, isNeedBiz, config)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// 获取收货地址列表
|
|
123
|
+
const getReceiveAddress = (isNeedBiz = false, config = {}) => {
|
|
124
|
+
return http.player.post(ADDRESS.RECEIVE_ADDRESS, {}, isNeedBiz, config)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 查询地址信息
|
|
128
|
+
const getAddressInfo = async (params, isNeedBiz = true, config = {}) => {
|
|
129
|
+
let result = await http.player.post(ADDRESS.SELECT_RECEIVE_ADDRESS, params, isNeedBiz, config)
|
|
130
|
+
return result;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// 省市区
|
|
134
|
+
const getCityList = (isNeedBiz = false, config = {}) => {
|
|
135
|
+
return http.player.post(ADDRESS.REGION, {}, isNeedBiz, config)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// 删除地址
|
|
139
|
+
const deleteAddress = (params, isNeedBiz = true, config = {}) => {
|
|
140
|
+
return http.player.post(ADDRESS.DELETE_ADDRESS, params, isNeedBiz, config)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// 修改地址
|
|
144
|
+
const updateAddress = (params, isNeedBiz = true, config = {}) => {
|
|
145
|
+
return http.player.post(ADDRESS.UPDATE_ADDRESS, params, isNeedBiz, config)
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 保存地址
|
|
149
|
+
const createAddress = (params, isNeedBiz = true, config = {}) => {
|
|
150
|
+
return http.player.post(ADDRESS.CREATE_ADDRESS, params, isNeedBiz, config)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// 自提点列表
|
|
154
|
+
const getSelfServiceList = (params, isNeedBiz = true, config = {}) => {
|
|
155
|
+
return http.player.post(ADDRESS.SELF_SERVICE_LIST, params, isNeedBiz, config)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 获取提货人列表
|
|
159
|
+
const getPickerList = (isNeedBiz = false, config = {}) => {
|
|
160
|
+
return http.player.post(ADDRESS.PICHER_LIST, {}, isNeedBiz, config)
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// 新增提货人
|
|
164
|
+
const addPicker = (params, isNeedBiz = true, config = {}) => {
|
|
165
|
+
return http.player.post(ADDRESS.PICKER_ADD, params, isNeedBiz, config)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// 修改自提人
|
|
169
|
+
const updatePicker = (params, isNeedBiz = true, config = {}) => {
|
|
170
|
+
return http.player.post(ADDRESS.PICKER_UPDATE, params, isNeedBiz, config)
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// 删除
|
|
174
|
+
const deletePicker = (params, isNeedBiz = true, config = {}) => {
|
|
175
|
+
return http.player.post(ADDRESS.PICKER_DELETE, params, isNeedBiz, config)
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// 获取关联的商品列表
|
|
179
|
+
const getGoodsInfo = (params, isNeedBiz = true, config = {}) => {
|
|
180
|
+
return http.player.post(CONFIRM_ORDER.PACKAGE_GOODS_LIST, params, isNeedBiz, config)
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// 初始化店铺设置信息
|
|
184
|
+
const getShopConf = (isNeedBiz = true, config = {}) => {
|
|
185
|
+
let params = {
|
|
186
|
+
modules: ['switches', 'guideContact', 'physicalGoods']
|
|
187
|
+
}
|
|
188
|
+
return http.player.post(CONFIRM_ORDER.SHOP_MODULE, params, isNeedBiz, config)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// 获取积分规则
|
|
192
|
+
const getRules = (isNeedBiz = false, config = {}) => {
|
|
193
|
+
return http.player.post(CONFIRM_ORDER.RULE_CONTENT, {}, isNeedBiz, config)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
module.exports = {
|
|
197
|
+
getPrePayInfoV3,
|
|
198
|
+
getConfirmOrderDetail,
|
|
199
|
+
getExpressSwitch,
|
|
200
|
+
getPickerInfo,
|
|
201
|
+
getGoodsPackage,
|
|
202
|
+
getGoodsList,
|
|
203
|
+
getSuperVipInfo,
|
|
204
|
+
getBusinessFeature,
|
|
205
|
+
getMarketingInfo,
|
|
206
|
+
getReceiveAddress,
|
|
207
|
+
getAddressInfo,
|
|
208
|
+
getCityList,
|
|
209
|
+
deleteAddress,
|
|
210
|
+
updateAddress,
|
|
211
|
+
createAddress,
|
|
212
|
+
getSelfServiceList,
|
|
213
|
+
getPickerList,
|
|
214
|
+
addPicker,
|
|
215
|
+
updatePicker,
|
|
216
|
+
deletePicker,
|
|
217
|
+
getGoodsInfo,
|
|
218
|
+
initOrderData,
|
|
219
|
+
getIntegralData,
|
|
220
|
+
getCartLeadGroup,
|
|
221
|
+
getLeadGroup,
|
|
222
|
+
getShopConf,
|
|
223
|
+
getRules
|
|
224
224
|
}
|
|
@@ -19,7 +19,7 @@ const GET_MARKETING_LIST = `${gateway()}get_marketing_list`
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
// 领取优惠券
|
|
22
|
-
const RECEIVE_COUPON =
|
|
22
|
+
const RECEIVE_COUPON = `xe.marketing.coupon.receive_coupon.v4/1.0.0`
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -35,69 +35,8 @@ const getCouponList = (data) => {
|
|
|
35
35
|
// 领取优惠券
|
|
36
36
|
|
|
37
37
|
const receiveCoupon = (body) => {
|
|
38
|
-
const result = http.player.post(RECEIVE_COUPON, body,
|
|
38
|
+
const result = http.player.post(RECEIVE_COUPON, body, false, defaultConfig)
|
|
39
39
|
return result
|
|
40
|
-
// return new Promise((resolve, reject) => {
|
|
41
|
-
// resolve({
|
|
42
|
-
// code: 0,
|
|
43
|
-
// data: {
|
|
44
|
-
// activity_id: "ma_cu_61861bc298f90_YgZYLxHF",
|
|
45
|
-
// app_id: "appAKLWLitn7978",
|
|
46
|
-
// bind_res_count: 8,
|
|
47
|
-
// can_share: 1,
|
|
48
|
-
// can_use_with_activity: 1,
|
|
49
|
-
// copy_from: "cou_61861b8039c58-Jw8gnB",
|
|
50
|
-
// count: 144,
|
|
51
|
-
// coupon_type: 2,
|
|
52
|
-
// created_at: "2021-11-06 14:08:02",
|
|
53
|
-
// detail:[
|
|
54
|
-
// {app_id: "appAKLWLitn7978",
|
|
55
|
-
// cou_id: "cou_61861bc296193-2dBvbv",
|
|
56
|
-
// count: 111,
|
|
57
|
-
// created_at: "2021-11-06 14:08:02",
|
|
58
|
-
// feature: "",
|
|
59
|
-
// has_received: 1,
|
|
60
|
-
// has_used: 0,
|
|
61
|
-
// id: 2068433,
|
|
62
|
-
// type: "0",
|
|
63
|
-
// updated_at: "2021-11-06 14:23:02",
|
|
64
|
-
// },
|
|
65
|
-
// ],
|
|
66
|
-
// discount_limit_price: 0,
|
|
67
|
-
// discount_percent: 1,
|
|
68
|
-
// discount_way: 2,
|
|
69
|
-
// has_received: 1,
|
|
70
|
-
// has_used: 0,
|
|
71
|
-
// id: "cou_61861bc296193-2dBvbv",
|
|
72
|
-
// instructions: "传说中的上档次",
|
|
73
|
-
// invalid_at: "2021-11-26 00:00:00",
|
|
74
|
-
// is_delete: 0,
|
|
75
|
-
// is_hide: 0,
|
|
76
|
-
// is_limit: 1,
|
|
77
|
-
// is_show: 1,
|
|
78
|
-
// is_show_stock: 0,
|
|
79
|
-
// is_support_superposition: 0,
|
|
80
|
-
// jump_svip_info: "",
|
|
81
|
-
// limit_tips: "暂不满足优惠券领取条件",
|
|
82
|
-
// manual_stop_at: "",
|
|
83
|
-
// mongodb_id: "",
|
|
84
|
-
// price: 0,
|
|
85
|
-
// promote_goods_set: 0,
|
|
86
|
-
// receive_limit_ids: "[{\"id\":58323,\"title\":\"HYL标签-勿动谢谢\",\"is_free_vip\":\"false\"},{\"id\":52116,\"title\":\"HYL专属标签\",\"is_free_vip\":\"false\"}]",
|
|
87
|
-
// receive_limit_type: 3,
|
|
88
|
-
// receive_rule: 0,
|
|
89
|
-
// require_price: 0,
|
|
90
|
-
// spread_type: 3,
|
|
91
|
-
// title: "超级会员-yeleon专属优惠券勿动",
|
|
92
|
-
// type: 0,
|
|
93
|
-
// updated_at: "2021-11-06 14:53:43",
|
|
94
|
-
// valid_after: -1,
|
|
95
|
-
// valid_at: "2021-11-06 14:05:00",
|
|
96
|
-
// valid_day: 0,
|
|
97
|
-
// }
|
|
98
|
-
// })
|
|
99
|
-
// })
|
|
100
|
-
|
|
101
40
|
}
|
|
102
41
|
|
|
103
42
|
module.exports = {
|