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.
|
const app = getApp() |
|
|
|
function getAsset (data, resolve) { |
|
wx.request({ |
|
url: `${app.globalData.API_URL}/my_assets/${data}`, |
|
header: { 'Content-Type': 'application/json' }, |
|
success: resolve, |
|
fail: function(){} |
|
}) |
|
} |
|
|
|
|
|
module.exports = { |
|
getAsset (resolve) { |
|
return getAsset(resolve) |
|
} |
|
}
|
|
|