yujian
2020-04-26 b920c3f9c82ebd8b6a03e1ad208754f78ed05206
改版
7个文件已修改
1727 ■■■■■ 已修改文件
home.html 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/admin-creat.js 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/doui.min.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/pageEditTan.xml 77 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/pageTable.xml 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
menu.json 836 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
right.html 676 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
home.html
@@ -72,7 +72,7 @@
        <!-- 顶部开始 -->
        <div class="container">
            <div class="logo">
                <a href="./index.html">板栗快省后台管理</a></div>
                <a href="./login.html">板栗快省后台管理</a></div>
            <div class="left_open">
                <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
            </div>
@@ -107,9 +107,9 @@
                        <dd>
                            <a onclick="xadmin.open('个人信息','http://www.baidu.com')">个人信息</a></dd>
                        <dd>
                            <a onclick="xadmin.open('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
                            <a id ="changeUser">切换帐号</a></dd>
                        <dd>
                            <a href="./login.html">退出</a></dd>
                            <a id = "loginExit">退出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item to-index">
@@ -214,7 +214,7 @@
                                        // 返回登录页
                                        doui.pageToUrl({
                                            type: "replace",
                                            url: "index.html",
                                            url: "login.html",
                                        });
                                    }
                                },
@@ -325,10 +325,72 @@
                                layer.msg("清除缓存成功");
                            }
                        });
                    });
                    //  退出登录事件
                    $("#loginExit").click(function() {
                        var myurl = gethttp() + "/admin/new/api/login/loginExitJP";
                        doui.request({
                            type: "jsonp",
                            url: myurl,
                            success: function(res) {
                                 vm.user.init();
                                 doui.pageToUrl({
                                     type: "replace",
                                     url: "login.html",
                                 });
                            }
                        });
                    });
                    //  切换账号事件
                    $("#changeUser").click(function() {
                        var myurl = gethttp() + "/admin/new/api/login/loginExitJP";
                        doui.request({
                            type: "jsonp",
                            url: myurl,
                            success: function(res) {
                                 vm.user.init();
                                 loginOpen();
                            }
                        });
                    });
                    function loginOpen() {
                        layui.use('layer', function() {
                            layer.open({
                                type: 2,
                                title: false,
                                shadeClose: true,
                                shade: 0.3,
                                id: 'LAY_layuipro',//设定一个id,防止重复弹出
                                area: ['420px', '432px'],
                                content: ['./login_simpl.html?type=2', 'no'],
                            });
                        });
                    }
                }
            });
        </script>
        <script>
            function login() {
                    layui.use('layer', function() {
                            layer.open({
                                    type: 2,
                                    title: false,
                                    shadeClose: true,
                                    shade: 0.3,
                                    id: 'LAY_layuipro', //设定一个id,防止重复弹出
                                    area: ['420px', '432px'],
                                    content: ['./login_simpl.html?type=2', 'no'],
                            });
                    });
            }
        </script>
    </body>
js/admin-creat.js
@@ -472,7 +472,14 @@
                            vm_table.search();
                        },
                    },
                },
                },
                // 初始化layui表单元素修饰
                updated: function() {
                    layui.use('form', function() {
                        var form = layui.form;
                        form.render();
                    });
                },
                // 通用方法
                methods: {
                    // 表格 获取设置结果
@@ -509,7 +516,10 @@
                        // 获取成功后触发搜索回调
                        objC.touchSearch(back);
                    }
                },
                },
            });
        },
        
@@ -619,6 +629,22 @@
                        show: false, // 修改框上 是否显示存在的数据
                        list: [], // 已经存在的数据列表
                    },
                },
                // 初始化layui表单元素修饰
                updated: function() {
                    layui.use('form', function() {
                        var form = layui.form;
                        form.render();
                        //监听指定开关
                        form.on('switch(switchTest)', function(data) {
                            var value = 0;
                            if (this.checked) {
                                value = 1;
                            }
                            vm_editTan.thereData.list[this.title].key = value;
                        });
                    });
                },
                methods: {
                    // 关闭按钮 点击
@@ -642,7 +668,8 @@
                        if (index >= 0) { tdItem.key.splice(index, 1); }
                        // 没有则添加
                        else { tdItem.key.push(editListItem.key); }
                    },
                    },
                    // 文件资源获取,{ key: (用来保存新选择的文件对象), value: (是已经拥有的老数据) }
                    fileInputChange: function (indexC)
                    {
@@ -670,7 +697,7 @@
                        var back = vm_editTan.thereData;
                        // 触发
                        objC.touchSubmit(back);
                    }
                    }
                },
            });
        
js/doui.min.js
@@ -2108,7 +2108,7 @@
                    if (o && o.parentNode.removeChild(o), null != r && clearTimeout(r), doui.AjaxRepeat("over", e.url), "object" ==
                        typeof i) {
                        var n = i;
                        if (n.code == 1)
                        if (n.code == 10001)
                            doui.loginOpen()
                        else
                            e.success(n)
@@ -2116,7 +2116,7 @@
                        str: i,
                        success: function(t) {
                            var i = t;
                            if (i.code == 1)
                            if (i.code == 10001)
                                doui.loginOpen()
                            else
                                e.success(i)
js/pageEditTan.xml
@@ -1,6 +1,6 @@
<div id="admin-edit-tan" class="layer-dark fboxCol Xcenter Ycenter">
    <div class="admin-tan-box">
<div id="admin-edit-tan" class="layer-dark fboxCol Xcenter Ycenter"  >
    <div class="admin-tan-box" style="min-height:60%;max-height:90%">
        <!-- 关闭按钮 -->
        <div class="admin-btn-arcS admin-tan-close font14" @click="closeClick()"><i class="fi fi-no font-white"></i></div>
        <!-- 数据修改 -->
@@ -8,23 +8,34 @@
            <div class="font20 font-blue">{{opt.title}}</div>
        </div>
        <!-- 滚动框 -->
        <div class="flex1 scroll-y border-1px">
        <div class="flex1 scroll-y border-1px" style="width:820px">
            <div style="width:auto; height:auto;" class="fboxCol Xstart Ystretch">
                
                <!-- 根据表头看哪些该显示 index为列序数 -->
                <div v-for="(item,index) in thead.th" v-if="item.edit" class="fboxRow Xstart Ystart" style="padding:20px;">
                <div v-for="(item,index) in thead.th" v-if="item.edit" class="fboxRow Xstart Ystart">
                    <!-- 修改项标题 -->
                    <div class="fboxRow Xstart Ystart" style="width:0.8rem; margin-top:10px;"><div class="font17 font-cyan">{{item.title}}:</div></div>
                    <div class="fboxRow Xstart Ystart" style="width:0.8rem; margin-top:16px;">
                        <div class="font17 font-cyan" style=" width:100%; display:flex; justify-content: flex-end; ">
                            <div style= "margin:0px 30px 0px 0px;">{{item.title}}: </div>
                        </div>
                    </div>
                    <!-- 编辑操作区域 -->
                    <div style="min-width:2rem; max-width:3.5rem; min-height:60px;">
                    <div style="min-width:2rem; max-width:5rem; min-height:60px;">
                        <!-- 文本输入 -->
                        <div v-if="item.edit.type=='text'" class="fboxWrap Xstart Ystart">
                            <textarea :placeholder="item.edit.placeholder" v-model="thereData.list[index].key"></textarea>
                        <div v-if="item.edit.type=='text'" class="fboxWrap Xstart Ystart" >
                            <div class="inputShell admin-header-input" style="width:535px; margin:10px 0px 0px 0px">
                                <input type="text"  :placeholder="item.edit.placeholder" v-model="thereData.list[index].key"/>
                            </div>
                        </div>
                        <!-- 文本输入 -->
                        <div v-if="item.edit.type=='textarea'" class="fboxWrap Xstart Ystart" style="margin-top:10px;">
                            <textarea :placeholder="item.edit.placeholder" v-model="thereData.list[index].key"></textarea>
                        </div>
                        
                        <!-- radio单选项 -->
                        <div v-else-if="item.edit.type=='radio'" class="fboxWrap Xstart Ystart">
                        <div v-else-if="item.edit.type=='radio'" class="fboxWrap Xstart Ystart" style="margin-top:10px;">
                            <!-- 一个单选项 -->
                            <div v-for="(editItem,index2) in item.edit.list" class="fboxRow Xcenter Ycenter cursor-pointer" style="margin-top:10px;margin-right:20px;" @click="thereData.list[index].key=editItem.key;thereData.list[index].value=editItem.value;">
                                <div class="font18"><i class="fi" :class="editItem.key===thereData.list[index].key?'fi-radio-ok font-green':'fi-radio-no font-gray'"></i></div>
@@ -33,7 +44,7 @@
                        </div>
                        
                        <!-- check多选项 -->
                        <div v-else-if="item.edit.type=='check'" class="fboxWrap Xstart Ystart">
                        <div v-else-if="item.edit.type=='check'" class="fboxWrap Xstart Ystart" style="margin-top:10px; margin-left:0px;">
                            <!-- 一个选择项 -->
                            <div v-for="(editItem,index2) in item.edit.list" class="fboxRow Xcenter Ycenter cursor-pointer" style="margin-top:10px;margin-right:20px;" @click="checkClick(editItem, thereData.list[index])">
                                <div class="font18"><i class="fi" :class="thereData.list[index].key.indexOf(editItem.key)>=0?'fi-check-ok font-green':'fi-check-no font-gray'"></i></div>
@@ -42,20 +53,24 @@
                        </div>
                        
                        <!-- select下拉列表 -->
                        <div v-if="item.edit.type=='select'" class="fboxWrap Xstart Ystart">
                            <select class="admin-marginRight" style="margin-top:10px;" v-model="thereData.list[index].key" @change="action_change(index,thereData.list[index])">
                        <div v-if="item.edit.type=='select'" class="fboxWrap Xstart Ystart" style="margin-top:10px;">
                            <select class="admin-marginRight" style="width:535px" v-model="thereData.list[index].key" @change="action_change(index,thereData.list[index])">
                                <option v-for="optionItem in item.edit.list" :key="optionItem.key" :value="optionItem.key">{{optionItem.value}}</option>
                            </select>
                        </div>
                        
                        <!-- date时间 -->
                        <div v-if="item.edit.type=='date'" class="fboxWrap Xstart Ystart">
                            <div class="inputShell admin-header-input"><input type="date" v-model="thereData.list[index].key"/></div>
                        <div v-if="item.edit.type=='date'" class="fboxWrap Xstart Ystart" style="width:280px">
                            <div class="inputShell admin-header-input" style="margin:10px 0px 0px 0px">
                                <input style="width:280px" type="date" v-model="thereData.list[index].key"/>
                            </div>
                        </div>
                        
                        <!-- datetime-local时间 -->
                        <div v-if="item.edit.type=='datetime-local'" class="fboxWrap Xstart Ystart">
                            <div class="inputShell admin-header-input"><input type="datetime-local" v-model="thereData.list[index].key"/></div>
                        <div v-if="item.edit.type=='datetime-local'" class="fboxWrap Xstart Ystart" style="width:280px">
                            <div class="inputShell admin-header-input" style="margin:10px 0px 0px 0px">
                                <input style="width:280px"  type="datetime-local" v-model="thereData.list[index].key"/>
                            </div>
                        </div>
                        
                        <!-- toggle开关项 -->
@@ -64,31 +79,49 @@
                            <div style="margin:10px;">{{thereData.list[index].value}}</div>
                            <!-- 开关 -->
                            <div class="fboxRow Xcenter Ycenter cursor-pointer" style="margin:10px;" @click="if(thereData.list[index].key==item.edit.list[0].key){thereData.list[index].key=item.edit.list[1].key;}else{thereData.list[index].key=item.edit.list[0].key;}">
                                <div class="font18" style="margin:0 3px;"><i class="fi" :class="thereData.list[index].key==item.edit.list[0].key?'fi-toggle-no font-gray':'fi-toggle-ok font-green'"></i></div>
                                <div class="font18" style="margin:0px;"><i class="fi" :class="thereData.list[index].key==item.edit.list[0].key?'fi-toggle-no font-gray':'fi-toggle-ok font-green'"></i></div>
                                <div v-show="thereData.list[index].key==item.edit.list[0].key" class="font-red">{{item.edit.list[0].value}}</div>
                                <div v-show="thereData.list[index].key!=item.edit.list[0].key" class="font-green">{{item.edit.list[1].value}}</div>
                            </div>
                        </div>
                        <!-- 切换开关项 -->
                        <div v-else-if="item.edit.type=='switch'" class="fboxCol Xstart Ystart" style="margin-top:10px;">
                             <form class="layui-form">
                                 <div class="layui-form-item">
                                     <div class="layui-input-block" style="margin:0px">
                                        <div v-show="thereData.list[index].key==1">
                                             <input type="checkbox" value="开"  :title ="index" lay-skin="switch" lay-filter="switchTest" lay-text="开|关"  checked>
                                         </div>
                                         <div v-show="thereData.list[index].key!=1">
                                             <input type="checkbox"  value="关" :title ="index"  lay-skin="switch" lay-filter="switchTest" lay-text="开|关">
                                        </div>
                                     </div>
                                 </div>
                             </form>
                        </div>
                        
                        <!-- file文件 -->
                        <div v-if="item.edit.type=='file'" class="fboxWrap Xstart Ycenter">
                            <!-- 如果未修改,则显示原图 -->
                            <div v-if="thereData.list[index].change!=true && typeof(thereData.list[index].value)=='string' && thereData.list[index].value.indexOf('未')<0" style="margin-right:10px;">
                            <div v-if="thereData.list[index].change!=true && typeof(thereData.list[index].value)=='string' && thereData.list[index].value.indexOf('未')<0">
                                <img style="height:0.5rem;max-width:1rem;" :src="thereData.list[index].value"/>
                            </div>
                            <div v-else-if="thereData.list[index].change==true" style="margin-right:10px;">
                            <div v-else-if="thereData.list[index].change==true" >
                                <img style="height:0.5rem;max-width:1rem;" :src="thereData.list[index].filePath"/>
                            </div>
                            <!-- 文件组件 -->
                            <div class="fboxCol Xstart Ystart">
                                <!-- 是否删除 -->
                                <div class="fboxRow Xstart Ycenter cursor-pointer" @click="vm_editTan.thereData.list[index].del=!vm_editTan.thereData.list[index].del;">
                                    <div class="font18" style="margin:0 5px;"><i class="fi" :class="thereData.list[index].del==true?'fi-toggle-no font-red':'fi-toggle-ok font-green'"></i></div>
                                    <div class="font18" style="margin:5px 0px 0px 0px"><i class="fi" :class="thereData.list[index].del==true?'fi-toggle-no font-red':'fi-toggle-ok font-green'"></i></div>
                                    <div v-if="thereData.list[index].del==false" class="font-green">上传</div>
                                    <div v-else-if="thereData.list[index].del==true" class="font-red">删除已有图片</div>
                                </div>
                                <!-- 组件 -->
                                <div v-show="thereData.list[index].del==false" class="inputShell admin-header-input"><input :id="'adminEditTanFileInput'+index" type="file" @change="fileInputChange(index)"/></div>
                                <div v-show="thereData.list[index].del==false" class="inputShell admin-header-input" style="margin:0px 0px 0px 0px ;width:280px;">
                                    <input :id="'adminEditTanFileInput'+index" type="file" @change="fileInputChange(index)"/>
                                </div>
                            </div>
                        </div>
                        
js/pageTable.xml
@@ -9,11 +9,11 @@
            <!-- thead -->
            <div class="admin-table-thead">
                <!-- 全选 -->
                <div v-if="opt.showCheck" style="min-width:0.45rem; width:0.45rem;" class="admin-table-th cursor-pointer" @click="thead.action_allCheckClick()">
                <div v-if="opt.showCheck" style="min-width:0.3rem; width:0.3rem;" class="admin-table-th cursor-pointer" @click="thead.action_allCheckClick()">
                    <i class="fi" :class="opt.allCheck==true?'fi-check-ok font-green':'fi-check-no font-gray'"></i>
                </div>
                <!-- 序号 -->
                <div v-if="opt.showSerial" style="min-width:0.45rem; width:0.45rem;" class="admin-table-th">序号</div>
                <div v-if="opt.showSerial" style="min-width:0.3rem; width:0.3rem;" class="admin-table-th">序号</div>
                <!-- 其它通用 -->
                <div v-for="(item,index) in thead.th" class="admin-table-th" :style="item.width?'width:'+item.width+';min-width:'+item.width+';':''">
                    <div class="fboxRow Xcenter Ycenter">
@@ -34,16 +34,16 @@
                <!-- tr一行 item就是{check:false,td:[]}这个 -->
                <div v-for="(item,index) in tbody.tr" class="admin-table-tr" :class="item.check==true?'admin-table-tr-check':''" @click.stop="tbody.action_trClick(item)">
                    <!-- 选中 -->
                    <div v-if="opt.showCheck" style="min-width:0.45rem; width:0.45rem;" class="admin-table-td cursor-pointer" @click.stop="tbody.action_trClick(item)">
                    <div v-if="opt.showCheck" style="min-width:0.3rem; width:0.3rem;" class="admin-table-td cursor-pointer" @click.stop="tbody.action_trClick(item)">
                        <i class="fi" :class="item.check==true?'fi-check-ok font-green':'fi-check-no font-gray'"></i>
                    </div>
                    <!-- 序号 -->
                    <div v-if="opt.showSerial" style="min-width:0.45rem; width:0.45rem;" class="admin-table-td">{{(opt.page-1)*opt.pageSize+index+1}}</div>
                    <div v-if="opt.showSerial" style="min-width:0.3rem; width:0.3rem;" class="admin-table-td">{{(opt.page-1)*opt.pageSize+index+1}}</div>
                    <!-- 其它通用 index2可以表示列的序数 -->
                    <div v-for="(item2,index2) in thead.th" class="admin-table-td" :style="item2.width?'width:'+item2.width+';min-width:'+item2.width+';':''">
                        <!-- 如果是img -->
                        <div v-if="item.td[index2].dataType=='img'" class="fboxCol Xcenter Ycenter">
                            <img :onclick="item.td[index2].click+'(\''+item.td[index2].key+'\')'" class="border-round" style="max-width:100%;max-height:0.5rem;" :src="item.td[index2].value" :class="item.td[index2].class" :style="item.td[index2].style"/>
                            <img :onclick="item.td[index2].click+'(\''+item.td[index2].key+'\')'" class="border-round" style="max-width:100%; max-height:0.3rem;" :src="item.td[index2].value" :class="item.td[index2].class" :style="item.td[index2].style"/>
                            {{item.td[index2].click}}
                        </div>
                        <!-- 如果是链接 -->
@@ -55,6 +55,23 @@
                        <div v-else-if="item.td[index2].dataType=='btn'" style="width:100%;" class="fboxCol Xcenter Ycenter">
                            <div :onclick="item.td[index2].click+'(\''+item.td[index2].key+'\')'" class="font-ell3" :title="item.td[index2].key" :class="item.td[index2].class" :style="item.td[index2].style">{{item.td[index2].value}}</div>
                        </div>
                        <!-- 如果是按钮 -->
                        <div v-else-if="item.td[index2].dataType=='btnSwitch'"  class="fboxCol Xcenter Ycenter">
                            <form class="layui-form"  style="width:0.3rem; margin:0px 2px;position:static;display: table-cell;">
                                <div class="layui-form-item">
                                    <div class="layui-input-block" style="width:0.3rem; margin:0px 2px;position:static;display: table-cell;">
                                        <div :onclick="item.td[index2].click+'(\''+item.td[index2].key+'\')'"  v-show="item.td[index2].key == 1">
                                            <input type="checkbox" value="开" style="display: table-cell;" lay-skin="switch" lay-filter="switchTable" lay-text="开|关" checked>
                                        </div>
                                        <div :onclick="item.td[index2].click+'(\''+item.td[index2].key+'\')'"  v-show="item.td[index2].key != 1">
                                            <input type="checkbox" value="关" style="display: table-cell;" lay-skin="switch" lay-filter="switchTable" lay-text="开|关">
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        
                        <!-- 其它 -->
                        <div v-else style="width:100%;" class="fboxCol Xcenter Ycenter">
menu.json
@@ -1,120 +1,172 @@
[
    {
        "value": "内容运营", "icon": "&#xe6f4;",
        "child": [
            {
                "value": "轮播图模块", "href": "childPath/looks/swiper1.html",
                "child": []
            },
            {
                "value": "专题模块",
                "child": [
                    {
                        "value": "内容设置", "href": "childPath/looks/layout_1.html",
                        "child": []
                    },
                    {
                        "value": "模板管理", "href": "childPath/looks/layout_location.html",
                        "child": []
                    },
                    {
                        "value": "标签管理", "href": "childPath/looks/special_label.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "标签栏引导提示", "href": "childPath/config/config_manage.html?type=versionDiff",
                "child": []
            },
            {
                "value": "热门搜索", "href": "childPath/editor/hot_search.html",
                "child": []
            },
            {
                "value": "动态",
                "child": [
                    {
                        "value": "发圈", "href": "childPath/editor/dongTai/evaluate_list.html",
                        "child": []
                    },
                    {
                        "value": "活动",  "href": "childPath/looks/swiper_noback.html?id=46",
                        "child": []
                    },
                    {
                        "value": "学院", "href": "childPath/editor/dongTai/article_collect.html",
                        "child": []
                    },
                    {
                        "value": "素材", "href": "childPath/editor/dongTai/sucai_list.html",
                        "child": []
                    },
                    {
                        "value": "行为数据", "href": "childPath/charts/faquan/dongtai_collect.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "品牌",
                "child": [
                    {
                        "value": "店铺背景条幅", "href": "childPath/shop/brand_bg_img.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "消息通知",
                "child": [
                   {
                       "value": "推荐推送", "href": "childPath/editor/message/todayPush/today_index.html",
                       "child": []
                   },
                   {
                       "value": "百川推送", "href": "childPath/editor/message/baiChuan.html",
                       "child": []
                   },
                   {
                       "value": "网页推送", "href": "childPath/editor/message/wangYe.html",
                       "child": []
                   },
                   {
                       "value": "系统消息", "href": "childPath/editor/message/zhanNeiXin.html",
                       "child": []
                   },
                   {
                       "value": "页面公告", "href": "childPath/editor/message/huangTiao.html",
                       "child": []
                   },
                   {
                       "value": "大图通知", "href": "childPath/config/config_manage.html?type=msgNotify",
                       "child": []
                   },
                   {
                       "value": "官宣任务", "href": "childPath/config/config_manage.html?type=guanXuan",
                       "child": []
                   },
                   {
                       "value": "板栗助手", "href": "childPath/config/config_manage.html?type=specialHelper",
                       "child": []
                   }
                ]
            },
            {
                "value": "帮助中心",
                "child": [
                  {
                      "value": "问答", "href": "window/mobileAdmin/helpCenter.html",
                      "child": []
                  },
                  {
                      "value": "分类", "href": "window/mobileAdmin/helpCenterCate.html",
                      "child": []
                  }
                ]
            },
            {
                "value": "创建分享",
                "child": [
                  {
                      "value": "淘宝商品", "href": "childPath/config/config_manage.html?type=tbGoods",
                      "child": []
                  },
                  {
                      "value": "京东商品", "href": "childPath/config/config_manage.html?type=jdGoods",
                      "child": []
                  },
                  {
                      "value": "拼多多商品", "href": "childPath/config/config_manage.html?type=pddGoods",
                      "child": []
                  }
                ]
            },
            {
                "value": "图片弹框", "href": "childPath/looks/indexToast.html",
                "child": []
            },
            {
                "value": "邀请好友图", "href": "childPath/looks/share.html",
                "child": []
            }
        ]
    },
    {
        "value": "数据视图", "icon": "adminshujubiao",
        "value": "品类运营", "icon": "&#xe722;",
        "child": [
            { 
                "value": "用户数据",
                "value": "商品分类",
                "child": [
                    {
                        "value": "新增-分渠道", "href": "childPath/charts/user/newAdd.html",
                        "child": []
                    },
                    {
                        "value": "新增-总计", "href": "childPath/charts/user/newAddCount.html",
                        "child": []
                    },
                    {
                        "value": "下单积极性", "href": "childPath/charts/user/actived.html",
                        "child": []
                    },
                   {
                       "value": "分类", "href": "childPath/goodsOpt/fenLei.html",
                       "child": []
                   },
                  {
                      "value": "二级分类标签", "href": "childPath/goodsOpt/fenLeiLabel.html",
                      "child": []
                  }
                ]
            },
            {
                "value": "分类导航栏", "href": "childPath/looks/navigation.html",
                "child": []
            },
            {
                "value": "淘宝商品来源",
                "child": [
                    {
                        "value": "90天再次活跃", "href": "childPath/charts/user/90dayActive.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "订单数据",
                "child": [
                    {
                        "value": "单数-分渠道", "href": "childPath/charts/dinDan/numQuDao.html",
                        "child": []
                    },
                    {
                        "value": "单数-分类型", "href": "childPath/charts/dinDan/numFenLei.html",
                        "child": []
                    },
                    {
                        "value": "单数-申诉", "href": "childPath/charts/dinDan/numShenShu.html",
                        "child": []
                    },
                    {
                        "value": "单数-维权", "href": "childPath/charts/dinDan/numWeiQuan.html",
                        "child": []
                    },
                    {
                        "value": "单数-总计", "href": "childPath/charts/dinDan/numAll.html",
                        "child": []
                    },
                    {
                        "value": "金额-分渠道", "href": "childPath/charts/dinDan/moneyQuDao.html",
                        "child": []
                    },
                    {
                        "value": "金额-申诉", "href": "childPath/charts/dinDan/moneyShenShu.html",
                        "child": []
                    },
                    {
                        "value": "金额-维权", "href": "childPath/charts/dinDan/moneyWeiQuan.html",
                        "child": []
                    },
                    {
                        "value": "金额-总计", "href": "childPath/charts/dinDan/moneyAll.html",
                        "child": []
                    },
                    {
                        "value": "跟踪准确率", "href": "childPath/charts/dinDan/OKgaiLv.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "资金数据",
                "child": [
                    {
                        "value": "用户提现金额", "href": "childPath/charts/ziJin/moneytiXian.html",
                        "child": []
                    },
                    {
                        "value": "用户提现次数", "href": "childPath/charts/ziJin/numtiXian.html",
                        "child": []
                    },
                    {
                        "value": "客服审核", "href": "childPath/charts/ziJin/keFuShenHe.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "福利/奖励数据",
                "child": [
                    {
                        "value": "奖励券-数量", "href": "childPath/charts/prize/jiangLiNumber.html",
                        "child": []
                    },
                    {
                        "value": "奖励券-金额", "href": "childPath/charts/prize/jiangLiMoney.html",
                        "child": []
                    },
                    {
                        "value": "免单券", "href": "childPath/charts/prize/mianDanMoney.html",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "商品", "icon": "adminshangpinxuanzhong",
        "child": [
            {
                "value": "自家精选商品", "href": "childPath/goods/jingXuan.html",
                "child": []
            },
            {
                "value": "淘宝",
                "child": [
                    {
                        "value": "普通接口", "href": "childPath/goods/taobao.html",
                        "child": []
                    },
@@ -126,361 +178,293 @@
                        "value": "大淘客", "href": "childPath/goods/daTaoKe.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "商品设置",
                "child": [
                    {
                        "value": "商品分类", "href": "childPath/goodsOpt/fenLei.html",
                        "child": []
                    },
                    {
                        "value": "商品二级分类标签", "href": "childPath/goodsOpt/fenLeiLabel.html",
                        "child": []
                    },
                    {
                        "value": "自动入库", "href": "window/1linShi/autoInSp_index.html",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "店铺", "icon": "admindianpu-copy",
        "child": [
            {
                "value": "品牌", "href": "childPath/shop/brand.html",
                "child": []
            },
            {
                "value": "品牌分类", "href": "childPath/shop/fenLei.html",
                "child": []
            },
            {
                "value": "店铺查看",
                "child": [
                    {
                        "value": "淘宝店铺", "href": "childPath/shop/taobao.html",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "标签", "icon": "adminbiaoqian",
        "child": [
            {
                "value": "商品标签", "href": "window/biaoQianAdmin/allBq.html",
                "child": []
            }
        ]
    },
    {
        "value": "福利/奖励", "icon": "adminfuli",
        "child": [
            {
                "value": "奖励券",
                "child": [
                    {
                        "value": "总览", "href": "childPath/prize/RewardCouponsAll.html",
                        "child": []
                    },
                    {
                        "value": "统计", "href": "childPath/prize/RewardCouponsTj.html",
                        "child": []
                    },
                    {
                        "value": "发放", "href": "childPath/prize/RewardCoupons.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "免单券",
                "value": "自编精选商品", "href": "childPath/goods/jingXuan.html",
                "child": []
            },
            {
                "value": "品牌",
                "child": [
                    {
                        "value": "总览", "href": "childPath/prize/freeCouponsAll.html",
                        "child": []
                    },
                    {
                        "value": "统计", "href": "childPath/prize/freeCouponsTj.html",
                        "child": []
                    },
                    {
                        "value": "详细使用记录", "href": "childPath/prize/freeCouponsHistory.html",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "APP形象", "icon": "adminpinpaixingxiang",
        "child": [
            {
                "value": "弹出式广告", "href": "childPath/looks/indexToast.html",
                "child": []
            },
            {
                "value": "顶部导航栏", "href": "childPath/looks/navigation.html",
                "child": []
            },
            {
                "value": "轮播图", "href": "childPath/looks/swiper1.html",
                "child": []
            },
            {
                "value": "专题管理",
                "child": [
                    {
                        "value": "位置管理", "href": "childPath/looks/layout_location.html",
                        "child": []
                    },
                    {
                        "value": "内容设置", "href": "childPath/looks/layout_1.html",
                        "child": []
                    },
                    {
                        "value": "标签管理", "href": "childPath/looks/special_label.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "热门搜索", "href": "childPath/editor/hot_search.html",
                "child": []
            },
            {
                "value": "分享邀请", "href": "childPath/looks/share.html",
                "child": []
            }
        ]
    },
    {
        "value": "交互编辑", "icon": "adminbianjiqianbixieshuru2",
        "child": [
            {
                "value": "消息通知",
                "child": [
                    {
                        "value": "小黄条公告", "href": "childPath/editor/message/huangTiao.html",
                        "child": []
                    },
                    {
                        "value": "今日推荐", "href": "childPath/editor/message/todayPush/today_index.html",
                        "child": []
                    },
                    {
                        "value": "站内信", "href": "childPath/editor/message/zhanNeiXin.html",
                        "child": []
                    },
                    {
                        "value": "网页推送", "href": "childPath/editor/message/wangYe.html",
                        "child": []
                    },
                    {
                        "value": "百川推送", "href": "childPath/editor/message/baiChuan.html",
                        "child": []
                    },
                    {
                        "value": "官宣任务", "href": "childPath/editor/message/guanXuan.html",
                        "child": []
                    },
                    {
                        "value": "返利券小助手", "href": "childPath/editor/message/zhuShou.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "动态", "href": "childPath/editor/dongTai/index.html",
                "child": []
                   {
                       "value": "品牌分类", "href": "childPath/shop/fenLei.html",
                       "child": []
                   },
                   {
                       "value": "品牌店铺", "href": "childPath/shop/brand.html",
                       "child": []
                   }
                ]
            },
            {
                "value": "动态发圈", "href": "childPath/editor/dongTai/evaluate_list.html",
                "child": []
                "value": "商品标签", "href": "window/biaoQianAdmin/allBq.html",
                "child": []
            },
            {
                "value": "动态素材", "href": "childPath/editor/dongTai/sucai_list.html",
                "child": []
                "value": "入库管理", "href": "window/1linShi/autoInSp_index.html",
                "child": []
            },
            {
                "value": "板栗商城管理", "icon": "adminshenhe1",
                "child": [
                    {
                        "value": "商品管理", "href": "childPath/mall/shop_goods.html",
                        "child": []
                    },
                    {
                        "value": "分类管理", "href": "childPath/mall/shop_goods_class.html",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "用户运营", "icon": "&#xe70b;",
        "child": [
            {
                "value": "学院文章", "href": "childPath/editor/dongTai/article.html",
                "child": []
            },
            {
                "value": "帮助中心",
                "value": "用户管理", "icon": "adminuser",
                "child": [
                    {
                        "value": "用户数据",  "href": "childPath/charts/user/userCollect.html",
                        "child": []
                    },
                    { 
                        "value": "分类", "href": "window/mobileAdmin/helpCenterCate.html",
                        "value": "正常用户", "href": "childPath/user/normal.html",
                        "child": []
                    },
                    { 
                        "value": "问答", "href": "window/mobileAdmin/helpCenter.html",
                        "value": "异常用户", "href": "childPath/user/abnormal.html",
                        "child": []
                    }
                    },
                    {
                        "value": "虚拟用户", "href": "childPath/user/fictitious_user.html",
                        "child": []
                    },
                    {
                        "value": "粉丝关系", "href": "childPath/user/friend.html",
                        "child": []
                    },
                    {
                       "value": "超级会员审核", "href": "childPath/shenHe/vip_audit_list.html",
                       "child": []
                    },
                    {
                       "value": "会员设置", "href": "childPath/user/vip_config_list.html",
                       "child": []
                    }
                ]
            },
            {
                "value": "人工客服", "href": "window/mobileAdmin/workerAnswer.html",
                "child": []
            }
            {
                "value": "订单管理", "icon": "adminuser",
                "child": [
                    {
                        "value": "订单数据", "href": "childPath/charts/dinDan/orderCollect.html",
                        "child": []
                    },
                    {
                        "value": "订单总览", "href": "childPath/dingDan/dingDan.html",
                        "child": []
                    },
                    {
                        "value": "淘宝订单记录", "href": "childPath/dingDan/dingDan_taoBao.html",
                        "child": []
                    },
                    {
                        "value": "淘宝维权订单记录", "href": "childPath/dingDan/dingDan_taoBao_wq.html",
                        "child": []
                    },
                    {
                        "value": "饿了么订单记录", "href": "childPath/dingDan/elme_order.html",
                        "child": []
                    },
                    {
                        "value": "京东订单记录", "href": "childPath/dingDan/jd_order.html",
                        "child": []
                    },
                    {
                        "value": "拼多多订单记录", "href": "childPath/dingDan/pdd_order.html",
                        "child": []
                    },
                    {
                        "value": "订单找回管理", "href": "childPath/shenHe/dinDanYiChang.html",
                        "child": []
                    },
                    {
                        "value": "板栗商城订单管理", "href": "childPath/shenHe/shopOrder1.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "资金管理", "icon": "adminuser",
                "child": [
                    {
                        "value": "资金数据", "href": "childPath/charts/ziJin/ziJinCollect.html",
                        "child": []
                    },
                    {
                        "value": "提现审核", "href": "childPath/shenHe/tiXian1.html",
                        "child": []
                    },
                    {
                        "value": "资金记录", "href": "childPath/user/money_record.html",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "审核", "icon": "adminshenhe1",
        "value": "活动运营", "icon": "&#xe756;",
        "child": [
            {
                "value": "申诉订单", "href": "childPath/shenHe/dinDanYiChang.html",
                "child": []
            },
            {
                "value": "提现审核", "href": "childPath/shenHe/tiXian1.html",
                "child": []
            },
            {
                "value": "下载提现TXT", "href": "childPath/shenHe/downAutoExtractUser.html",
                "child": []
            },
            {
                "value": "上传微信Excel", "href": "childPath/shenHe/uploadExtractExcel.html",
                "child": []
            },
            {
                "value": "板栗商城订单", "href": "childPath/shenHe/shopOrder1.html",
                "child": []
            {
                "value": "红包管理",
                "child": [
                    {
                        "value": "红包数据 日分曲线图", "href": "childPath/charts/user/redpackCollect.html",
                        "child": []
                    },
                    {
                        "value": "兑换审核", "href": "childPath/redpack/redpackExchangeList.html",
                        "child": []
                    },
                    {
                        "value": "新人红包记录", "href":"childPath/redpack/newbies_list.html",
                        "child": []
                    },
                    {
                        "value": "邀请红包记录","href": "childPath/redpack/manage_list.html",
                        "child": []
                    },
                    {
                        "value": "邀请红包阶段","href": "childPath/redpack/invite_win_list.html",
                        "child": []
                    },
                    {
                        "value": "红包管控", "href": "childPath/redpack/redpackControl.html",
                        "child": []
                    },
                    {
                        "value": "红包设置", "href": "childPath/redpack/config_list.html",
                        "child": []
                    }
                ]
            },
            {
                "value": "超级会员审核", "href": "childPath/shenHe/vip_audit_list.html",
                "child": []
            }
                "value": "金币管理",
                "child": [
                    {
                        "value": "金币数据 日分曲线图", "href": "childPath/charts/user/gold_coin_charts.html",
                        "child": []
                    },
                    {
                        "value": "金币榜单", "href": "childPath/user/goldCoinTop.html",
                        "child": []
                    },
                    {
                        "value": "金币记录", "href": "childPath/user/gold_coin_record.html",
                        "child": []
                    },
                    {
                        "value": "金币设置", "href": "childPath/config/config_manage.html?type=goldCoin",
                        "child": []
                    }
                ]
            },
            {
                "value": "免单券管理",
                "child": [
                    {
                        "value": "免单券数据 日分曲线图", "href": "childPath/charts/prize/free_coupon_collect.html",
                        "child": []
                    },
                    {
                        "value": "免单券记录", "href": "childPath/prize/freeCouponsHistory.html",
                        "child": []
                    },
                    {
                        "value": "免单券设置", "href": "childPath/config/config_manage.html?type=freeCoupon",
                        "child": []
                    }
                ]
            },
            {
                "value": "返利奖励券管理",
                "child": [
                    {
                        "value": "返利奖励券 日分曲线图", "href": "childPath/charts/prize/rebate_coupon.html",
                        "child": []
                    },
                    {
                        "value": "返利奖励券记录", "href": "childPath/prize/RewardCouponsAll.html",
                        "child": []
                    },
                    {
                        "value": "返利奖励券设置", "href": "childPath/config/config_manage.html?type=rebateCoupon",
                        "child": []
                    }
                ]
            }
        ]
    },
    {
        "value": "商城管理", "icon": "adminshenhe1",
        "value": "系统设置", "icon": "&#xe6ae;",
        "child": [
            {
                "value": "商品管理", "href": "childPath/mall/shop_goods.html",
                "child": []
            },
            {
                "value": "分类管理", "href": "childPath/mall/shop_goods_class.html",
                "child": []
            }
           {
               "value": "页面文本设置", "href": "childPath/config/config_manage.html?type=pageText",
               "child": []
           },
           {
               "value": "页面链接设置",
               "child": [
                   {
                        "value": "协议相关", "href": "childPath/config/config_manage.html?type=protocol",
                        "child": []
                    },
                    {
                        "value": "规则相关", "href": "childPath/config/config_manage.html?type=rule",
                        "child": []
                    },
                    {
                        "value": "帮助攻略相关", "href": "childPath/config/config_manage.html?type=helpStrategy",
                        "child": []
                    }
               ]
           },
           {
               "value": "功能参数设置",
               "child": [
                   {
                        "value": "订单购物车相关", "href": "childPath/config/config_manage.html?type=orderCart",
                        "child": []
                    },
                    {
                        "value": "提现相关", "href": "childPath/config/config_manage.html?type=extract",
                        "child": []
                    },
                    {
                        "value": "屏蔽控制", "href": "childPath/config/config_manage.html?type=maskControl",
                        "child": []
                    }
                ]
           }
        ]
    },
    {
        "value": "红包管理", "icon": "adminshenhe1",
        "value": "辅助工具", "icon": "&#xe75f;",
        "child": [
            {
                "value": "新人红包", "href":"childPath/redpack/newbies_list.html",
                "child": []
            },
            {
                "value": "红包管理", "href":"childPath/redpack/manage_list.html",
                "child": []
            },
            {
                "value": "红包扣除", "href": "childPath/redpack/deduct_list.html",
                "value": "生成图片URL(链接)", "href": "childPath/tools/uploadImg.html",
                "child": []
            },
            {
                "value": "红包封禁", "href": "childPath/redpack/forbid_list.html",
                "child": []
            },
            {
                "value": "红包设置", "href": "childPath/redpack/config_list.html",
                "child": []
            },
            {
                "value": "红包提现审核", "href": "childPath/redpack/redpackExchangeList.html",
                "child": []
            }
        ]
    },
    {
        "value": "用户", "icon": "adminuser",
        "child": [
            {
                "value": "正常用户", "href": "childPath/user/normal.html",
                "child": []
            },
            {
                "value": "异常用户", "href": "childPath/user/abnormal.html",
                "child": []
            },
            {
                "value": "队员关系", "href": "childPath/user/friend.html",
                "child": []
            },
            {
                "value": "资金记录", "href": "childPath/user/money.html",
                "child": []
            },
            {
                "value": "动态用户", "href": "childPath/user/dynamic_user.html",
                "child": []
            },
            {
                "value": "金币榜单", "href": "childPath/user/goldCoinTop.html",
                "child": []
            }
        ]
    },
    {
        "value": "订单", "icon": "admindingdan",
        "child": [
            {
                "value": "订单总览", "href": "childPath/dingDan/dingDan.html",
                "child": []
            },
            {
                "value": "淘宝订单", "href": "childPath/dingDan/dingDan_taoBao.html",
                "child": []
            },
            {
                "value": "维权订单", "href": "childPath/dingDan/dingDan_taoBao_wq.html",
                "child": []
            },
            {
                "value": "饿了么订单", "href": "childPath/dingDan/elme_order.html",
                "child": []
            }
        ]
    },
    {
        "value": "辅助工具", "icon": "admingongju-fill",
        "child": [
            {
                "value": "生成图片URL", "href": "childPath/tools/uploadImg.html",
                "child": []
            },
            {
                "value": "转换长短链接", "href": "childPath/tools/converLink.html",
                "value": "转换短连接", "href": "childPath/tools/converLink.html",
                "child": []
            },
            {
                "value": "文案转链", "href": "childPath/system/convertLink.html",
                "child": []
            }
        ]
    },
    {
        "value": "系统", "icon": "adminxitongpeizhi",
        "child": [
            {
                "value": "jumpDetail设置", "href": "childPath/system/jumpDetail.html",
                "child": []
            },
            {
                "value": "客户端网页资源", "href": "childPath/system/urlPath.html",
                "child": []
            },
            {
                "value": "系统参数设置", "href": "childPath/system/other.html",
                "child": []
            }
        ]
right.html
@@ -1,244 +1,432 @@
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title name="right">统计信息</title>
        <link rel="stylesheet" type="text/css" href="css/doui.min.css"/>
        <script src="js/doui.min.js" type="text/javascript" charset="utf-8"></script>
        <!--自设样式-->
        <style type="text/css">
            /*外层块级*/
            .thisKuai{ width: 2.3rem; padding: 0.1rem; margin-left: 0.15rem; margin-bottom: 0.15rem; border-radius: 10px; background-color: #4C4C4C; }
            /*标题框*/
            .dantitle{ font-size: 0.09rem; width: 100%; line-height: 0.15rem; text-align: center; }
            /*每项row*/
            .thisRow{ margin-top: 0.06rem; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; }
            /*每项name*/
            .thisName{ font-size: 0.07rem; width: 45%; line-height: 1.5; display: flex; flex-direction: row; justify-content: flex-end; align-items: center; text-align: right; }
            /*每项value*/
            .thisValue{ font-size: 0.07rem; width: 45%; line-height: 1.5; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; }
        </style>
        <script type="text/javascript">
            doui.importLoad({
                importArray: [
                    "font/iconfont.css",
                    "css/admin-all.css",
                    "js/vue.min.js",
                    "js/requestHost.js"
                ]
            })
        </script>
    </head>
    <body style="display:none;">
        <div id="allwai" class="heightenBox fontPC">
            <!--与顶部间隔-->
            <div style="width:100%; height:0.15rem;"></div>
            <!--块级外层-->
            <div class="fboxWrap Xstart Ystart" style="width:100%;">
                <!--循环添加块级-->
                <div v-for="item in table.list" class="thisKuai">
                    <!--标题-->
                    <div class="dantitle font-weight font-yellow">{{item.title}}</div>
                    <!--一排内容-->
                    <div v-for="item2 in item.list" class="thisRow">
                        <div class="thisName" v-bind:class="item2.tips==true?'font-orange':'font-white'">{{item2.name}}</div>
                        <div class="thisValue" v-bind:class="item2.tips==true?'font-orange':'font-white'">{{item2.value}}</div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<script type="text/javascript">
    // ============================================================================ 页面数据
    // vue实例化
    var vm = null;
    doui.onReady({
        success: function ()
        {
            vm = new Vue({
                el: "#allwai",
                data: {
                    table: {
                        list: [
                            { index: 0, title: "资金", list: [] },
                            { index: 1, title: "用户", list: [] },
                            { index: 2, title: "订单", list: [] },
                            { index: 3, title: "精选商品", list: [] },
                            { index: 4, title: "标签", list: [] },
                        ],
                        // 接口结果判定
                        hadLogin: function (resC)
                        {
                            if (resC.msg.indexOf("登录") != -1)
                            {
                                // 跳转登录
                                parent.window.doui.pageToUrl({
                                    type: "replace",
                                    url: "index.html",
                                });
                            }
                        },
                        request: function ()
                        {
                            // ------------------------------------------------------------------------ 资金统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/extract/countExtract",
                                data: {},
                                greenChannel: true,
                                success: function (res)
                                {
                                    if (res.code != 0) { vm.table.hadLogin(res); }
                                    else {
                                        var mo = res.data;
                                        var mo_list = [
                                            { name: "", value: "" },
                                            { name: "用户提现成功金额累计", value: "¥" + mo.extractMoney },
                                            { name: "用户提现成功次数累计", value: mo.extractNumber + " 次" },
                                            { name: "", value: "" },
                                            { name: "今日提现成功金额", value: "¥" + mo.todayextractMoney },
                                            { name: "今日审核提现次数", value: mo.todayCount.total + " 次" },
                                            { name: "审核通过", value: mo.todayCount.succeed + " 次" },
                                            { name: "审核驳回", value: mo.todayCount.fails + " 次" },
                                            { name: "", value: "" },
                                            { name: "所有用户当前余额总和", value: "¥" + mo.amountMoney },
                                            { name: "达到提现标准金额总和", value: "¥" + mo.extractApply, tips: true },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[0].list = vm.table.list[0].list.concat(mo_list);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 用户统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/user/countInfo",
                                data: {},
                                greenChannel: true,
                                success: function (res)
                                {
                                    if (res.code != 0) { vm.table.hadLogin(res); }
                                    else {
                                        var mo = res.data;
                                        // 用户自己的了
                                        var mo_list2 = [
                                            { name: "", value: "" },
                                            { name: "用户总数", value: mo.totalUser + " 人" },
                                            { name: "产生自购和分享", value: mo.orderUser + " 人", tips: true },
                                            { name: "流失用户", value: mo.loseUser + " 人" },
                                            { name: "", value: "" },
                                            { name: "青铜", value: mo.countNormal + " 人" },
                                            { name: "白银", value: mo.countCuprum + " 人" },
                                            { name: "黄金", value: mo.countSilver + " 人" },
                                            { name: "铂金", value: mo.countGold + " 人" },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[1].list = vm.table.list[1].list.concat(mo_list2);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 订单统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/order/countTaoBaoOrder",
                                data: {},
                                greenChannel: true,
                                success: function (res)
                                {
                                    if (res.code != 0) { vm.table.hadLogin(res); }
                                    else {
                                        var mo = res.data;
                                        var mo_list = [
                                            { name: "", value: "" },
                                            { name: "今日订单", value: mo.todayOrder + " 单", tips: true },
                                            { name: "昨日订单", value: mo.yesterdayOrder + " 单" },
                                            { name: "", value: "" },
                                            { name: "总订单", value: mo.typeOrder.countTotal + " 单" },
                                            { name: "待收货", value: mo.typeOrder.countPayment + " 单" },
                                            { name: "已收货", value: mo.typeOrder.countSettlement + " 单" },
                                            { name: "已失效", value: mo.typeOrder.countInvalid + " 单" },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[2].list = vm.table.list[2].list.concat(mo_list);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 精选商品统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/qualityFactory/getCountAll",
                                data: {},
                                greenChannel: true,
                                success: function (res)
                                {
                                    if (res.code != 0) { vm.table.hadLogin(res); }
                                    else {
                                        var mo = res.data;
                                        var mo_list = [
                                            { name: "", value: "" },
                                            { name: "精选商品总数", value: mo.countData.total },
                                            { name: "淘宝", value: mo.countData.totalTB },
                                            { name: "京东", value: mo.countData.totalJD },
                                            { name: "拼多多", value: mo.countData.totalPDD },
                                            { name: "唯品会", value: mo.countData.totalWPH },
                                            { name: "", value: "" },
                                            { name: "系统自动筛选", value: mo.countData.totalSEARCH },
                                            { name: "操作人员筛选", value: mo.countData.totalMANUAL },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[3].list = vm.table.list[3].list.concat(mo_list);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 标签统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/lable/getCountToday",
                                data: {},
                                greenChannel: true,
                                success: function (res)
                                {
                                    if (res.code != 0) { vm.table.hadLogin(res); }
                                    else {
                                        var mo = res.data;
                                        var mo_list = [
                                            { name: "", value: "" },
                                            { name: "总标签数量", value: mo.count.total },
                                            { name: "手动输入添加", value: mo.count.totalBack },
                                            { name: "Excel文件添加", value: mo.count.totalExcel },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[4].list = vm.table.list[4].list.concat(mo_list);
                                    }
                                }
                            });
                        },
                    },
                },
            });
            // 数据
            vm.table.request();
            document.body.style.display = "block";
        }
    });
</script>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="chrome=1" />
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title name="right">统计信息</title>
        <link rel="stylesheet" type="text/css" href="css/doui.min.css" />
        <script src="js/doui.min.js" type="text/javascript" charset="utf-8"></script>
        <!--自设样式-->
        <style type="text/css">
            /*外层块级*/
            .thisKuai {
                width: 2.3rem;
                padding: 0.1rem;
                margin-left: 0.15rem;
                margin-bottom: 0.15rem;
                border-radius: 10px;
                background-color: #4C4C4C;
            }
            /*标题框*/
            .dantitle {
                font-size: 0.09rem;
                width: 100%;
                line-height: 0.15rem;
                text-align: center;
            }
            /*每项row*/
            .thisRow {
                margin-top: 0.06rem;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: flex-start;
            }
            /*每项name*/
            .thisName {
                font-size: 0.07rem;
                width: 45%;
                line-height: 1.5;
                display: flex;
                flex-direction: row;
                justify-content: flex-end;
                align-items: center;
                text-align: right;
            }
            /*每项value*/
            .thisValue {
                font-size: 0.07rem;
                width: 45%;
                line-height: 1.5;
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: center;
            }
        </style>
        <script type="text/javascript">
            doui.importLoad({
                importArray: [
                    "font/iconfont.css",
                    "css/admin-all.css",
                    "js/vue.min.js",
                    "js/requestHost.js",
                    "layui/css/layui.css",
                    "layui/layui.js"
                ]
            })
        </script>
    </head>
    <body style="display:none;">
        <div id="allwai" class="heightenBox fontPC">
            <!--与顶部间隔-->
            <div style="width:100%; height:0.15rem;"></div>
            <!--块级外层-->
            <div class="fboxWrap Xstart Ystart" style="width:100%;">
                <!--循环添加块级-->
                <div v-for="item in table.list" class="thisKuai">
                    <!--标题-->
                    <div class="dantitle font-weight font-yellow">{{item.title}}</div>
                    <!--一排内容-->
                    <div v-for="item2 in item.list" class="thisRow">
                        <div class="thisName" v-bind:class="item2.tips==true?'font-orange':'font-white'">{{item2.name}}</div>
                        <div class="thisValue" v-bind:class="item2.tips==true?'font-orange':'font-white'">{{item2.value}}</div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<script type="text/javascript">
    // ============================================================================ 页面数据
    // vue实例化
    var vm = null;
    doui.onReady({
        success: function() {
            vm = new Vue({
                el: "#allwai",
                data: {
                    table: {
                        list: [{
                                index: 0,
                                title: "资金",
                                list: []
                            },
                            {
                                index: 1,
                                title: "用户",
                                list: []
                            },
                            {
                                index: 2,
                                title: "订单",
                                list: []
                            },
                            {
                                index: 3,
                                title: "精选商品",
                                list: []
                            },
                            {
                                index: 4,
                                title: "标签",
                                list: []
                            },
                        ],
                        // 接口结果判定
                        hadLogin: function(resC) {
                            if (resC.msg.indexOf("登录") != -1) {
                                loginOpen();
                            }
                        },
                        request: function() {
                            // ------------------------------------------------------------------------ 资金统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/extract/countExtract",
                                data: {},
                                greenChannel: true,
                                success: function(res) {
                                    if (res.code != 0) {
                                        vm.table.hadLogin(res);
                                    } else {
                                        var mo = res.data;
                                        var mo_list = [{
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "用户提现成功金额累计",
                                                value: "¥" + mo.extractMoney
                                            },
                                            {
                                                name: "用户提现成功次数累计",
                                                value: mo.extractNumber + " 次"
                                            },
                                            {
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "今日提现成功金额",
                                                value: "¥" + mo.todayextractMoney
                                            },
                                            {
                                                name: "今日审核提现次数",
                                                value: mo.todayCount.total + " 次"
                                            },
                                            {
                                                name: "审核通过",
                                                value: mo.todayCount.succeed + " 次"
                                            },
                                            {
                                                name: "审核驳回",
                                                value: mo.todayCount.fails + " 次"
                                            },
                                            {
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "所有用户当前余额总和",
                                                value: "¥" + mo.amountMoney
                                            },
                                            {
                                                name: "达到提现标准金额总和",
                                                value: "¥" + mo.extractApply,
                                                tips: true
                                            },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[0].list = vm.table.list[0].list.concat(mo_list);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 用户统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/user/countInfo",
                                data: {},
                                greenChannel: true,
                                success: function(res) {
                                    if (res.code != 0) {
                                        vm.table.hadLogin(res);
                                    } else {
                                        var mo = res.data;
                                        // 用户自己的了
                                        var mo_list2 = [{
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "用户总数",
                                                value: mo.totalUser + " 人"
                                            },
                                            {
                                                name: "产生自购和分享",
                                                value: mo.orderUser + " 人",
                                                tips: true
                                            },
                                            {
                                                name: "流失用户",
                                                value: mo.loseUser + " 人"
                                            },
                                            {
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "青铜",
                                                value: mo.countNormal + " 人"
                                            },
                                            {
                                                name: "白银",
                                                value: mo.countCuprum + " 人"
                                            },
                                            {
                                                name: "黄金",
                                                value: mo.countSilver + " 人"
                                            },
                                            {
                                                name: "铂金",
                                                value: mo.countGold + " 人"
                                            },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[1].list = vm.table.list[1].list.concat(mo_list2);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 订单统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/order/countTaoBaoOrder",
                                data: {},
                                greenChannel: true,
                                success: function(res) {
                                    if (res.code != 0) {
                                        vm.table.hadLogin(res);
                                    } else {
                                        var mo = res.data;
                                        var mo_list = [{
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "今日订单",
                                                value: mo.todayOrder + " 单",
                                                tips: true
                                            },
                                            {
                                                name: "昨日订单",
                                                value: mo.yesterdayOrder + " 单"
                                            },
                                            {
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "总订单",
                                                value: mo.typeOrder.countTotal + " 单"
                                            },
                                            {
                                                name: "待收货",
                                                value: mo.typeOrder.countPayment + " 单"
                                            },
                                            {
                                                name: "已收货",
                                                value: mo.typeOrder.countSettlement + " 单"
                                            },
                                            {
                                                name: "已失效",
                                                value: mo.typeOrder.countInvalid + " 单"
                                            },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[2].list = vm.table.list[2].list.concat(mo_list);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 精选商品统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/qualityFactory/getCountAll",
                                data: {},
                                greenChannel: true,
                                success: function(res) {
                                    if (res.code != 0) {
                                        vm.table.hadLogin(res);
                                    } else {
                                        var mo = res.data;
                                        var mo_list = [{
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "精选商品总数",
                                                value: mo.countData.total
                                            },
                                            {
                                                name: "淘宝",
                                                value: mo.countData.totalTB
                                            },
                                            {
                                                name: "京东",
                                                value: mo.countData.totalJD
                                            },
                                            {
                                                name: "拼多多",
                                                value: mo.countData.totalPDD
                                            },
                                            {
                                                name: "唯品会",
                                                value: mo.countData.totalWPH
                                            },
                                            {
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "系统自动筛选",
                                                value: mo.countData.totalSEARCH
                                            },
                                            {
                                                name: "操作人员筛选",
                                                value: mo.countData.totalMANUAL
                                            },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[3].list = vm.table.list[3].list.concat(mo_list);
                                    }
                                }
                            });
                            // ------------------------------------------------------------------------ 标签统计
                            doui.request({
                                type: "jsonp",
                                url: gethttp() + "/admin/new/api/v1/lable/getCountToday",
                                data: {},
                                greenChannel: true,
                                success: function(res) {
                                    if (res.code != 0) {
                                        vm.table.hadLogin(res);
                                    } else {
                                        var mo = res.data;
                                        var mo_list = [{
                                                name: "",
                                                value: ""
                                            },
                                            {
                                                name: "总标签数量",
                                                value: mo.count.total
                                            },
                                            {
                                                name: "手动输入添加",
                                                value: mo.count.totalBack
                                            },
                                            {
                                                name: "Excel文件添加",
                                                value: mo.count.totalExcel
                                            },
                                        ];
                                        // vm表格数据载入
                                        vm.table.list[4].list = vm.table.list[4].list.concat(mo_list);
                                    }
                                }
                            });
                        },
                    },
                },
            });
            // 数据
            vm.table.request();
            document.body.style.display = "block";
        }
    });
    function loginOpen() {
        layui.use('layer', function() {
            layer.open({
                type: 2,
                title: false,
                shadeClose: true,
                shade: 0.3,
                id: 'LAY_layuipro',//设定一个id,防止重复弹出
                area: ['420px', '432px'],
                //content: './login_simpl.html?type=2',
                content: ['./login_simpl.html?type=2', 'no'],
            });
        });
    }
</script>