You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.5 KiB
103 lines
2.5 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
||
|
<title>行业资讯</title>
|
||
|
<!--REM自适应布局JS-->
|
||
|
<link rel="stylesheet" type="text/css" href="../../../lib/css/mui.min.css">
|
||
|
<link rel="stylesheet" type="text/css" href="../../../lib/css/basic.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../../css/base.css" />
|
||
|
<script src="../../../lib/js/mui.min.js"></script>
|
||
|
<script src="../../../lib/js/vue.js"></script>
|
||
|
<script src="../../../lib/js/app.js"></script>
|
||
|
<script src="../../js/base/rem-layout.js"></script>
|
||
|
<script type="text/javascript" src="../../js/my/my_ajax.js"></script>
|
||
|
<script src="../../../lib/js/require2.1.11.js"></script>
|
||
|
</head>
|
||
|
<style>
|
||
|
body,
|
||
|
html {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.mui-content {
|
||
|
padding-top: 1rem !important;
|
||
|
}
|
||
|
|
||
|
.infor-new {
|
||
|
padding: 0.5rem 0.5rem;
|
||
|
}
|
||
|
|
||
|
.infor-title {
|
||
|
/*font-size: .31rem;*/
|
||
|
color: #999;
|
||
|
line-height: 1.5em;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<body>
|
||
|
<div id="industry-information">
|
||
|
<header class="mui-bar mui-bar-nav app-header app-header-darkly">
|
||
|
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
||
|
<h1 class="mui-title">{{newsInfor.title}}</h1>
|
||
|
</header>
|
||
|
|
||
|
<div class="mui-content">
|
||
|
<div class="infor-new">
|
||
|
<div class="infor-title" v-html="newsInfor.details">
|
||
|
<!--{{newsInfor.details}}-->
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</html>
|
||
|
|
||
|
<script>
|
||
|
var dataInfo = new Vue({
|
||
|
el: "#industry-information",
|
||
|
data: {
|
||
|
id: '',
|
||
|
newsInfor: {}
|
||
|
}
|
||
|
})
|
||
|
|
||
|
mui.plusReady(function() {
|
||
|
var self = plus.webview.currentWebview();
|
||
|
dataInfo.id = self._id; //获得参数
|
||
|
// console.log(dataInfo.id)
|
||
|
getInforId();
|
||
|
});
|
||
|
</script>
|
||
|
<script>
|
||
|
function getInforId() {
|
||
|
mui.ajax(myAjaxJs.AJAX_STSTEM_NOTICE_E.getUrl, {
|
||
|
headers: {
|
||
|
"locale": app.getLanguageLocalStorage() // 语种头部
|
||
|
|
||
|
},
|
||
|
type: myAjaxJs.AJAX_STSTEM_NOTICE_E.getType, //HTTP请求类型
|
||
|
dataType: 'json', //服务器返回json格式数据
|
||
|
timeout: 10000, //超时时间设置为10秒;
|
||
|
success: function(data) {
|
||
|
if(data.code == 200) {
|
||
|
// console.log(JSON.stringify(data.data.rows))
|
||
|
for(var i = 0; i < data.data.rows.length; i++) {
|
||
|
if(dataInfo.id == data.data.rows[i].id) {
|
||
|
dataInfo.id = '';
|
||
|
dataInfo.newsInfor = data.data.rows[i]
|
||
|
console.log(JSON.stringify(dataInfo.newsInfor))
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
}
|
||
|
</script>
|