<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="DingTalk_Setting_2.aspx.cs" Inherits="Book.Admin.DingTalk_Setting_2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


   <div class="alert">
       设置钉钉登录接口信息
   </div>
     <table class="layui-table table3  ">

         <tr>
             <th>
                 回调网址
             </th>

             <td>


                 
  <asp:TextBox runat="server" ID="txt_Login_Book_Login_URL" CssClass="layui-input"></asp:TextBox>

             <div style="font-size:12px"> 
               系统检测回调网址应该是 <asp:Label style="color:#ff0000;" runat="server" ID="lbl_return_url"></asp:Label>
           </div>
                
             </td>

         </tr>





          


         

 




           <tr> 
     
       <th  >
          授权Logo
       </th>

       <td>
           <div class="form-inline">
          <asp:TextBox runat="server" ID="txt_logo_img" ClientIDMode="Static" style="width:500px" CssClass="form-control"></asp:TextBox>
               &nbsp;&nbsp;
               <a href="###" id="pre" onclick="pre()">预览</a>

              <br /> 
 
               <div style="font-size:12px; margin:10px">
              请点击 “预览” 复制此图片URL，然后进入“钉钉开发平台-移动接入应用里-登录",找到登录应用，点击“编辑”，在授权Logo里，输入此图片的网址
           </div>
               
                 <br />   

            上传新Logo <asp:FileUpload runat="server" ID="f"  CssClass="form-control" style="display:inline-block"/>
                  <asp:Button runat="server" ID="btn_upload" Text="上传" CssClass="btn btn-danger btn-sm"  style="display:inline-block" OnClick="btn_upload_Click"/>


               </div>


       
       </td>

       </tr>



        
           <tr>
           <td colspan="2" align="center">

               <asp:button runat="server" ID="btn_save" Text="保存" CssClass="btn btn-primary" OnClick="btn_save_Click" />

           </td>
       </tr>


 



   </table>
    

    <script>

        function pre()
        {
            window.open($("#txt_logo_img").val().replace("~",".."));
        }
    </script>



</asp:Content>
