|
@@ -65,7 +65,7 @@
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label">姓名编号:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" name="nickname" lay-verify="nickname" style="width: 100%" autocomplete="off" placeholder="请输入姓名、编号、手机号" class="layui-input">
|
|
|
+ <input type="text" name="nickname" id="nickname" lay-verify="nickname" style="width: 100%" autocomplete="off" placeholder="请输入姓名、编号、手机号" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
@@ -186,6 +186,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="layui-col-lg12" id="app1">
|
|
|
+ <button @click="excel" type="button"
|
|
|
+ class="layui-btn layui-btn-warm layui-btn-sm export" type="button">
|
|
|
+ <i class="fa fa-floppy-o" style="margin-right: 3px;"></i>导出
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">
|
|
|
<button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" lay-filter="search" >
|
|
@@ -314,6 +320,7 @@
|
|
|
{field: 'extract_count_price', title: '累计提现',align:'center',width:'6%'},
|
|
|
{field: 'integral', title: '积分',width:'6%',sort:true,event:'integral',align:'center'},
|
|
|
{field: 'dynamic_integral', title: '动态积分',width:'6%',sort:true,event:'dynamic_integral',align:'center'},
|
|
|
+ {field: 'consumption', title: '消费券',width:'6%',sort:true,event:'consumption',align:'center'},
|
|
|
{field: 'spread_uid_nickname', title: '推荐人',align:'center'},
|
|
|
{field: 'sex', title: '性别',width:'4%',align:'center'},
|
|
|
{field: 'data_time', title: '访问日期',align:'center',width:'12%',templet:'#data_time'},
|
|
@@ -544,5 +551,94 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ require(['vue'], function (Vue) {
|
|
|
+ new Vue({
|
|
|
+ el: "#app1",
|
|
|
+ data: {
|
|
|
+ badge: [],
|
|
|
+ where: {
|
|
|
+ nickname: '',
|
|
|
+ group: '',
|
|
|
+ excel: 0,
|
|
|
+ },
|
|
|
+ showtime: false,
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ 'where.status': function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ },
|
|
|
+ 'where.data': function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ },
|
|
|
+ 'where.type': function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ },
|
|
|
+ 'where.pay_type': function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ setData: function (item) {
|
|
|
+ var that = this;
|
|
|
+ if (item.is_zd == true) {
|
|
|
+ that.showtime = true;
|
|
|
+ this.where.data = this.$refs.date_time.innerText;
|
|
|
+ } else {
|
|
|
+ this.showtime = false;
|
|
|
+ this.where.data = item.value;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getBadge: function () {
|
|
|
+ var that = this;
|
|
|
+ layList.basePost(layList.Url({c: 'order.store_order', a: 'getBadge'}), this.where, function (rem) {
|
|
|
+ that.badge = rem.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ search: function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ },
|
|
|
+ refresh: function () {
|
|
|
+ layList.reload();
|
|
|
+ this.getBadge();
|
|
|
+ },
|
|
|
+ excel: function () {
|
|
|
+
|
|
|
+ var nickname = $('#nickname').val();
|
|
|
+ var group = $('#group').val();
|
|
|
+
|
|
|
+ this.where['nickname'] = nickname;
|
|
|
+ this.where['group'] = group;
|
|
|
+ this.where.excel = 1;
|
|
|
+ location.href = layList.U({c: 'user.user', a: 'get_user_list', q: this.where});
|
|
|
+ this.where.excel = 0;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted: function () {
|
|
|
+ var that = this;
|
|
|
+ that.getBadge();
|
|
|
+ window.formReload = this.search;
|
|
|
+ layList.laydate.render({
|
|
|
+ elem: this.$refs.date_time,
|
|
|
+ trigger: 'click',
|
|
|
+ eventElem: this.$refs.time,
|
|
|
+ range: true,
|
|
|
+ change: function (value) {
|
|
|
+ that.where.data = value;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+
|
|
|
</script>
|
|
|
{/block}
|