Browse Source

增加弹窗

liudan 3 weeks ago
parent
commit
47e0ba6b5c
3 changed files with 10 additions and 2 deletions
  1. BIN
      dist.zip
  2. 2 2
      src/assets/scss/style.scss
  3. 8 0
      src/pages/bigScreen/Index.jsx

BIN
dist.zip


+ 2 - 2
src/assets/scss/style.scss

@@ -237,8 +237,8 @@ html{
     }
     .swaper-text{
       flex: 1;
-      height: 2.8rem;
-      line-height: 2.8rem;;
+      height: 2.45rem;
+      line-height: 2.45rem;;
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;

+ 8 - 0
src/pages/bigScreen/Index.jsx

@@ -25,6 +25,10 @@ class BigScreen extends React.Component {
   }
   componentDidUpdate(prev) {
     if (prev.roomObj != this.props.roomObj) {
+      Toast.show({
+       duration: 3000,
+       content: this.props.roomObj?.callMsg?.refreshFlag,
+      });
       if (this.props.roomObj?.callMsg?.refreshFlag == 'Y') {
         this.initRoom();
         return; // 重新获取数据
@@ -75,6 +79,10 @@ class BigScreen extends React.Component {
     if (!cache) {
       return;
     }
+    Toast.show({
+      duration: 3000,
+      content: '获取接口数据',
+     });
     cache = JSON.parse(cache);
     React.$fetchPost('04150031', {
       params: [{