index.js 650 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //import * as WxJsApi from '@/utils/wxJsApi.js'
  2. import * as API from '@/apis/index.js'
  3. export default {
  4. data() {
  5. return {
  6. list: []
  7. }
  8. },
  9. components: {
  10. },
  11. onLoad(op) {
  12. //this.id=op.id;
  13. },
  14. methods: {
  15. clear(){
  16. window.localStorage.clear();
  17. },
  18. mygoto( url){
  19. window.location=url
  20. //location.href=url
  21. },
  22. test1() {
  23. uni.showLoading({
  24. title: '加载中'
  25. });
  26. // uni.hideLoading();
  27. },
  28. },
  29. onReady() {
  30. this.carhelp.setToken("");
  31. this.carhelp.set("token_tdate","")
  32. this.carhelp.setPersonInfo("");
  33. this.isReady = true;
  34. },
  35. onShow() {
  36. if (this.isReady) {
  37. }
  38. },
  39. }