xiaohaizhao преди 2 години
родител
ревизия
807c5ac877

+ 0 - 1
packageA/report/index.js

@@ -73,7 +73,6 @@ Page({
         },
         where: {
             condition: "",
-
         }
     },
     onLoad(options) {

+ 2 - 1
packageA/report/index.scss

@@ -1,4 +1,5 @@
 page {
     height: 100vw;
     overflow: hidden;
-}
+}
+

+ 2 - 1
packageA/report/modules/receive/index.js

@@ -28,7 +28,8 @@ Component({
                 content.pageNumber = res.pageNumber + 1;
                 this.setData({
                     list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
-                    content
+                    content,
+                    total: res.total
                 })
                 getCurrentPages().find(v => v.__route__ == 'packageA/report/index').selectComponent('#ListBox').RefreshToComplete();
             })

+ 10 - 1
packageA/report/modules/receive/index.scss

@@ -1 +1,10 @@
-/* packageA/report/modules/receive/index.wxss */
+/* 未读 */
+.unread {
+    width: 750rpx;
+    height: 34rpx;
+    text-align: center;
+    font-size: 24rpx;
+    font-family: PingFang SC-Regular, PingFang SC;
+    color: #999999;
+    margin: 12rpx 0 -5rpx 0;
+}

+ 4 - 0
packageA/report/modules/receive/index.wxml

@@ -1 +1,5 @@
+
+<view class="unread">
+    总共{{total}}条
+</view>
 <List list="{{list}}" bind:onClick='onRead' />

+ 2 - 1
packageA/report/modules/sendOut/index.js

@@ -29,7 +29,8 @@ Component({
                 content.pageNumber = res.pageNumber + 1;
                 this.setData({
                     list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
-                    content
+                    content,
+                    total: res.total
                 })
                 getCurrentPages().find(v => v.__route__ == 'packageA/report/index').selectComponent('#ListBox').RefreshToComplete();
             })

+ 10 - 1
packageA/report/modules/sendOut/index.scss

@@ -1 +1,10 @@
-/* packageA/report/modules/sendOut/index.wxss */
+/* 未读 */
+.unread {
+    width: 750rpx;
+    height: 34rpx;
+    text-align: center;
+    font-size: 24rpx;
+    font-family: PingFang SC-Regular, PingFang SC;
+    color: #999999;
+    margin: 12rpx 0 -5rpx 0;
+}

+ 4 - 0
packageA/report/modules/sendOut/index.wxml

@@ -1 +1,5 @@
+
+<view class="unread">
+    总共{{total}}条
+</view>
 <List list="{{list}}" />