xuxueyang
2024-08-14 ded34e37fca5e2e05e17693d2524c3d664ebf017
pages/home/supplier-home.vue
@@ -53,7 +53,7 @@
         <view class="flex tj-container" v-if="selftype==='supplier'">
            <view class="tj-each">
               <view class="num">
                  {{tj.dealCountLastMonth||0}}单
                  {{tj.dealCountLastMonth||0}}扎
               </view>
               <view class="name">
                  上月成交
@@ -61,7 +61,7 @@
            </view>
            <view class="tj-each">
               <view class="num">
                  {{tj.dealCountToday||0}}单
                  {{tj.dealCountToday||0}}扎
               </view>
               <view class="name">
                  今日成交
@@ -69,7 +69,7 @@
            </view>
            <view class="tj-each">
               <view class="num">
                  {{tj.dealCountDay30||0}}单
                  {{tj.dealCountDay30||0}}扎
               </view>
               <view class="name">
                  近30天成交
@@ -134,6 +134,14 @@
                     src="/static/images/partner/user/user-icon-ddgl.png" mode="scaleToFill" />
               </view>
               <view class="order-desc tg">订单管理</view>
            </view>
            <view class="nav row margin-tb" v-if="selftype==='supplier'"
               @click="goto('/sub_pages/supplier/order-manage/order-manage',true)">
               <view class="img-c">
                  <image class="icon margin-bottom order-icon ddgl"
                     src="/static/images/partner/user/user-icon-ddgl.png" mode="scaleToFill" />
               </view>
               <view class="order-desc tg">订单统计</view>
            </view>
            <view class="nav row margin-tb"
@@ -241,14 +249,25 @@
      },
      created() {
         //公告
         this.$http.request('get', '/api/pub/announcement/list', {
         var type = ''
         // #ifdef PUB_CUSTOMER
         type = 'customer'
         // #endif
         // #ifdef PUB_SUPPLIER
         type = 'supplier'
         // #endif
         // #ifdef PUB_PARTNER
         type = 'partner'
         // #endif
         this.$http.request('get', '/api/pub/announcement/list/'+type, {
            params: {
               size: 5,
               status: 'A'
            }
         }).then(res => {
            if (res.code == 0) {
               this.noticeList = (res.data && res.data.records || [])
               this.noticeList = (res.data && res.data || [])
               console.log('this.noticeList', this.noticeList)
               if (this.noticeList.length > 0) {
                  this.currentNotice = this.noticeList[0]