陶杰
2024-09-23 b331ba531a81c3c60d26eba856b5b3905153aba8
pages/home/supplier-home.vue
@@ -255,6 +255,7 @@
      },
      async onPullDownRefresh() {
         await this.$store.dispatch('getCurrentInfo')
         await getTj(true)
         uni.stopPullDownRefresh()
      },
      onLoad(options) {
@@ -262,7 +263,7 @@
         const urlcode = options.url && decodeURIComponent(options.url) || ''
      },
      onShow() {
         this.getTj()
         this.getTj(true)
      },
      created() {
         //公告
@@ -447,10 +448,10 @@
               },
            })
         },
         getTj() {
         getTj(refresh=false) {
            // /api/supplier/delivery   
            if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) {
            if (this.currentInfo.id && (this.currentInfo.id !== this.cacheUserId || refresh)) {
               this.cacheUserId = this.currentInfo.id
               let that = this
               setTimeout(() => {