index.js 420 B

123456789101112131415161718192021222324252627
  1. import * as API from '@/apis/news.js'
  2. export default {
  3. data() {
  4. return {
  5. clientHeight:0,
  6. list:[
  7. 1,2,3,4,6,7
  8. ]
  9. }
  10. },
  11. methods: {
  12. gotoInfo(id){
  13. uni.navigateTo({
  14. url:"/pages/news/details?id="+id
  15. })
  16. },
  17. lower() {
  18. console.log("")
  19. this.list.push("1")
  20. },
  21. },
  22. onLoad() {
  23. this.clientHeight=document.body.clientHeight;
  24. }
  25. }