You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
359 B
18 lines
359 B
8 years ago
|
const API_URL = 'http://localhost:3000'
|
||
|
|
||
|
function postBilling (data, resolve) {
|
||
|
wx.request({
|
||
|
method: 'POST',
|
||
|
url: `${API_URL}/orders`,
|
||
|
data: data,
|
||
|
header: { 'Content-Type': 'application/json'},
|
||
|
success: resolve,
|
||
|
fail: function(){}
|
||
|
})
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
postBilling (data, resolve) {
|
||
|
return postBilling(data, resolve)
|
||
|
}
|
||
|
}
|