獲取分銷商申請(qǐng)頁(yè)面數(shù)據(jù)
獲取分銷商申請(qǐng)頁(yè)面數(shù)據(jù)
[溫馨提示]
請(qǐng)先查看小程序分銷接口使用說(shuō)明,了解接口作用,如已查看請(qǐng)忽略提示。
提供參考的實(shí)例代碼:
/**
* 獲取分銷商申請(qǐng)頁(yè)面數(shù)據(jù)
* 接收參數(shù)
* 無(wú)
* 接口傳參
* action: 指定操作
*/
getDealerApply() {
let _this = this;
let postData = {
action: 'getApply',
};
App._requestApi(_this, App.globalData.config.dealerActionUrl, postData, function (res) {
// 檢測(cè)分銷功能是否開(kāi)啟,當(dāng)前登錄者的分銷商狀態(tài),如有異常則提示并跳轉(zhuǎn)到指定頁(yè)面
App.dealerOpenHandle(res);
// 接口數(shù)據(jù)處理
let dealer = res.data;
if ('success' == dealer.code) {
wx.navigateTo({ url: dealer.jumpPage });
} else {
_this.setData({
dealer: res.data,
isLoading: false,
});
}
});
},
文檔最后更新時(shí)間:2023-03-16 11:53:15
未解決你的問(wèn)題?請(qǐng)到「問(wèn)答社區(qū)」反饋你遇到的問(wèn)題