<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8" />
|
<title>我的首页</title>
|
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<!-- js引用 -->
|
<script src="../../js/config.js"></script>
|
<script src="../../js/h5toapp.js"></script>
|
|
<!-- 组件js引用 -->
|
<script src="../../js/mui.min.js"></script>
|
<!-- 组件标准css引用 -->
|
<link rel="stylesheet" href="../../css/mui.min.css">
|
|
<!-- css引用 -->
|
<link href="../../css/currency.css" rel="stylesheet">
|
<link href="../../css/icon/iconfont.css" rel="stylesheet">
|
<!-- 界面本身css引用 -->
|
<link href="./myhome.css" rel="stylesheet">
|
|
<style type="text/css">
|
|
</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 style="background-color: #F9FAFC; height: 100vh; width: 100%; margin: 0; overflow: auto;">
|
<div class="mui-content">
|
<div style="background-color: #12B2B3; position: absolute; height: 25%; width: 100%; top:0px"></div>
|
</div>
|
</div>
|
|
|
<script type="text/javascript">
|
var headPortrait = "../../img/head1.jpg";
|
var name = "陈维";
|
var academictitle = "主任医师";
|
var hospital = "上海第十人民医院";
|
var department = "心内科";
|
|
var leveltitle = "权威专家";
|
var authentication = "通过认证";
|
|
var val_hzs = 12;
|
var val_yss = 12;
|
|
var val_hz = 123;
|
var val_gz = 111;
|
var val_fs = 100;
|
|
var zsOptions = [
|
{id: "1", name: "我的诊室", path: ""},
|
{id: "2", name: "我的团队1诊室", path: ""},
|
{id: "3", name: "我的团队2诊室", path: ""}
|
];
|
|
var menucards = [
|
{id: "1", name: "在线接诊", path: ""},
|
{id: "2", name: "极速接诊", path: ""},
|
{id: "3", name: "私人医生", path: ""},
|
{id: "4", name: "在线挂号", path: ""},
|
];
|
var zxjz_num = 0;
|
var jsjz_num = 0;
|
var srys_num = 0;
|
var zxgh_num = 0;
|
|
var menurows = [
|
{id: "1", name: "我的诊室", path: "../myzs/myzs"},
|
{id: "2", name: "我的收益", path: "../mysy/mysy"},
|
{id: "3", name: "我的动态", path: "../mydt/mydt"},
|
{id: "4", name: "我的科普", path: "../mykp/mykp"},
|
{id: "5", name: "系统消息", path: "../xtxx/xtxx"},
|
{id: "6", name: "随访量表", path: "../sflb/sflb"},
|
{id: "7", name: "我的收藏", path: "../mysc/mysc"},
|
];
|
var my_profit = 123.45;
|
|
var myzs_num = 11;
|
var xtxx_num = 110;
|
|
window.onload=function(){
|
muiInfo();
|
// loadinfo();
|
/* getRem(720,100, function() {
|
}); */
|
}
|
|
function muiInfo() {
|
mui.init({
|
swipeBack:true //启用右滑关闭功能
|
});
|
}
|
|
function loadinfo() {
|
document.getElementById('headPortrait').src = headPortrait;
|
document.getElementById('name').innerText = name;
|
document.getElementById('academictitle').innerText = academictitle;
|
document.getElementById('hospital').innerText = hospital;
|
document.getElementById('department').innerText = department;
|
|
if (leveltitle) {
|
document.getElementById('leveltitle').classList.remove("visible_h");
|
document.getElementById('leveltitle').classList.add("visible_v");
|
document.getElementById('leveltitle').innerText = leveltitle;
|
}
|
if (authentication) {
|
/* document.getElementById('z_authentication').classList.remove("visible_h");
|
document.getElementById('z_authentication').classList.add("visible_v"); */
|
document.getElementById('authentication').innerText = authentication;
|
}
|
|
document.getElementById('val_hzs').innerText = val_hzs;
|
document.getElementById('val_yss').innerText = val_yss;
|
|
document.getElementById('val_hz').innerText = val_hz;
|
document.getElementById('val_gz').innerText = val_gz;
|
document.getElementById('val_fs').innerText = val_fs;
|
|
document.getElementById('zxjz_num').innerText = zxjz_num;
|
document.getElementById('jsjz_num').innerText = jsjz_num;
|
document.getElementById('srys_num').innerText = srys_num;
|
document.getElementById('zxgh_num').innerText = zxgh_num;
|
|
document.getElementById('my_profit').innerText = my_profit;
|
|
/* if(myzs_num > 0) {
|
document.getElementById('myzs_num').classList.remove("visible_h");
|
document.getElementById('myzs_num').classList.add("visible_v");
|
document.getElementById('myzs_num').innerText = myzs_num;
|
} */
|
|
if(xtxx_num > 0) {
|
document.getElementById('xtxx_num').classList.remove("visible_h");
|
document.getElementById('xtxx_num').classList.add("visible_v");
|
if (xtxx_num > 99) {
|
xtxx_num = "99+";
|
}
|
document.getElementById('xtxx_num').innerText = xtxx_num;
|
}
|
|
|
clickEventList();
|
}
|
|
function click_row(row) {
|
mui.openWindow({
|
url: row.path + '.html'
|
});
|
}
|
|
function clickEventList() {
|
mui('body').on('tap', '.mui-popover-action li>a', function(event) {
|
event.cancelBubble = true;//阻止当前事件的冒泡
|
var a = this, parent;
|
//根据点击按钮,反推当前是哪个actionsheet
|
for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
|
if (parent.classList.contains('mui-popover-action')) {
|
break;
|
}
|
}
|
|
//关闭actionsheet
|
mui('#' + parent.id).popover('toggle');
|
if (parent.id == "myzsSelect") {
|
document.getElementById('myzs_name').innerHTML = a.innerHTML;
|
}
|
});
|
|
/* mui('body').on('tap', '.z_menu_btn_row', function() {
|
var a = this, parent;
|
//根据点击按钮,反推当前是哪个actionsheet
|
for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
|
if (parent.classList.contains('mui-popover-action')) {
|
break;
|
}
|
}
|
|
//打开关于页面
|
mui.openWindow({
|
url: a.id + '.html'
|
});
|
|
}); */
|
|
|
|
|
}
|
|
|
</script>
|
</body>
|
|
</html>
|
|