Commit f2b1862a authored by 上官's avatar 上官

调整

parent 9eddba02
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<button class="bg" type="button" style="width: 100%;height: 50px" class="mui-btn mui-btn-blue mui-btn-outlined">{{itemdef}}</button> <button class="bg" type="button" style="width: 100%;height: 50px" class="mui-btn mui-btn-blue mui-btn-outlined">{{itemdef}}</button>
</td> </td>
<td class="altrowstable" style=" height: 50px" v-for="itemd,isize in itemsSize"> <td class="altrowstable" style=" height: 50px" v-for="itemd,isize in itemsSize">
<button class="bg" :style="stylebg(isize)" style="width: 100%;height: 50px; border:0px ;" type="button" class="mui-btn mui-btn-blue mui-btn-outlined" <button class="bg" :style="stylebg(itemd)" style="width: 100%;height: 50px; border:0px ;" type="button" class="mui-btn mui-btn-blue mui-btn-outlined"
@click="selectSize(itemd)">{{itemd}}</button> @click="selectSize(itemd)">{{itemd}}</button>
</td> </td>
...@@ -205,7 +205,8 @@ ...@@ -205,7 +205,8 @@
}); });
function initPage() { function initPage() {
plus.screen.lockOrientation("landscape-secondary") //横屏 // plus.screen.lockOrientation("landscape-secondary") //横屏
plus.screen.lockOrientation("landscape-primary") //横屏
app.init(); app.init();
} }
...@@ -249,7 +250,8 @@ ...@@ -249,7 +250,8 @@
itemsSize: [], itemsSize: [],
SizeQty: [], SizeQty: [],
itemsSizeDef: [40, 41, 42, 43, 44, 45, 46], itemsSizeDef: [40, 41, 42, 43, 44, 45, 46],
type : 1,
parentSize:0,
IndexID: 0, IndexID: 0,
disable_save_button: 'disabled', disable_save_button: 'disabled',
disable_reportDelete: 'disabled', disable_reportDelete: 'disabled',
...@@ -299,8 +301,10 @@ ...@@ -299,8 +301,10 @@
this.itemsDetail = mui.currentWebview.itemsDetail; this.itemsDetail = mui.currentWebview.itemsDetail;
this.itemsSize = mui.currentWebview.itemsSize; this.itemsSize = mui.currentWebview.itemsSize;
this.type = mui.currentWebview.type;
this.parentSize = mui.currentWebview.parentSize;
console.log("this.type:::" + this.type)
console.log("this.parentSize:::" + this.parentSize)
this.getDataInit(); this.getDataInit();
}, },
...@@ -660,14 +664,20 @@ ...@@ -660,14 +664,20 @@
}, },
stylebg: function(n) { stylebg: function(k) {
if(this.type ==1){
// if (n == 0) { return
// return { }
// "background": "#02C1ED" else if(this.type ==2) {
// if (k == this.parentSize) {
// } this.size=this.parentSize
// } return {
"background": "#02C1ED"
}
}
}
}, },
......
This diff is collapsed.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SOP</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link href="../dest/css/mui.min.css" rel="stylesheet" />
</head>
<body style="margin: 0; padding: 0; width: 100px;">
<div id="app">
<header @click="backaction" class="mui-bar mui-bar-nav " style="width: 150px !important; background: #DCDCE1; position: relative;left: 810px; " >
<button class="mui-icon mui-icon-arrowleft mui-btn-outlined ;" style=" border: 0px; padding: 0; width: 50px; height: 100%; color: #007AFF;"
> </button>
<!-- <a class="mui-icon mui-icon-left-nav mui-pull-left" onclick="mui.back()"></a> -->
<h1 class="mui-title" >返回</h1>
</header>
<div class=" mui-fullscreen" >
<iframe style=" border-width: 0; "
:src="link"
width="100%" height="571"></iframe>
</div>
</div>
<script src="../dest/js/mui.min.js"></script>
<script src="../dest/js/public.min.js"></script>
<script src="../dest/js/vue.min.js"></script>
<script type="text/javascript">
mui.plusReady(function() {
initPage();
});
function initPage() {
app.init();
}
var app = new Vue({
el: '#app',
data:{
item:1,
style:"",
ReportType:0,
link:""
},
computed:{
// link:function(){
//
// }
},
methods: {
init:function(){
console.log("init")
this.style = mui.currentWebview.style
this.ReportType = mui.currentWebview.ReportType
this.link = mui.currentWebview.link
console.log("this.style::" + this.style)
console.log("this.link::" + this.link)
},
backaction:function(){
console.log('ddddd');
mui.openWindow({
url: 'Needlecarreport_new.html',
id: 'Needlecarreport_new.html',
});
},
}
})
</script>
</body>
</html>
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