Mini Program API Invocation Method
The general method for invoking APIs within a Mini Program (excluding some listener-type APIs) is as follows:
dlt.xxxApi({
success: function (res) {
console.log(res);
},
fail: function (err) {
console.log(err);
},
complete: function () {
console.log(res);
},
});