api.js 500 B

12345678910111213141516171819202122232425
  1. // 活动请求接口
  2. var actApi = {
  3. data: {
  4. act_id: 0,
  5. uid: 12138,
  6. baseUrl: '', // 公用地址
  7. // ↓其他接口的地址
  8. },
  9. portsTemplate: function() {
  10. return new MyPromise(function(resolve, reject) {
  11. comm.ajax({
  12. type: 'GET',
  13. url: actApi.data.baseUrl + '',
  14. data: {
  15. },
  16. success: function() { resolve() }
  17. })
  18. })
  19. }
  20. }