朱桂飞
2023-04-03 458962a2e4a4f6af0caa5fcb3867f2e42125fd40
pages/analy/analyList.vue
@@ -38,8 +38,8 @@
                     </view>
                  </view>
                  <view class="h-td">平均</view>
                  <view class="h-td">平均</view>
                  <view class="h-td">时间(分钟)</view>
                  <view class="h-td">蒸汽(立方)</view>
               </view>
@@ -74,43 +74,43 @@
   import get from 'lodash.get'
   export default {
      data() {
         return {
            StatusBar: this.StatusBar,
         return {
            StatusBar: this.StatusBar,
            CustomBar: this.CustomBar,
            queryParam: {},
            list: []
         }
      },
      onReady() {
         this.getAnalyList()
      },
      onReady() {
         this.getAnalyList()
      },
      methods: {
         getAnalyList() {
            this.$api.getAnalyList(this.queryParam).then((res) => {
               if (res.success) {
                  this.list = this.$lget(res, 'result.records') || [];
                  this.list = [...this.list,...this.$lget(res, 'result.records')]
                  this.list = this.$lget(res, 'result.records') || [];
                  this.list = [...this.list, ...this.$lget(res, 'result.records')]
               }
            }).catch((err) => {
               console.log('request fail', err);
            })
         },
         fweight(data){
               let feed = this.$lget(data, 'feed');
               let weight = this.$lget(data, 'weight');
               if(feed && weight){
                  return feed + '/' +weight
               }
               return ""
         },
         fweight(data) {
            let feed = this.$lget(data, 'feed');
            let weight = this.$lget(data, 'weight');
            if (feed && weight) {
               return feed + '/' + weight
            }
            return ""
         }
      },
      computed:{
      },
      computed: {
      }
   }
</script>
@@ -126,19 +126,19 @@
   .danmu_bg {
      width: 100vw;
      min-height: 100vh;
      height: 100vh;
      .barrage-box {
         width: 100vh;
         height: 100vw;
         transform-origin: 50vw 50vw;
         transform: rotate(90deg);
         white-space: nowrap;
         display: flex;
         justify-content: start;
         align-items: flex-start;
         /* 设置基准点为左上角 */
         transform-origin: top left;
         /* 以左上角为基准点,顺时针旋转90度 然后沿Y轴反方向平移100% */
         /* 为什么沿Y轴,因为旋转使坐标轴方向发生了变化 */
         transform: rotate(90deg) translateY(-100%);
         /*设置元素的宽度为 100%父元素的高度 并提高样式优先级 */
         width: 100vh !important;
         /*设置元素的宽度为 100%父元素的宽度  并提高样式优先级 */
         height: 100vw !important;
         overflow: scroll;
         animation: aniShake 0.5s linear infinite;
      }
   }
</style>