WIDGET-WFL-MESSAGE.lview 5.29 KB
Newer Older
niminmin's avatar
niminmin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
<?xml version="1.0" encoding="UTF-8"?>

<!--
    @auth:Think
    @version: 1.0
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure/>
    <a:view template="default" package="leaf.ui.std">
        <!--<meta name="_csrf" content="${/session/@_csrf.token}"/>-->
        <!--<meta name="_csrf_header" content="X-CSRF-TOKEN" />-->
        <style>
            html, body {
                width: 264px;
                height: 72px;
                margin: 0;
                padding: 0;
            }

            .widget-wfl-message {
                width: 264px;
                height: 72px;
                background: #FFFFFF;
                border: 1px solid #F0F0F3;
            }

            .widget-wfl-message div {
            / / border: 1 px solid red;
            }

            .widget-wfl-message .wfl-message-img {
                float: left;
                height: 100%;
                width: 53px;
            }

            .widget-wfl-message .wfl-message-img .img-content {
                width: 34px;
                border-top: 4px solid #FF8665;
                margin-left: 19px;
                height: 100%;

            }

            .widget-wfl-message .wfl-message-img .img-content img {
                width: 34px;
                margin-top: 12px;

            }

            .widget-wfl-message span {
            / / font-family: PingFangSC-Regular;
                font-size: 12px;
                color: rgba(75, 80, 90, 0.85);
                letter-spacing: 0;
                text-align: center;
            }

            .widget-wfl-message .wfl-message-count {
                margin-left: 30px;
                height: 100%;
                float: left;
                text-align: center;
                cursor: pointer;
            }

            .widget-wfl-message .wfl-message-count span {
                display: inline-block;
                float: left;
                text-align: center;
                margin-top: 28px;
            }

            .widget-wfl-message .wfl-message-count #widget-message-count {
                font-size: 16px;
                color: #FF8665;
                margin-top: 25px;
            }

            .widget-wfl-message .wfl-message-border {
                float: left;
                margin-left: 16px;
                height: 16px;
                width: 1px;
                background: rgba(75, 80, 90, 0.10);
                margin-top: 28px;
            }

            .widget-wfl-message .wfl-count {
                margin-left: 30px;
                height: 100%;
                float: left;
                text-align: center;
                cursor:pointer;
            }

            .widget-wfl-message .wfl-count span {
                display: inline-block;
                float: left;
                text-align: center;
                margin-top: 28px;
            }

            .widget-wfl-message .wfl-count #widget-wfl-count {
                font-size: 16px;
                color: #FF8665;
                margin-top: 25px;
            }

        </style>
        <script><![CDATA[

        function onLoad_sdic_wfl_to_do_list_count_ds(ds){
            var todo_count = ds.getAt(0).get("list_count");
            document.getElementById('widget-wfl-count').innerHTML = todo_count;

        }
        function onLoad_sys_notice_msg_count_ds(ds){
            var notice_msg_count = ds.getAt(0).get("list_count");
            document.getElementById('widget-message-count').innerHTML = notice_msg_count;
        }

        ]]></script>
        <a:dataSets>
            <a:dataSet id="sdic_wfl_to_do_list_count_ds" autoQuery="true" model="zjwfl.ZJWFL5110.sdic_wfl_to_do_list_count">
                <a:fields>
                    <a:field name="list_count"/>
                </a:fields>
                <a:events>
                    <a:event name="load" handler="onLoad_sdic_wfl_to_do_list_count_ds"/>
                </a:events>
            </a:dataSet>
            <a:dataSet id="sys_notice_msg_count_ds" autoQuery="true" model="sys.SYS100.sys_notice_msg_count">
                <a:fields>
                    <a:field name="list_count"/>
                </a:fields>
                <a:events>
                    <a:event name="load" handler="onLoad_sys_notice_msg_count_ds"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>

        <div class="widget-wfl-message">
            <div class="wfl-message-img">
                <div class="img-content">
                    <img src="${/request/@context_path}/leafresource/images/home_page/calendar-attention@2x.png"/>

                </div>
            </div>
            <div class="wfl-message-count" onclick="top.mainJumpCode('SYS100',true)">
                <span id="widget-message-count" style="">${/model/notice_msg_count/record/@list_count}</span>
                <span style="margin-left: 14px">通知</span>
            </div>
            <div class="wfl-message-border"></div>
            <div class="wfl-count" onclick="top.mainJumpCode('ZJWFL5110',true)">
                <span id="widget-wfl-count" style="">${/model/widget_to_do_list_count/record/@list_count}</span>
                <span style="margin-left: 14px">待办</span>
            </div>
        </div>
        <a:screenBody style="display:none"></a:screenBody>
    </a:view>
</a:screen>