<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default1.aspx.cs" Inherits="eFrameWork.DDing._Default1" %>
<!DOCTYPE html>
<html>
<head>
    <title><%= EKETEAM.FrameWork.eConfig.systemName() %></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<link href="../Plugins/eLogin/default/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />
<script src="../Scripts/eketeam.js?ver=<%=Common.Version %>"></script>    
<script src="http://g.alicdn.com/ilw/ding/0.7.5/scripts/dingtalk.js"></script>
<body>
<%if( Request.QueryString["code"]==null){ %>
<script>
    dd.ready(function () {
        dd.runtime.permission.requestAuthCode({
            corpId: "ding15c5686c7298b719f2c783f7214b6d69",
            onSuccess: function (result) {
                var code = result.code;
                //alert(code);
                //将code 发往后台处理
                //document.location.assign("?code=" + code);
            },
            onFail: function (err) {
                //alert(JSON.stringify(err));
            }
        });

    });
</script>
<%} %>
</body>
</html>