this.showLoading();
request.post({
url: this.config.apiList.接口名,
data: {
id: this.id
// 传参
},
success: d => {
if (d.code == 0) {
// 这里写代码
} else {
console.log("失败", d.msg);
}
}, complete: d => {
this.hideLoading();
}, fail: d => {
console.log(d);
// 报错
this.hideLoading();
}
});