12-23-上传master
This commit is contained in:
1
public/CNAME
Normal file
1
public/CNAME
Normal file
@ -0,0 +1 @@
|
||||
preview.pro.ant.design
|
BIN
public/OfficeControl.cab
Normal file
BIN
public/OfficeControl.cab
Normal file
Binary file not shown.
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
public/home_bg.png
Normal file
BIN
public/home_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 KiB |
BIN
public/icons/icon-128x128.png
Normal file
BIN
public/icons/icon-128x128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
public/icons/icon-192x192.png
Normal file
BIN
public/icons/icon-192x192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
public/icons/icon-512x512.png
Normal file
BIN
public/icons/icon-512x512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
30
public/ntko.js
Normal file
30
public/ntko.js
Normal file
@ -0,0 +1,30 @@
|
||||
var ntko;//控件对象
|
||||
|
||||
//初始化去打开文档
|
||||
function init(cmd,code,type){
|
||||
ntko = document.getElementById("TANGER_OCX");
|
||||
if(window.navigator.platform=="Win64"){
|
||||
ntko.AddDocTypePlugin(".pdf","PDF.NtkoDocument","4.0.2.0","officecontrol/ntkooledocallx64.cab",51,true);
|
||||
}else{
|
||||
ntko.AddDocTypePlugin(".pdf","PDF.NtkoDocument","4.0.2.0","officecontrol/ntkooledocall.cab",51,true);//版增加对于PDF文件的支持
|
||||
}
|
||||
/* 新建 */
|
||||
if(type=="creat"){
|
||||
ntko.CreateNew("Word.Document");
|
||||
}else{//读取
|
||||
ntko.BeginOpenFromURL("/api/ebtp-mall-attachment/v1/download/"+code);//获取文件
|
||||
}
|
||||
if (cmd != "false"){
|
||||
ntko.SetReadOnly(true);//只读
|
||||
}else{
|
||||
ntko.SetReadOnly(false);//可编辑
|
||||
}
|
||||
|
||||
// ntko.RibbonBars=false;//打开就啥工具都没有
|
||||
// ntko.ToolBars=false;
|
||||
// alert("RibbonBars1"+ntko.RibbonBars)
|
||||
// alert("ToolBars1"+ntko.ToolBars)
|
||||
|
||||
}
|
||||
|
||||
|
175
public/ntkoStyle.css
Normal file
175
public/ntkoStyle.css
Normal file
@ -0,0 +1,175 @@
|
||||
body{
|
||||
text-align:center;
|
||||
font-family:"微软雅黑";
|
||||
letter-spacing:0.05em;
|
||||
color:#575757;
|
||||
font-size:16px;
|
||||
margin:0px;
|
||||
}
|
||||
a{
|
||||
text-decoration:none;
|
||||
cursor:pointer;
|
||||
color:#299ceb;
|
||||
}
|
||||
a:hover{
|
||||
text-decoration:underline;
|
||||
color:#c60000;
|
||||
}
|
||||
hr{
|
||||
border:0px;
|
||||
border-bottom:1px #b0b0b0 solid;
|
||||
margin:50px 0px 30px 0px;
|
||||
}
|
||||
p{
|
||||
text-align:left;
|
||||
line-height:1.6;
|
||||
text-indent:2em;
|
||||
}
|
||||
|
||||
.divTop{
|
||||
width:100%;
|
||||
height:70px;
|
||||
text-align:center;
|
||||
background-color:#000000;
|
||||
top:0;
|
||||
}
|
||||
.divTopInner{
|
||||
width:1200px;
|
||||
text-align:left;
|
||||
color:#ffffff;
|
||||
line-height:70px;
|
||||
margin:auto;
|
||||
}
|
||||
.divTopInnerCaption{
|
||||
width:1150px;
|
||||
font-size:20px;
|
||||
float:left;
|
||||
}
|
||||
.divTopInnerNtko{
|
||||
width:50px;
|
||||
font-size:14px;
|
||||
text-align:center;
|
||||
float:left;
|
||||
cursor:pointer;
|
||||
}
|
||||
.divTopInnerNtko:hover{
|
||||
background-color:#c60000;
|
||||
}
|
||||
.divTopInner a{
|
||||
color:#ffffff;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.divTitle{
|
||||
width:100%;
|
||||
height:80px;
|
||||
line-height:80px;
|
||||
border-bottom:1px #bababa solid;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
.divTitle_body{
|
||||
width:1200px;
|
||||
text-align:left;
|
||||
margin:auto;
|
||||
}
|
||||
.divTitle_caption{
|
||||
width:100%;
|
||||
float:left;
|
||||
color:#c60000;
|
||||
font-size:36px;
|
||||
font-weight:bold;
|
||||
|
||||
}
|
||||
.divTitle_caption_small{
|
||||
width:100%;
|
||||
float:left;
|
||||
color:#c60000;
|
||||
font-size:24px;
|
||||
font-weight:bold;
|
||||
height:50px;
|
||||
line-height:50px;
|
||||
}
|
||||
.divTitle_Information{
|
||||
width:100%;
|
||||
float:left;
|
||||
color:#999999;
|
||||
font-size:14px;
|
||||
height:auto;
|
||||
line-height:24px;
|
||||
margin:20px 0px 30px 0px;
|
||||
}
|
||||
.divTitle_Information_Left{
|
||||
width:40px;
|
||||
height:40px;
|
||||
line-height:40px;
|
||||
background-color:#ffde00;
|
||||
float:left;
|
||||
text-align:center;
|
||||
font-size:20px;
|
||||
font-weight:bolder;
|
||||
color:#ffffff;
|
||||
margin:auto 20px auto auto;
|
||||
}
|
||||
.divTitle_Information_Right{
|
||||
width:1140px;
|
||||
height:40px;
|
||||
line-height:40px;
|
||||
float:left;
|
||||
font-size:16px;
|
||||
}
|
||||
.divTitle_introduction{
|
||||
width:100%;
|
||||
float:left;
|
||||
color:#999999;
|
||||
font-size:14px;
|
||||
height:auto;
|
||||
line-height:24px;
|
||||
}
|
||||
|
||||
.divBody{
|
||||
width:1200px;
|
||||
margin:10px auto;
|
||||
text-align:left;
|
||||
}
|
||||
.divBody_Title{
|
||||
width:100%;
|
||||
height:40px;
|
||||
font-size:16px;
|
||||
margin:40px 0px 0px 0px;
|
||||
}
|
||||
.divBody_Title_Flag{
|
||||
width:5px;
|
||||
height:40px;
|
||||
font-size:16px;
|
||||
float:left;
|
||||
background-color:#a10000;
|
||||
margin:0px 20px 10px 0px;
|
||||
}
|
||||
.divBody_Table_Caption{
|
||||
width:1175px;
|
||||
height:40px;
|
||||
line-height:40px;
|
||||
font-size:24px;
|
||||
font-weight:bolder;
|
||||
color:#999999;
|
||||
float:left;
|
||||
}
|
||||
table{
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
}
|
||||
td{
|
||||
border:1px #e0e0e0 solid;
|
||||
height:60px;
|
||||
text-align:center;
|
||||
color:#999999;
|
||||
font-size:14px;
|
||||
padding:20px;
|
||||
}
|
||||
.divBody_Table_RowTitle{
|
||||
font-size:18px;
|
||||
font-weight:bolder;
|
||||
color:#ffffff;
|
||||
background-color:#e0e0e0;
|
||||
}
|
||||
|
209
public/ntkoofficecontrol.min.js
vendored
Normal file
209
public/ntkoofficecontrol.min.js
vendored
Normal file
@ -0,0 +1,209 @@
|
||||
/*------------------------------------------------------*/
|
||||
/* 修改控件的配置信息 */
|
||||
/* version:2.3.2 */
|
||||
/* 2020.07.10版本 跟随 招商银行股份有限公司20200730 产品发送 */
|
||||
/*------------------------------------------------------*/
|
||||
//64位控件的calssid
|
||||
var classidx64="A64E3073-2016-4baf-A89D-FFE1FAA10EE0";
|
||||
//32位控件的classid
|
||||
var classid="A64E3073-2016-4baf-A89D-FFE1FAA10EC0";
|
||||
//32位控件包的路径
|
||||
var codebase="officecontrol/OfficeControl.cab#version=6.0.1.0";
|
||||
//64位控件包的路径
|
||||
var codebase64="officecontrol/OfficeControlx64.cab#version=6.0.1.0";
|
||||
//设置高度
|
||||
var height="800px";
|
||||
//设置宽度
|
||||
var width="100%";
|
||||
//买断授权密钥如果不是买断可以不用写
|
||||
var MakerCaption="";
|
||||
//买断授权密钥如果不是买断可以不用写
|
||||
var MakerKey="";
|
||||
//密钥
|
||||
var ProductCaption="招商银行股份有限公司";
|
||||
//密钥
|
||||
var ProductKey="7918EAE64BDA2A26C0CA991C0CDC42BE59171DD2";
|
||||
//解除时间密钥
|
||||
var NoExpireKey="";
|
||||
|
||||
/*
|
||||
谷歌浏览器事件接管但此接管事件只支持低版本的谷歌(45以下版本不包含45)和火狐(52以下版本不包含52)
|
||||
*/
|
||||
function ntkosavetourl(type,code,html)
|
||||
{
|
||||
//alert("SaveToURL成功回调");
|
||||
}
|
||||
|
||||
|
||||
function ntkopublishashtml(type,code,html){
|
||||
//alert("Onpublishashtmltourl成功回调");
|
||||
}
|
||||
function ntkopublishaspdf(type,code,html){
|
||||
//alert("Onpublishaspdftourl成功回调");
|
||||
}
|
||||
function ntkosaveasotherurl(type,code,html){
|
||||
//alert("SaveAsOtherformattourl成功回调");
|
||||
}
|
||||
|
||||
function ntkoondocumentopened(type,code){
|
||||
//alert("Ondocumentopened成功回调");
|
||||
if(cmd==5){
|
||||
if(datavalue==1){
|
||||
ntko.ShowTipMessage("注意","已经接收到父页面传过来的值,请注意文档中内容的变化");
|
||||
ntkoDataToChild(datatext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*------------------------------------------------------*/
|
||||
/* 以下内容 请勿修改,否则可能出错 */
|
||||
/*------------------------------------------------------*/
|
||||
|
||||
var userAgent = navigator.userAgent,
|
||||
rMsie = /(msie\s|trident.*rv:)([\w.]+)/,
|
||||
rFirefox = /(firefox)\/([\w.]+)/,
|
||||
rOpera = /(opera).+version\/([\w.]+)/,
|
||||
rChrome = /(chrome)\/([\w.]+)/,
|
||||
rSafari = /version\/([\w.]+).*(safari)/;
|
||||
var browser;
|
||||
var version;
|
||||
var ua = userAgent.toLowerCase();
|
||||
function uaMatch(ua) {
|
||||
var match = rMsie.exec(ua);
|
||||
if (match != null) {
|
||||
return { browser : "IE", version : match[2] || "0" };
|
||||
}
|
||||
var match = rFirefox.exec(ua);
|
||||
if (match != null) {
|
||||
return { browser : match[1] || "", version : match[2] || "0" };
|
||||
}
|
||||
var match = rOpera.exec(ua);
|
||||
if (match != null) {
|
||||
return { browser : match[1] || "", version : match[2] || "0" };
|
||||
}
|
||||
var match = rChrome.exec(ua);
|
||||
if (match != null) {
|
||||
return { browser : match[1] || "", version : match[2] || "0" };
|
||||
}
|
||||
var match = rSafari.exec(ua);
|
||||
if (match != null) {
|
||||
return { browser : match[2] || "", version : match[1] || "0" };
|
||||
}
|
||||
if (match != null) {
|
||||
return { browser : "", version : "0" };
|
||||
}
|
||||
}
|
||||
var browserMatch = uaMatch(userAgent.toLowerCase());
|
||||
if (browserMatch.browser) {
|
||||
browser = browserMatch.browser;
|
||||
version = browserMatch.version;
|
||||
}
|
||||
|
||||
|
||||
if (browser=="IE"){
|
||||
if(window.navigator.platform=="Win32"){
|
||||
|
||||
document.write('<!-- 用来产生编辑状态的ActiveX控件的JS脚本--> ');
|
||||
document.write('<!-- 因为微软的ActiveX新机制,需要一个外部引入的js--> ');
|
||||
document.write('<object id="TANGER_OCX" classid="clsid:'+classid+'"');
|
||||
document.write('codebase="'+codebase+'" width="'+width+'" height="'+height+'"> ');
|
||||
document.write('<param name="MakerCaption" value="'+MakerCaption+'"> ');
|
||||
document.write('<param name="MakerKey" value="'+MakerKey+'"> ');
|
||||
document.write('<param name="ProductCaption" value="'+ProductCaption+'"> ');
|
||||
document.write('<param name="ProductKey" value="'+ProductKey+'"> ');
|
||||
document.write('<param name="NoExpireKey" value="'+NoExpireKey+'"> ');
|
||||
document.write('<param name="IsUseUTF8URL" value="-1"> ');
|
||||
document.write('<param name="IsUseUTF8Data" value="-1"> ');
|
||||
document.write('<param name="Caption" value="NTKO OFFICE文档控件示例演示 http://www.ntko.com"> ');
|
||||
document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。</SPAN> ');
|
||||
document.write('</object>');
|
||||
}
|
||||
if(window.navigator.platform=="Win64"){
|
||||
|
||||
document.write('<!-- 用来产生编辑状态的ActiveX控件的JS脚本--> ');
|
||||
document.write('<!-- 因为微软的ActiveX新机制,需要一个外部引入的js--> ');
|
||||
document.write('<object id="TANGER_OCX" classid="clsid:'+classidx64+'"');
|
||||
document.write('codebase="'+codebase64+'" width="'+width+'" height="'+height+'"> ');
|
||||
document.write('<param name="MakerCaption" value="'+MakerCaption+'"> ');
|
||||
document.write('<param name="MakerKey" value="'+MakerKey+'"> ');
|
||||
document.write('<param name="ProductCaption" value="'+ProductCaption+'"> ');
|
||||
document.write('<param name="ProductKey" value="'+ProductKey+'"> ');
|
||||
document.write('<param name="NoExpireKey" value="'+NoExpireKey+'"> ');
|
||||
document.write('<param name="IsUseUTF8URL" value="-1"> ');
|
||||
document.write('<param name="IsUseUTF8Data" value="-1"> ');
|
||||
document.write('<param name="Caption" value="NTKO OFFICE文档控件示例演示 http://www.ntko.com"> ');
|
||||
document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。</SPAN> ');
|
||||
document.write('</object>');
|
||||
}
|
||||
}
|
||||
else if (browser=="firefox"){
|
||||
document.write('<object id="TANGER_OCX" type="application/ntko-plug" codebase="'+codebase+'" width="'+width+'" height="'+height+'" ForOnSaveToURL="ntkosavetourl" ForOndocumentopened="ntkoondocumentopened"');
|
||||
document.write('ForOnpublishAshtmltourl="ntkopublishashtml"');
|
||||
document.write('ForOnpublishAspdftourl="ntkopublishaspdf"');
|
||||
document.write('ForOnSaveAsOtherFormatToUrl="ntkosaveasotherurl"');
|
||||
document.write('_MakerCaption="'+MakerCaption+'" ');
|
||||
document.write('_MakerKey="'+MakerKey+'" ');
|
||||
document.write('_ProductCaption="'+ProductCaption+'" ');
|
||||
document.write('_ProductKey="'+ProductKey+'" ');
|
||||
document.write('_NoExpireKey="'+NoExpireKey+'" ');
|
||||
document.write('clsid="{'+classid+'}" >');
|
||||
document.write('<SPAN STYLE="color:red">尚未安装NTKO Web FireFox跨浏览器插件</SPAN> ');
|
||||
document.write('</object> ');
|
||||
}else if(browser=="chrome"){
|
||||
document.write('<object id="TANGER_OCX" clsid="{'+classid+'}" ForOnSaveToURL="ntkosavetourl" ForOndocumentopened="ntkoondocumentopened"');
|
||||
document.write('ForOnpublishAshtmltourl="ntkopublishashtml"');
|
||||
document.write('ForOnpublishAspdftourl="ntkopublishaspdf"');
|
||||
document.write('ForOnSaveAsOtherFormatToUrl="ntkosaveasotherurl"');
|
||||
document.write('_IsUseUTF8URL="-1" ');
|
||||
document.write('_IsUseUTF8Data="-1" ');
|
||||
document.write('_MakerCaption="'+MakerCaption+'" ');
|
||||
document.write('_MakerKey="'+MakerKey+'" ');
|
||||
document.write('_ProductCaption="'+ProductCaption+'" ');
|
||||
document.write('_NoExpireKey="'+NoExpireKey+'" ');
|
||||
document.write('_ProductKey="'+ProductKey+'" ');
|
||||
document.write('codebase="'+codebase+'" width="'+width+'" height="'+height+'" type="application/ntko-plug" ');
|
||||
document.write('<SPAN STYLE="color:red">尚未安装NTKO Web Chrome跨浏览器插件</SPAN> ');
|
||||
document.write('</object>');
|
||||
}else if (Sys.opera){
|
||||
alert("sorry,ntko web印章暂时不支持opera!");
|
||||
}else if (Sys.safari){
|
||||
alert("sorry,ntko web印章暂时不支持safari!");
|
||||
}
|
||||
window.onunload =function(){
|
||||
var ntkojb= ntkoBrowser.NtkoJudgingBrowsers();
|
||||
if(ntkojb){
|
||||
window.opener.ntkoCloseEvent();
|
||||
}
|
||||
}
|
||||
|
||||
//ie,谷歌,火狐传值
|
||||
var ntkoBrowser={
|
||||
ntkoSetReturnValueToParentPage:function(data1,text1){
|
||||
var ntkojb= ntkoBrowser.NtkoJudgingBrowsers();
|
||||
if(ntkojb){
|
||||
window.opener.ieattachEventntko(data1,text1);
|
||||
}else{
|
||||
window.external.SetReturnValueToParentPage(data1,text1);
|
||||
}
|
||||
},
|
||||
NtkoJudgingBrowsers:function(){
|
||||
try{
|
||||
var ntkobtop=window.opener.top.browser;
|
||||
return true;
|
||||
}catch(err){
|
||||
return false;
|
||||
}
|
||||
},
|
||||
}
|
||||
//触发父页面传值的功能
|
||||
var NtkoUrlTest = window.location.href;
|
||||
|
||||
if(NtkoUrlTest!=null&&NtkoUrlTest!=""){
|
||||
var ntkoarry=new Array();
|
||||
ntkoarry.push(NtkoUrlTest);
|
||||
ntkoBrowser.ntkoSetReturnValueToParentPage("ntkoSendDataToChildtext",ntkoarry);
|
||||
}
|
||||
|
5
public/pro_icon.svg
Normal file
5
public/pro_icon.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg width="42" height="42" xmlns="http://www.w3.org/2000/svg">
|
||||
<g>
|
||||
<path fill="#070707" d="m6.717392,13.773912l5.6,0c2.8,0 4.7,1.9 4.7,4.7c0,2.8 -2,4.7 -4.9,4.7l-2.5,0l0,4.3l-2.9,0l0,-13.7zm2.9,2.2l0,4.9l1.9,0c1.6,0 2.6,-0.9 2.6,-2.4c0,-1.6 -0.9,-2.4 -2.6,-2.4l-1.9,0l0,-0.1zm8.9,11.5l2.7,0l0,-5.7c0,-1.4 0.8,-2.3 2.2,-2.3c0.4,0 0.8,0.1 1,0.2l0,-2.4c-0.2,-0.1 -0.5,-0.1 -0.8,-0.1c-1.2,0 -2.1,0.7 -2.4,2l-0.1,0l0,-1.9l-2.7,0l0,10.2l0.1,0zm11.7,0.1c-3.1,0 -5,-2 -5,-5.3c0,-3.3 2,-5.3 5,-5.3s5,2 5,5.3c0,3.4 -1.9,5.3 -5,5.3zm0,-2.1c1.4,0 2.2,-1.1 2.2,-3.2c0,-2 -0.8,-3.2 -2.2,-3.2c-1.4,0 -2.2,1.2 -2.2,3.2c0,2.1 0.8,3.2 2.2,3.2z" class="st0" id="Ant-Design-Pro"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 677 B |
120
public/weboffice.html
Normal file
120
public/weboffice.html
Normal file
@ -0,0 +1,120 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta content="IE=10" http-equiv="X-UA-Compatible" />
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<title>首页 - OFFICE文档控件演示示例</title>
|
||||
<link href="./ntkoStyle.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="./ntko.js"></script>
|
||||
<script type="text/javascript">
|
||||
var cmd; //命令类型
|
||||
var datatext;
|
||||
var datavalue;
|
||||
function getQueryString(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (r != null) return unescape(r[2]);
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
function CurentTime() {
|
||||
var now = new Date();
|
||||
|
||||
var year = now.getFullYear(); //年
|
||||
var month = now.getMonth() + 1; //月
|
||||
var day = now.getDate(); //日
|
||||
|
||||
var hh = now.getHours(); //时
|
||||
var mm = now.getMinutes(); //分
|
||||
var ss = now.getSeconds(); //分
|
||||
|
||||
var clock = year + "-";
|
||||
|
||||
if(month < 10)
|
||||
clock += "0";
|
||||
|
||||
clock += month + "-";
|
||||
|
||||
if(day < 10)
|
||||
clock += "0";
|
||||
|
||||
clock += day + " ";
|
||||
|
||||
if(hh < 10)
|
||||
clock += "0";
|
||||
|
||||
clock += hh + ":";
|
||||
if (mm < 10) clock += '0';
|
||||
clock += mm + ":";
|
||||
if (ss < 10) clock += '0';
|
||||
clock += ss;
|
||||
return(clock);
|
||||
}
|
||||
|
||||
//在子页面定义的向父页面回传值的方法,方法名可以自定义
|
||||
function ntkoSendDataToParentPage()
|
||||
{
|
||||
var varData = new Array();
|
||||
varData.push(ntko.docsize);
|
||||
varData.push(CurentTime());
|
||||
ntkoBrowser.ntkoSetReturnValueToParentPage("OnData","dddd");
|
||||
}
|
||||
function ntkoDataToChild(data){
|
||||
ntko.SetBookmarkValue("ntko",data);
|
||||
var ntkoc= ntko.ActiveDocument.bookMarks.count;
|
||||
for(var i=1;i<=ntkoc;i++){
|
||||
var ntkoname= ntko.ActiveDocument.bookMarks.item(i).name;
|
||||
if(ntkoname=="ntko"){
|
||||
ntko.ActiveDocument.bookMarks.item(i).select();
|
||||
ntko.ActiveDocument.Application.Selection.Font.Color=255;
|
||||
ntko.ActiveDocument.Application.Selection.Font.Bold=9999998;
|
||||
ntko.ActiveDocument.Application.Selection.Font.Size = 16;
|
||||
}
|
||||
}
|
||||
}
|
||||
function ntkoGetParentData(data){//该方法用于接收父页面传递的值
|
||||
if(data=="Save"){
|
||||
/*url&文件类型(file)&其它参数&文件名&其它 */
|
||||
var msg=ntko.SaveToURL("/api/ebtp-mall-attachment/v1/upload","file","businessId="+code+"&file="+code,code+".doc","");
|
||||
if(JSON.parse(msg).success){
|
||||
ntkoBrowser.ntkoSetReturnValueToParentPage("OnData","success");
|
||||
} else{
|
||||
ntkoBrowser.ntkoSetReturnValueToParentPage("OnData","error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
function ntkocloseparentpage(){
|
||||
ntkoGetParentData();
|
||||
ntkoSendDataToParentPage();
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
|
||||
<body onload="cmd=getQueryString('cmd');code=getQueryString('code');type=getQueryString('type');init(cmd,code,type);" onbeforeunload="ntkocloseparentpage()">
|
||||
<script language="JScript" for="TANGER_OCX" event="OnCustomButtonOnMenuCmd(btnPos,btnCaption,btnCmdid)">
|
||||
|
||||
</script>
|
||||
<script language="JScript" for="TANGER_OCX" event="AfterOpenFromURL(doc, statusCode)">
|
||||
</script>
|
||||
<script type="text/javascript" for="TANGER_OCX" event="OnDocumentOpened(File, Document)" >
|
||||
<div class="divTopInnerNtko">
|
||||
<a href="http://www.ntko.com" title="点击访问NTKO官网">官网</a>
|
||||
</div>
|
||||
</script>
|
||||
<div class="divTop">
|
||||
<div class="divTopInner">
|
||||
<div class="divTopInnerCaption">商城3.0</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divBody">
|
||||
<script type="text/javascript" src="./ntkoofficecontrol.min.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user