From 5f3f7f33303c1b96a36de3b91155e49f3a56ff09 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Sun, 15 Nov 2020 20:36:41 +0800
Subject: [PATCH] Merge branches 'cpv-back' and 'roc-bak' of https://gitee.com/chonggaoxiao/new_excoin_manage into cpv-back

---
 src/main/resources/templates/febs/views/modules/orderCoin/orderCoin.html |  137 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 137 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/orderCoin/orderCoin.html b/src/main/resources/templates/febs/views/modules/orderCoin/orderCoin.html
new file mode 100644
index 0000000..3a48a34
--- /dev/null
+++ b/src/main/resources/templates/febs/views/modules/orderCoin/orderCoin.html
@@ -0,0 +1,137 @@
+<div class="layui-fluid layui-anim febs-anim" id="febs-user" lay-title="币币交易成交">
+    <div class="layui-row febs-container">
+        <div class="layui-col-md12">
+            <div class="layui-card">
+                <div class="layui-card-body febs-table-full">
+                    <form class="layui-form layui-table-form" lay-filter="user-table-form">
+                        <div class="layui-row">
+                            <div class="layui-col-md10">
+                                <div class="layui-form-item">
+                                    <div class="layui-inline">
+                                        <div class="layui-input-inline">
+                                            <input type="text" placeholder="手机号/邮箱" name="phone" autocomplete="off" class="layui-input">
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+                            <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area">
+                                <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain table-action" id="query">
+                                    <i class="layui-icon">&#xe848;</i>
+                                </div>
+                                <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="reset">
+                                    <i class="layui-icon">&#xe79b;</i>
+                                </div>
+                            </div>
+                        </div>
+                    </form>
+                    <table lay-filter="userTable" lay-data="{id: 'userTable'}"></table>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!-- 表格操作栏 end -->
+<script data-th-inline="none" type="text/javascript">
+    // 引入组件并初始化
+    layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () {
+        var $ = layui.jquery,
+            laydate = layui.laydate,
+            febs = layui.febs,
+            form = layui.form,
+            table = layui.table,
+            treeSelect = layui.treeSelect,
+            dropdown = layui.dropdown,
+            $view = $('#febs-user'),
+            $query = $view.find('#query'),
+            $reset = $view.find('#reset'),
+            $searchForm = $view.find('form'),
+            sortObject = {field: 'createTime', type: null},
+            tableIns;
+
+        form.render();
+
+        // 表格初始化
+        initTable();
+
+        // 下拉框选择器
+        treeSelect.render({
+            elem: $view.find('#dept'),
+            type: 'get',
+            data: ctx + 'dept/select/tree',
+            placeholder: '请选择',
+            search: false
+        });
+
+        // 查询按钮
+        $query.on('click', function () {
+            var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type});
+            tableIns.reload({where: params, page: {curr: 1}});
+        });
+
+        // 刷新按钮
+        $reset.on('click', function () {
+            $searchForm[0].reset();
+            tableIns.reload({where: getQueryParams(), page: {curr: 1}});
+        });
+
+        function initTable() {
+            tableIns = febs.table.init({
+                elem: $view.find('table'),
+                id: 'userTable',
+                url: ctx + 'orderCoin/page',
+                totalRow: true,
+                cols: [[
+                	{field: 'phone', title: '手机号码', minWidth: 120,align:'left',totalRowText: '合计'},
+                    {field: 'email', title: '邮箱', minWidth: 50,align:'left'},
+                    {field: 'orderType', title: '订单类型',
+                        templet: function (d) {
+                            if (d.orderType === 1) {
+                                return '<span style="color:green;">买入</span>'
+                            } else if (d.orderType === 2) {
+                                return '<span style="color:red;">卖出</span>'
+                            } else{
+                                return ''
+                            }
+                        },minWidth: 20,align:'center'},
+                    {field: 'tradeType', title: '交易类型',
+                        templet: function (d) {
+                            if (d.tradeType === 1) {
+                                return '<span style="color:blue;">市价</span>'
+                            } else if (d.tradeType === 2) {
+                                return '<span style="color:blue;">限价</span>'
+                            } else{
+                                return ''
+                            }
+                        },
+                        minWidth: 20,align:'center'},
+                    {field: 'symbol', title: '币种', minWidth: 20,align:'center'},
+                    {field: 'symbolCnt', title: '数量', minWidth: 30,align:'center',totalRow: true},
+                    {field: 'entrustPrice', title: '委托价', minWidth: 30,align:'center'},
+                    {field: 'dealPrice', title: '成交价', minWidth: 30,align:'center'},
+                    {field: 'dealAmount', title: '成交金额', minWidth: 30,align:'center'},
+                    {field: 'ipo', title: '私募',
+                        templet: function (d) {
+                            if (d.ipo == 1) {
+                                return '<span style="color:red;">是</span>'
+                            } else if (d.ipo == 0) {
+                                return '<span style="color:gray;">否</span>'
+                            } else{
+                                return '<span style="color:red;">是</span>'
+                            }
+                        },
+                        minWidth: 20,align:'center'},
+                    {field: 'feeAmount', title: '手续费', minWidth: 30,align:'center'},
+                    {field: 'createTime', title: '创建时间', minWidth: 200,align:'center'},
+                ]]
+            });
+        }
+
+        // 获取查询参数
+        function getQueryParams() {
+            return {
+                phone: $searchForm.find('input[name="phone"]').val().trim()
+            };
+        }
+        
+    })
+</script>
\ No newline at end of file

--
Gitblit v1.9.1