| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- define(["jquery", "easy-admin"], function ($, ea) {
- var init = {
- table_elem: '#currentTable',
- table_render_id: 'currentTableRenderId',
- index_url: 'box.MatchingBox/index',
- add_url: 'coupon.couponarea/add',
- edit_url: 'coupon.couponarea/edit',
- delete_url: 'coupon.couponarea/delete',
- opentime_url:'coupon.couponarea/addtime',
- export_url: 'mall.cate/export',
- modify_url: 'coupon.couponarea/modify',
- };
- var Controller = {
- index: function () {
- ea.table.render({
- init: init,
- toolbar:['refresh',
- [
- ]
- ],
- cols: [[
- {type: "checkbox"},
- {field: 'id', width: 80, title: '预约记录id'},
- {field: 'box_id', minWidth: 80, title: '预约盒子id'},
- {field: 'create_time', minWidth: 80, title: '预约时间'},
- {field: 'qi_count', minWidth: 80, title: '预约第几期'},
- {field: 'lun_count', minWidth: 80, title: '预约第几轮'},
- {field: 'num', minWidth: 120, title: '数量'},
- {field: 'pay_type', minWidth: 50, title: '支付类型', search: 'select', selectList: {'1': '积分', '2': '余额'}},
- {field: 'mobile', minWidth: 180, title: '用户手机号'},
- {field: 'total_free', minWidth: 180, title: '总共消费金额'},
- {field: 'total_income', minWidth: 180, title: '总共消费金额'},
- {field: 'box_type', minWidth: 50, title: '拆出来的类型', search: 'select', selectList: {'0': '预约成功', '2': '普通', '3':'稀有', '4':'史诗', '5':'传说'}},
- {field: 'create_time', minWidth: 200, title: '创建时间'},
- {field: 'box_img', width: 120, title: '图片封面', templet: function (d) {
- return '<span><img src="' + d.box_img + '" style="width: 60px;height: 60px;border-radius: 60px;"></span>';
- }},
- {field: 'box_title', minWidth: 50, title: '福袋名字'}
- ]],
- });
- ea.listen();
- },
- add: function () {
- ea.listen();
- },
- edit: function () {
- ea.listen();
- },
- addtime: function () {
- ea.listen();
- }
- };
- return Controller;
- });
|