1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
- <head>
- <th:block th:include="include :: header('用户头像管理')" />
- </head>
- <body class="gray-bg">
- <div class="container-div">
- <input id="uid" name="uid" th:value="${users.uid}" type="hidden">
- <div class="row">
- <div class="btn-group-sm" id="toolbar" role="group">
- <span style="color: red">卿卿号:</span><span id="erbanNo" th:text="${users.erbanNo}"></span>
- <span style="color: red">昵称:</span><span id="nick" th:text="${users.nick}"></span>
- </div>
- <div class="col-sm-12 select-table table-striped">
- <table id="bootstrap-table" data-mobile-responsive="false"></table>
- </div>
- </div>
- </div>
- <th:block th:include="include :: footer" />
- <script th:inline="javascript">
- var servingFlag = [[${@permission.hasPermi('report:trick:treat:serving:confirm')}]];
- var types = [[${@dict.getType('item_status')}]];
- var prefix = ctx + "report/trick/treat";
- $(function() {
- var options = {
- url: prefix + "/treatGiftList",
- modalName: "砸蛋礼物",
- height: $(window).height()-120,
- columns: [
- {
- field: 'giftName',
- title: '礼物名称',
- align : 'center'
- },
- {
- field: 'giftStatus',
- title: '礼物状态',
- align : 'center',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(types, value);
- }
- },
- {
- field: 'goldPrice',
- title: '礼物金币',
- align : 'center'
- },
- {
- title: '操作',
- align: 'center',
- formatter: function(value, row, index) {
- var actions = [];
- actions.push('<a class="btn btn-success btn-xs ' + servingFlag + '" href="javascript:void(0)" onclick="confirmSetting(\'' + row.giftId + '\',\'' + row.giftName + '\')"><i class="fa fa-gears"></i> 确认</a> ');
- return actions.join('');
- }
- }]
- };
- $.table.init(options);
- });
- /**
- * 确认
- */
- function confirmSetting(giftId,giftName){
- var erbanNo = $("#erbanNo").text();
- var uid = $("#uid").val();
- $.modal.confirm("确认要给卿卿号["+erbanNo+"]指定["+giftName+"]为砸蛋必中礼物吗?", function() {
- $.operate.post(prefix + "/serving?giftId=" + giftId + "&uid=" + uid);
- });
- }
- </script>
- </body>
- </html>
|