1105120802 5 年之前
父节点
当前提交
44babddcb8
共有 100 个文件被更改,包括 4426 次插入0 次删除
  1. 493 0
      任务管理/createTask.html
  2. 二进制
      任务管理/image/1.png
  3. 二进制
      任务管理/image/2.png
  4. 二进制
      任务管理/image/BG.jpg
  5. 二进制
      任务管理/image/Write.png
  6. 二进制
      任务管理/image/actionTit.jpg
  7. 二进制
      任务管理/image/backBtn.png
  8. 二进制
      任务管理/image/big_add.png
  9. 0 0
      任务管理/image/cancel.png
  10. 0 0
      任务管理/image/finish.png
  11. 二进制
      任务管理/image/gz-active.png
  12. 二进制
      任务管理/image/gz.png
  13. 二进制
      任务管理/image/home-active.png
  14. 二进制
      任务管理/image/honme.png
  15. 二进制
      任务管理/image/icon_alltask.png
  16. 二进制
      任务管理/image/icon_finish.png
  17. 二进制
      任务管理/image/icon_overdue.png
  18. 二进制
      任务管理/image/icon_remind.png
  19. 二进制
      任务管理/image/icon_temporary.png
  20. 二进制
      任务管理/image/icon_underway.png
  21. 0 0
      任务管理/image/loading_more.gif
  22. 二进制
      任务管理/image/login1.png
  23. 二进制
      任务管理/image/login2.png
  24. 二进制
      任务管理/image/logo.png
  25. 二进制
      任务管理/image/mes-active.png
  26. 二进制
      任务管理/image/mes.png
  27. 二进制
      任务管理/image/my-active.png
  28. 二进制
      任务管理/image/my.png
  29. 二进制
      任务管理/image/navTask.png
  30. 0 0
      任务管理/image/select.png
  31. 二进制
      任务管理/image/selectBtn.png
  32. 0 0
      任务管理/image/selected.png
  33. 二进制
      任务管理/image/sh1.png
  34. 二进制
      任务管理/image/sh2.png
  35. 二进制
      任务管理/image/task-active.png
  36. 二进制
      任务管理/image/task.png
  37. 二进制
      任务管理/image/taskFK.png
  38. 二进制
      任务管理/image/tuoyuan-bai.png
  39. 二进制
      任务管理/image/tuoyuan-hong.png
  40. 二进制
      任务管理/image/tuoyuan-huang.png
  41. 二进制
      任务管理/image/tuoyuan-lv.png
  42. 769 0
      任务管理/instructions.html
  43. 281 0
      任务管理/login.html
  44. 121 0
      任务管理/my.html
  45. 0 0
      任务管理/script/api.js
  46. 72 0
      任务管理/script/createTime.js
  47. 0 0
      任务管理/script/jquery-3.1.0.min.js
  48. 7 0
      任务管理/script/publicData.js
  49. 275 0
      任务管理/task.html
  50. 851 0
      任务管理/taskFK.html
  51. 1014 0
      任务管理/taskXQ.html
  52. 459 0
      分销商城/detail.html
  53. 二进制
      分销商城/img/index/1-1.png
  54. 二进制
      分销商城/img/index/1.png
  55. 二进制
      分销商城/img/index/1Bg.jpg
  56. 二进制
      分销商城/img/index/2-1.png
  57. 二进制
      分销商城/img/index/2.png
  58. 二进制
      分销商城/img/index/3-1.png
  59. 二进制
      分销商城/img/index/3.png
  60. 二进制
      分销商城/img/index/4-1.png
  61. 二进制
      分销商城/img/index/4.png
  62. 二进制
      分销商城/img/index/5-1.png
  63. 二进制
      分销商城/img/index/5.png
  64. 二进制
      分销商城/img/index/6-1.png
  65. 二进制
      分销商城/img/index/6.png
  66. 二进制
      分销商城/img/index/7-1.png
  67. 二进制
      分销商城/img/index/7.png
  68. 二进制
      分销商城/img/index/8-1.png
  69. 二进制
      分销商城/img/index/8.png
  70. 二进制
      分销商城/img/index/backBtn.png
  71. 二进制
      分销商城/img/index/car.png
  72. 二进制
      分销商城/img/index/car2.png
  73. 84 0
      分销商城/img/index/debug.log
  74. 二进制
      分销商城/img/index/home.png
  75. 二进制
      分销商城/img/index/home2.png
  76. 二进制
      分销商城/img/index/indexBg.jpg
  77. 二进制
      分销商城/img/index/indexlogo.png
  78. 二进制
      分销商城/img/index/mes.png
  79. 二进制
      分销商城/img/index/my.png
  80. 二进制
      分销商城/img/index/my2.png
  81. 二进制
      分销商城/img/index/order.png
  82. 二进制
      分销商城/img/index/order2.png
  83. 二进制
      分销商城/img/index/shop.png
  84. 二进制
      分销商城/img/index/shop2.png
  85. 二进制
      分销商城/img/index/shopYuan.png
  86. 二进制
      分销商城/img/index/totalBtnBg.png
  87. 二进制
      分销商城/img/index/whiteY.png
  88. 二进制
      分销商城/img/login/LOGO.png
  89. 二进制
      分销商城/img/login/YZMBG.png
  90. 二进制
      分销商城/img/login/loginBtnBg.png
  91. 二进制
      分销商城/img/login/logoBg.jpg
  92. 二进制
      分销商城/img/login/pw.png
  93. 二进制
      分销商城/img/login/remind.png
  94. 二进制
      分销商城/img/login/un.png
  95. 二进制
      分销商城/img/my/bg.png
  96. 二进制
      分销商城/img/my/change.png
  97. 二进制
      分销商城/img/my/del.png
  98. 二进制
      分销商城/img/my/opinion.png
  99. 二进制
      分销商城/img/my/set.png
  100. 0 0
      分销商城/img/my/upadte.png

+ 493 - 0
任务管理/createTask.html

@@ -0,0 +1,493 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="email=no" />
+    <meta name="format-detection" content="telephone=no" />
+    <title>新建任务</title>
+    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../css/style.css">
+    <style>
+        html{font-size:10px}
+        html,body{
+            height: 100%;
+            overflow: hidden;
+        }
+        .flex-wrap{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .flex-con{
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        body{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+            -webkit-box-orient: vertical;
+            -webkit-flex-flow: column;
+            flex-flow: column;
+            background-color: #fff;
+        }
+        #header {
+            min-height: 4.4rem;
+            line-height: 4.4rem;
+            background-color: #51c4d4;
+            color: #fff;
+            position: relative;
+            /*box-sizing: content-box;*/
+        }
+
+        #backBtn {
+            width: 3.6rem;
+            height: 4.1rem;
+            line-height:  3rem;
+            text-align: center;
+            font-size: 3.9rem;
+            position: absolute;
+            left: 0;
+            bottom: 0;
+        }
+        #backBtn img{
+            display: inline-block;
+            width: 50%;
+            height: 40%;
+        }
+
+        .headTit {
+            text-align: center;
+            line-height: 4.4rem;
+            font-size: 1.7rem;
+            font-weight: normal;
+        }
+
+        .headGN {
+            position: absolute;
+            right: 0;
+            bottom: 0;
+        }
+
+        .headGN li {
+            display: none;
+            width: 3.5rem;
+            line-height: 4.2rem;
+            font-size: 1.4rem;
+        }
+
+        .headGN li.active {
+            display: block;
+        }
+        .inputDiv,.text{
+            color: #212121;
+            padding-left:1.1rem;
+            position: relative;
+            background-color: #fff;
+        }
+        .inputDiv{
+            padding-top: .3rem;
+            border-bottom: .3rem solid #f7f7f7;
+        }
+        .inputDiv label,.text label{
+            display: block;
+            height: 3.8rem;
+            line-height: 3.8rem;
+            font-size: 1.4rem;
+            white-space: nowrap;
+            border-bottom: 1px solid #dfdfdf;
+            margin-bottom: .3rem;
+            padding-left: 1rem;
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .inputDiv label:last-of-type{
+            border-bottom: none;
+        }
+        label>input{
+            width: 90%;
+            height: 100%;
+            background-color: rgba(0,0,0,0);
+            border: none;
+            outline: none;
+            font-size: 1.3rem;
+            padding-left: 2.6rem;
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        label:nth-of-type(2)>input{
+            padding-left: 3.9rem;
+        }
+        label:nth-of-type(4)>input{
+             padding-left: 3.9rem;
+         }
+        label:nth-of-type(5)>input{
+            padding-left: 2.6rem;
+        }
+        label:nth-of-type(9)>input{
+            padding-left:  2.6rem;
+        }
+        .text label:last-of-type>input{
+            padding-left:  3.6rem;
+        }
+        .jt{
+            color: #b5b5b5;
+            padding: 0 1rem;
+        }
+        ::-webkit-input-placeholder{
+            color: #b4b4b4;
+        }
+    </style>
+</head>
+<body>
+<header>
+    <div id="header">
+        <i id="backBtn"><img src="../image/backBtn.png" alt=""></i>
+        <h3 class="headTit">新建任务</h3>
+        <ul class="headGN">
+            <li class="active" id="save">保存</li>
+        </ul>
+    </div>
+</header>
+<main class="flex-con">
+    <div class="inputDiv">
+        <form action="#">
+            <label>任务名称<input type="text" id="name"  placeholder="请输入任务名称"></label>
+            <label id="xj">分管县领导<input type="text" id="fxz"  disabled="disabled"><span class="jt">〉</span></label>
+            <label id="zrdw">执行单位<input type="text" id="dw"  disabled="disabled"><span class="jt">〉</span></label>
+            <label id="zrr">执行人<input type="text" id="ren"  disabled="disabled"><span class="jt">〉</span></label>
+            <label id="hyfl">行业分类<input type="text" id="fl"  disabled="disabled"><span class="jt">〉</span></label>
+            <label id="kssj">计划开始时间<input type="text"   disabled="disabled"><span class="jt">〉</span></label>
+            <label id="jssj">计划结束时间<input type="text"   disabled="disabled"><span class="jt">〉</span></label>
+        </form>
+    </div>
+    <div class="text">
+        <label id="work_nr">工作内容</label>
+        <label id="work_yq">工作要求<input type="text" id="yq"  disabled="disabled"><span class="jt">〉</span></label>
+        <label id="work_bz">备注<input type="text" id="bz"  disabled="disabled"><span class="jt">〉</span></label>
+    </div>
+</main>
+<script src="../script/jquery-3.1.0.min.js"></script>
+<script src="../script/createTime.js"></script>
+<script src="../script/publicData.js"></script>
+<script src="../script/api.js"></script>
+<script>
+    apiready=function () {
+        var timedata={
+            start:"",
+            end:""
+        }
+        var userdata=[];
+        var department=[];
+        var fxzdata=[];
+        var fldata=[];
+        var flArr=[];
+        var duty=[];
+        var depArr=[];
+        var depUserArr=[];
+        var UIActionSelector = api.require('UIActionSelector');
+        var UIMultiSelector = api.require('UIMultiSelector');
+        $.get(pageUrl+"danwei",function (data) {
+            var data=data.data;
+            for(var i in data['fuxianzhang']){
+                duty[i]={
+                    id:data['fuxianzhang'][i]['user_id'],
+                    text: data['fuxianzhang'][i]['user_name'],
+                    status: 'normal'
+                }
+            }
+            for(var n in data['department']){
+                depArr[n]={
+                    id:data['department'][n]['department_id'],
+                    text: data['department'][n]['department_name'],
+                    status: 'normal'
+                }
+            }
+            for(var n in data['tradeclass']){
+                flArr[n]={
+                    id:data['tradeclass'][n]['tradeclass_id'],
+                    text: data['tradeclass'][n]['tradeclass_name'],
+                    status: 'normal'
+                }
+            }
+            $("#hyfl").click(function () {
+                showBox($(this),flArr,true);
+            })
+            $("#xj").click(function () {
+                showBox($(this),duty,true);
+            })
+        })
+        $(".text").on('click','label',function () {
+            api.openWin({
+                name: 'textWin',
+                url: './textWin.html',
+                bgColor:'rgba(0,0,0,0.2)',
+                animation: {
+                    type: 'movein',
+                    subType: 'from_bottom',
+                    duration: 500
+                },
+                pageParam:{
+                    this:$(this)[0].id
+                },
+                delay:300
+            });
+        })
+        $("#save").click(function () {
+            var conData={};
+            conData.user_department_id=[];
+            conData.user_name=[];
+            conData.task_title=$("#name").val();
+            conData.fxz_id=fxzdata[0];
+            conData.user_id=userdata;
+            conData.tradeclass_id=fldata;
+            conData.user_department_id=department;
+            conData.task_start_time=timedata.start;
+            conData.task_end_time=timedata.end;
+            conData.task_content=$api.getStorage("work_nr");
+            conData.task_list_content=$api.getStorage("work_yq");
+            conData.task_beizhu=$api.getStorage("work_bz");
+            $.post(pageUrl+"newTask",conData,function (data) {
+                if(data.status=="200"){
+                    api.toast({
+                        msg: '新建成功',
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                    var reload = 'toFrame(1);';
+                    api.execScript({
+                        name: 'root',
+                        script: reload
+                    });
+                    $("input").val("");
+                    $api.rmStorage("work_nr");
+                    $api.rmStorage("work_yq");
+                    $api.rmStorage("work_bz");
+                }else {
+                    api.toast({
+                        msg: data.message,
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                }
+
+            })
+        })
+        $("#kssj,#jssj").click(function () {
+            showTime($(this));
+        })
+        $("#backBtn").click(function () {
+            $api.rmStorage("work_nr");
+            $api.rmStorage("work_yq");
+            $api.rmStorage("work_bz");
+            api.closeToWin({
+                name: 'root',
+                animation: {
+                    type: 'push',
+                    subType: 'from_left',
+                    duration: 300
+                },
+                delay:300
+            });
+        })
+        function showBox(that,data,bl) {
+            if(data.length==0) {
+                api.toast({
+                    msg: '服务器开小差了,请稍等',
+                    duration: 2000,
+                    location: 'bottom'
+                });
+                return;
+            }
+            var user=$api.getStorage("user");
+            UIMultiSelector.open({
+                rect: {
+                    h: api.winHeight
+                },
+                text: {
+                    title: '',
+                    leftBtn: '',
+                    rightBtn: '',
+                    selectAll: '全选'
+                },
+                max: 0,
+                singleSelection:bl,
+                styles: {
+                    mask: 'rgba(0,0,0,0.2)',
+                    title: {
+                        bg: '#efefef',
+                        h: 44
+                    },
+                    leftButton: {
+                        w: 60,
+                        h: 30,
+                        marginT: 5,
+                        marginL: 8,
+                        bg:"widget://image/cancel.png"
+                    },
+                    rightButton: {
+                        w: 60,
+                        h: 30,
+                        marginT: 5,
+                        marginR: 8,
+                        bg:"widget://image/finish.png"
+                    },
+                    item: {
+                        h: 40,
+                        bg: '#fff',
+                        bgActive: '#fff',
+                        bgHighlight: '#fff',
+                        color: '#818181',
+                        active: '#818181',
+                        highlight: '#818181',
+                        size: 14,
+                        lineColor: '#efefef',
+                        textAlign: 'left',
+                        marginR:5
+                    },
+                    icon: {
+                        w: 20,
+                        h: 20,
+                        marginT: 11,
+                        marginH: 8,
+                        bg: 'widget://image/select.png',
+                        bgActive: 'widget://image/selected.png',
+                        align: 'left'
+                    }
+                },
+                animation: true,
+                items: data
+            }, function(ret, err) {
+                if (ret) {
+                    if(ret.eventType=="clickRight"){
+                        var nameStr="",arr=[],arr2=[];
+                        try{
+                            for(var i in ret.items){
+                                arr[i]={
+                                    type:ret.items[i].id,
+                                    name:ret.items[i].text
+                                }
+                                arr2.push(ret.items[i].id)
+                                if(i==ret.items.length-1||ret.items.length==1){
+                                    nameStr+=ret.items[i].text;
+                                }else {
+                                    nameStr+=ret.items[i].text+"、";
+                                }
+
+                            }
+                        }catch (e){
+                            nameStr="";
+                        }
+                        if(that.find("input")[0].id=="dw"){
+                            department= arr2;
+                            $.post(pageUrl+"danwei",{department_id:arr2},function (data) {
+                                var data=data.data;
+                                depUserArr=[];
+                                for(var i in data){
+                                    depUserArr[i]={
+                                        id:data[i]['user_id'],
+                                        text: data[i]['user_name']+"("+data[i]['department_name']+")",
+                                        status: 'normal'
+                                    }
+                                }
+                                $("#zrr").click(function () {
+                                    showBox($(this),depUserArr,false);
+                                })
+                            })
+                        }else if(that.find("input")[0].id=="ren"){
+                            userdata=arr2;
+                        }else if(that.find("input")[0].id=="fxz"){
+                            fxzdata=arr2;
+                                $("#zrdw").click(function () {
+                                    showBox($(this),depArr,false);
+                            })
+                        }else if(that.find("input")[0].id=="fl"){
+                            fldata=arr2;
+                        }
+                        that.find("input").val(nameStr);
+                        UIMultiSelector.close();
+                    }else if(ret.eventType=="clickLeft"){
+                        UIMultiSelector.close();
+                    }
+                } else {
+                    alert(JSON.stringify(err));
+                }
+            });
+        }
+        function showTime(that) {
+            UIActionSelector.open({
+                datas: timeJson,
+                layout: {
+                    row: 5,
+                    col: 3,
+                    height: 30,
+                    size: 12,
+                    sizeActive: 14,
+                    rowSpacing: 5,
+                    colSpacing: 10,
+                    maskBg: 'rgba(0,0,0,0.2)',
+                    bg: '#fff',
+                    color: '#e0e0e0',
+                    colorActive: '#838383',
+                    colorSelected: '#838383'
+                },
+                animation: true,
+                cancel: {
+                    text:"",
+                    w: 60,
+                    h: 30,
+                    bg: 'widget://image/cancel.png',
+                    bgActive: 'widget://image/cancel.png'
+                },
+                ok: {
+                    text:"",
+                    w: 60,
+                    h: 30,
+                    bg: 'widget://image/finish.png',
+                    bgActive: 'widget://image/finish.png'
+                },
+                title: {
+                    text:"",
+                    h: 44,
+                    bg: '#efefef'
+                }
+            }, function(ret, err) {
+                if (ret) {
+                    if(ret.eventType=="ok"){
+                        var val=ret.level1+"年"+ret.level2+"月"+ret.level3+"日";
+                        var time=ret.level1+"/"+ret.level2+"/"+ret.level3;
+                        that.find("input").val(val);
+                        if(that[0].id=="kssj"){
+                            timedata.start=new Date(time).getTime()/1000;
+                        }else {
+                            timedata.end=new Date(time).getTime()/1000;
+                        }
+                    }
+                } else {
+                    api.toast({
+                        msg: '选择失败',
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                }
+            });
+        }
+    }
+    function getVal(val,that) {
+        if($("#"+that)[0].id=="work_nr"){
+            $api.setStorage("work_nr",val)
+        }else if($("#"+that)[0].id=="work_yq"){
+            $("#"+that).find('input').val(val);
+            $api.setStorage("work_yq",val)
+        }else if($("#"+that)[0].id=="work_bz"){
+            $('#'+that).find('input').val(val);
+            $api.setStorage("work_bz",val)
+        }
+    }
+</script>
+</body>
+</html>

二进制
任务管理/image/1.png


二进制
任务管理/image/2.png


二进制
任务管理/image/BG.jpg


二进制
任务管理/image/Write.png


二进制
任务管理/image/actionTit.jpg


二进制
任务管理/image/backBtn.png


二进制
任务管理/image/big_add.png


自由港/images/cancel.png → 任务管理/image/cancel.png


自由港/images/finish.png → 任务管理/image/finish.png


二进制
任务管理/image/gz-active.png


二进制
任务管理/image/gz.png


二进制
任务管理/image/home-active.png


二进制
任务管理/image/honme.png


二进制
任务管理/image/icon_alltask.png


二进制
任务管理/image/icon_finish.png


二进制
任务管理/image/icon_overdue.png


二进制
任务管理/image/icon_remind.png


二进制
任务管理/image/icon_temporary.png


二进制
任务管理/image/icon_underway.png


自由港/images/loading_more.gif → 任务管理/image/loading_more.gif


二进制
任务管理/image/login1.png


二进制
任务管理/image/login2.png


二进制
任务管理/image/logo.png


二进制
任务管理/image/mes-active.png


二进制
任务管理/image/mes.png


二进制
任务管理/image/my-active.png


二进制
任务管理/image/my.png


二进制
任务管理/image/navTask.png


自由港/images/select.png → 任务管理/image/select.png


二进制
任务管理/image/selectBtn.png


自由港/images/selected.png → 任务管理/image/selected.png


二进制
任务管理/image/sh1.png


二进制
任务管理/image/sh2.png


二进制
任务管理/image/task-active.png


二进制
任务管理/image/task.png


二进制
任务管理/image/taskFK.png


二进制
任务管理/image/tuoyuan-bai.png


二进制
任务管理/image/tuoyuan-hong.png


二进制
任务管理/image/tuoyuan-huang.png


二进制
任务管理/image/tuoyuan-lv.png


+ 769 - 0
任务管理/instructions.html

@@ -0,0 +1,769 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="email=no" />
+    <meta name="format-detection" content="telephone=no" />
+    <title>任务批示</title>
+    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../css/style.css">
+    <style>
+        html{font-size:10px}
+        html,body{
+            height: 100%;
+            overflow: auto;
+        }
+        .flex-wrap{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .flex-con{
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        body{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+            -webkit-box-orient: vertical;
+            -webkit-flex-flow: column;
+            flex-flow: column;
+        }
+        .headGN li {
+            display: none;
+            width: 3.5rem;
+            line-height: 4.1rem;
+        }
+
+        .headGN li.active {
+            display: block;
+        }
+        main{
+            background-color: #f7f7f7;
+        }
+        .inputDiv{
+            padding: 1.1rem 1.6rem;
+            position: relative;
+            background-color: #fff;
+            display: none;
+        }
+        .inputDiv label{
+            display: block;
+            height: 3.8rem;
+            line-height: 3.8rem;
+            font-size: 1.5rem;
+            white-space: nowrap;
+            border-bottom: 1px solid #dfdfdf;
+            margin-bottom: .3rem;
+            padding-left: 1rem;
+        }
+        .inputDiv label:last-of-type{
+            border-bottom: none;
+        }
+        label>input{
+            height: 100%;
+            background-color: rgba(0,0,0,0);
+            border: none;
+            outline: none;
+            font-size: 1.3rem;
+            padding-left: 3.7rem;
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        .SC{
+            width: 2.4rem;
+            height: 2.4rem;
+            background: url("../image/big_add.png") no-repeat 100%/100%;
+            -webkit-transform: translateY(.7rem);
+            transform: translateY(.7rem);
+        }
+        .TP_status,.FJ_status{
+            color: #f21;
+            font-size: 1.3rem;
+            margin-left: 2rem;
+        }
+        .banner li{
+            float: left;
+            margin-bottom: .3rem;
+        }
+        .fileDiv p{
+            font-size: 1.4rem;
+            background-color: #f8f8f8;
+            border-radius: .3rem;
+            padding: .6rem;
+            margin-bottom: .2rem;
+        }
+        #content{
+            width: 100%;
+            height: 12rem;
+            font-size: 1.3rem;
+            padding: .6rem;
+            border: 1px solid #dfdfdf;
+            resize: none;
+            border-radius: .3rem;
+            overflow-y: auto;
+        }
+        .reBtn{
+            width: 100%;
+            height: 3.5rem;
+            line-height: 3.5rem;
+            text-align: center;
+            font-size: 1.5rem;
+            color: #fff;
+            background-color: #51c4d4;
+            border-radius: 2rem;
+            margin: 1.5rem 0;
+        }
+        ::-webkit-input-placeholder{
+            color: #b4b4b4;
+        }
+    </style>
+</head>
+<body>
+<main class="flex-con">
+    <div class="inputDiv">
+        <form action="#">
+            <label class="title">内容</label>
+            <pre  id="content" contenteditable="true"></pre>
+        </form>
+        <div class="reBtn">完成批示</div>
+    </div>
+</main>
+<script src="../script/jquery-3.1.0.min.js"></script>
+<script src="../script/publicData.js"></script>
+<script src="../script/api.js"></script>
+<script>
+    apiready=function () {
+        $(".inputDiv").css("display","block");
+        var imgData=[],fileUrl=[],imgUpload=[],fileUpload=[],nowImgArr=[],nowFileArr=[],delArr=[],num=0,FKId=0,isXG=false;
+        var dialogBox = api.require('dialogBox');
+        var UIMediaScanner = api.require('UIMediaScanner');
+        var winWidth= api.winWidth/3-10;
+        var taskid=$api.getStorage("taskXQ").taskID;
+         if(true){
+            isXG=false;
+            $(".reBtn").click(function () {
+                var data={
+                    task_dynamic_content:$("#content").html(),
+                    photolujing:imgUpload,
+                    attachmentlujing:fileUpload,
+                    task_id:taskid,
+                    task_dynamic_ispishi:1
+                }
+//                if(imgData.length!=0||fileUrl.length!=0){
+//                    api.toast({
+//                        msg: '还有文件未上传',
+//                        duration: 2000,
+//                        location: 'bottom'
+//                    });
+//                    return;
+//                }
+                if(!data.task_dynamic_content&&data.photolujing.length==0&&data.attachmentlujing.length==0){
+                    api.toast({
+                        msg: '未添加任何批示信息',
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                }else {
+                    if(num) return;
+                    num++;
+                    $(".reBtn").text("正在提交...");
+                    $.post(pageUrl+"shangchuan",data,function (data) {
+                        if(data.status=="200"){
+                            $(".reBtn").text("提交成功");
+                            api.toast({
+                                msg: '提交成功,正在返回',
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                            var upload = 'toFrame(5);';
+                            setTimeout(function () {
+                                api.execScript({
+                                    name: 'root',
+                                    script: upload
+                                });
+                                api.closeFrame({
+                                    name: 'instructions'
+                                });
+                            },2000)
+                            $("#content").html("");
+                            $(".banner").html("");
+                            $(".fileDiv").html("");
+                            imgData=imgUpload=fileUpload=delArr=[];
+                            fileUrl="";
+                        }else {
+                            api.toast({
+                                msg: data.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+
+                    })
+                }
+            })
+        }
+        $(".banner").on("click",'li',function () {
+            var that=$(this)
+            popups("确认删除该图片吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var newimg=[];
+                    if(isXG){
+                        for(var i=0;i<nowImgArr.length;i++){
+                            if(that.index()==i){
+                                delArr.push(nowImgArr[i])
+                            }
+                        }
+                    }else {
+                        for(var i=0;i<imgUpload.length;i++){
+                            if(that.index()==i) continue;
+                            newimg.push(imgUpload[i])
+                        }
+                        imgUpload=newimg;
+                    }
+                    that.remove();
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+//            popups("确认删除该图片吗?",function (ret) {
+//                if (ret.eventType == 'right') {
+//                    var newimg=[];
+//                    if(isXG){
+//                        for(var i=0;i<nowImgArr.length;i++){
+//                            if(that.index()==i){
+//                                delArr.push(nowImgArr[i])
+//                            }
+//                        }
+//                    }else {
+//                        for(var i=0;i<imgData.length;i++){
+//                            if(that.index()==i) continue;
+//                            newimg.push(imgData[i])
+//                        }
+//                        imgData=newimg;
+//                    }
+//                    if(!imgData.length){
+//                        $(".TP_status").text(" ")
+//                    }
+//                    that.remove();
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }else if (ret.eventType == 'left') {
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }
+//            })
+        })
+        $(".fileDiv").on("click","p",function () {
+            var that=$(this)
+            popups("确认删除该文件吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var newfile=[];
+                    if(isXG){
+                        for(var i=0;i<nowFileArr.length;i++){
+                            if(that.index()==i){
+                                delArr.push(nowFileArr[i])
+                            }
+                        }
+                    }else {
+                        for(var i=0;i<fileUpload.length;i++){
+                            if(that.index()==i) continue;
+                            newfile.push(fileUpload[i])
+                        }
+                        fileUpload=newfile;
+                    }
+                    that.remove();
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+//            popups("确认删除该文件吗?",function (ret) {
+//                if (ret.eventType == 'right') {
+//                    var newfile=[];
+//                    if(isXG){
+//                        for(var i=0;i<nowFileArr.length;i++){
+//                            if(that.index()==i){
+//                                delArr.push(nowFileArr[i])
+//                            }
+//                        }
+//                    }else {
+//                        for(var i=0;i<fileUrl.length;i++){
+//                            if(that.index()==i) continue;
+//                            newfile.push(fileUrl[i])
+//                        }
+//                        fileUrl=newfile;
+//                    }
+//                    if(!fileUrl.length){
+//                        $(".FJ_status").text(" ")
+//                    }
+//                    that.remove();
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }else if (ret.eventType == 'left') {
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }
+//            })
+        })
+        $("#TP").click(function () {
+            api.actionSheet({
+                title: '上传图片',
+                cancelTitle: '取消',
+                buttons: ['相册', '相机']
+            }, function(ret, err) {
+                var index = ret.buttonIndex;
+                if(index==1){
+                    UIMediaScanner.open({
+                        type: 'picture',
+                        column: 4,
+                        max: 4,
+                        sort: {
+                            key: 'time',
+                            order: 'desc'
+                        },
+                        texts: {
+                            stateText: '已选择*项',
+                            cancelText: '取消',
+                            finishText: '完成'
+                        },
+                        styles: {
+                            bg: '#fff',
+                            mark: {
+                                icon: '',
+                                position: 'bottom_left',
+                                size: 20
+                            },
+                            nav: {
+                                bg: '#eee',
+                                stateColor: '#000',
+                                stateSize: 18,
+                                cancelBg: 'rgba(0,0,0,0)',
+                                cancelColor: '#000',
+                                cancelSize: 18,
+                                finishBg: 'rgba(0,0,0,0)',
+                                finishColor: '#000',
+                                finishSize: 18
+                            }
+                        },
+                        exchange: true
+                    }, function(ret) {
+                        if (ret.eventType=="confirm") {
+                            for(var i in ret.list){
+                                if(api.systemType=="ios"){
+                                    UIMediaScanner.transPath({
+                                        path: ret.list[i]["path"]
+                                    }, function(ret, err) {
+                                        if (ret) {
+//                                            $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='file://"+ret.path+"' style='width:100%;height:100%'  /></li>");
+                                            imgData.push("file://"+ret.path);
+                                            uploadImg("file://"+ret.path)
+                                        } else {
+                                            alert(JSON.stringify(err));
+                                        }
+                                    });
+                                }else {
+//                                    $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='file://"+ret.list[i]["path"]+"' style='width:100%;height:100%' /></li>");
+                                    imgData.push("file://"+ret.list[i]["path"]);
+                                    uploadImg("file://"+ret.list[i]["path"])
+                                }
+                            }
+//                            $(".TP_status").text("点击上传全部图片")
+                        }
+                    });
+                }else if(index==2){
+                    api.getPicture({
+                        sourceType: 'camera',
+                        encodingType: 'jpg',
+                        mediaValue: 'pic',
+                        saveToPhotoAlbum:'true',
+                        destinationType: 'url',
+                        quality: 50
+                    }, function(ret, err) {
+                        if (ret) {
+                            if(!ret.data) return;
+                            imgData.push("file://"+ret.data);
+//                            $(".TP_status").text("点击上传全部图片");
+//                            $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='"+imgData[imgData.length-1]+"' style='width:100%;height:100%' /></li>");
+                            uploadImg("file://"+ret.data)
+                        } else {
+                            alert(JSON.stringify(err));
+                        }
+                    });
+                }else {}
+            });
+        })
+        function uploadImg(url) {
+            var imageFilter = api.require('imageFilter');
+            var imageName = "rwdcimg";
+            var imageCachePath = api.cacheDir;
+            var newimg="";
+            imageFilter.compress({
+                img: url,
+                quality:0.8,
+                size:{
+                    w:550,
+                    h:480
+                },
+                save: {
+                    album: false,
+                    imgPath: imageCachePath,
+                    imgName: imageName + '.jpg'
+                }
+            }, function(ret, err) {
+                var tx = imageCachePath + '/' + imageName + '.jpg';
+                $(".TP_status").text("正在上传中...");
+                api.ajax({
+                    url: pageUrl+"upload",
+                    method: 'post',
+                    timeout: 30,
+                    dataType: 'json',
+                    returnAll: false,
+                    data: {
+                        files:{
+                            "file[]":tx
+                        },
+                        values:{
+                            task_id:taskid,
+                            type:"1"
+                        }
+                    }
+                }, function (ret, err) {
+                    if(ret.status=="200"){
+                        if(ret.message.indexOf(false)!=-1){
+                            for(var i=0;i<ret.message.length;i++){
+                                if(ret.message[i]!=false){
+                                    imgUpload.push(ret.message[i]);
+                                }else {
+                                    api.toast({
+                                        msg: "上传失败,请重试",
+                                        duration: 2000,
+                                        location: 'bottom'
+                                    });
+                                }
+                            }
+                        }else {
+                            for(var msgI in ret['message']){
+                                imgUpload.push(ret['message'][msgI])
+                            }
+                            $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='"+url+"' style='width:100%;height:100%' /></li>");
+                            imgData=[];
+                        }
+                    }else {
+                        api.toast({
+                            msg: "上传失败,请重试",
+                            duration: 2000,
+                            location: 'bottom'
+                        });
+                    }
+                    $(".TP_status").text("");
+                });
+            })
+        }
+        function uploadFile(url,name) {
+            $(".FJ_status").text("正在上传中...");
+            api.ajax({
+                url: pageUrl+"upload",
+                method: 'post',
+                timeout: 30,
+                dataType: 'json',
+                returnAll: false,
+                data: {
+                    "files":{
+                        "file[]":url
+                    },
+                    "values":{
+                        task_id:taskid,
+                        type:"2"
+                    }
+                }
+            }, function (ret, err) {
+                if(ret.status=="200"){
+                    if(ret.message.indexOf(false)!=-1){
+                        for(var i=0;i<ret.message.length;i++){
+                            if(ret.message[i]!=false){
+                                fileUpload.push(ret.message[i]);
+                            }else {
+                                api.toast({
+                                    msg: "上传失败,请重试",
+                                    duration: 2000,
+                                    location: 'bottom'
+                                });
+                            }
+                        }
+                    }else {
+                        for(var msgI in ret['message']){
+                            fileUpload.push(ret['message'][msgI])
+                        }
+                        $(".fileDiv ul").append("<li><p>"+name+"</p></li>");
+                        fileUrl=[];
+                    }
+                }else {
+                    api.toast({
+                        msg: "上传失败,请重试",
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                }
+                $(".FJ_status").text("");
+            });
+        }
+        $(".TP_status").click(function () {
+            if($(this).text()!="点击上传全部图片") return;
+            popups("确认上传吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var Data={
+                        file:imgData,
+                        type:"1",
+                        task_id:taskid
+                    }
+                    $(".TP_status").text("正在上传中...");
+                    api.ajax({
+                        url: pageUrl+"upload",
+                        method: 'post',
+                        timeout: 30,
+                        dataType: 'json',
+                        returnAll: false,
+                        data: {
+                            files:{
+                                "file[]":imgData
+                            },
+                            values:{
+                                task_id:taskid,
+                                type:"1"
+                            }
+                        }
+                    }, function (ret, err) {
+                        var newImg=[];
+                        if(ret.status=="200"){
+                            if(ret.message.indexOf(false)!=-1){
+                                for(var i=0;i<ret.message.length;i++){
+                                    if(ret.message[i]!=false){
+                                        imgUpload.push(ret.message[i]);
+                                        $(".banner li:eq("+i+")").remove();
+                                    }else {
+                                        newImg.push(imgData[i]);
+                                    }
+                                }
+                                $(".TP_status").text("以下图片上传失败");
+                                imgData=newImg;
+                            }else {
+                                for(var msgI in ret['message']){
+                                    imgUpload.push(ret['message'][msgI])
+                                }
+                                imgData=[];
+                                $(".banner ul").html(" ");
+                                $(".TP_status").text("上传成功");
+                                setTimeout(function () {
+                                    if($(".TP_status").text()=="上传成功"){
+                                        $(".TP_status").text(" ");
+                                    }
+                                },10000)
+                            }
+                        }else {
+                            $(".TP_status").text("点击上传全部图片");
+                            api.toast({
+                                msg: ret.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+                    });
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+        })
+        $("#FJ").click(function () {
+            var fileBrowser = api.require('fileBrowser');
+            fileBrowser.open(function(ret, err) {
+                if (ret) {
+                    fileBrowser.close();
+                    if(fileUrl.indexOf(ret.url)!=-1){
+                        api.toast({
+                            msg: '已有该文件',
+                            duration: 2000,
+                            location: 'bottom'
+                        });
+                        return;
+                    }
+                    var url11 = ret.url;
+                    var i = url11.lastIndexOf('/');
+                    var j = url11.length;
+                    var name11 = url11.slice(i+1,j);
+//                    $(".fileDiv ul").append("<li><p>"+name11+"</p></li>")
+//                    $(".FJ_status").text("点击上传全部附件");
+                    uploadFile(url11,name11);
+                    fileUrl.push(ret.url);
+                } else {
+                    alert(JSON.stringify(err));
+                }
+            });
+        })
+        $(".FJ_status").click(function () {
+            if($(this).text()!="点击上传全部附件") return;
+            popups("确认上传吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var Data={
+                        file:fileUrl
+                    }
+                    $(".FJ_status").text("正在上传中...");
+                    api.ajax({
+                        url: pageUrl+"upload",
+                        method: 'post',
+                        timeout: 30,
+                        dataType: 'json',
+                        returnAll: false,
+                        data: {
+                            "files":{
+                                "file[]":fileUrl
+                            },
+                            "values":{
+                                task_id:taskid,
+                                type:"2"
+                            }
+                        }
+                    }, function (ret, err) {
+                        var newFile=[];
+                        if(ret.status=="200"){
+                            if(ret.message.indexOf(false)!=-1){
+                                for(var i=0;i<ret.message.length;i++){
+                                    if(ret.message[i]!=false){
+                                        fileUpload.push(ret.message[i]);
+                                        $(".fileDiv li:eq("+i+")").remove();
+                                    }else {
+                                        newFile.push(fileUrl[i]);
+                                    }
+                                }
+                                $(".FJ_status").text("以下附件上传失败");
+                                fileUrl=newFile;
+                            }else {
+                                for(var msgI in ret['message']){
+                                    fileUpload.push(ret['message'][msgI])
+                                }
+                                fileUrl=[];
+                                $(".fileDiv ul").html(" ");
+                                $(".FJ_status").text("上传成功");
+                                setTimeout(function () {
+                                    if($(".FJ_status").text()=="上传成功"){
+                                        $(".FJ_status").text(" ");
+                                    }
+                                },10000)
+                            }
+                        }else {
+                            $(".FJ_status").text("点击上传全部附件");
+                            api.toast({
+                                msg: ret.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+                    });
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+        });
+        $("#backBtn").click(function () {
+            api.closeWin();
+        })
+        function toHtml(str) {
+            var a="&lt;",b="&gt;",c="&nbsp;",d="&amp;nbsp;",text=str;
+            if(text.match(a)) {
+                toChange(a,"<")
+            }
+            if(text.match(b)) {
+                toChange(b,">")
+            }
+            if(text.match(c)) {
+                toChange(c," ")
+            }
+            if(text.match(d)) {
+                toChange(d," ")
+            }
+            function toChange(type,type1) {
+                text=text.replace(type,type1);
+                if(text.match(type)) {
+                    toChange(type,type1)
+                }
+            }
+            return text;
+        }
+        function popups(val,fn) {
+            dialogBox.alert({
+                texts: {
+                    title: '确认',
+                    content: val,
+                    leftBtnTitle: '取消',
+                    rightBtnTitle: '确认'
+                },
+                styles: {
+                    bg: '#fff',
+                    w: 300,
+                    title: {
+                        marginT: 20,
+                        icon: 'widget://res/gou.png',
+                        iconSize: 40,
+                        titleSize: 13,
+                        titleColor: '#000'
+                    },
+                    content: {
+                        color: '#000',
+                        size: 16
+                    },
+                    left: {
+                        marginB: 0,
+                        marginL: 0,
+                        w: 150,
+                        h: 60,
+                        corner: 2,
+                        bg: '#f9f9f9',
+                        color: '#818181',
+                        size: 12
+                    },
+                    right: {
+                        marginB: 0,
+                        marginL: 0,
+                        w: 150,
+                        h:60,
+                        corner: 2,
+                        bg: '#51c4d4',
+                        color: '#fff',
+                        size: 12
+                    }
+                }
+            }, function(ret) {
+                fn(ret)
+            });
+        }
+    }
+</script>
+</body>
+</html>

+ 281 - 0
任务管理/login.html

@@ -0,0 +1,281 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="email=no" />
+    <meta name="format-detection" content="telephone=no" />
+    <title>登录</title>
+    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../css/style.css">
+    <style>
+        html{font-size:10px}
+        html,body{
+            height: 100%;
+            overflow: hidden;
+        }
+        .flex-wrap{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .flex-con{
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        body{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+            -webkit-box-orient: vertical;
+            -webkit-flex-flow: column;
+            flex-flow: column;
+        }
+        header{
+            height: 4.1rem;
+            line-height: 4.1rem;
+            background-color: #51c4d4;
+        }
+        header h2{
+            width: 100%;
+            height: 100%;
+            font-size: 1.8rem;
+            color: #fff;
+            font-weight: normal;
+            text-align: center;
+            position: relative;
+        }
+        .head{
+            height: 4.1rem;
+        }
+        main{
+            height: calc(100% - 4rem);
+            padding-top: 2.5rem;
+            background: url("../image/BG.jpg") no-repeat 100%/100%;
+        }
+        .banner{
+            width: 18rem;
+            height: 15rem;
+            margin: 1rem auto 4rem;
+        }
+        .banner img{
+            display: block;
+            width: 100%;
+            height: 100%;
+        }
+        .inputDiv{
+            padding: 0 2.5rem;
+        }
+        .inputDiv label{
+            display: block;
+            height: 4rem;
+            border: 1px solid #fff;
+            border-radius: 3rem;
+            padding-left: 2rem;
+            margin-bottom: 1.5rem;
+        }
+        label>input{
+            width: 100%;
+            height: 100%;
+            color: #fff;
+            background-color: rgba(0,0,0,0);
+            border: none;
+            outline: none;
+            font-size: 1.5rem;
+            padding-left: 2.3rem;
+        }
+        .userName{
+            background: url("../image/login1.png") no-repeat 5% 70%/5%;
+        }
+        .password{
+            background: url("../image/login2.png") no-repeat 5%/5%;
+        }
+        .loginBtn{
+            width: 100%;
+            height: 4rem;
+            line-height: 4rem;
+            text-align: center;
+            font-size: 1.5rem;
+            color: #29aec1;
+            background-color: #fff;
+            border-radius: 2rem;
+            margin: 1.5rem 0;
+        }
+        .other{
+            padding: 1rem 2.5rem  0 0;
+            font-size: 1.2rem;
+            color:#fff;
+        }
+        ::-webkit-input-placeholder{
+            color: #fff;
+        }
+    </style>
+</head>
+<body>
+<!--<header>-->
+    <!--<h2>登录</h2>-->
+<!--</header>-->
+<main class="flex-con">
+    <div class="head"></div>
+    <div class="banner">
+        <img src="../image/logo.png" alt="">
+    </div>
+    <div class="inputDiv">
+        <form action="#">
+            <label class="userName"><input type="text" id="username"  placeholder="请输入账号"></label>
+            <label class="password"><input type="password"  id="password" placeholder="请输入密码"></label>
+        </form>
+        <div class="loginBtn">登&nbsp;&nbsp;录</div>
+    </div>
+    <div class="other clearFix">
+        <span class="right"><input type="checkbox" value="1" id="rememberme"/>记住我</span>
+    </div>
+</main>
+<script src="../script/publicData.js"></script>
+<script src="../script/jquery-3.1.0.min.js"></script>
+<script src="../script/api.js"></script>
+<script>
+    apiready=function () {
+        $(function () {
+            if(localStorage.getItem("rememberme")==1){
+                $("#username").val(localStorage.getItem("username"));
+                $("#password").val(localStorage.getItem("password"));
+                $("#rememberme").attr("checked",true);
+            }
+            $(".loginBtn").on('click',function () {
+                if(!$("#username").val()){
+                    api.toast({
+                        msg: '账号不能为空',
+                        duration: 1000,
+                        location: 'bottom'
+                    });
+                    return;
+                }
+                if(!$("#password").val()){
+                    api.toast({
+                        msg: '密码不能为空',
+                        duration: 1000,
+                        location: 'bottom'
+                    });
+                    return;
+                }
+                api.toast({
+                    msg: '正在登录中...',
+                    duration: 1000,
+                    location: 'bottom'
+                });
+                var data={
+                    user_account:$("#username").val(),
+                    user_password:$("#password").val()
+                }
+                $.post(pageUrl+"login",data,function (data) {
+                    if(data.status=="200"){
+                        if($("#rememberme").is(':checked')){
+                            localStorage.setItem("username",$("#username").val());
+                            localStorage.setItem("password",$("#password").val());
+                            localStorage.setItem("rememberme",1);
+                        }else{
+                            localStorage.removeItem("username");
+                            localStorage.removeItem("password");
+                            localStorage.removeItem("rememberme");
+                        }
+                        $(".loginBtn").off('click').text("登录成功...");
+//                        var users=data.data;
+//                        users.user_group_id="5";
+//                        $api.setStorage("user",users);
+                        $api.setStorage("user",data.data);
+
+                        $.get(pageUrl+"renwuList",{user_department_id:0, type:0},function (data) {  $api.setStorage("task_frame1Data",data.data);})
+                        $.get(pageUrl+"renwuList",{user_department_id:0, type:1},function (data) {  $api.setStorage("task_frame2Data",data.data);})
+                        $.get(pageUrl+"renwuList",{user_department_id:0, type:2},function (data) {  $api.setStorage("task_frame3Data",data.data);})
+                        $.get(pageUrl+"renwuList",{user_department_id:0, type:3},function (data) {  $api.setStorage("task_frame4Data",data.data);})
+                        $.get(pageUrl+"renwuList",{user_department_id:0, type:4},function (data) {  $api.setStorage("task_frame5Data",data.data);})
+                        $.get(pageUrl+"news",function (data) {  $api.setStorage("mes_frame1Data",data.data);})
+                        $.get(pageUrl+"news",function (data) {  $api.setStorage("mes_frame2Data",data.data);})
+                        if($api.getStorage("user").user_group_id!="5"){
+                            var jsfun3 = 'toFrame(0)',isxz='isXZ()';
+                        }else {
+                            var jsfun3 = 'toFrame(4)',isxz='isXZ()';
+                        }
+                        api.execScript({
+                            name:"root",
+                            script: jsfun3
+                        });
+                        api.execScript({
+                            name:"root",
+                            script: isxz
+                        });
+                        setTimeout(function () {
+                            var jsfun = 'setData();';
+                            api.execScript({
+                                name: 'root',
+                                frameName: 'home',
+                                script: jsfun
+                            });
+                        },200)
+                        setTimeout(function () {
+                            api.closeToWin({
+                                name: 'root',
+                                animation: {
+                                    type: 'reveal',
+                                    subType: 'from_left',
+                                    duration: 400
+                                },
+                                delay:200
+                            });
+                        },2500)
+                    }else {
+                        api.toast({
+                            msg: data.message,
+                            duration: 2000,
+                            location: 'bottom'
+                        });
+                    }
+                })
+            })
+            // $(".findPW").click(function () {
+            //     api.openWin({
+            //         name: 'findPW',
+            //         url: './findPW.html',
+            //         animation: {
+            //             type: 'movein',
+            //             subType: 'from_bottom',
+            //             duration: 400
+            //         },
+            //         delay:200
+            //     });
+            // })
+        })
+        var backSecond = 0;
+        api.addEventListener({
+            name: 'keyback'
+        }, function(ret, err) {
+            var curSecond = new Date().getSeconds();
+            if (Math.abs(curSecond - backSecond) > 2) {
+                backSecond = curSecond;
+                api.toast({
+                    msg: '双击退出应用',
+                    duration: 2000,
+                    location: 'bottom'
+                });
+            } else {
+                api.removePrefs({
+                    key: 'mesOpen'
+                });
+                api.removePrefs({
+                    key: 'taskOpen'
+                });
+                api.closeWidget({
+                    id: 'A6941108024062', //这里改成自己的应用ID
+                    retData: {
+                        name: 'closeWidget'
+                    },
+                    silent: true
+                });
+            }
+        });
+    }
+</script>
+</body>
+</html>

+ 121 - 0
任务管理/my.html

@@ -0,0 +1,121 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="telephone=no"/>
+    <meta name="format-detection" content="email=no"/>
+    <title>my</title>
+    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../css/style.css">
+    <style>
+        html,body{
+            height: 100%;
+        }
+        .my{
+            height: 100%;
+            background-color: #f7f7f7;
+        }
+        .my_con li{
+            height: 4.5rem;
+            line-height: 4.5rem;
+            color: #212121;
+            font-size: 1.3rem;
+            background-color: #fff;
+            padding: 0 1rem;
+            border-bottom: 1px solid #efefef;
+        }
+        .my_con li span:nth-of-type(2){
+            color: #b5b5b5;
+            font-size: 1.3rem;
+        }
+    </style>
+</head>
+<body>
+<div class="my">
+    <div class="my_con">
+        <ul>
+            <li class="clearFix">
+                <span class="left">个人资料</span><span class="right">〉</span>
+            </li>
+            <li class="clearFix">
+                <span class="left">修改密码</span><span class="right">〉</span>
+            </li>
+            <li class="clearFix">
+                <span class="left">注销登录</span><span class="right">〉</span>
+            </li>
+        </ul>
+    </div>
+</div>
+<script src="../script/jquery-3.1.0.min.js"></script>
+<script type="text/javascript" src="../script/api.js"></script>
+<script>
+    apiready=function () {
+        $(function () {
+            $(".my_con").on('click','li',function () {
+                switch ($(this).index()){
+                    case 0:toUserData();
+                        break;
+                    case 1:changePW();
+                        break;
+                    case 2:toLogin();
+                        break;
+                }
+            })
+            function toUserData() {
+                api.openWin({
+                    name: 'userdata',
+                    url: './userdata.html',
+                    animation: {
+                        type: 'push',
+                        subType: 'from_right',
+                        duration: 400
+                    },
+                    delay:300
+                });
+            }
+            function changePW() {
+                api.openWin({
+                    name: 'changePW',
+                    url: './changePW.html',
+                    animation: {
+                        type: 'push',
+                        subType: 'from_right',
+                        duration: 400
+                    },
+                    delay:300
+                });
+            }
+            function toLogin() {
+                api.actionSheet({
+                    title: '确定要注销当前账号吗?',
+                    cancelTitle: '取消',
+                    destructiveTitle: '确认',
+                    style:{
+                        itemNormalColor:'#fff',
+                        fontNormalColor:'#4796ff'
+                    }
+                }, function(ret, err) {
+                    var index = ret.buttonIndex;
+                    if(index==1){
+                        $api.rmStorage("user");
+                        $api.rmStorage("userdata");
+                        api.openWin({
+                            name: 'login',
+                            url: './login.html',
+                            animation: {
+                                type: 'movein',
+                                subType: 'from_right',
+                                duration: 400
+                            },
+                            delay:300
+                        });
+                    }
+                });
+
+            }
+        })
+    }
+</script>
+</body>
+</html>

自由港/js/api.js → 任务管理/script/api.js


+ 72 - 0
任务管理/script/createTime.js

@@ -0,0 +1,72 @@
+/**
+ * Created by chen on 2017/6/27.
+ */
+!function (w) {
+    function a(w){
+        this.yaer=new Date().getFullYear();
+        this.json=[];
+        this.days=0;
+        this.nowyear=0;
+    }
+    a.prototype={
+        constructor:a,
+        init:function(){
+            this.createJSON();
+        },
+        createJSON:function(){
+            for(var i=0;i<10;i++){
+                this.nowyear=this.yaer+i;
+                this.json[i]={
+                    "name":this.nowyear,
+                    "sub":[]
+                };
+                for(var j=0;j<12;j++){
+                    this.json[i]['sub'][j]={
+                        "name":(j+1),
+                        "sub":[]
+                    }
+                    this.days=this.getDay(this.nowyear,j+1);
+                    for(var n=0;n<this.days;n++){
+                        this.json[i]['sub'][j]['sub'][n]={
+                            "name":n+1
+                        }
+                    }
+                }
+            }
+        },
+        getDay:function (year,month) {
+            if(!(year%4)&&year%100){
+                if(month=="2") {
+                    return 29;
+                }else {
+                    return this.otherDay(month);
+                }
+            }else {
+                if(!(year%400)&&$month=="2"){
+                    return 29;
+                }else {
+                    return this.otherDay(month);
+                }
+            }
+        },
+        otherDay:function (month) {
+            switch (month){
+                case 1:  return 31;break;
+                case 2:  return 28;break;
+                case 3:  return 31;break;
+                case 4:  return 30;break;
+                case 5:  return 31;break;
+                case 6:  return 30;break;
+                case 7:  return 31;break;
+                case 8:  return 31;break;
+                case 9:  return 30;break;
+                case 10:  return 31;break;
+                case 11:  return 30;break;
+                case 12:  return 31;break;
+            }
+        }
+    }
+    var timeJSON=new a();
+    timeJSON.init();
+    w.timeJson=timeJSON.json;
+}(window)

自由港/js/jquery-3.1.0.min.js → 任务管理/script/jquery-3.1.0.min.js


+ 7 - 0
任务管理/script/publicData.js

@@ -0,0 +1,7 @@
+/**
+ * Created by chen on 2017/5/8.
+ */
+ // window.pageUrl="http://192.168.2.184:8040/api.php?c=index&a=";
+// window.pageImg="http://192.168.2.184:8040";
+window.pageUrl="http://125.66.33.35:81/api.php?c=index&a=";
+window.pageImg="http://125.66.33.35:81";

+ 275 - 0
任务管理/task.html

@@ -0,0 +1,275 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="telephone=no" />
+    <meta name="format-detection" content="email=no" />
+    <title>task</title>
+    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../css/style.css">
+    <style>
+        html,
+        body {
+            height: 100%;
+        }
+
+        .task {
+            height: 100%;
+            background-color: #f7f7f7;
+        }
+
+        .task_nav {
+            border-bottom: 1px solid #efefef;
+        }
+
+        .task_nav li {
+            width: 20%;
+            height: 3rem;
+            line-height: 3rem;
+            text-align: center;
+            background-color: #fff;
+            float: left;
+        }
+
+        .task_nav li span {
+            display: inline-block;
+            height: 100%;
+            color: #3d3d3d;
+            font-size: 1.2rem;
+            padding: 0 .4rem;
+            -webkit-transition:color .3s;
+            transition:color .3s;
+        }
+
+        .task_nav li.active span {
+            color: #29aec1;
+            border-bottom: 2px solid #29aec1;
+        }
+
+        .task_con {
+            overflow: auto;
+        }
+
+        .task_con li {
+            height: 8rem;
+            margin-bottom: .3rem;
+            background-color: #fff;
+        }
+
+        .task_con li>div {
+            display: inline-block;
+        }
+
+        .task_status {
+            width: 2rem;
+            height: 100%;
+            font-size: 1.1rem;
+            text-align: center;
+            white-space: pre-wrap;
+            color: #fff;
+            background-color: #f26522;
+        }
+
+        .task_status span {
+            display: inline-block;
+            -webkit-transform: translateY(50%);
+            transform: translateY(50%);
+        }
+
+        .task_taskCon {
+            padding: .7rem;
+        }
+
+        .task_taskCon p {
+            margin-bottom: .5rem;
+            color: #212121;
+            font-size: 1.1rem;
+        }
+
+        .task_taskCon p:nth-of-type(3) {
+            margin-bottom: .3rem;
+        }
+
+        .task_dbqk {
+            color: #f26522;
+            font-size: 1rem;
+            border: 1px solid #f26522;
+            border-radius: .3rem;
+            padding: 0 .4rem;
+            margin-left: .8rem;
+        }
+
+        .task_pssj,
+        .task_wcsj {
+            display: inline-block;
+            height: 1.2rem;
+            line-height: 1.2rem;
+            font-size: .9rem;
+            color: #fff;
+            padding: 0 .3rem;
+            border-radius: .3rem;
+        }
+
+        .task_pssj {
+            background-color: #bd8cbf;
+            margin-right: .5rem;
+        }
+
+        .task_wcsj {
+            background-color: #65ba8e;
+        }
+
+        .task_jt {
+            height: 100%;
+            line-height: 8rem;
+            font-size: 1.5rem;
+            color: #b5b5b5;
+        }
+    </style>
+</head>
+
+<body>
+<div class="task flex-wrap flex-column">
+    <div class="task_nav">
+        <ul class="clearFix">
+            <li><span>进行中</span></li>
+            <li><span>未开始</span></li>
+            <li><span>临期</span></li>
+            <li><span>逾期</span></li>
+            <li><span>已完结</span></li>
+        </ul>
+    </div>
+</div>
+<script src="../script/jquery-3.1.0.min.js"></script>
+<script type="text/javascript" src="../script/api.js"></script>
+<script>
+    apiready = function() {
+        try{
+            api.closeFrameGroup({
+                name: 'taskGroup'
+            });
+        }catch(e){}
+        reload();
+        document.body.onclick=function () {
+            api.sendEvent({
+                name: 'clInput'
+            });
+        }
+    }
+
+    function reload(num) {
+        var navLi = $api.domAll(".task_nav li");
+        var nav = $api.dom(".task_nav");
+        var winData = JSON.parse(localStorage.getItem("window"));
+        var thisIndex=null;
+//                if (api.getPrefs({
+//                        sync: true,
+//                        key: 'taskOpen'
+//                    })) {
+//                }
+        var index = num || api.pageParam.index || 0;
+        for (var i = 0; i < navLi.length; i++) {
+            ! function(i) {
+                navLi[i].onclick = function() {
+//                            $api.removeCls($api.dom(nav, 'li.active'), 'active');
+//                            $api.addCls(navLi[i], 'active');
+                    api.setFrameGroupIndex({
+                        name: 'taskGroup',
+                        index: i
+                    });
+                }
+            }(i)
+        }
+        $api.removeCls($api.dom(nav, 'li.active'), 'active');
+        $api.addCls(navLi[index], 'active');
+        api.openFrameGroup({
+            name: 'taskGroup',
+            rect: {
+                x: 0,
+                y: winData.headerH + $api.offset(nav).h,
+                w: 'auto',
+                h: winData.mainH - $api.offset(nav).h
+            },
+            index: index,
+            preload: 5,
+            frames: [{
+                name: 'task-frame2',
+                url: 'task-frame2.html',
+                bgColor: '#f7f7f7',
+                bounces: true
+            }, {
+                name: 'task-frame1',
+                url: 'task-frame1.html',
+                bgColor: '#f7f7f7',
+                bounces: true
+            }, {
+                name: 'task-frame3',
+                url: 'task-frame3.html',
+                bgColor: '#f7f7f7',
+                bounces: true
+            }, {
+                name: 'task-frame4',
+                url: 'task-frame4.html',
+                bgColor: '#f7f7f7',
+                bounces: true
+            }, {
+                name: 'task-frame5',
+                url: 'task-frame5.html',
+                bgColor: '#f7f7f7',
+                bounces: true
+            }]
+        }, function(ret, err) {
+            if (index) {
+                index=null;
+                return;
+            }
+            thisIndex=index;
+            $api.removeCls($api.dom(nav, 'li.active'), 'active');
+            $api.addCls(navLi[ret.index], 'active');
+        });
+        api.setPrefs({
+            key: 'taskOpen',
+            value: true
+        });
+        api.addEventListener({name:"searchVal"},function (data) {
+            switch ($(".task_nav li.active").index()){
+                case 1:
+                    sendmsg("search1",data.value.val);
+                    break;
+                case 0:
+                    sendmsg("search2",data.value.val);
+                    break;
+                case 2:
+                    sendmsg("search3",data.value.val);
+                    break;
+                case 3:
+                    sendmsg("search4",data.value.val);
+                    break;
+                case 4:
+                    sendmsg("search5",data.value.val);
+                    break;
+            }
+        })
+        function sendmsg(name,value) {
+            api.sendEvent({
+                name: name,
+                extra: {val: value}
+            });
+        }
+    }
+
+    function closeGroup(num) {
+//            var nav = $api.dom(".task_nav");
+//            var navLi = $api.domAll(".task_nav li");
+//            $api.removeCls($api.dom(nav, 'li.active'), 'active');
+//            $api.addCls(navLi[num || 0], 'active');
+        api.closeFrameGroup({
+            name: 'taskGroup'
+        });
+    }
+</script>
+</body>
+
+</html>

+ 851 - 0
任务管理/taskFK.html

@@ -0,0 +1,851 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="email=no" />
+    <meta name="format-detection" content="telephone=no" />
+    <title>任务反馈</title>
+    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../css/style.css">
+    <style>
+        html{font-size:10px}
+        html,body{
+            height: 100%;
+            overflow: auto;
+        }
+        .flex-wrap{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .flex-con{
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        body{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+            -webkit-box-orient: vertical;
+            -webkit-flex-flow: column;
+            flex-flow: column;
+        }
+        .headGN li {
+            display: none;
+            width: 3.5rem;
+            line-height: 4.1rem;
+        }
+
+        .headGN li.active {
+            display: block;
+        }
+        main{
+            background-color: #f7f7f7;
+        }
+        .inputDiv{
+            padding: 1.1rem 1.6rem;
+            position: relative;
+            background-color: #fff;
+            display: none;
+        }
+        .inputDiv label{
+            display: block;
+            height: 3.8rem;
+            line-height: 3.8rem;
+            font-size: 1.5rem;
+            white-space: nowrap;
+            border-bottom: 1px solid #dfdfdf;
+            margin-bottom: .3rem;
+            padding-left: 1rem;
+        }
+        .inputDiv label:last-of-type{
+            border-bottom: none;
+        }
+        label>input{
+            height: 100%;
+            background-color: rgba(0,0,0,0);
+            border: none;
+            outline: none;
+            font-size: 1.3rem;
+            padding-left: 3.7rem;
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        .SC{
+            width: 2.4rem;
+            height: 2.4rem;
+            background: url("../image/big_add.png") no-repeat 100%/100%;
+            -webkit-transform: translateY(.7rem);
+            transform: translateY(.7rem);
+        }
+        .TP_status,.FJ_status{
+            color: #f21;
+            font-size: 1.3rem;
+            margin-left: 2rem;
+        }
+        .banner li{
+            float: left;
+            margin-bottom: .3rem;
+        }
+        .fileDiv p{
+            font-size: 1.4rem;
+            background-color: #f8f8f8;
+            border-radius: .3rem;
+            padding: .6rem;
+            margin-bottom: .2rem;
+        }
+        #content{
+            width: 100%;
+            height: 12rem;
+            font-size: 1.3rem;
+            padding: .6rem;
+            border: 1px solid #dfdfdf;
+            resize: none;
+            border-radius: .3rem;
+            overflow-y: auto;
+        }
+        .reBtn{
+            width: 100%;
+            height: 3.5rem;
+            line-height: 3.5rem;
+            text-align: center;
+            font-size: 1.5rem;
+            color: #fff;
+            background-color: #51c4d4;
+            border-radius: 2rem;
+            margin: 1.5rem 0;
+        }
+        ::-webkit-input-placeholder{
+            color: #b4b4b4;
+        }
+    </style>
+</head>
+<body>
+<main class="flex-con">
+    <div class="inputDiv">
+        <form action="#">
+            <label class="selectFile">上传图片 <span class="TP_status"></span><i class="SC right" id="TP"></i></label>
+            <div class="banner"><ul class="clearFix"></ul></div>
+            <label  class="selectFile">上传附件 <span class="FJ_status"></span><i class="SC right" id="FJ"></i></label>
+            <div class="fileDiv"><ul></ul></div>
+            <label class="title">内容</label>
+            <pre  id="content" contenteditable="true"></pre>
+        </form>
+        <div class="reBtn">完成反馈</div>
+    </div>
+</main>
+<script src="../script/jquery-3.1.0.min.js"></script>
+<script src="../script/publicData.js"></script>
+<script src="../script/api.js"></script>
+<script>
+    apiready=function () {
+        if($api.getStorage("user").user_group_id==5){
+            $(".selectFile").css("display","none");
+            $(".title").text("批示内容");
+            $(".reBtn").text("确定");
+        }
+        $(".inputDiv").css("display","block");
+        var imgData=[],fileUrl=[],imgUpload=[],fileUpload=[],nowImgArr=[],nowFileArr=[],delArr=[],num=0,FKId=0,isXG=false;
+        var dialogBox = api.require('dialogBox');
+        var UIMediaScanner = api.require('UIMediaScanner');
+        var winWidth= api.winWidth/3-10;
+        var taskid=$api.getStorage("taskXQ").taskID;
+        if($api.getStorage("fkid")){
+            api.showProgress({
+                title: '努力加载中...',
+                text: '请稍等...',
+                modal: false
+            });
+            isXG=true;
+            FKId =$api.getStorage("fkid");
+            $api.setStorage("audit",FKId);
+            $api.rmStorage("fkid");
+            $.post(pageUrl+"savecontent",{task_dynamic_id:FKId},function (data) {
+                $("#content").html(toHtml(data.data["0"]['task_dynamic_content']));
+                if(data.data['photo'].length){
+                    for(var i in data.data['photo']){
+                        $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='"+pageImg+"/"+data.data["photo"][i]["task_dynamic_upload_photo"]+"' style='width:100%;height:100%'  /></li>");
+                        nowImgArr.push(data.data["photo"][i]["task_dynamic_upload_photo"]);
+                    }
+                }
+                if(data.data['attachment'].length){
+                    for(var j in data.data['attachment']){
+                        $(".fileDiv ul").append("<li><p>"+data.data['attachment'][j]["task_dynamic_upload_name"].replace(data.data["0"]['task_dynamic_task_id'],"").slice(10)+"</p></li>")
+                        nowFileArr.push(data.data["attachment"][j]["task_dynamic_upload_photo"]);
+                    }
+                }
+                api.hideProgress();
+                $(".reBtn").click(function () {
+                    var data={
+                        task_dynamic_content:$("#content").html(),
+                        photolujing:imgUpload,
+                        attachmentlujing:fileUpload,
+                        task_id:taskid,
+                        task_dynamic_id:$api.getStorage("audit"),
+                        task_dynamic_upload_photo:delArr
+                    }
+                    if(imgData.length!=0||fileUrl.length!=0){
+                        api.toast({
+                            msg: '还有文件未上传',
+                            duration: 2000,
+                            location: 'bottom'
+                        });
+                        return;
+                    }
+                    if(num) return;
+                    num++;
+                    $(".reBtn").text("正在提交...");
+                    $.post(pageUrl+"savecontent1",data,function (data) {
+                        if(data.status=="200"){
+                            $(".reBtn").text("提交成功");
+                            api.toast({
+                                msg: '修改成功,正在返回',
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                            $("#content").html("");
+                            $(".banner").html("");
+                            $(".fileDiv").html("");
+                            imgData=imgUpload=fileUpload=delArr=[];
+                            fileUrl="";
+                            var jsfun5 = 'back();';
+                            api.execScript({
+                                name: 'root',
+                                script: jsfun5
+                            });
+                        }else {
+                            api.toast({
+                                msg: data.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+
+                    })
+                })
+            })
+        }else {
+            isXG=false;
+            $(".reBtn").click(function () {
+                var data={
+                    task_dynamic_content:$("#content").html(),
+                    photolujing:imgUpload,
+                    attachmentlujing:fileUpload,
+                    task_id:taskid
+                }
+//                if(imgData.length!=0||fileUrl.length!=0){
+//                    api.toast({
+//                        msg: '还有文件未上传',
+//                        duration: 2000,
+//                        location: 'bottom'
+//                    });
+//                    return;
+//                }
+                if(!data.task_dynamic_content&&data.photolujing.length==0&&data.attachmentlujing.length==0){
+                    api.toast({
+                        msg: '未添加任何反馈信息',
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                }else {
+                    if(num) return;
+                    num++;
+                    $(".reBtn").text("正在提交...");
+                    $.post(pageUrl+"shangchuan",data,function (data) {
+                        if(data.status=="200"){
+                            $(".reBtn").text("提交成功");
+                            api.toast({
+                                msg: '提交成功,正在返回',
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                            var upload = 'toFrame(5);';
+                            setTimeout(function () {
+                                api.execScript({
+                                    name: 'root',
+                                    script: upload
+                                });
+                                api.closeFrame({
+                                    name: 'taskFK'
+                                });
+                            },2000)
+                            $("#content").html("");
+                            $(".banner").html("");
+                            $(".fileDiv").html("");
+                            imgData=imgUpload=fileUpload=delArr=[];
+                            fileUrl="";
+                        }else {
+                            api.toast({
+                                msg: data.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+
+                    })
+                }
+            })
+        }
+        $(".banner").on("click",'li',function () {
+            var that=$(this)
+            popups("确认删除该图片吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var newimg=[];
+                    if(isXG){
+                        for(var i=0;i<nowImgArr.length;i++){
+                            if(that.index()==i){
+                                delArr.push(nowImgArr[i])
+                            }
+                        }
+                    }else {
+                        for(var i=0;i<imgUpload.length;i++){
+                            if(that.index()==i) continue;
+                            newimg.push(imgUpload[i])
+                        }
+                        imgUpload=newimg;
+                    }
+                    that.remove();
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+//            popups("确认删除该图片吗?",function (ret) {
+//                if (ret.eventType == 'right') {
+//                    var newimg=[];
+//                    if(isXG){
+//                        for(var i=0;i<nowImgArr.length;i++){
+//                            if(that.index()==i){
+//                                delArr.push(nowImgArr[i])
+//                            }
+//                        }
+//                    }else {
+//                        for(var i=0;i<imgData.length;i++){
+//                            if(that.index()==i) continue;
+//                            newimg.push(imgData[i])
+//                        }
+//                        imgData=newimg;
+//                    }
+//                    if(!imgData.length){
+//                        $(".TP_status").text(" ")
+//                    }
+//                    that.remove();
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }else if (ret.eventType == 'left') {
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }
+//            })
+        })
+        $(".fileDiv").on("click","p",function () {
+            var that=$(this)
+            popups("确认删除该文件吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var newfile=[];
+                    if(isXG){
+                        for(var i=0;i<nowFileArr.length;i++){
+                            if(that.index()==i){
+                                delArr.push(nowFileArr[i])
+                            }
+                        }
+                    }else {
+                        for(var i=0;i<fileUpload.length;i++){
+                            if(that.index()==i) continue;
+                            newfile.push(fileUpload[i])
+                        }
+                        fileUpload=newfile;
+                    }
+                    that.remove();
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+//            popups("确认删除该文件吗?",function (ret) {
+//                if (ret.eventType == 'right') {
+//                    var newfile=[];
+//                    if(isXG){
+//                        for(var i=0;i<nowFileArr.length;i++){
+//                            if(that.index()==i){
+//                                delArr.push(nowFileArr[i])
+//                            }
+//                        }
+//                    }else {
+//                        for(var i=0;i<fileUrl.length;i++){
+//                            if(that.index()==i) continue;
+//                            newfile.push(fileUrl[i])
+//                        }
+//                        fileUrl=newfile;
+//                    }
+//                    if(!fileUrl.length){
+//                        $(".FJ_status").text(" ")
+//                    }
+//                    that.remove();
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }else if (ret.eventType == 'left') {
+//                    dialogBox.close({
+//                        dialogName: 'alert'
+//                    });
+//                }
+//            })
+        })
+        $("#TP").click(function () {
+            api.actionSheet({
+                title: '上传图片',
+                cancelTitle: '取消',
+                buttons: ['相册', '相机']
+            }, function(ret, err) {
+                var index = ret.buttonIndex;
+                if(index==1){
+                    UIMediaScanner.open({
+                        type: 'picture',
+                        column: 4,
+                        max: 4,
+                        sort: {
+                            key: 'time',
+                            order: 'desc'
+                        },
+                        texts: {
+                            stateText: '已选择*项',
+                            cancelText: '取消',
+                            finishText: '完成'
+                        },
+                        styles: {
+                            bg: '#fff',
+                            mark: {
+                                icon: '',
+                                position: 'bottom_left',
+                                size: 20
+                            },
+                            nav: {
+                                bg: '#eee',
+                                stateColor: '#000',
+                                stateSize: 18,
+                                cancelBg: 'rgba(0,0,0,0)',
+                                cancelColor: '#000',
+                                cancelSize: 18,
+                                finishBg: 'rgba(0,0,0,0)',
+                                finishColor: '#000',
+                                finishSize: 18
+                            }
+                        },
+                        exchange: true
+                    }, function(ret) {
+                        if (ret.eventType=="confirm") {
+                            for(var i in ret.list){
+                                if(api.systemType=="ios"){
+                                    UIMediaScanner.transPath({
+                                        path: ret.list[i]["path"]
+                                    }, function(ret, err) {
+                                        if (ret) {
+//                                            $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='file://"+ret.path+"' style='width:100%;height:100%'  /></li>");
+                                            imgData.push("file://"+ret.path);
+                                            uploadImg("file://"+ret.path)
+                                        } else {
+                                            alert(JSON.stringify(err));
+                                        }
+                                    });
+                                }else {
+//                                    $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='file://"+ret.list[i]["path"]+"' style='width:100%;height:100%' /></li>");
+                                    imgData.push("file://"+ret.list[i]["path"]);
+                                    uploadImg("file://"+ret.list[i]["path"])
+                                }
+                            }
+//                            $(".TP_status").text("点击上传全部图片")
+                        }
+                    });
+                }else if(index==2){
+                    api.getPicture({
+                        sourceType: 'camera',
+                        encodingType: 'jpg',
+                        mediaValue: 'pic',
+                        saveToPhotoAlbum:'true',
+                        destinationType: 'url',
+                        quality: 50
+                    }, function(ret, err) {
+                        if (ret) {
+                            if(!ret.data) return;
+                            imgData.push("file://"+ret.data);
+//                            $(".TP_status").text("点击上传全部图片");
+//                            $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='"+imgData[imgData.length-1]+"' style='width:100%;height:100%' /></li>");
+                            uploadImg("file://"+ret.data)
+                        } else {
+                            alert(JSON.stringify(err));
+                        }
+                    });
+                }else {}
+            });
+        })
+        function uploadImg(url) {
+            var imageFilter = api.require('imageFilter');
+            var imageName = "rwdcimg";
+            var imageCachePath = api.cacheDir;
+            var newimg="";
+            imageFilter.compress({
+                img: url,
+                quality:0.8,
+               /* size:{
+                    w:550,
+                    h:480
+                },*/
+                save: {
+                    album: false,
+                    imgPath: imageCachePath,
+                    imgName: imageName + '.jpg'
+                }
+            }, function(ret, err) {
+                var tx = imageCachePath + '/' + imageName + '.jpg';
+                $(".TP_status").text("正在上传中...");
+                api.ajax({
+                    url: pageUrl+"upload",
+                    method: 'post',
+                    timeout: 30,
+                    dataType: 'json',
+                    returnAll: false,
+                    data: {
+                        files:{
+                            "file[]":tx
+                        },
+                        values:{
+                            task_id:taskid,
+                            type:"1"
+                        }
+                    }
+                }, function (ret, err) {
+                    if(ret.status=="200"){
+                        if(ret.message.indexOf(false)!=-1){
+                            for(var i=0;i<ret.message.length;i++){
+                                if(ret.message[i]!=false){
+                                    imgUpload.push(ret.message[i]);
+                                }else {
+                                    api.toast({
+                                        msg: "上传失败,请重试",
+                                        duration: 2000,
+                                        location: 'bottom'
+                                    });
+                                }
+                            }
+                        }else {
+                            for(var msgI in ret['message']){
+                                imgUpload.push(ret['message'][msgI])
+                            }
+                            $(".banner ul").append("<li style='width:32%;height:"+winWidth+"px;margin-right: 1%'><img src='"+url+"' style='width:100%;height:100%' /></li>");
+                            imgData=[];
+                        }
+                    }else {
+                        api.toast({
+                            msg: "上传失败,请重试",
+                            duration: 2000,
+                            location: 'bottom'
+                        });
+                    }
+                    $(".TP_status").text("");
+                });
+            })
+        }
+        function uploadFile(url,name) {
+            $(".FJ_status").text("正在上传中...");
+            api.ajax({
+                url: pageUrl+"upload",
+                method: 'post',
+                timeout: 30,
+                dataType: 'json',
+                returnAll: false,
+                data: {
+                    "files":{
+                        "file[]":url
+                    },
+                    "values":{
+                        task_id:taskid,
+                        type:"2"
+                    }
+                }
+            }, function (ret, err) {
+                if(ret.status=="200"){
+                    if(ret.message.indexOf(false)!=-1){
+                        for(var i=0;i<ret.message.length;i++){
+                            if(ret.message[i]!=false){
+                                fileUpload.push(ret.message[i]);
+                            }else {
+                                api.toast({
+                                    msg: "上传失败,请重试",
+                                    duration: 2000,
+                                    location: 'bottom'
+                                });
+                            }
+                        }
+                    }else {
+                        for(var msgI in ret['message']){
+                            fileUpload.push(ret['message'][msgI])
+                        }
+                        $(".fileDiv ul").append("<li><p>"+name+"</p></li>");
+                        fileUrl=[];
+                    }
+                }else {
+                    api.toast({
+                        msg: "上传失败,请重试",
+                        duration: 2000,
+                        location: 'bottom'
+                    });
+                }
+                $(".FJ_status").text("");
+            });
+        }
+        $(".TP_status").click(function () {
+            if($(this).text()!="点击上传全部图片") return;
+            popups("确认上传吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var Data={
+                        file:imgData,
+                        type:"1",
+                        task_id:taskid
+                    }
+                    $(".TP_status").text("正在上传中...");
+                    api.ajax({
+                        url: pageUrl+"upload",
+                        method: 'post',
+                        timeout: 30,
+                        dataType: 'json',
+                        returnAll: false,
+                        data: {
+                            files:{
+                                "file[]":imgData
+                            },
+                            values:{
+                                task_id:taskid,
+                                type:"1"
+                            }
+                        }
+                    }, function (ret, err) {
+                        var newImg=[];
+                        if(ret.status=="200"){
+                            if(ret.message.indexOf(false)!=-1){
+                                for(var i=0;i<ret.message.length;i++){
+                                    if(ret.message[i]!=false){
+                                        imgUpload.push(ret.message[i]);
+                                        $(".banner li:eq("+i+")").remove();
+                                    }else {
+                                        newImg.push(imgData[i]);
+                                    }
+                                }
+                                $(".TP_status").text("以下图片上传失败");
+                                imgData=newImg;
+                            }else {
+                                for(var msgI in ret['message']){
+                                    imgUpload.push(ret['message'][msgI])
+                                }
+                                imgData=[];
+                                $(".banner ul").html(" ");
+                                $(".TP_status").text("上传成功");
+                                setTimeout(function () {
+                                    if($(".TP_status").text()=="上传成功"){
+                                        $(".TP_status").text(" ");
+                                    }
+                                },10000)
+                            }
+                        }else {
+                            $(".TP_status").text("点击上传全部图片");
+                            api.toast({
+                                msg: ret.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+                    });
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+        })
+        $("#FJ").click(function () {
+            var fileBrowser = api.require('fileBrowser');
+            fileBrowser.open(function(ret, err) {
+                if (ret) {
+                    fileBrowser.close();
+                    if(fileUrl.indexOf(ret.url)!=-1){
+                        api.toast({
+                            msg: '已有该文件',
+                            duration: 2000,
+                            location: 'bottom'
+                        });
+                        return;
+                    }
+                    var url11 = ret.url;
+                    var i = url11.lastIndexOf('/');
+                    var j = url11.length;
+                    var name11 = url11.slice(i+1,j);
+//                    $(".fileDiv ul").append("<li><p>"+name11+"</p></li>")
+//                    $(".FJ_status").text("点击上传全部附件");
+                    uploadFile(url11,name11);
+                    fileUrl.push(ret.url);
+                } else {
+                    alert(JSON.stringify(err));
+                }
+            });
+        })
+        $(".FJ_status").click(function () {
+            if($(this).text()!="点击上传全部附件") return;
+            popups("确认上传吗?",function (ret) {
+                if (ret.eventType == 'right') {
+                    var Data={
+                        file:fileUrl
+                    }
+                    $(".FJ_status").text("正在上传中...");
+                    api.ajax({
+                        url: pageUrl+"upload",
+                        method: 'post',
+                        timeout: 30,
+                        dataType: 'json',
+                        returnAll: false,
+                        data: {
+                            "files":{
+                                "file[]":fileUrl
+                            },
+                            "values":{
+                                task_id:taskid,
+                                type:"2"
+                            }
+                        }
+                    }, function (ret, err) {
+                        var newFile=[];
+                        if(ret.status=="200"){
+                            if(ret.message.indexOf(false)!=-1){
+                                for(var i=0;i<ret.message.length;i++){
+                                    if(ret.message[i]!=false){
+                                        fileUpload.push(ret.message[i]);
+                                        $(".fileDiv li:eq("+i+")").remove();
+                                    }else {
+                                        newFile.push(fileUrl[i]);
+                                    }
+                                }
+                                $(".FJ_status").text("以下附件上传失败");
+                                fileUrl=newFile;
+                            }else {
+                                for(var msgI in ret['message']){
+                                    fileUpload.push(ret['message'][msgI])
+                                }
+                                fileUrl=[];
+                                $(".fileDiv ul").html(" ");
+                                $(".FJ_status").text("上传成功");
+                                setTimeout(function () {
+                                    if($(".FJ_status").text()=="上传成功"){
+                                        $(".FJ_status").text(" ");
+                                    }
+                                },10000)
+                            }
+                        }else {
+                            $(".FJ_status").text("点击上传全部附件");
+                            api.toast({
+                                msg: ret.message,
+                                duration: 2000,
+                                location: 'bottom'
+                            });
+                        }
+                    });
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }else if (ret.eventType == 'left') {
+                    dialogBox.close({
+                        dialogName: 'alert'
+                    });
+                }
+            })
+        });
+        $("#backBtn").click(function () {
+            api.closeWin();
+        })
+        function toHtml(str) {
+            var a="&lt;",b="&gt;",c="&nbsp;",d="&amp;nbsp;",text=str;
+            if(text.match(a)) {
+                toChange(a,"<")
+            }
+            if(text.match(b)) {
+                toChange(b,">")
+            }
+            if(text.match(c)) {
+                toChange(c," ")
+            }
+            if(text.match(d)) {
+                toChange(d," ")
+            }
+            function toChange(type,type1) {
+                text=text.replace(type,type1);
+                if(text.match(type)) {
+                    toChange(type,type1)
+                }
+            }
+            return text;
+        }
+        function popups(val,fn) {
+            dialogBox.alert({
+                texts: {
+                    title: '确认',
+                    content: val,
+                    leftBtnTitle: '取消',
+                    rightBtnTitle: '确认'
+                },
+                styles: {
+                    bg: '#fff',
+                    w: 300,
+                    title: {
+                        marginT: 20,
+                        icon: 'widget://res/gou.png',
+                        iconSize: 40,
+                        titleSize: 13,
+                        titleColor: '#000'
+                    },
+                    content: {
+                        color: '#000',
+                        size: 16
+                    },
+                    left: {
+                        marginB: 0,
+                        marginL: 0,
+                        w: 150,
+                        h: 60,
+                        corner: 2,
+                        bg: '#f9f9f9',
+                        color: '#818181',
+                        size: 12
+                    },
+                    right: {
+                        marginB: 0,
+                        marginL: 0,
+                        w: 150,
+                        h:60,
+                        corner: 2,
+                        bg: '#51c4d4',
+                        color: '#fff',
+                        size: 12
+                    }
+                }
+            }, function(ret) {
+                fn(ret)
+            });
+        }
+    }
+</script>
+</body>
+</html>

文件差异内容过多而无法显示
+ 1014 - 0
任务管理/taskXQ.html


+ 459 - 0
分销商城/detail.html

@@ -0,0 +1,459 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="format-detection" content="email=no" />
+    <meta name="format-detection" content="telephone=no" />
+    <title>提成明细</title>
+    <link rel="stylesheet" href="../../css/reset.css">
+    <style>
+        html{font-size:10px}
+        html,body{
+            height: 100%;
+        }
+        .flex-wrap{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .flex-con{
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        body{
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+            -webkit-box-orient: vertical;
+            -webkit-flex-flow: column;
+            flex-flow: column;
+        }
+        header{
+            width: 100%;
+            height: 4rem;
+            line-height: 4rem;
+            background-color: #252736;
+            position: fixed;
+            top: 0;
+            left: 0;
+            z-index: 999;
+        }
+        header h2{
+            width: 100%;
+            height: 100%;
+            font-size: 1.8rem;
+            color: #fff;
+            font-weight: lighter;
+            text-align: center;
+            position: relative;
+        }
+        header i{
+            display: inline-block;
+            width: 4.3rem;
+            height: 4.3rem;
+            background: url("../../img/index/backBtn.png") no-repeat 30%/60%;
+            position: absolute;
+            left: 0;
+            bottom: 0;
+        }
+        header a{
+            display: inline-block;
+            font-size: 1.2rem;
+            color: #fff;
+            position: absolute;
+            right: 1.2rem;
+            top: 0;
+        }
+        main{
+            background-color: #f7f7f7;
+            padding-top: 8rem;
+            padding-bottom: 5rem;
+            overflow: auto;
+        }
+        .selDate{
+            width: 100%;
+            height: 4rem;
+            line-height: 4rem;
+            text-align: center;
+            background-color: #fff;
+            border-bottom: 1px solid #efefef;
+            padding: 0 2rem;
+            position: fixed;
+            top: 4rem;
+            left: 0;
+            z-index: 999;
+        }
+        .detailList li{
+            height: 5rem;
+            font-size: 1.5rem;
+            background-color: #fff;
+            padding: 0 .6rem;
+            border-bottom: 1px solid #f7f7f7;
+            display: -webkit-box;
+            display: -webkit-flex;
+            display: flex;
+        }
+        .detailList li>div{
+            height: 100%;
+        }
+        .subordinate{
+            white-space: nowrap;
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        .subordinate span{
+            display: inline-block;
+        }
+        .sUser{
+            font-size: 1.1rem;
+            padding: .5rem .6rem .5rem 0;
+        }
+        .sData{
+            font-size: 1rem;
+        }
+        select{
+            margin-right: .2rem;
+        }
+        .content{
+            width: 8rem;
+            line-height: 5rem;
+            text-align: center;
+            color: #ff5001;
+            font-weight: 900;
+            margin-left: 1rem;
+            white-space: nowrap;
+
+        }
+        .timeBox>p{
+            height: 5rem;
+            line-height: 5rem;
+            color: #8e8e8e;
+            text-align: center;
+            font-size: 1.5rem;
+            border-bottom: 2px solid #3ecdf1;
+        }
+        #time>input{
+            border: none;
+            outline: none;
+        }
+        #search{
+            padding: .5rem 1rem;
+            color: #fff;
+            background-color: #3d90db;
+            border-radius: .2rem;
+            margin-top: 1rem;
+        }
+        .btnDiv>div{
+            width: 50%;
+            height: 4rem;
+            line-height: 4rem;
+            text-align: center;
+            font-size: 1.4rem;
+            border-top: 1px solid #efefef;
+        }
+        .waitDiv{
+            width: 1rem;
+            height: 1rem;
+            background: url("../../img/order/waiting.gif") round;
+            position: absolute;
+            left: calc(50% - .5rem);
+            top: calc(50% - .5rem);
+            display: none;
+        }
+        .mainPB{
+            width: 100%;
+            height: 9rem;
+        }
+        .detailList ul.hid{
+            display: none;
+        }
+        .remindDiv{
+            height: 3rem;
+            line-height: 3rem;
+            text-align: center;
+            font-size: 1.2rem;
+            color: #fff;
+            padding: 0 1rem;
+            border-radius: 2rem;
+            background-color: rgba(0,0,0,0.7);
+            position: fixed;
+            bottom: 20%;
+            left: 50%;
+            -webkit-transform: translateX(-50%);
+            transform: translateX(-50%);
+            opacity: 0;
+            -webkit-transition: .5s;
+            transition: .5s;
+            z-index: -99;
+        }
+        .remindDiv.active{
+            opacity: 1;
+            z-index: 99;
+        }
+        footer{
+            width: 100%;
+            height: 5rem;
+            color: rgba(0,0,0,0.7);
+            background-color: #fff;
+            position: fixed;
+            left: 0;
+            bottom: 0;
+        }
+        .footNav>li{
+            font-size: 1rem;
+            text-align: center;
+            padding-top: .7rem;
+            -webkit-box-flex: 1;
+            -webkit-flex: 1;
+            flex: 1;
+        }
+        .footNav>li.active{
+            color: #609f25;
+        }
+        .footNav>li i{
+            display: inline-block;
+            width: 2rem;
+            height: 2rem;
+            background-size: 100%;
+            margin-bottom: .1rem;
+        }
+        .footNav>li:nth-of-type(1) i{
+            background: url("../../img/index/home.png") round;
+        }
+        .footNav>li:nth-of-type(2) i{
+            background: url("../../img/index/shop.png") round;
+        }
+        .footNav>li:nth-of-type(3) i{
+            background: url("../../img/index/car.png") round;
+        }
+        .footNav>li:nth-of-type(4) i{
+            background: url("../../img/index/order.png") round;
+        }
+        .footNav>li:nth-of-type(5) i{
+            background: url("../../img/index/my2.png") round;
+        }
+        .footNav>li:nth-of-type(3){
+            position: relative;
+        }
+        .shopCarTag{
+            width: 1.8rem;
+            height: 1.8rem;
+            line-height: 1.8rem;
+            text-align: center;
+            white-space: nowrap;
+            background: url("../../img/index/shopYuan.png") round;
+            color: #fff;
+            font-size: 1rem;
+            border-radius: 50%;
+            position: absolute;
+            top: 0;
+            right: .6rem;
+            display: none;
+        }
+        @media screen and (min-width:321px) and (max-width:375px){html{font-size:11px}}
+        @media screen and (min-width:376px) and (max-width:414px){html{font-size:12px}}
+        @media screen and (min-width:415px) and (max-width:639px){html{font-size:13px}}
+        @media screen and (min-width:640px) and (max-width:719px){html{font-size:18px}}
+        @media screen and (min-width:720px) and (max-width:749px){html{font-size:19px}}
+        @media screen and (min-width:750px) and (max-width:799px){html{font-size:20px}}
+        @media screen and (min-width:800px){html{font-size:21px}}
+    </style>
+</head>
+<body>
+<header>
+    <h2><i id="backBtn" onclick="toBack()"></i>提成明细<a href="../my.html">我的</a></h2>
+</header>
+<main class="flex-con">
+    <div class="selDate clearFix">
+        <span id="time" class="left">选择日期:
+            <select id="timeY">
+                <option value="2017">2017</option>
+            </select>
+            <select id="timeM">
+                <option value="01">01</option>
+                <option value="02">02</option>
+                <option value="03">03</option>
+                <option value="04">04</option>
+                <option value="05">05</option>
+                <option value="06">06</option>
+                <option value="07">07</option>
+                <option value="08">08</option>
+                <option value="09">09</option>
+                <option value="10">10</option>
+                <option value="11">11</option>
+                <option value="12">12</option>
+            </select>
+        </span>
+        <button id="search" class="right">搜索</button>
+    </div>
+    <div class="detailList">
+        <ul class="hid">
+            <li>
+                <div class="subordinate">
+                    <p class="sUser clearFix"><span class="SUName left">昵称:{{name}}</span><span class="SUPhone right">电话:{{phone}}</span></p>
+                    <p class="sData"><span class="SUNZFB">支付宝:{{ZFB}}</span></p>
+                </div>
+                <div class="content">+{{money}}</div>
+            </li>
+        </ul>
+    </div>
+    <div class="waitDiv"></div>
+    <div class="mainPB"></div>
+    <div class="remindDiv"></div>
+</main>
+<footer>
+    <nav>
+        <ul class="footNav flex-wrap">
+            <li>
+                <i></i>
+                <p>首页</p>
+            </li>
+            <li>
+                <i></i>
+                <p>商城</p>
+            </li>
+            <li>
+                <i></i>
+                <p>购物车</p>
+                <div class="shopCarTag">0</div>
+            </li>
+            <li>
+                <i></i>
+                <p>订单</p>
+            </li>
+            <li class="active">
+                <i></i>
+                <p>我的</p>
+            </li>
+        </ul>
+    </nav>
+</footer>
+<script src="../../js/publicData.js"></script>
+<script src="../../js/modules.js"></script>
+<script>
+    window.onload=function () {
+        var  aFooterLi=document.getElementsByClassName("footNav")[0].getElementsByTagName("li"),
+                detailList=document.getElementsByClassName("detailList")[0],
+                waitDiv=document.getElementsByClassName("waitDiv")[0],
+                shopCarTag=document.getElementsByClassName("shopCarTag")[0],
+                remindDiv=document.getElementsByClassName("remindDiv")[0],
+                clBtn=document.getElementsByClassName("clBtn")[0],
+                suBtn=document.getElementsByClassName("suBtn")[0],
+                selDate=document.getElementById("selDate"),
+                timeY=document.getElementById("timeY"),
+                timeM=document.getElementById("timeM"),
+                oTimeBtn=document.getElementById("search");
+        var  pageList=["index.html","shopPage.html","shopCar.html","order.html","my.html"],
+                liModel=detailList.getElementsByTagName("ul")[0].innerHTML,oRemindTime;
+        if(is_weixin()){
+            var mainPB=document.getElementsByClassName("mainPB")[0];
+            mainPB.style.display="none";
+        }
+        Ajax("get",pageUrl+"/Api/Index/shopCar","",function (data) {
+            if(data.status=="999"){
+                window.location.href="../login.html";
+            }
+            if(data.data&&!data.data.length) return;
+            shopCarTag.innerText=data.data.length;
+            shopCarTag.style.display="block";
+            sessionStorage.setItem("carNum",data.data.length||0);
+        })
+        var nowTime=new Date();
+        var nowYear=nowTime.getFullYear()-0;
+        var nowMonth=nowTime.getMonth();
+        var str="",num=0;
+        if(location.search.slice(1).split("=")[1]){
+            var monNum=location.search.slice(1).split("=")[1].slice(4)-0;
+            timeM.getElementsByTagName("option")[monNum-1].setAttribute("selected","selected");
+            getData(location.search.slice(1).split("=")[1]);
+        }else {
+            timeM.getElementsByTagName("option")[nowMonth-1].setAttribute("selected","selected");
+        }
+        for(var year=0;year<=5;year++){
+            num=nowYear-year;
+            if(num==nowTime.getFullYear()){
+                str+="<option value='"+num+"' selected>"+num+"</option>";
+            }else {
+                str+="<option value='"+num+"'>"+num+"</option>";
+            }
+        }
+        timeY.innerHTML=str;
+        oTimeBtn.onclick=function () {
+            var time=[];
+            if(!timeY.value||!timeM.value){
+                remindMes('请选择日期');
+                return;
+            }
+            time[0]=timeY.value;
+            time[1]=timeM.value;
+            if(time[1].length==1){
+                time[1]="0"+time[1];
+            }
+            getData(time[0]+time[1])
+        }
+        function getData(val) {
+            waitDiv.style.display="block";
+            Ajax("get",pageUrl+"/Fencheng/vipfc","month="+val,function (data) {
+                if(data.status==999)  window.location.href="../login.html";
+                var data=data.data;
+                detailList.innerHTML="";
+                var str="<ul>";
+                if(data.length){
+                    for(var i in data){
+                        str+=liModel.replace("{{name}}",data[i].nickname).replace("{{phone}}",data[i].mobile).replace("{{ZFB}}",data[i].txcard)
+                                .replace("{{money}}",data[i].total);
+                    }
+                    str+="</ul>";
+                    waitDiv.style.display="none";
+                    detailList.innerHTML=str;
+                }else {
+                    waitDiv.style.display="none";
+                    remindMes("无该月数据")
+                }
+
+            })
+        }
+        for(var i=0,len=aFooterLi.length;i<len;i++){
+            !function (i) {
+                aFooterLi[i].onclick=function () {
+                    var url=location.href;
+                    if(url.indexOf("?")!=-1){
+                        if(pageList[i]==url.slice(url.lastIndexOf("/")+1,url.indexOf("?"))) return;
+                    }else {
+                        if(pageList[i]==url.slice(url.lastIndexOf("/")+1)) return;
+                    }
+                    if(!i){
+                        location.href="../../index.html";
+                    }else {
+                        location.href="../"+pageList[i];
+                    }
+                }
+            }(i)
+        }
+        function remindMes(val) {
+            if(oRemindTime) clearTimeout(oRemindTime);
+            remindDiv.innerText=val;
+            addCls(remindDiv,'active');
+            oRemindTime=setTimeout(function () {
+                removeCls(remindDiv,'active');
+                oRemindTime=undefined;
+            },2000)
+        }
+    }
+    function is_weixin(){
+        var ua = navigator.userAgent;
+        if(/(MicroMessenger)/i.test(ua)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+    function toBack() {
+        window.history.back();
+    }
+</script>
+</body>
+</html>

二进制
分销商城/img/index/1-1.png


二进制
分销商城/img/index/1.png


二进制
分销商城/img/index/1Bg.jpg


二进制
分销商城/img/index/2-1.png


二进制
分销商城/img/index/2.png


二进制
分销商城/img/index/3-1.png


二进制
分销商城/img/index/3.png


二进制
分销商城/img/index/4-1.png


二进制
分销商城/img/index/4.png


二进制
分销商城/img/index/5-1.png


二进制
分销商城/img/index/5.png


二进制
分销商城/img/index/6-1.png


二进制
分销商城/img/index/6.png


二进制
分销商城/img/index/7-1.png


二进制
分销商城/img/index/7.png


二进制
分销商城/img/index/8-1.png


二进制
分销商城/img/index/8.png


二进制
分销商城/img/index/backBtn.png


二进制
分销商城/img/index/car.png


二进制
分销商城/img/index/car2.png


+ 84 - 0
分销商城/img/index/debug.log

@@ -0,0 +1,84 @@
+[5132:13384:0519/223434:INFO:AppRunner.cpp(619)] Begin run process geeplayer
+[5132:13384:0519/223434:INFO:AppRunner.cpp(623)] ProductName is GeePlayer1
+[5132:13384:0519/223434:INFO:AppRunner.cpp(662)] apppluginbase version is 4.3.4.80
+[5132:13384:0519/223434:INFO:UIlib.cpp(192)] quilib: version is 4.3.4.78
+[5132:13384:0519/223434:INFO:serviceManager.cpp(687)] mainprocessisrunning key is set as 1
+[5132:13384:0519/223434:INFO:serviceManager.cpp(800)] create local service plugin PluginServerStatePlugin
+[5132:13384:0519/223434:INFO:serviceManager.cpp(857)] plugin PluginServerStatePlugin DoPluginInit
+[5132:13384:0519/223434:INFO:serviceManager.cpp(1523)] repository parse over
+[5132:13384:0519/223434:INFO:UIManager.cpp(372)] quilib:call set resouce path, path is c:\program files (x86)\iqiyi video\geeplayer\2.5.35.3301\skin
+[5132:13384:0519/223434:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[5132:13384:0519/223434:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[5132:13384:0519/223434:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[5132:13384:0519/223434:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[5132:13384:0519/223434:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[5132:13384:0519/223434:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[5132:13384:0519/223440:INFO:AppRunner.cpp(715)] loop exit geeplayer call main plugin DestoryPluginEntry
+[5132:13384:0519/223440:INFO:IPlugin.cpp(117)] real plugin mainPlugin call DestroyPlugin
+[5132:13384:0519/223440:INFO:IPlugin.cpp(374)] destruct plugin mainPlugin
+[5132:13384:0519/223440:INFO:serviceManager.cpp(1608)] mainPlugin plugin had destroy by DestructPlugin
+[5132:13384:0519/223440:INFO:serviceManager.cpp(2532)] DestructManager begin
+[5132:13384:0519/223440:INFO:IPlugin.cpp(374)] destruct plugin PluginServerStatePlugin
+[5132:13384:0519/223440:INFO:IPlugin.cpp(286)] real plugin PluginServerStatePlugin call DestroyPlugin
+[5132:13384:0519/223440:INFO:serviceManager.cpp(1608)] PluginServerStatePlugin plugin had destroy by DestructPlugin
+[5132:13384:0519/223440:INFO:serviceManager.cpp(2408)] DeleteLeftPlugins begin
+[5132:13384:0519/223440:INFO:serviceManager.cpp(2470)] DeleteLeftPlugins end
+[5132:13384:0519/223440:INFO:serviceManager.cpp(687)] mainprocessisrunning key is set as 0
+[5132:13384:0519/223440:INFO:AppRunner.cpp(730)] close mutex of process geeplayer
+[5132:13384:0519/223440:INFO:AppRunner.cpp(738)] run process geeplayer end
+[14800:16300:0522/143424:INFO:AppRunner.cpp(619)] Begin run process geeplayer
+[14800:16300:0522/143424:INFO:AppRunner.cpp(623)] ProductName is GeePlayer1
+[14800:16300:0522/143424:INFO:AppRunner.cpp(662)] apppluginbase version is 4.3.4.80
+[14800:16300:0522/143424:INFO:UIlib.cpp(192)] quilib: version is 4.3.4.78
+[14800:16300:0522/143424:INFO:serviceManager.cpp(687)] mainprocessisrunning key is set as 1
+[14800:16300:0522/143424:INFO:serviceManager.cpp(800)] create local service plugin PluginServerStatePlugin
+[14800:16300:0522/143424:INFO:serviceManager.cpp(857)] plugin PluginServerStatePlugin DoPluginInit
+[14800:16300:0522/143424:INFO:serviceManager.cpp(1523)] repository parse over
+[14800:16300:0522/143424:INFO:UIManager.cpp(372)] quilib:call set resouce path, path is c:\program files (x86)\iqiyi video\geeplayer\2.5.35.3301\skin
+[14800:16300:0522/143424:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[14800:16300:0522/143424:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[14800:16300:0522/143424:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[14800:16300:0522/143424:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[14800:16300:0522/143424:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[14800:16300:0522/143424:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[14800:16300:0522/143427:INFO:AppRunner.cpp(715)] loop exit geeplayer call main plugin DestoryPluginEntry
+[14800:16300:0522/143427:INFO:IPlugin.cpp(117)] real plugin mainPlugin call DestroyPlugin
+[14800:16300:0522/143427:INFO:IPlugin.cpp(374)] destruct plugin mainPlugin
+[14800:16300:0522/143427:INFO:serviceManager.cpp(1608)] mainPlugin plugin had destroy by DestructPlugin
+[14800:16300:0522/143427:INFO:serviceManager.cpp(2532)] DestructManager begin
+[14800:16300:0522/143427:INFO:IPlugin.cpp(374)] destruct plugin PluginServerStatePlugin
+[14800:16300:0522/143427:INFO:IPlugin.cpp(286)] real plugin PluginServerStatePlugin call DestroyPlugin
+[14800:16300:0522/143427:INFO:serviceManager.cpp(1608)] PluginServerStatePlugin plugin had destroy by DestructPlugin
+[14800:16300:0522/143427:INFO:serviceManager.cpp(2408)] DeleteLeftPlugins begin
+[14800:16300:0522/143427:INFO:serviceManager.cpp(2470)] DeleteLeftPlugins end
+[14800:16300:0522/143427:INFO:serviceManager.cpp(687)] mainprocessisrunning key is set as 0
+[14800:16300:0522/143427:INFO:AppRunner.cpp(730)] close mutex of process geeplayer
+[14800:16300:0522/143427:INFO:AppRunner.cpp(738)] run process geeplayer end
+[19692:22916:0522/143634:INFO:AppRunner.cpp(619)] Begin run process geeplayer
+[19692:22916:0522/143634:INFO:AppRunner.cpp(623)] ProductName is GeePlayer1
+[19692:22916:0522/143634:INFO:AppRunner.cpp(662)] apppluginbase version is 4.3.4.80
+[19692:22916:0522/143634:INFO:UIlib.cpp(192)] quilib: version is 4.3.4.78
+[19692:22916:0522/143634:INFO:serviceManager.cpp(687)] mainprocessisrunning key is set as 1
+[19692:22916:0522/143634:INFO:serviceManager.cpp(800)] create local service plugin PluginServerStatePlugin
+[19692:22916:0522/143634:INFO:serviceManager.cpp(857)] plugin PluginServerStatePlugin DoPluginInit
+[19692:22916:0522/143634:INFO:serviceManager.cpp(1523)] repository parse over
+[19692:22916:0522/143634:INFO:UIManager.cpp(372)] quilib:call set resouce path, path is c:\program files (x86)\iqiyi video\geeplayer\2.5.35.3301\skin
+[19692:22916:0522/143634:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[19692:22916:0522/143634:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[19692:22916:0522/143634:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[19692:22916:0522/143634:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[19692:22916:0522/143634:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[19692:22916:0522/143634:INFO:UIDlgBuilder.cpp(407)] quilib:create root control failed
+[19692:22916:0522/143636:INFO:AppRunner.cpp(715)] loop exit geeplayer call main plugin DestoryPluginEntry
+[19692:22916:0522/143636:INFO:IPlugin.cpp(117)] real plugin mainPlugin call DestroyPlugin
+[19692:22916:0522/143636:INFO:IPlugin.cpp(374)] destruct plugin mainPlugin
+[19692:22916:0522/143636:INFO:serviceManager.cpp(1608)] mainPlugin plugin had destroy by DestructPlugin
+[19692:22916:0522/143636:INFO:serviceManager.cpp(2532)] DestructManager begin
+[19692:22916:0522/143636:INFO:IPlugin.cpp(374)] destruct plugin PluginServerStatePlugin
+[19692:22916:0522/143636:INFO:IPlugin.cpp(286)] real plugin PluginServerStatePlugin call DestroyPlugin
+[19692:22916:0522/143636:INFO:serviceManager.cpp(1608)] PluginServerStatePlugin plugin had destroy by DestructPlugin
+[19692:22916:0522/143636:INFO:serviceManager.cpp(2408)] DeleteLeftPlugins begin
+[19692:22916:0522/143636:INFO:serviceManager.cpp(2470)] DeleteLeftPlugins end
+[19692:22916:0522/143636:INFO:serviceManager.cpp(687)] mainprocessisrunning key is set as 0
+[19692:22916:0522/143636:INFO:AppRunner.cpp(730)] close mutex of process geeplayer
+[19692:22916:0522/143636:INFO:AppRunner.cpp(738)] run process geeplayer end

二进制
分销商城/img/index/home.png


二进制
分销商城/img/index/home2.png


二进制
分销商城/img/index/indexBg.jpg


二进制
分销商城/img/index/indexlogo.png


二进制
分销商城/img/index/mes.png


二进制
分销商城/img/index/my.png


二进制
分销商城/img/index/my2.png


二进制
分销商城/img/index/order.png


二进制
分销商城/img/index/order2.png


二进制
分销商城/img/index/shop.png


二进制
分销商城/img/index/shop2.png


二进制
分销商城/img/index/shopYuan.png


二进制
分销商城/img/index/totalBtnBg.png


二进制
分销商城/img/index/whiteY.png


二进制
分销商城/img/login/LOGO.png


二进制
分销商城/img/login/YZMBG.png


二进制
分销商城/img/login/loginBtnBg.png


二进制
分销商城/img/login/logoBg.jpg


二进制
分销商城/img/login/pw.png


二进制
分销商城/img/login/remind.png


二进制
分销商城/img/login/un.png


二进制
分销商城/img/my/bg.png


二进制
分销商城/img/my/change.png


二进制
分销商城/img/my/del.png


二进制
分销商城/img/my/opinion.png


二进制
分销商城/img/my/set.png


+ 0 - 0
分销商城/img/my/upadte.png


部分文件因为文件数量过多而无法显示