订单列表对接

This commit is contained in:
2022-06-02 20:14:05 +08:00
parent b921bcaa07
commit 5ae2eb3541
9 changed files with 152 additions and 30 deletions
+31
View File
@@ -0,0 +1,31 @@
//解析短码
export const analysisShortCodeApi = () => {
//解析短码
Taro.request({
url:BASE_URL+'/v1/mall/shortCode',
method:"GET",
data:{md5_key: page.options?.share},
success:(res) => {
if(res.data.code == 0) {
//绑定上下级
bindParent(res.data.data.share_user_id)
}
}
})
}
//绑定上下级
const bindParent = (share_user_id) => {
//绑定上下级
Taro.request({
url:BASE_URL+'/v1/mall/shortCode/bind',
method:"POST",
data:{share_user_id: share_user_id},
success:(res) => {
if(res.data.code == 0) {
//绑定上下级
}
}
})
}