xuxueyang
2024-09-24 1d782559b682f7eb7a374c2e8017ff65cb941e52
pages/home/supplier-home.vue
@@ -24,11 +24,11 @@
               ||(currentInfo.supplierDTO&&currentInfo.supplierDTO.cover)
               ||(currentInfo.partnerDTO&&currentInfo.partnerDTO.cover)
               || currentInfo.picture
               " mode="aspectFit"></image>
               " mode="scaleToFill"></image>
               
            <image class="user-icon" v-else
               src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png'
               mode="aspectFit"></image>
               mode="scaleToFill"></image>
               
            <!-- 头像 -->
         <!--    <image class="user-icon" v-if="!currentInfo.picture"
@@ -128,12 +128,12 @@
         <view class="tj-panel  pink flex1"
            @click="goto('/pages/order/order-delivery?status=PENDING&range=today',true)">
            <view class="name">今日待配送</view>
            <view class="title">{{tj.deliverCount||0}}单</view>
            <view class="title">{{tj.deliverCount||0}}扎</view>
         </view>
         <view class="tj-panel green flex1"
            @click="goto('/pages/order/order-delivery?range=today',true)">
            <view class="name green">今日配送汇总</view>
            <view class="title">{{tj.deliverTotal||0}}单</view>
            <view class="title">{{tj.deliverTotal||0}}扎</view>
         </view>
      </view>
      <view class="m-t-12" @click="getNoticeMore">
@@ -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(() => {