|
- <!doctype html>
- <html>
-
- <head>
- <meta charset="UTF-8">
- <title>专业介绍</title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link href="css/mui.min.css" rel="stylesheet" />
- <link href="css/style.css" rel="stylesheet" />
- <style>
- .mui-table-view {
- margin-top: 10px;
- }
-
- .span1 {
- color: deepskyblue;
- margin: 10px;
- line-height: 38px;
- }
-
- .span2 {
- color: #c70f1a;
- font-size: 13px;
- line-height: 24px;
- }
-
- .span3 {
- color: #0193df;
- margin: 10px;
- line-height: 38px;
- }
-
- .mui-ellipsis {
- color: #000000;
- line-height: 26px;
- word-wrap: break-all;
- }
-
- .mui-content-padded {
- margin-top: 10px;
- text-align: center;
- }
-
- .mui-content {
- background-color: #FFFFFF;
- }
-
- .mui-content {
- width: 100%;
- height: 40px;
- }
-
- .mui-media-body img {
- width: 100%;
- max-height: 200px;
- }
-
- .mui-btn-blue {
- background-color: #0193DF;
- border: #0193DF;
- font-size: 12px;
- float: right;
- }
-
- .span3 img {
- width: 6px;
- height: 15px;
- margin-right: 10px;
- }
-
- .inst {
- font-size: 14px;
- line-height: 26px;
- }
- </style>
- </head>
-
- <body>
-
- <header class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title">专业介绍</h1>
- </header>
- <div class="mui-content">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell mui-media">
- <a>
- <div class="mui-media-body" id="pimage">
- </div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media">
- <a>
- <div class="mui-media-body">
- <p class='mui-ellipsis' id="schoolname">
- </p>
- <p class='mui-ellipsis' id="pObject"></p>
- <p class='mui-ellipsis' id="developLevel"></p>
- <span class="span4">咨询电话:400-712-136</span>
- </div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media">
- <a>
- <div class="mui-media-body">
- <span class="span3"><img src="images/gg_02.png">获取证书</span>
- </div>
- </a>
- <div class='inst' id="zhengshu"></div>
- </li>
- <li class="mui-table-view-cell mui-media">
- <a href="javascript:;">
- <div class="mui-media-body">
- <span class="span3"><img src="images/gg_02.png">培养目标</span>
- </div>
- </a>
- <div class='inst' id="developTarget"></div>
- </li>
- <li class="mui-table-view-cell mui-media">
- <a>
- <div class="mui-media-body">
- <span class="span3"><img src="images/gg_02.png">专业介绍</span>
- </div>
- </a>
- <div class='inst' id="introduce"></div>
- </li>
- </ul>
- </div>
- </body>
- <script src="js/mui.min.js "></script>
- <script src="js/serverurl.js"></script>
- <script src="js/userinfos.js"></script>
- <script type="text/javascript">
- mui.plusReady(function() {
- CheckLogin();
- var departID = plus.webview.currentWebview().departID;
- GetData(departID);
- });
-
- function Baoming() {
- var departID = plus.webview.currentWebview().departID;
- mui.openWindow({
- url: 'bm.html',
- id: 'bm',
- show: {
- aniShow: 'pop-in'
- },
- extras: {
- departID: departID
- }
- });
- }
-
- function GetData(departID) {
- plus.nativeUI.showWaiting('正在加载...');
- mui.post(api+'/user/majorDetail',{data:departID},function(res){
- plus.nativeUI.closeWaiting();
- if(res.code=="200"){
- var bmbutton='<button type="button" class="mui-btn mui-btn-blue" id="bm" onclick="Baoming();">我要报名</button>';
- var dataobject = res.data;
- var imageurl = 'images/xy.jpg';
- if(dataobject.pimage != undefined && dataobject.pimage != null && dataobject.pimage != '') {
- imageurl = web+ dataobject.pimage;
- }
- document.getElementById("pimage").innerHTML = '<img id="pimage" src="' + imageurl + '"><br /><br /> 专业名称:' + dataobject.name + '';
- document.getElementById("schoolname").innerHTML = '所属校区:' + dataobject.schoolName + ''+
- (users.depart!= undefined && users.depart != null && users.depart != "" && users.depart != 0 && users.depart != "0"?'':bmbutton); //
- document.getElementById("pObject").innerText = '招生对象:' + dataobject.pObjectName;
- document.getElementById("developLevel").innerText = '培养对象:' + dataobject.developLevel;
- document.getElementById("zhengshu").innerText = dataobject.pCertificate;
- document.getElementById("developTarget").innerText = dataobject.developTarget;
- document.getElementById("introduce").innerText = dataobject.introduce;
- plus.nativeUI.closeWaiting();//
- }
- },'json')
- }
- </script>
-
- </html>
|