Sanakey
2021-04-09 701f60925b5c7e6a2c0ecda99ebef7b7457bf810
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
<view class="container">
  <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>
<view class="margin">
  <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}}">
          <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>
 
<view class="container has-footer">
  <my-card-container 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="成交记录">
            <van-search
                value="{{ orderKeyword }}"
                shape="round"
                placeholder="请输入搜索关键词"
                use-action-slot
                bind:search="onSearchOrder"
                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}}">
                <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}}
                    </view>
                  </view>
                  <view class="flex-row space-around">
                    <view class="font-bold black">
                      {{item.PayableAmount}}元
                    </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>
                  </view>
                </van-cell>
              </van-cell-group>
            </view>
          </van-tab>
          <van-tab title="业绩排行">
            <van-search
                value="{{ ranksKeyword }}"
                shape="round"
                placeholder="请输入搜索关键词"
                use-action-slot
                bind:search="onSearchRanks"
                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}}">
                <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.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="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 class=" text-center flex-row space-around">
                    <view>
                      <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>
              </van-cell-group>
            </view>
          </van-tab>
        </van-tabs>
      </view>
    </view>
  </my-card-container>
</view>