dhz
2022-06-22 4d198cd78684d17c849b0bd7d323894009ca17f5
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>账户信息</title>
[#include "/business/pages/include/static.html" /]
<script type="text/javascript" src="${common_static}/static/plugins/webupload/webuploader.js"></script> 
<link rel="stylesheet" type="text/css" href="${common_static}/static/plugins/webupload/webuploader.css"/>
</head>
<body class="fullscreen">
[#include "/business/pages/include/header.html" /]
[#assign label = GnConstants.LCGL]
[#include "/business/pages/include/gps.html" /]
 
<div class="license-box">[#if warn??&&warn=="1"]<div class="license-ts">温馨提示:您的license快要到期,请及时上传新的license!</div>[/#if]
 
<table class="license-table">
  <tbody>
    <tr>
      <td class="nam">公司名称:</td>
      <td>${Constants.company_name}</td>
    </tr>
    <tr>
      <td class="nam">使用期限:</td>
      <td>${DateUtil.format("yyyy-MM-dd",partnerInfo.VALID_BEGIN_DATE)}&nbsp;&nbsp;至&nbsp;&nbsp;${DateUtil.format("yyyy-MM-dd",partnerInfo.VALID_END_DATE)}</td>
    </tr>
    <tr>
      <td class="nam">开通时间:</td>
      <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",partnerInfo.CREATE_TIME)}</td>
    </tr>
     <tr class="zcm">
      <td class="nam">注 册 码:</td>
      <td><textarea id="con" class="license-textarea" readonly>${encryptCode}</textarea>
      <div class="license-fz"><span class="licensePop">OK, 复制成功!<em></em></span><input type="button" value="复制" class="buttom-fz"/></div></td>
    </tr>
    <tr>
      <td class="nam">上传日期:</td>
      <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",partnerInfo.LC_UP_TIME)}</td>
    </tr>
  </tbody>
</table>
<div id="btn" class="licensi-buttom2">上传license</div>
 
</div>
 
[#include "/business/pages/include/footer.html" /]
 
<script type="text/javascript">
$(function(){
    
    $(function(){
        //正确文字提示
        $('.buttom-fz').click(function(){
            var Url2=document.getElementById("con");
            Url2.select(); // 选择对象
            document.execCommand("Copy"); // 执行浏览器复制命令
            $(".licensePop").show().delay(1200).fadeOut();
        });
        
        //文件上传
        var uploader = WebUploader.create({
            swf : '${common_static}/static/plugins/webupload/Uploader.swf', // swf文件路径
            server : '${base}/business/importLicense.html',// 文件接收服务端。
            pick : {
                id : "#btn",
                multiple : false
            },
            
            fileSizeLimit : 52428800, //总文件大小限制
            auto : true,//是否自动上传
            resize : false// 不压缩image
        });
        
        //上传成功,回显地址和文件名
        uploader.on( 'uploadSuccess', function( file , response ) {
            popupTips("上传成功");
        });
 
        //上传错误
        uploader.on( 'uploadError', function( file , reason ) {
            popupTips('上传失败');
        });
        
    })    
})    
</script>
 
</body>
</html>