网友真实露脸自拍10p,成人国产精品秘?久久久按摩,国产精品久久久久久无码不卡,成人免费区一区二区三区

小程序分銷接口使用說明

小程序分銷接口使用說明


請先在config.js文件中找到config設置,查看是否已定義接口路徑

1.png

如未定義,請先定義接口路徑保存文件:dealerActionUrl: getApiUrl('dealer_action', 'Users'),


接口名稱:App.globalData.config.dealerActionUrl


接口必要參數:action

action: 'getApply'                     獲取分銷商申請頁面數據

action: 'addApply'                    添加分銷商申請

action: 'getDealer'                    獲取分銷商信息

action: 'getPoster'                    獲取分銷商推廣海報

action: 'bindUsers'                   綁定成為分銷商下級

action: 'getCustomerList'         獲取分銷商客戶列表

action: 'getSubordinateList'     獲取分銷商下級分銷商列表

action: 'getOrderList'               獲取分銷商參與分傭的訂單列表

action: 'getMoneyList'             獲取分銷商傭金明細列表

action: 'getWithdrawApply'     獲取分銷商提現申請頁面數據

action: 'addWithdrawApply'    添加分銷商提現申請

action: 'getWithdrawList'         獲取分銷商提現申請列表


接口其他參數:根據action參數變化,請參考指定接口


必要方法說明:App.dealerOpenHandle(res);

檢測分銷功能是否開啟,當前登錄者的分銷商狀態,如有異常則提示并跳轉到會員中心。


基礎代碼示例:

    getDealerxxxxx() {
        let _this = this;
        let postData = {
            action: 'xxxxx',
        };
        App._requestApi(_this, App.globalData.config.dealerActionUrl, postData, function (res) {
            // 分銷功能是否開啟,未開啟則跳轉到指定頁面
            App.dealerOpenHandle(res);
            // 接口數據
            let xxxxx = res.data;
        });
    },
文檔最后更新時間:2023-03-16 11:23:30

文檔
目錄

深色
模式

切換
寬度