bug
This commit is contained in:
		@@ -61,8 +61,16 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  onLoad () {
 | 
			
		||||
    this.$loading()
 | 
			
		||||
    this.getList()
 | 
			
		||||
    if (this.token) {
 | 
			
		||||
      this.$loading()
 | 
			
		||||
      this.getUserInfo()
 | 
			
		||||
      this.getList()
 | 
			
		||||
    } else {
 | 
			
		||||
      this.autoLogin().then(() => {
 | 
			
		||||
      this.$loading()
 | 
			
		||||
        this.getList()
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
    this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
@@ -165,7 +173,8 @@ export default {
 | 
			
		||||
        params: {
 | 
			
		||||
          current: this.current,
 | 
			
		||||
          size: 10,
 | 
			
		||||
          listType: 1
 | 
			
		||||
          listType: 1,
 | 
			
		||||
          openId: this.user.openId
 | 
			
		||||
        }
 | 
			
		||||
      }).then(res => {
 | 
			
		||||
        if (res.code === 0) {
 | 
			
		||||
 
 | 
			
		||||
@@ -66,8 +66,16 @@
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    onLoad () {
 | 
			
		||||
      this.$loading()
 | 
			
		||||
      this.getList()
 | 
			
		||||
      if (this.token) {
 | 
			
		||||
        this.$loading()
 | 
			
		||||
        this.getUserInfo()
 | 
			
		||||
        this.getList()
 | 
			
		||||
      } else {
 | 
			
		||||
        this.autoLogin().then(() => {
 | 
			
		||||
        this.$loading()
 | 
			
		||||
          this.getList()
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
      this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
 | 
			
		||||
    },
 | 
			
		||||
    methods: {
 | 
			
		||||
@@ -177,7 +185,8 @@
 | 
			
		||||
          params: {
 | 
			
		||||
            current: this.current,
 | 
			
		||||
            size: 10,
 | 
			
		||||
            listType: 0
 | 
			
		||||
            listType: 0,
 | 
			
		||||
            openId: this.user.openId
 | 
			
		||||
          }
 | 
			
		||||
        }).then(res => {
 | 
			
		||||
          if (res.code === 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user