Sanakey
2021-04-24 f9ad6c008236999dced5e20186a0ddf48c5d813e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<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">
    <view class="statistics text-center">
      <van-row>
        <van-col span="8">
          <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.todayVisiteTimes||0}}</view>
        </van-col>
        <van-col span="8">
          <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.todaySharedTimes||0}}</view>
        </van-col>
        <van-col span="8">
          <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.todayOrderTimes||0}}</view>
        </van-col>
      </van-row>
    </view>
    <view class="panel text-center">
      <van-row>
        <van-col class="" span="12">
          <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 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>
        </van-col>
      </van-row>
    </view>
  </my-card-container>
 
  <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" 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">
    <view class="card-container">
      <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>
          </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-tab>
        </van-tabs>
      </view>
    </view>
  </my-card-container>
</view>
 
<van-share-sheet
    show="{{ showShare }}"
    title="立即分享"
    options="{{ shareOptions }}"
    bind:select="onShareSelect"
    bind:close="onShareClose"
/>