contact.js 827 B

123456789101112131415161718192021222324252627282930313233
  1. $(function() {
  2. // $("#aboutUs").on('click')
  3. vm = new Vue({
  4. el:'#app',
  5. data:{
  6. name: '',
  7. adress: '',
  8. phone: '',
  9. about:'',
  10. bottom:'',
  11. statement:''
  12. }
  13. });
  14. var datas = {
  15. // Lang:'en',
  16. };
  17. var ajaxUrl = 'http://lanbo.frp.liuniu946.com/apis/product';
  18. AJAX('get',ajaxUrl,datas,function(res){
  19. vm.bottom = res.data.list.filter(item => item.category_ids == "64")
  20. console.log(vm.bottom)
  21. })
  22. var ajaxUrl = 'http://lanbo.frp.liuniu946.com/apis/product';
  23. AJAX('get', ajaxUrl, datas, function(res) {
  24. vm.statement = res.data.list.filter(item => item.category_ids == "65")
  25. console.log(vm.statement)
  26. })
  27. // var ajaxUrl = 'http://lanbo.frp.liuniu946.com/apis/about/10';
  28. // AJAX('get', ajaxUrl, datas, function (res) {
  29. // vm.about = res.data.content;
  30. // })
  31. })