Sanakey
2021-04-30 8724a444c8a1d09dc8f9efd005e8443aad8df1ab
pages/promotionsManage/promotionsManage.wxml
@@ -1,40 +1,40 @@
<view class="container">
<view class="container padding-bottom-20">
  <view class="header text-center">
    <view class="title font-bold">
      广州索菲亚BOSS直播邀您抢福利
      {{promotionsData.title}}
    </view>
    <view class="status font-size-12">活动已结束</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">
          <view class="digital font-size-12">{{promotionsData.read}}</view>
          <view class="digital font-size-12">{{promotionsData.visiteTimes||0}}</view>
          <view class="desc font-size-12 margin-top-10">阅读数</view>
          <view class="trend margin-top-10">+{{promotionsData.readChange}}</view>
          <view class="trend margin-top-10">+{{promotionsData.todayVisiteTimes||0}}</view>
        </van-col>
        <van-col span="8">
          <view class="digital font-size-12">{{promotionsData.share}}</view>
          <view class="digital font-size-12">{{promotionsData.sharedTimes||0}}</view>
          <view class="desc font-size-12 margin-top-10">转发数</view>
          <view class="trend margin-top-10">+{{promotionsData.shareChange}}</view>
          <view class="trend margin-top-10">+{{promotionsData.todaySharedTimes||0}}</view>
        </van-col>
        <van-col span="8">
          <view class="digital font-size-12">{{promotionsData.deal}}</view>
          <view class="digital font-size-12">{{promotionsData.orderTimes||0}}</view>
          <view class="desc font-size-12 margin-top-10">成交数</view>
          <view class="trend margin-top-10">{{promotionsData.dealChange}}</view>
          <view class="trend margin-top-10">+{{promotionsData.todayOrderTimes||0}}</view>
        </van-col>
      </van-row>
    </view>
    <view class="panel text-center">
      <van-row>
        <van-col class="" span="12">
          <view class="panel-cell flex-row flex-center">
          <view bind:tap="continuePromotion" class="panel-cell flex-row flex-center {{promotionsData.isShowContinueButton?'':'disabled-color'}}">
            <van-icon name="play-circle-o" />
            <text class="text">继续活动</text>
          </view>
        </van-col>
        <van-col class="" span="12">
          <view class="panel-cell border-left flex-row flex-center">
          <view bind:tap="stopPromotion" class="panel-cell border-left flex-row flex-center {{promotionsData.isShowStopButton?'':'disabled-color'}}">
            <van-icon name="stop-circle-o" />
            <text class="text">停止活动</text>
          </view>
@@ -42,56 +42,236 @@
      </van-row>
    </view>
  </my-card-container>
</view>
<view class="margin">
  <van-row class="text-center">
    <van-col span="12">
      <my-tag class="my-tag">
        <view class="tag-btn">
          <text class="iconfont icon-guanlian"></text>
          <navigator class="navigator" url="../promotionsRelation/promotionsRelation">活动关联</navigator>
        </view>
      </my-tag>
    </van-col>
    <van-col span="12">
      <my-tag class="my-tag">
        <view class="tag-btn">
          <text class="iconfont icon-bianjiedit26"></text>
          <navigator class="navigator" url="../promotionsRelation/promotionsRelation">活动编辑</navigator>
        </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">
  <my-card-container padding="0">
<view class="container has-footer">
  <my-card-container padding="0" content-padding="0">
    <view class="card-container">
      <view class="header">
        <view class="title font-bold">成交记录</view>
        <view class="btn font-size-12" bind:tap="orderExport">
          <text class="iconfont icon-xiazai"></text> 订单导出
        </view>
      </view>
      <view class="content">
        <van-cell-group border="{{false}}">
          <van-cell center wx:for="{{arrayList}}" wx:key="key" title-width="400rpx" border="{{index!==arrayList.length-1?true:false}}">
            <view slot="icon">
              <van-image round width="80rpx" height="80rpx" class="van-image"
                         src="{{item.avatar}}"/>
            </view>
            <view class="slot-title" slot="title">
              <view class="van-cell-text no-wrap">{{item.title}}</view>
              <view class="van-cell-desc">
                {{item.date}}
      <view >
        <van-tabs
            title-inactive-color="#333"
            class="my-tabs"
        >
          <van-tab title="成交记录">
            <van-search
                value="{{ orderKeyword }}"
                shape="round"
                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">
                <text class="iconfont icon-xiazai"></text> 订单导出
              </view>
            </van-search>
            <view class="content">
              <van-cell-group border="{{false}}">
                <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 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 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>
                  </van-cell>
                </block>
                <my-empty wx:else></my-empty>
              </van-cell-group>
            </view>
            <view class="font-bold">
              {{item.people}}元
          </van-tab>
          <van-tab title="业绩排行">
            <van-search
                value="{{ ranksKeyword }}"
                shape="round"
                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">
                <text class="iconfont icon-xiazai"></text> 订单导出
              </view>
            </van-search>
            <view class="content">
              <van-cell-group border="{{false}}">
                <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>
                      <van-image  round width="80rpx" height="80rpx" class="margin-left-10"
                                  src="{{item.sellerHeadimgurl}}"/>
                    </view>
                    <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-cell>
        </van-cell-group>
          </van-tab>
        </van-tabs>
      </view>
    </view>
  </my-card-container>
</view>
<van-share-sheet
    show="{{ showShare }}"
    title="立即分享"
    options="{{ shareOptions }}"
    bind:select="onShareSelect"
    bind:close="onShareClose"
/>