liyongli 3 ani în urmă
părinte
comite
b70e1a2a9f

+ 3 - 1
pages/home/components/topic/topic.js

@@ -166,8 +166,10 @@ Component({
             let contrast = [
               {
                 type: 'pie',
+                radius: ['0%', '50%'],
                 label: {
-                  show:false
+                  position: "outside",
+                  formatter: '{b}\n{d}% ',
                 },
                 data: list,
                 emphasis: {

+ 4 - 4
pages/live/components/douyin/douyin.js

@@ -184,10 +184,10 @@ Component({
                 }
               }
             ];
-          AddUpFans && p.lineList.push(AddUpFans);
-          LikeTheTrend && p.lineList.push(LikeTheTrend);
-          RealTimeTraffic && p.lineList.push(RealTimeTraffic);
-          RealTimePersonTime && p.lineList.push(RealTimePersonTime);
+          AddUpFans.peopleList.length && p.lineList.push(AddUpFans);
+          LikeTheTrend.peopleList.length && p.lineList.push(LikeTheTrend);
+          RealTimeTraffic.peopleList.length && p.lineList.push(RealTimeTraffic);
+          RealTimePersonTime.peopleList.length && p.lineList.push(RealTimePersonTime);
           _this.setData(p)
 
         },

+ 1 - 1
pages/live/components/douyin/douyin.wxml

@@ -39,7 +39,7 @@
     </view>
   </view>
 
-  <view class="itemView">
+  <view class="itemView" wx:if="{{series.length || (region.length && region[0].length)}}">
     <view class="localCells">观众来源</view>
   </view>
 

+ 3 - 1
pages/sonTopic/sonTopic.js

@@ -183,8 +183,10 @@ Page({
           let contrast = [
             {
               type: 'pie',
+              radius: ['0%', '50%'],
               label: {
-                show: false
+                position: "outside",
+                formatter: '{b}\n{d}% ',
               },
               data: list,
               emphasis: {