<!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>
|
<script src="../../js/h5to.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/spinkit.css" rel="stylesheet">
|
<link href="../../css/icon/iconfont.css" rel="stylesheet">
|
<!-- 界面本身css引用 -->
|
<link href="./hyyzxx.css" rel="stylesheet">
|
|
<style type="text/css">
|
|
</style>
|
</head>
|
|
<body class="app_page">
|
<div style="background-color: #F9FAFC; height: 100vh; width: 100%; margin: 0; overflow: auto;">
|
<div id="loading" class="example">
|
<div class="sk-plane loading_location"></div>
|
</div>
|
|
<div class="mui-content">
|
<div class="mui-card"style="margin: 24px 16px 16px 16px; box-sizing: border-box;">
|
<div class="z_head">
|
<div class="z_img_head1">
|
<img id="doctorAvatar"/>
|
</div>
|
<div class="z_card">
|
<div style="line-height: 18px;">
|
<span id="doctorName" class="z_card_name"></span>
|
</div>
|
<div style="margin-top: 23px; ">
|
<span id="mediDiseaseClassifyName01" class="z_card_span"></span>
|
<span id="doctorProfessional" class="z_card_span"></span>
|
</div>
|
<div style="margin-top: 2px;">
|
<span id="medoHospitalName" class="z_card_span"></span>
|
</div>
|
</div>
|
</div>
|
<div class="z_menu_btn_txt_2">
|
<div style="margin: 12px 8px 0px;">
|
<span>验证信息:</span>
|
<span id="yzxx"></span>
|
</div>
|
<div style="margin:7px 0px 12px 8px;line-height: 16px;">
|
<span class="z_hf_txt">回复</span>
|
</div>
|
</div>
|
|
<div class="z_menu_btn_row" style="height: 44px; line-height: 44px;" >
|
<div style="float: right;">
|
<span class="z_ckhome_txt" onclick="click_row(menurows[0])">查看主页</span>
|
</div>
|
</div>
|
</div>
|
|
<div class="mui-card"style="margin:16px; box-sizing: border-box;">
|
<div class="z_menu_btn_row" style="height: 49px; line-height: 49px;" >
|
<span class="z_ckhome_txt">来源</span>
|
<span id="originate" class="z_menu_btn_txt_3"></span>
|
</div>
|
</div>
|
|
<button class="confirm_button" onclick="click_row(menurows[1])" style="margin: 36px 44px 236px;width: 286px;height: 50px;border-radius: 25px;">添加好友</button>
|
<div style="margin-bottom: 40px;">
|
<div class="z_menu_btn_txt_3" onclick="" style="float: left;margin-left: 110px;">加入黑名单</div>
|
<div class="z_menu_btn_txt_3" onclick="click_row(menurows[2])" style="float: right;margin-right: 120px;">投诉</div>
|
</div>
|
</div>
|
</div>
|
|
<script type="text/javascript">
|
mui.init({
|
swipeBack: true //启用右滑关闭功能
|
});
|
//1. data
|
var personInfo = {};
|
var yzxx="我是上海十院心内科的陈维,想申请加入您的医生团队,一起开展学术交流";
|
var originate="对方通过新的朋友推荐添加";
|
|
var menurows = [
|
{id: "1", name: "查看主页", path: "./",_id: 1015},
|
{id: "2", name: "添加好友", path: "./jjsq",_id: 1048},
|
{id: "3", name: "投诉", path: "./",_id: 2023},
|
];
|
|
setRouteParams({userId: "1285860235186212865",params: {"doctorId": "1285860235186212865"}});
|
|
function initPage() {
|
document.getElementById('doctorAvatar').src = doctorAvatar;
|
document.getElementById('doctorName').innerText = doctorName;
|
document.getElementById('doctorProfessional').innerText = doctorProfessional;
|
document.getElementById('medoHospitalName').innerText = medoHospitalName;
|
document.getElementById('mediDiseaseClassifyName01').innerText = mediDiseaseClassifyName01;
|
}
|
|
function loadData() {
|
ajaxGet('doctor/api/doctor/home/' + login_data.params.doctorId, function(result) {
|
if (result) {
|
console.info(result);
|
personInfo = result.data
|
}
|
doLoadData();
|
hideloading("loading");
|
});
|
}
|
|
function click_row(row) {
|
var pam = {
|
_id: row._id,
|
params:{
|
userId: login_data.id
|
}
|
};
|
app_click("route", pam, callback);
|
}
|
|
//展示数据
|
function doLoadData(){
|
document.getElementById('doctorAvatar').src = personInfo.doctorAvatar;
|
document.getElementById('doctorName').innerText = personInfo.doctorName;
|
document.getElementById('doctorProfessional').innerText = personInfo.doctorProfessional;
|
document.getElementById('medoHospitalName').innerText = personInfo.medoHospitalName;
|
document.getElementById('mediDiseaseClassifyName01').innerText = personInfo.mediDiseaseClassifyName01;
|
}
|
|
//run
|
mui.ready(function() {
|
onInitReady(function() {
|
initPage();
|
loadData();
|
});
|
});
|
</script>
|
</body>
|
|
</html>
|