admin
2025-02-20 f537abe9f3646c739beaf15076246a2f71a347e9
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<html lang="zh-cn">
 
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>会员订单</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/maincontent.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <style>
        td {
            line-height: 105px;
        }
 
        tr {
            line-height: 105px !important;
        }
 
    </style>
    <![endif]-->
</head>
 
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span> <span
                    class="icon-bar"></span> <span class="icon-bar"></span> <span
                    class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;视&nbsp;频&nbsp;后&nbsp;台&nbsp;管&nbsp;理&nbsp;系&nbsp;统&nbsp;&nbsp;&nbsp;</a>
        </div>
 
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse"
             id="bs-example-navbar-collapse-1">
            <!-- <ul class="nav navbar-nav">
    <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">布丸视频<span class="caret"></span></a>
      <ul class="dropdown-menu" role="menu">
        <li><a href="#">布丸视频</a></li>
        <li class="divider"></li>
        <li><a href="#">布丸影视大全</a></li>
      </ul>
    </li>
  </ul>-->
 
            <ul class="nav navbar-nav navbar-left">
                <li><a href="shuju.html">数据</a></li>
                <li><a href="tuijian-lanmuneirong.html">推荐</a></li>
                <li><a href="fenqu.html">分区</a></li>
                <li class="active"><a href="faxian.html">发现</a></li>
                <li><a href="shezhi.html">设置</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="hover"><a href="#">账户</a></li>
                <li><a href="#">退出登录</a></li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>
<div id="mainbody">
    <div id="sidebar">
        <dl>
            <!-- <dt>
    <div class="tubiao"><span class="glyphicon glyphicon-pencil"></span></div>
    数据</dt>-->
        </dl>
    </div>
    <div id="neirong">
        <div class="erjidh">
            <table class="table">
                <tbody>
                <tr>
                    <td>
                        <form class="form-inline" role="form">
                            <div class="form-group" role="search">
                                <select class="form-control vip-type">
                                    <option value="0">全部</option>
                                    <option value="1" selected>已支付</option>
                                    <option value="2">未支付</option>
                                </select>
 
                                <input type="text" class="form-control" style="width: 200px;"
                                       placeholder="用户ID">
 
                            </div>
                            <button type="button" class="btn btn-default search" v-on:click="search">搜索</button>
                        </form>
                    </td>
                    <td>
                        <div class="tianjia"></div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
 
        <div class="bottom">
            <div class="page">
                <ul class="pagination">
                    <li class="disabled pre"><a href="#">&laquo;</a></li>
                    <li><a href="#" class="next">1</a></li>
                    <li><a href="#" class="next">&raquo;</a></li>
                </ul>
                <div class="form-group">
                    <div class="tzan">
                        <button type="button" class="btn btn-primary">跳转</button>
                    </div>
                    <div class="tz">
                        <input class="form-control" type="text" id="customPage"
                               placeholder="页数">
                    </div>
                </div>
            </div>
        </div>
 
        <div class="zhuti">
            <div class="zhutisousuo">
                <table class="table">
                    <thead>
                    <tr>
                        <th width="5%">订单ID</th>
                        <th width="5%">用户ID</th>
                        <th width="5%">订单金额</th>
                        <th width="5%">订单状态</th>
                        <th width="8%">付款金额</th>
                        <th width="8%">付款方式</th>
                        <th width="10%">付款时间</th>
                        <th width="10%">会员开始时间</th>
                        <th width="10%">会员结束时间</th>
                        <th width="10%">订单创建时间</th>
                        <th width="10%">订单修改时间</th>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="liebiao">
                <table class="table">
                    <tbody>
                    <tr v-for="(item,index) in list" style="text-align: center; height: 105px;line-height: 105px;"
                        v-bind:style="{'background':index%2==0?'#EEEEEE':'#FFFFFF'}">
                        <td width="5%">
                            <div class="uid">{{item.id}}</div>
                        </td>
                        <td width="5%">
                            <div>{{item.uid}}</div>
                        </td>
                        <td width="5%">
                            <div>¥{{item.money}}</div>
                        </td>
                        <td width="5%">
                            <div v-bind:style="{'color': item.state==1?'green':'red' }">{{item.state==1?'已支付':'未支付'}}
                            </div>
                        </td>
 
                        <td width="8%">
                            <div v-if="item.payMoney>0">¥{{item.payMoney}}</div>
                        </td>
 
                        <td width="10%">
                            <div v-if="item.payWay">{{item.payWay}}</div>
                        </td>
 
                        <td width="10%">
                            <div>{{item.payTime}}</div>
                        </td>
 
                        <td width="10%">
                            <div>{{item.vipStartTime}}</div>
                        </td>
 
                        <td width="10%">
                            <div>{{item.vipEndTime}}</div>
                        </td>
 
                        <td width="10%">
                            <div>{{item.createTime}}</div>
                        </td>
                        <td width="10%">
                            <div>{{item.updateTime}}</div>
                        </td>
 
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="bottom">
            <div class="page">
                <ul class="pagination">
                    <li class="disabled pre"><a href="#">&laquo;</a></li>
                    <li><a href="#" class="next">1</a></li>
                    <li><a href="#" class="next">&raquo;</a></li>
                </ul>
                <div class="form-group">
                    <div class="tzan">
                        <button type="button" class="btn btn-primary">跳转</button>
                    </div>
                    <div class="tz">
                        <input class="form-control" type="text" id="customPage"
                               placeholder="页数">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/page.js"></script>
<script src="js/nav.js"></script>
<script src="js/common.js"></script>
<script src="js/vue.min.js"></script>
<script src="layer/layer.js"></script>
 
<script>
    $(function () {
 
        var app = new Vue({
            el: "#neirong",
            data: {
                list: [],
                count: 0,
                pageEntity: {
                    pageIndex: 0,
                    totalCount: 0,
                    pageSize: 20,
                },
            },
            methods: {
                search: function () {
                    app.pageEntity.pageIndex = 0;
                    app.requestData(app.pageEntity.pageIndex + 1);
                },
                requestData(page) {
                    var pay = $(".vip-type").val();
                    if (pay == 0) {
                        pay = null;
                    } else if (pay == 1) {
                        pay = true;
                    } else {
                        pay = false;
                    }
                    var uid = $("input[type=text]").val();
                    if (uid == '')
                        uid = null;
 
                    $.post("api/vip/vipOrderList", {"page": page, "pay": pay, "uid": uid}, function (data) {
                        if (data.code == 0) {
                            fillPage(data.data.pageEntity, function (pageIndex) {
                                app.requestData(pageIndex);
                            });
 
                            for (var i = 0; i < data.data.list.length; i++) {
                                var payWay =data.data.list[i].payWay+"";
                                if (payWay.indexOf("1") > -1) {
                                    payWay = "支付宝";
                                } else if (payWay.indexOf("2") > -1) {
                                    payWay = "微信";
                                } else if (payWay.indexOf("3") > -1) {
                                    payWay = "影视豆";
                                } else if (payWay.indexOf("4") > -1) {
                                    payWay = "苹果内购";
                                }
                                data.data.list[i].payWay = payWay;
                            }
 
                            app.list = data.data.list;
                            app.pageEntity = data.data.pageEntity;
                        }
                    }, 'json');
                },
            }
        });
 
        app.requestData(1);
 
    });
</script>
<script>
 
</script>
</body>
 
</html>