zhaoxiaohai 3 年之前
父节点
当前提交
a42bf50156
共有 3 个文件被更改,包括 34 次插入26 次删除
  1. 5 0
      components/My_liveAccountMsg/index.js
  2. 4 1
      components/My_liveAccountMsg/index.wxml
  3. 25 25
      pages/liveStreaming/index.wxml

+ 5 - 0
components/My_liveAccountMsg/index.js

@@ -17,6 +17,11 @@ Component({
         /* 直播账号信息 */
         accountMsg: {
             type: Object
+        },
+        /* 是否私域 */
+        isSY: {
+            type: Boolean,
+            value: true
         }
     },
 

+ 4 - 1
components/My_liveAccountMsg/index.wxml

@@ -40,7 +40,10 @@
             </view>
         </view>
     </view>
-    <view wx:else class="go-to-apply-for" catchtap="applyForLive">
+    <view wx:if="{{accountStatus!=1 && isSY}}" class="go-to-apply-for" catchtap="applyForLive">
         {{accountStatus==3?'暂无账号 点击申请 ':'直播申请中'}}<image wx:if="{{accountStatus==3}}" style="width: 20rpx; height: 22rpx; margin-left: 8rpx;" src="/static/icon-07.png"></image>
     </view>
+    <view wx:if="{{accountStatus!=1 && isSY==false}}" class="go-to-apply-for">
+        暂无展会直播账号
+    </view>
 </view>

+ 25 - 25
pages/liveStreaming/index.wxml

@@ -3,7 +3,7 @@
 <!-- 私域直播 -->
 <My_liveAccountMsg wx:if="{{tabsIndex==0}}" accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}"></My_liveAccountMsg>
 <!-- 展会直播 -->
-<My_liveAccountMsg wx:else accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}"></My_liveAccountMsg>
+<My_liveAccountMsg wx:else accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}" isSY="{{false}}"></My_liveAccountMsg>
 <!-- 数据 -->
 <view wx:if="{{accountStatus==1}}" class="msgBox clearfix" style="white-space:nowrap;">
     <!-- 标题和按钮 -->
@@ -41,32 +41,32 @@
                 <view class="number">{{liveDataCount.viewDurationAvg}}</view>
             </view>
         </view>
-        <scroll-view scroll-x="{{true}}" class="data-formlist">
-            <!-- 表头 -->
-            <view class="data-formlist-header">
-                <view class="w200rpx">开始时间</view>
-                <view style="width: 180rpx;">直播id</view>
-                <view style="width: 160rpx;">观看次数(次)</view>
-                <view style="width: 200rpx;">观看时长(分钟)</view>
-                <view style="width: 240rpx;">描述</view>
-            </view>
-            <!-- 表格 -->
-            <view wx:for="{{liveSessionList}}" wx:key="index" class="data-formlist-row {{optionRow==index?'option-row':''}}" data-index="{{index}}" catchtap="optionItemIndex">
-                <view class="w200rpx u-line-1">{{item.starttime}}</view>
-                <view class="u-line-1" style="width: 180rpx;">{{item.sessionid}}</view>
-                <view class="u-line-1" style="width: 160rpx;">{{item.liveuv}}</view>
-                <view class="u-line-1" style="width: 200rpx;">{{item.duration}}</view>
-                <view class="u-line-1" style="width: 240rpx; display: flex; align-items: center;">
-                    <input disabled="{{true}}" style="width: 100%; text-align: center;" type="text" value="{{item.description==null?'暂无':item.description}}" />
+        <block wx:if="{{liveSessionList.length>=1}}">
+            <scroll-view scroll-x="{{true}}" class="data-formlist">
+                <!-- 表头 -->
+                <view class="data-formlist-header">
+                    <view class="w200rpx">开始时间</view>
+                    <view style="width: 180rpx;">直播id</view>
+                    <view style="width: 160rpx;">观看次数(次)</view>
+                    <view style="width: 200rpx;">观看时长(分钟)</view>
+                    <view style="width: 240rpx;">描述</view>
                 </view>
-                <view class="more-but-box" wx:if="{{optionRow==index}}">
-                    <view class="more-but" data-index="{{index}}" catchtap="viewDetails">更多</view>
+                <!-- 表格 -->
+                <view wx:for="{{liveSessionList}}" wx:key="index" class="data-formlist-row {{optionRow==index?'option-row':''}}" data-index="{{index}}" catchtap="optionItemIndex">
+                    <view class="w200rpx u-line-1">{{item.starttime}}</view>
+                    <view class="u-line-1" style="width: 180rpx;">{{item.sessionid}}</view>
+                    <view class="u-line-1" style="width: 160rpx;">{{item.liveuv}}</view>
+                    <view class="u-line-1" style="width: 200rpx;">{{item.duration}}</view>
+                    <view class="u-line-1" style="width: 240rpx; display: flex; align-items: center;">
+                        <input disabled="{{true}}" style="width: 100%; text-align: center;" type="text" value="{{item.description==null?'暂无':item.description}}" />
+                    </view>
+                    <view class="more-but-box" wx:if="{{optionRow==index}}">
+                        <view class="more-but" data-index="{{index}}" catchtap="viewDetails">更多</view>
+                    </view>
                 </view>
-            </view>
-        </scroll-view>
+            </scroll-view>
+        </block>
     </view>
-    <!-- 场次详情数据 -->
-
     <!-- 数据宫格 -->
     <view hidden="{{dataTypes!=1}}">
         <view class="data-grid">
@@ -120,7 +120,7 @@
             </view>
         </scroll-view>
     </view>
-    <view class="paging-button">
+    <view wx:if="{{liveSessionList.length>=1}}" class="paging-button">
         <view>
             <van-button custom-class="paging-button-class" catchtap="buttonRightClick"></van-button>
             <view class="paging-button-icon icon-right">