Niushop中uniapp的访问接口
直接上代码
this.$api.sendRequest({
url: '/pintuan/api/order/isbuy',
success: res => {
console.log(res)
if(res.code == 1){
//跳转VIP
}
},
fail() {
//联网失败的回调
}
});
标签:uniapp,res,接口,访问,api,Niushop
From: https://www.cnblogs.com/79524795-Tian/p/17783177.html