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.
 
 
 
 

30 lines
520 B

  1. 注意:
  2. 1、所有图片加载尽量使用 img 标签 , 否则打包后容易出现图片路径错误显示出不来
  3. 2、尽量使用 img的src
  4. http请求
  5. 1、
  6. 同步请求
  7. async initData() {
  8. let param = {username:'xxx'};
  9. let res_data = await homeList(param);
  10. }
  11. 2、异步请求
  12. load(){
  13. let param = {username:'yyyyy'};
  14. homeList(param).then(res=>{
  15. //...
  16. }).catch(e=>{
  17. //...
  18. });
  19. }
  20. tool工具类
  21. 只需引用config/mutil/tool.js 就可以了
  22. tool拥有cardId和dateUtil对象