From 8724a444c8a1d09dc8f9efd005e8443aad8df1ab Mon Sep 17 00:00:00 2001
From: Sanakey <714737083@qq.com>
Date: 星期五, 30 四月 2021 18:19:26 +0800
Subject: [PATCH] 新增直播相关功能

---
 pages/promotionsManage/promotionsManage.wxml |  271 +++++++++++++++++++++++++++++++++++------------------
 1 files changed, 178 insertions(+), 93 deletions(-)

diff --git a/pages/promotionsManage/promotionsManage.wxml b/pages/promotionsManage/promotionsManage.wxml
index d2d292f..c21c9c2 100644
--- a/pages/promotionsManage/promotionsManage.wxml
+++ b/pages/promotionsManage/promotionsManage.wxml
@@ -1,11 +1,11 @@
-<view class="container">
+<view class="container padding-bottom-20">
   <view class="header text-center">
     <view class="title font-bold">
       {{promotionsData.title}}
     </view>
     <view class="status font-size-12">娲诲姩{{promotionsData.panicBuyingStatusName}}</view>
   </view>
-  <my-card-container padding="0">
+  <my-card-container padding="0" content-padding="0">
     <view class="statistics text-center">
       <van-row>
         <van-col span="8">
@@ -42,66 +42,118 @@
       </van-row>
     </view>
   </my-card-container>
-</view>
-<view class="margin">
-  <van-row class="text-center row">
-    <van-col span="12">
-      <my-tag class="my-tag">
-        <navigator url="../promotionsRelation/promotionsRelation" class="tag-btn">
-          <text class="iconfont icon-guanlian"></text>
-          <text class="navigator">娲诲姩鍏宠仈</text>
-        </navigator>
-      </my-tag>
-    </van-col>
-    <van-col span="12">
-      <my-tag class="my-tag">
-        <!--    鍔熻兘鍙凤細绉掓潃 710802 锛� 鎶ュ悕閭�绾� 710803 锛屽洟璐� 710804-->
-        <navigator wx-if="{{formId==710802}}" class="tag-btn" url="../flashSaleCreate/flashSaleCreate?doccode={{doccode}}">
-          <text class="iconfont icon-bianjiedit26"></text>
-          <text class="navigator">娲诲姩缂栬緫</text>
-        </navigator>
-        <navigator wx-if="{{formId==710803}}" class="tag-btn" url="../signUpCreate/signUpCreate?doccode={{doccode}}">
-          <text class="iconfont icon-bianjiedit26"></text>
-          <text class="navigator">娲诲姩缂栬緫</text>
-        </navigator>
-        <navigator wx-if="{{formId==710804}}" class="tag-btn" url="../groupBuyingCreate/groupBuyingCreate?doccode={{doccode}}">
-          <text class="iconfont icon-bianjiedit26"></text>
-          <text class="navigator">娲诲姩缂栬緫</text>
-        </navigator>
-      </my-tag>
-    </van-col>
-  </van-row>
-  <van-row class="text-center row">
-    <van-col class="" span="12" wx-if="{{promotionsData.isShowGroupBuyingSuccessButton}}">
-      <my-tag class="my-tag">
-        <view  bind:tap="completeGroupBuying" class="tag-btn">
-<!--          <text class="iconfont icon-bianjiedit26"></text>-->
-          <van-icon name="passed" size="14" />
-          <text class="text navigator">瀹屾垚鎷煎洟</text>
-        </view>
-      </my-tag>
-    </van-col>
-    <van-col class="" span="12" wx:if="{{promotionsData.isShowGroupBuyingFailedButton}}">
-      <my-tag class="my-tag">
-        <view bind:tap="cancelGroupBuying" class="tag-btn">
-          <text class="iconfont icon-cuowuguanbiquxiao-xianxingyuankuang"></text>
-          <text class="text navigator">鍙栨秷鎷煎洟</text>
-        </view>
-      </my-tag>
 
-    </van-col>
-  </van-row>
+  <view class="margin-tb-20">
+    <van-row class="text-center row">
+      <van-col span="12">
+        <my-tag class="my-tag">
+          <navigator url="../promotionsRelation/promotionsRelation?doccode={{doccode}}" class="tag-btn">
+            <text class="iconfont icon-guanlian"></text>
+            <text class="navigator">娲诲姩鍏宠仈</text>
+          </navigator>
+        </my-tag>
+      </van-col>
+      <van-col span="12">
+        <my-tag class="my-tag">
+          <!--    鍔熻兘鍙凤細绉掓潃 710802 锛� 鎶ュ悕閭�绾� 710803 锛屽洟璐� 710804-->
+          <navigator wx-if="{{formId==710802}}" class="tag-btn" url="../flashSaleCreate/flashSaleCreate?doccode={{doccode}}&fromPage=edit">
+            <text class="iconfont icon-bianjiedit26"></text>
+            <text class="navigator">娲诲姩缂栬緫</text>
+          </navigator>
+          <navigator wx-if="{{formId==710803}}" class="tag-btn" url="../signUpCreate/signUpCreate?doccode={{doccode}}&fromPage=edit">
+            <text class="iconfont icon-bianjiedit26"></text>
+            <text class="navigator">娲诲姩缂栬緫</text>
+          </navigator>
+          <navigator wx-if="{{formId==710804}}" class="tag-btn" url="../groupBuyingCreate/groupBuyingCreate?doccode={{doccode}}&fromPage=edit">
+            <text class="iconfont icon-bianjiedit26"></text>
+            <text class="navigator">娲诲姩缂栬緫</text>
+          </navigator>
+        </my-tag>
+      </van-col>
+    </van-row>
+    <van-row class="text-center row">
+      <van-col class="" span="12" wx-if="{{promotionsData.isShowGroupBuyingSuccessButton!=undefined}}">
+        <my-tag class="my-tag" color="{{promotionsData.isShowGroupBuyingSuccessButton?'':'#aaa'}}">
+          <view  bind:tap="{{promotionsData.isShowGroupBuyingSuccessButton?'completeGroupBuying':''}}" class="tag-btn">
+            <van-icon name="passed" size="14" />
+            <text class="text navigator">瀹屾垚鎷煎洟</text>
+          </view>
+        </my-tag>
+      </van-col>
+      <van-col class="" span="12" wx:if="{{promotionsData.isShowGroupBuyingFailedButton!=undefined}}">
+        <my-tag class="my-tag" color="{{promotionsData.isShowGroupBuyingFailedButton?'':'#aaa'}}">
+          <view bind:tap="{{promotionsData.isShowGroupBuyingFailedButton?'cancelGroupBuying':''}}" class="tag-btn">
+            <text class="iconfont icon-cuowuguanbiquxiao-xianxingyuankuang"></text>
+            <text class="text navigator">鍙栨秷鎷煎洟</text>
+          </view>
+        </my-tag>
+
+      </van-col>
+    </van-row>
+<!--    <van-row class="text-center row">-->
+<!--      <van-col class="" span="12">-->
+<!--        <my-tag class="my-tag" >-->
+<!--          <view  bind:tap="sellerVerify" class="tag-btn">-->
+<!--            <van-icon name="manager-o" size="14"/>-->
+<!--            <text class="text navigator">瀵艰喘楠岃瘉</text>-->
+<!--          </view>-->
+<!--        </my-tag>-->
+<!--      </van-col>-->
+<!--    </van-row>-->
+  </view>
+
+  <my-card-container  padding="0" content-padding="0" class="padding-tb ">
+    <view class="padding-bottom text-center ">
+      <view class="padding-tb border-bottom theme-font-color">
+        <van-icon name="manager-o" size="16"/>
+        钀ラ攢浜哄憳
+      </view>
+      <view class="padding-tb">
+        <van-row >
+          <van-col span="6">
+            <view class="digital font-size-12">{{promotionsData.sellerCount||0}}</view>
+            <view class="desc font-size-12 margin-top-10">鎬绘暟</view>
+          </van-col>
+          <van-col span="6">
+            <view class="digital font-size-12">{{promotionsData.sellerCheckedCount||0}}</view>
+            <view class="desc font-size-12 margin-top-10">宸查獙璇�</view>
+          </van-col>
+          <van-col span="6">
+            <view class="digital font-size-12">{{promotionsData.sellerCheckedBalance||0}}</view>
+            <view class="desc font-size-12 margin-top-10">鏈獙璇�</view>
+          </van-col>
+          <van-col span="6" >
+            <view class="margin-top-15">
+              <van-button bind:click="sellerVerify" disabled="{{promotionsData.sellerCheckedBalance<=0}}" type="warning" plain size="mini">
+                鍘婚獙璇�
+              </van-button>
+            </view>
+          </van-col>
+        </van-row>
+      </view>
+
+    </view>
+    <van-notice-bar
+        class="notice-bar"
+        scrollable="{{ false }}"
+        wrapable="{{true}}"
+        bind:tap="sellerVerify"
+        wx:if="{{promotionsData.sellerCheckedBalance>0}}"
+        text="杩樻湁{{promotionsData.sellerCheckedBalance}}浣嶈惀閿�浜哄憳锛坽{promotionsData.sellerUnCheckedNames}}锛夋湭楠岃瘉韬唤锛岃绔嬪嵆楠岃瘉"
+    />
+  </my-card-container>
 </view>
+
+
+
 
 <view class="container has-footer">
-  <my-card-container padding="0">
+  <my-card-container padding="0" content-padding="0">
     <view class="card-container">
       <view >
 
         <van-tabs
-            title-active-color="#ff751a"
             title-inactive-color="#333"
-            color="#ff751a"
             class="my-tabs"
         >
           <van-tab title="鎴愪氦璁板綍">
@@ -111,6 +163,7 @@
                 placeholder="璇疯緭鍏ユ悳绱㈠叧閿瘝"
                 use-action-slot
                 bind:search="onSearchOrder"
+                bind:change="setSearchKey"
                 bind:clear="onClearSearchOrder"
             >
               <view slot="action" class="theme-font-color font-size-12" bind:tap="orderExport">
@@ -119,28 +172,39 @@
             </van-search>
             <view class="content">
               <van-cell-group border="{{false}}">
-                <van-cell class="padding-cell" center wx:for="{{orderList}}" wx:key="key" title-width="300rpx" border="{{index!==orderList.length-1?true:false}}">
-                  <view slot="icon">
-                    <van-image round width="80rpx" height="80rpx" class="van-image"
-                               src="{{item.Headimgurl}}"/>
-                  </view>
-                  <view class="slot-title" slot="title">
-                    <view class="van-cell-text no-wrap">{{item.CltName}}</view>
-                    <view class="van-cell-desc">
-                      {{item.EnterDate}}
+                <block wx:if="{{orderList.length>0}}" >
+                  <van-cell class="padding-cell" center wx:for="{{orderList}}" wx:key="key" title-width="300rpx" border="{{index!==orderList.length-1?true:false}}" bind:tap="goOrderDetail" data-doccode="{{item.DocCode}}">
+                    <view slot="icon">
+                      <van-image round width="80rpx" height="80rpx" class="van-image"
+                                 src="{{item.Headimgurl}}"/>
                     </view>
-                  </view>
-                  <view class="flex-row space-around">
-                    <view class="font-bold black">
-                      {{item.PayableAmount}}鍏�
+                    <view class="slot-title" slot="title">
+                      <view class="van-cell-text no-wrap">{{item.CltName}}</view>
+                      <view class="van-cell-desc">
+                        {{item.EnterDate}}
+                      </view>
                     </view>
-                    <view>
-<!--                      wx:if="{{item.isShowReturnButton}}"-->
-                      <van-button bind:click="doRefund" data-doccode="{{item.DocCode}}"  color="#ff751a" type="danger" plain size="mini">閫�娆�</van-button>
-<!--                      <van-button wx:else color="#aaa" type="danger" disabled plain size="mini">宸查��</van-button>-->
+                    <view class="flex-col flex-center">
+                      <view class="font-bold black">
+                        {{item.PayableAmount}}鍏�
+                      </view>
+                      <view class="flex-row space-around">
+
+                        <view>
+                          <van-button type="warning" wx:if="{{!item.HeXiaoStatus}}" catch:tap="doHeXiao" data-doccode="{{item.DocCode}}"  plain size="mini">鏍搁攢</van-button>
+                          <van-button wx:else  data-doccode="{{item.DocCode}}" disabled plain size="mini">鏍搁攢</van-button>
+                        </view>
+
+                        <view>
+                          <van-button type="warning" wx:if="{{item.isShowReturnButton}}" class=" right-button" catch:tap="doRefund" data-doccode="{{item.DocCode}}"  plain size="mini">閫�娆�</van-button>
+                          <van-button wx:else class="theme-button right-button" data-doccode="{{item.DocCode}}"  disabled plain size="mini">閫�娆�</van-button>
+                        </view>
+
+                      </view>
                     </view>
-                  </view>
-                </van-cell>
+                  </van-cell>
+                </block>
+                <my-empty wx:else></my-empty>
               </van-cell-group>
             </view>
           </van-tab>
@@ -151,6 +215,7 @@
                 placeholder="璇疯緭鍏ユ悳绱㈠叧閿瘝"
                 use-action-slot
                 bind:search="onSearchRanks"
+                bind:change="setSearchKey"
                 bind:clear="onClearSearchRanks"
             >
               <view slot="action" class="theme-font-color font-size-12" bind:tap="orderExport">
@@ -159,29 +224,41 @@
             </van-search>
             <view class="content">
               <van-cell-group border="{{false}}">
-                <van-cell class="padding-cell" center wx:for="{{sellerRankingList}}" wx:key="key" title-width="300rpx" border="{{index!==orderList.length-1?true:false}}">
-                  <view slot="icon" class="rank-icon">
-                    <van-image wx:if="{{item.OrderCount<4}}" round width="80rpx" height="80rpx" class="rank-icon-image"
-                               src="/assets/images/ranks.png"/>
-                    <view class="rank-num font-size-16 {{item.OrderCount<4?'white':''}}">{{item.OrderCount}}</view>
-                  </view>
-                  <view class="slot-title" slot="title">
-<!--                    <view class="flex-row space-around flex-center">-->
+                <block wx:if="{{sellerRankingList.length>0}}">
+                  <van-cell  class="padding-cell"  wx:for="{{sellerRankingList}}" wx:key="key" title-width="450rpx" border="{{index!==orderList.length-1?true:false}}" use-label-slot>
+                    <view slot="icon" class="rank-icon">
+                      <van-image wx:if="{{item.ranking<4}}" round width="80rpx" height="80rpx" class="rank-icon-image"
+                                 src="/assets/images/ranks.png"/>
+                      <view class="rank-num font-size-16 {{item.ranking<4?'white':''}}">{{item.ranking}}</view>
 
-<!--                    </view>-->
-                    <view class="van-cell-text no-wrap">{{item.SellerName||'濮撳悕'}}</view>
-                    <my-phone-call phone="{{item.SellerTelephone}}">
-                      <view class="van-cell-text no-wrap van-cell-desc">{{item.SellerTelephone||'鐢佃瘽'}}</view>
-                    </my-phone-call>
-
-                  </view>
-                  <view class=" text-center ">
-                    <view class="font-bold theme-font-color">
-                      <text class="iconfont icon-trophy-fill font-size-20"></text>
-                      {{item.PayableAmountSum}}鍏�
+                      <van-image  round width="80rpx" height="80rpx" class="margin-left-10"
+                                  src="{{item.sellerHeadimgurl}}"/>
                     </view>
-                  </view>
-                </van-cell>
+                    <view class="slot-title" slot="title">
+                      <!--                    <view class="flex-row space-around flex-center">-->
+
+                      <!--                    </view>-->
+
+
+                      <view class="van-cell-text no-wrap">{{item.sellerName||'濮撳悕'}}</view>
+                      <my-phone-call phone="{{item.sellerTelephone}}">
+                        <view class="van-cell-text no-wrap van-cell-desc">{{item.sellerTelephone||'鐢佃瘽'}}</view>
+                      </my-phone-call>
+
+                    </view>
+                    <view slot="label" class=" text-center flex-row content-end flex-center">
+                      <view class="margin-right-20 theme-font-color">
+                        <text class="iconfont icon-dingdanguanli  font-size-20 "></text>
+                        {{item.orderCount}}
+                      </view>
+                      <view class="font-bold theme-font-color">
+                        <text class="iconfont icon-trophy-fill font-size-20"></text>
+                        {{item.payableAmountSum}}鍏�
+                      </view>
+                    </view>
+                  </van-cell>
+                </block>
+                <my-empty wx:else></my-empty>
               </van-cell-group>
             </view>
           </van-tab>
@@ -190,3 +267,11 @@
     </view>
   </my-card-container>
 </view>
+
+<van-share-sheet
+    show="{{ showShare }}"
+    title="绔嬪嵆鍒嗕韩"
+    options="{{ shareOptions }}"
+    bind:select="onShareSelect"
+    bind:close="onShareClose"
+/>

--
Gitblit v1.8.0