Commit 3011faa4 authored by 王文琼's avatar 王文琼

c测试发布软件更新

parent afa3ff4f
...@@ -54,14 +54,14 @@ var minepage_style = { ...@@ -54,14 +54,14 @@ var minepage_style = {
// 下载wgt文件 // 下载wgt文件
var wgtUrl="http://11wangjp.oss-cn-shanghai.aliyuncs.com/ftt_mes/ftt_mes_hot.wgt"; var wgtUrl="http://11wangjp.oss-cn-shanghai.aliyuncs.com/ftt_mes/ftt_mes_hot.wgt";
function downWgtHot(){ function downWgtHot(){
plus.nativeUI.showWaiting("下载wgt文件..."); plus.nativeUI.showWaiting("下载补丁文件...");
plus.downloader.createDownload( wgtUrl, {filename:"_doc/update/"}, function(d,status){ plus.downloader.createDownload( wgtUrl, {filename:"_doc/update/"}, function(d,status){
if ( status == 200 ) { if ( status == 200 ) {
console.log("下载wgt成功:"+d.filename); console.log("下载补丁成功:"+d.filename);
installWgtHOt(d.filename); // 安装wgt包 installWgtHOt(d.filename); // 安装wgt包
} else { } else {
console.log("下载wgt失败!"); console.log("下载补丁失败!");
plus.nativeUI.alert("下载wgt失败!"); plus.nativeUI.alert("下载补丁失败!");
} }
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
}).start(); }).start();
......
...@@ -196,16 +196,14 @@ var app = new Vue({ ...@@ -196,16 +196,14 @@ var app = new Vue({
}); });
mui('#progress .mui-text-center').each(function() { mui('#progress .mui-text-center').each(function() {
//console.log(this.getAttribute("data-progress")); //console.log(this.getAttribute("data-progress"));
mui(this).progressbar({progress:this.getAttribute("data-progress")}).show() mui(this).progressbar({progress:this.getAttribute("data-progress")}).show();
}) })
mui(".mui-icon-clear")[0].addEventListener('tap', function() { mui(".mui-icon-clear")[0].addEventListener('tap', function() {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
app.searchText = ''; app.searchText = '';
app.getData(); app.getData();
//console.log('1111'); //console.log('1111');
}); });
setTimeout(function() { setTimeout(function() {
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
...@@ -220,7 +218,6 @@ var app = new Vue({ ...@@ -220,7 +218,6 @@ var app = new Vue({
this.today = this.dateTime; this.today = this.dateTime;
this.getData(); this.getData();
}, },
getData: function() { getData: function() {
var that = this; var that = this;
this.createZhezhao(-1) this.createZhezhao(-1)
...@@ -232,7 +229,7 @@ var app = new Vue({ ...@@ -232,7 +229,7 @@ var app = new Vue({
that.cur = 0; that.cur = 0;
Api.post('/api/vMES/CutOffProductionReport/ToDo', para, function(e) { Api.post('/api/vMES/CutOffProductionReport/ToDo', para, function(e) {
//console.log("one :::;" +JSON.stringify(e.items.length)) //console.log("one :::;" +JSON.stringify(e.items.length))
console.log("完成进度:" + JSON.stringify(e.items[0].CompleteRatio)) console.log("getData:" + JSON.stringify(e.items))
//console.log("点击之前"+JSON.stringify(that.rightInfor)) //console.log("点击之前"+JSON.stringify(that.rightInfor))
if (e.items.length > 0) { if (e.items.length > 0) {
that.itemsHead = e.items; that.itemsHead = e.items;
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
// 从设置那边调用 ,不检查"跳过此版本",如果没有新版本,也要跳出来提示框 // 从设置那边调用 ,不检查"跳过此版本",如果没有新版本,也要跳出来提示框
var is_invoke_from_setting = false; var is_invoke_from_setting = false;
/** /**
* 创建升级目录 * 创建升级目录
*/ */
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<link href="../dest/css/mui.min.css" rel="stylesheet" /> <link href="../dest/css/mui.min.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../dest/css/mui.picker.min.css" /> <link rel="stylesheet" type="text/css" href="../dest/css/mui.picker.min.css" />
<link rel="stylesheet" type="text/css" href="../dest/css/Cutting.css" /> <link rel="stylesheet" type="text/css" href="../dest/css/Cutting.css" />
</head> </head>
<body> <body>
<div id="app" style=" display:block" v-cloak> <div id="app" style=" display:block" v-cloak>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
</style> </style>
</head> </head>
<body> <body>
<script src="dest/js/mui.min.js" ></script> <script src="dest/js/mui.min.js" ></script>
<script src="dest/js/update.min.js"></script> <script src="dest/js/update.min.js"></script>
<script src="dest/js/app.min.js" ></script> <script src="dest/js/app.min.js" ></script>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"id" : "H544710A8", /*应用的标识,创建应用时自动生成,勿手动修改*/ "id" : "H544710A8", /*应用的标识,创建应用时自动生成,勿手动修改*/
"name" : "飞天兔MES", /*应用名称,程序桌面图标名称*/ "name" : "飞天兔MES", /*应用名称,程序桌面图标名称*/
"version" : { "version" : {
"name" : "1.0.0.84", /*应用版本名称*/ "name" : "1.0.0.90", /*应用版本名称*/
"code" : 338 "code" : 338
}, },
"description" : "飞天兔MES平板版", /*应用描述信息*/ "description" : "飞天兔MES平板版", /*应用描述信息*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment