作者 wendy0406

王玉琪用户中心接口,新增报告暂未完成

... ... @@ -41,7 +41,6 @@
top: 20%;
}
.acul {}
</style>
<title>我的账户</title>
</head>
... ...
... ... @@ -9,28 +9,6 @@
<link rel="stylesheet" type="text/css" href="css/jquery-labelauty.css">
<link rel="stylesheet" type="text/css" href="css/common.css">
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery-labelauty.js"></script>
<script src="js/jquery.knob.js"></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
$(function(){
$('#endTime').date({theme:"datetime"});
});
</script>
<script>
$(function() {
$(".knob").knob();
});
</script>
<script>
$(function(){
$(':input').labelauty();
});
</script>
<title>记血糖</title>
</head>
... ... @@ -51,22 +29,81 @@ $(function(){
<form action="#">
<div class="blli">
<ul class="dowebok">
<li><input type="radio" name="radio" data-labelauty="空腹"></li>
<li><input type="radio" name="radio" data-labelauty="早餐后"></li>
<li><input type="radio" name="radio" data-labelauty="午餐前"></li>
<li><input type="radio" name="radio" data-labelauty="午餐后"></li>
<li><input type="radio" name="radio" data-labelauty="晚餐前"></li>
<li><input type="radio" name="radio" data-labelauty="晚餐后"></li>
<li><input type="radio" name="radio" data-labelauty="睡前"></li>
<li><input type="radio" name="radio" data-labelauty="凌晨"></li>
<li><input type="radio" name="radio" data-id="1" class="time_type" data-labelauty="空腹"></li>
<li><input type="radio" name="radio" data-id="2" class="time_type" data-labelauty="早餐后"></li>
<li><input type="radio" name="radio" data-id="3" class="time_type" data-labelauty="午餐前"></li>
<li><input type="radio" name="radio" data-id="4" class="time_type" data-labelauty="午餐后"></li>
<li><input type="radio" name="radio" data-id="5" class="time_type" data-labelauty="晚餐前"></li>
<li><input type="radio" name="radio" data-id="6" class="time_type" data-labelauty="晚餐后"></li>
<li><input type="radio" name="radio" data-id="7" class="time_type" data-labelauty="睡前"></li>
<li><input type="radio" name="radio" data-id="8" class="time_type" data-labelauty="凌晨"></li>
</ul>
</div>
</div>
<div class="bltime">
<input id="endTime" class="kbtn" style="font-size:0.22rem;" placeholder="2018-01-20 18:03" /><span class="right">></span></div>
<input id="endTime" class="kbtn" style="font-size:0.22rem;" value="2018-01-20 18:03" /><span class="right">></span></div>
<div ><button type="button" class="blbut"/>保存</div>
</form>
<div id="datePlugin"></div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery-labelauty.js"></script>
<script src="js/jquery.knob.js"></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
$(function(){
$('#endTime').date({theme:"datetime"});
});
$(function() {
$(".knob").knob();
});
$(function(){
$(':input').labelauty();
});
var time_type;
var type_sugar;
var endTime;
$(document).ready(function () {
$('.time_type').click(function () {
time_type = $(this).attr('data-id')
})
$('.blbut').click(function () {
type_sugar = $('.knob').val()
endTime = $('#endTime').val()
var time3 = Date.parse(endTime);
console.log(time3)
time3 = time3/1000;
$.ajax({
type:"POST",
url: baseUrl+"user/index/setBoolData",
dataType:"json",
headers:{
"DeviceType":getDevice(),
"token":"1",
"Content-Type":"text/plain;charset=UTF-8"
},
data:{
rid:0,
time_type:time_type,
time:time3,
type:1,
data:type_sugar,
},
success:function (res) {
console.log(res.data)
}
})
})
})
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -134,12 +134,20 @@ $(function(){
<style type="text/css">
.body{
position: relative;
height: 100%;s
height: 100%;
}
.sersave{
position: absolute;
bottom: 0;
}
#paybox{
width: 7.5rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: inline-block;
}
</style>
</head>
... ... @@ -216,7 +224,7 @@ $(function(){
</div>
<!--subpart3-->
<div class="laba paybox textleft"><img src="images/subli_18.jpg"/>请正确选择和填写信息,以便后续提供更好品质服务。</div>
<div class="laba paybox textleft" id="paybox"><img src="images/subli_18.jpg"/>请正确选择和填写信息,以便后续提供更好品质服务。</div>
<!--subpart3 end-->
... ...
... ... @@ -22,9 +22,20 @@
</div>
<div class="perpart1">
<div class="datap"><a href="blood.html"><span>血糖</span><span class="right">午餐前5.1mmol/L<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap"><a href="#"><span>血压</span><span class="right">150/55mmHg<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap"><a href="#"><span>增加病历材料</span><span class="right">专家帮您简析病因<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap"><a href="physical.html.html"><span>增加体检报告</span><span class="right">专家帮您解析体检报告<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap"><a href="#"><span>增加检验报告</span><span class="right">专家帮您解析检验报告<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap"><a href="manual.html"><span>血压</span><span class="right">150/55mmHg<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap physical" data-id="1"><a href="#"><span>增加病历材料</span><span class="right">专家帮您简析病因<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap physical" data-id="2"><a href=""><span>增加体检报告</span><span class="right">专家帮您解析体检报告<img src="images/pergo_03.jpg"/></span></a></div>
<div class="datap physical" data-id="3"><a href="#"><span>增加检验报告</span><span class="right">专家帮您解析检验报告<img src="images/pergo_03.jpg"/></span></a></div>
</div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.physical').click(function () {
window.location.href = 'physical.html?id='+$(this).attr('data-id')
})
})
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -35,8 +35,9 @@ input.labelauty + label{
.sick_list{
display: flex;
flex-wrap: wrap;
margin-bottom: 0.16rem;
}
.sick_list .active{
.sick_list .selected{
background-color:#D8B25F;
color: #FFFFFF;
}
... ... @@ -81,34 +82,19 @@ input.labelauty + label{
</div>
<div class="fali">
<div class="fatitle">请选择疾病的名称(可多选):</div>
<div class="fatitle" id = "sick_choose"></div>
<div class="sick_list">
<span class="sickness_item">高血压高</span>
<span class="sickness_item">脑卒中</span>
<span class="sickness_item">冠心病</span>
<span class="sickness_item">外周血管病</span>
<span class="sickness_item">心力衰竭</span>
<span class="sickness_item">糖尿病</span>
<span class="sickness_item">肥胖症</span>
<span class="sickness_item">慢性肾脏疾病</span>
<span class="sickness_item">慢性阻塞性肺病</span>
<span class="sickness_item">骨质疏松</span>
<span class="sickness_item">痛风</span>
<span class="sickness_item">恶性肿瘤</span>
<span class="sickness_item">风湿免疫性疾病</span>
<span class="sickness_item">精神疾病</span>
<span class="sickness_item">其他</span>
</div>
</div>
<div class="fali">
<div class="fatitle">您的父亲是否在55岁、母亲在65岁之前患有上述疾病吗 ?</div>
<ul class="dowebok">
<li><input type="radio" name="radio" data-labelauty="是"></li>
<li><input type="radio" name="radio" data-labelauty="否"></li>
<li><input type="radio" name="sub_choose" data-labelauty="是"></li>
<li><input type="radio" name="sub_choose" data-labelauty="否"></li>
</ul>
</div>
</div>
</div>
</div>
... ... @@ -119,16 +105,74 @@ input.labelauty + label{
<div ><button type="button" class="blbut"/>保存</div>
</form>
<script type="text/javascript" src="js/common.js"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.sickness_item').click(function(){
if(!$(this).hasClass('active')){
$(this).addClass('active')
$('.sick_list').on('click','.sickness_item',function () {
if(!$(this).hasClass('selected')){
$(this).addClass('selected')
} else{
$(this).removeClass('active')
$(this).removeClass('selected')
}
})
//问题列表接口
$.ajax({
type:"POST",
url:"http://192.168.1.3/api/user/index/typeInfo",
dataType:"JSON",
data:{
DeviceType:"1",
token:"1",
type_id:"1",
},
success:function (res) {
console.log(res)
$('.sick_list').html('')
var data = res.data
console.log(data[0].question)
$('#sick_choose').html(`${data[0].question.title}`)
for ( var i = 0; i < data[0].answer.length; i++){
$('.sick_list').append(`<span class="sickness_item" data-aid="${data[0].answer[i].id}" data-qid="${data[0].answer[i].qid}">${data[0].answer[i].answer}</span>`)
}
},
fail: function (err) {
console.log('error')
}
})
})
// 问题提交
$('.blbut').click(function () {
answer_submit()
})
var qid;
function answer_submit() {
qid = $('.selected').attr('data-qid')
var sele_arr = []
$('.selected').each(function () {
sele_arr.push($(this).data('aid'))
sele_arr.push('|')
})
sele_arr.splice(sele_arr.length-1,1);
sele_arr = sele_arr.join('')
console.log(sele_arr)
$.ajax({
type:"POST",
url:"http://192.168.1.3/api/user/index/typeInfo",
dataType:"JSON",
data:{
DeviceType:"1",
token:"1",
type_id:"1",
qid:qid,
aid:sele_arr
},
success:function (res) {
console.log('成功')
}
})
}
</script>
</body>
\ No newline at end of file
... ...
... ... @@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="css/font-awesome.css"/>
<link rel="stylesheet" type="text/css" href="css/modern-accordion.css">
<link rel="stylesheet" type="text/css" href="css/health.css">
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/base.js"></script>
<script src="js/modern-accordion.js"></script>
<style>
... ... @@ -158,7 +158,7 @@ height: 3.1rem;
<ul class="c-dropdown__list">
<li class="c-dropdown__item" data-dropdown-value="angular"><a href="#">完善健康档案</a></li>
<li class="c-dropdown__item" data-dropdown-value="backbone"><a href="#">添加亲友档案</a></li>
<li class="c-dropdown__item" data-dropdown-value="ember"><a href="亲友健康档案.html.html">查看亲友档案</a></li>
<li class="c-dropdown__item" data-dropdown-value="ember"><a href="亲友健康档案.html">查看亲友档案</a></li>
</ul>
</div>
</div>
... ... @@ -207,9 +207,9 @@ height: 3.1rem;
<div class="capart1">
<div class="perfect">
<ul>
<li><a href="peridata.html.html"><img src="images/heli_03.png"/>个人资料<span class="right">未完善 <img src="images/hego.png"/></span></a></li>
<li><a href="history.html.html"><img src="images/heli_06.png"/>健康史<span class="right">已完善 <img src="images/hego.png"/></span></a></li>
<li><a href="data.html"><img src="images/heli_08.png"/>健康数据<span class="right">未完善 <img src="images/hego.png"/></span></a></li>
<li><a href="peridata.html"><img src="images/heli_03.png"/>个人资料<span class="right"><span id="info">未完善</span> <img src="images/hego.png"/></span></a></li>
<li><a href="history.html"><img src="images/heli_06.png"/>健康史<span class="right"><span id="history">未完善</span> <img src="images/hego.png"/></span></a></li>
<li><a href="data.html"><img src="images/heli_08.png"/>健康数据<span class="right"><span id="h_data">未完善</span> <img src="images/hego.png"/></span></a></li>
</ul>
</div>
... ... @@ -221,7 +221,7 @@ height: 3.1rem;
<div class="textleft hefe" style="width: 7.5rem;padding: 0 0.12rem 0 0.35rem;"><div>
<img src="images/he_03.jpg"/>全生命周期健康记录
</div>
<div><span class="right">三分报告 <img src="images/hego.png"/></span></div>
<div><span class="right"><span id="life_record">3分报告</span> <img src="images/hego.png"/></span></div>
</div>
</label>
<ul>
... ... @@ -254,9 +254,44 @@ height: 3.1rem;
</div>
<script src="js/health.js"></script>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
record()
})
function record() {
$.ajax({
type:"POST",
url: baseUrl+"user/index/record",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
console.log(res)
var data = res.data
if (data.personal == 1){
$('#info').html('已完善')
} else {
$('#info').html('未完善')
}
if (data.history == 1){
$('#history').html('已完善')
} else {
$('#history').html('未完善')
}
if (data.h_data == 1){
$('#h_data').html('已完善')
} else {
$('#h_data').html('未完善')
}
$('#life_record').html(data.life_record+'分报告')
}
})
}
</script>
</body>
\ No newline at end of file
... ...
... ... @@ -13,6 +13,58 @@
flex-wrap: wrap;
justify-content: center;
}
.history_text,.history_text_sub{
position: relative;
}
.history_text:before{
content: '';
display: block;
width: 0.6rem;
border-bottom:0.025rem solid #d8b25f;
position: absolute;
top: 1rem;
-webkit-transform: translateY(-0.01rem);
-moz-transform: translateY(-0.01rem);
-ms-transform: translateY(-0.01rem);
-o-transform: translateY(-0.01rem);
transform: translateY(-0.01rem);
left: 0;
height: 0.01rem;
}
.history_text_sub:before{
content: '';
display: block;
width: 0.6rem;
border-bottom:0.025rem solid #b0b0af;
position: absolute;
top: 1rem;
-webkit-transform: translateY(-0.01rem);
-moz-transform: translateY(-0.01rem);
-ms-transform: translateY(-0.01rem);
-o-transform: translateY(-0.01rem);
transform: translateY(-0.01rem);
left: 0;
height: 0.01rem;
}
.history_pic img {
margin-top: 0.12rem;
margin-left: 0.23rem;
width: 1.85rem;
}
.history_item{
width: 6.5rem;
min-height: 1.6rem;
background-color: #fff;
border-radius: 0.2rem;
list-style-type: none;
font-size: 0.3rem;
line-height: 1.6rem;
}
.history_pic_sub img {
margin-top: 0.12rem;
margin-left: 0.23rem;
width: 1.85rem;
}
</style>
</head>
... ... @@ -26,12 +78,12 @@
<div class="box">
<div class="hispart1">
<ul>
<ul class="history_wrap">
<li>
<a href="family.html.html">
<div><img src="images/his_03 .jpg"/></div>
<div class="inblock hist"><span class="hisbory">家族</span></div>
<a href="family.html">
<div class="history_pic"><img src="images/his_03 .jpg"/></div>
<div class="inblock hist history_text">家族史</div>
<div class="inblock noperfect">未完善</div>
<div><img src="images/hislibt_03.jpg" class="hislibt"/></div>
</a>
... ... @@ -41,7 +93,7 @@
<li>
<a href="#">
<div class="hist2 left"><span class="hisbory2">疾病</span></div>
<div class="hist2 left history_text_sub">疾病</div>
<div class="left"><img src="images/hisli_07.jpg"/></div>
<div class="noperfect">已完善</div>
<div><img src="images/hislibt_06.jpg" class="hislibt"/></div>
... ... @@ -106,4 +158,49 @@
</ul>
</div>
</div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.ajax({
type:"POST",
url: baseUrl + "user/index/question",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
var data = res.data;
console.log(data)
$('.history_wrap').html('')
for( key in data ){
if((key%2)== 1){
// console.log(key)
$('.history_wrap').append(`<li class="history_item">
<a href="family.html">
<div class="history_pic"><img src="${data[key].img}"/></div>
<div class="inblock hist history_text">${data[key].name}</div>
<div class="inblock noperfect">未完善</div>
<div><img src="images/hislibt_03.jpg" class="hislibt"/></div>
</a>
</li>`)
}else {
// console.log(key)
$('.history_wrap').append(`<li class="history_item">
<a href="family.html">
<div class="hist2 left history_text_sub">${data[key].name}</div>
<div class="left history_pic_sub"><img src="${data[key].img}"/></div>
<div class="noperfect">已完善</div>
<div><img src="images/hislibt_06.jpg" class="hislibt"/></div>
</a>
</li>`)
}
}
}
})
})
</script>
</body>
\ No newline at end of file
... ...
... ... @@ -507,17 +507,17 @@
<div class="footer center">
<ul style="font-size:0rem;">
<li>
<a href="index.html.html">
<a href="index.html">
<img src="images/yanxuan.png" />
</a>
</li>
<li>
<a href="introduce.html.html">
<a href="introduce.html">
<img src="images/footer_05.jpg" />
</a>
</li>
<li>
<a href="member.html.html">
<a href="member.html">
<img src="images/footer_07.jpg" />
</a>
</li>
... ...
... ... @@ -146,6 +146,9 @@ input:focus{ outline:none}
display: flex;
justify-content: space-between;
}
.infuarea{
margin: 0 auto;
}
</style>
<title>上门输液</title>
</head>
... ...
... ... @@ -3,6 +3,17 @@ var baseWidth = Length <= 1024 ? Length : 1024 < Length ? 750 : '';
document.documentElement.style.fontSize = baseWidth / 750 * 100 + 'px';
function charToHtml(str) {
if (str) {
str = str.replace(/&amp;/g, '&');
str = str.replace(/&lt;/g, '<');
str = str.replace(/&gt;/g, '>');
str = str.replace(/&quot;/g, "'");
str = str.replace(/&#039;/g, ' ');
}
return str;
}
//正则表达式
//window.onload = function() {
... ...
var baseUrl = 'http://kindapp.w.bronet.cn/api/';
// var baseUrl = 'http://192.168.1.3/api/';
// var baseUrl = 'http://kindapp.w.bronet.cn/api/';
var baseUrl = 'http://192.168.1.3/api/';
function sendAjax(post, url, params, callback) {
... ...
... ... @@ -5733,72 +5733,72 @@ var level25 = [{
}];
var level13 = [{
"name": '初中',
"value": '1',
},
{
"name": '高中',
"value": '2',
},
{
"name": '中专及技校',
"value": '3',
},
{
"name": '大学本科/专科',
"value": '4',
},
{
"name": '研究生以上',
"value": '5',
},
{
"name": '其他',
"value": '6',
}];
var level14 = [{
"name": '国家公务员',
"value": '1',
},
{
"name": '专业技术人员',
"value": '2',
},
{
"name": '职员',
"value": '3',
},
{
"name": '企业管理人员',
"value": '4',
},
{
"name": '工人',
"value": '5',
},
{
"name": '农民',
"value": '6',
},
{
"name": '其他',
"value": '7',
}];
// var level13 = [{
// "name": '初中',
// "value": '1',
//
// },
// {
// "name": '高中',
// "value": '2',
//
// },
// {
// "name": '中专及技校',
// "value": '3',
//
// },
// {
// "name": '大学本科/专科',
// "value": '4',
//
// },
// {
// "name": '研究生以上',
// "value": '5',
//
// },
// {
// "name": '其他',
// "value": '6',
//
// }];
// var level14 = [{
// "name": '国家公务员',
// "value": '1',
//
// },
// {
// "name": '专业技术人员',
// "value": '2',
//
// },
// {
// "name": '职员',
// "value": '3',
//
// },
// {
// "name": '企业管理人员',
// "value": '4',
//
// },
// {
// "name": '工人',
// "value": '5',
//
// },
// {
// "name": '农民',
// "value": '6',
//
// },
// {
// "name": '其他',
// "value": '7',
//
// }];
var level15 = [{
"name": '城镇职工医保',
... ... @@ -6815,15 +6815,17 @@ var method3 = $('.select-value25').mPicker({
//console.info($('.select-value3').data('id1'));
}
})
/**体检机构**/
/**文化程度**/
var method3 = $('.select-value13').mPicker({
var method3 = $('.select-value16').mPicker({
level: 1,
dataJson: level13,
dataJson: level16,
Linkage: false,
rows: 6,
idDefault: true,
header: '<div class="mPicker-header">文化程度</div>',
header: '<div class="mPicker-header">体检名称</div>',
confirm: function() {
//console.info($('.select-value3').data('id1'));
},
... ... @@ -6832,6 +6834,22 @@ var method3 = $('.select-value13').mPicker({
}
})
/**文化程度**/
// var method3 = $('.select-value13').mPicker({
// level: 1,
// dataJson: level13,
// Linkage: false,
// rows: 6,
// idDefault: true,
// header: '<div class="mPicker-header">文化程度</div>',
// confirm: function() {
// //console.info($('.select-value3').data('id1'));
// },
// cancel: function() {
// //console.info($('.select-value3').data('id1'));
// }
// })
/**职业**/
var method3 = $('.select-value14').mPicker({
level: 1,
... ... @@ -6865,21 +6883,7 @@ var method3 = $('.select-value15').mPicker({
})
/**体检机构**/
var method3 = $('.select-value16').mPicker({
level: 1,
dataJson: level16,
Linkage: false,
rows: 6,
idDefault: true,
header: '<div class="mPicker-header">体检机构</div>',
confirm: function() {
//console.info($('.select-value3').data('id1'));
},
cancel: function() {
//console.info($('.select-value3').data('id1'));
}
})
/*所属银行*/
... ...
... ... @@ -152,7 +152,8 @@ return /******/ (function(modules) { // webpackBootstrap
picker: _picker.picker,
datePicker: _picker.datePicker,
gallery: _gallery2.default,
slider: _slider2.default
slider: _slider2.default,
mydatePicker:_picker.mydatePicker
};
module.exports = exports['default'];
... ... @@ -3123,6 +3124,76 @@ return /******/ (function(modules) { // webpackBootstrap
* id: 'datePicker'
* });
*/
function mydatePicker(options) {
var defaults = _util2.default.extend({
id: 'datePicker',
onChange: _util2.default.noop,
onConfirm: _util2.default.noop,
start: 2000,
end: 2030,
cron: '* * *'
}, options);
// 兼容原来的 start、end 传 Number 的用法
if (typeof defaults.start === 'number') {
defaults.start = new Date(defaults.start + '/01/01');
} else if (typeof defaults.start === 'string') {
defaults.start = new Date(defaults.start.replace(/-/g, '/'));
}
if (typeof defaults.end === 'number') {
defaults.end = new Date(defaults.end + '/12/31');
} else if (typeof defaults.end === 'string') {
defaults.end = new Date(defaults.end.replace(/-/g, '/'));
}
var findBy = function findBy(array, key, value) {
for (var i = 0, len = array.length; i < len; i++) {
var _obj = array[i];
if (_obj[key] == value) {
return _obj;
}
}
};
var date = [];
var interval = _cron2.default.parse(defaults.cron, defaults.start, defaults.end);
var obj = void 0;
do {
obj = interval.next();
var year = obj.value.getFullYear();
var month = obj.value.getMonth() + 1;
var day = obj.value.getDate();
var Y = findBy(date, 'value', year);
if (!Y) {
Y = {
label: year + '年',
value: year,
children: []
};
date.push(Y);
}
var M = findBy(Y.children, 'value', month);
if (!M) {
M = {
label: month + '月',
value: month,
// children: []
};
Y.children.push(M);
}
// M.children.push({
// label: day + '日',
// value: day
// });
} while (!obj.done);
return picker(date, defaults);
}
function datePicker(options) {
var defaults = _util2.default.extend({
id: 'datePicker',
... ... @@ -3193,7 +3264,8 @@ return /******/ (function(modules) { // webpackBootstrap
exports.default = {
picker: picker,
datePicker: datePicker
datePicker: datePicker,
mydatePicker:mydatePicker
};
module.exports = exports['default'];
... ...
... ... @@ -7,25 +7,8 @@
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/tanchu.css" />
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js" ></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
$(function(){
$('#beginTime').date();
$('#endTime').date({theme:"datetime"});
});
function upperCase()
{
var x=document.getElementById("fname").value;
if(x.indexOf("次/分钟") == -1){
document.getElementById("fname").value=x+"次/分钟";
}else{
return;
}
}
</script>
<title>手动血压记录</title>
<style type="text/css">
... ... @@ -52,5 +35,54 @@ document.getElementById("fname").value=x+"次/分钟";
<div class="perp"><span>心率</span><span class="right"><input id="fname" type="text" onblur="upperCase()" placeholder="次/分钟" /><img src="images/pergo_03.jpg"/></span></div>
</div>
<div><button type="button" class="perbut"/>保存</div>
<script src="js/index.js"></script><div class="mPicker hide"><div class="mPicker-mask hide"></div></div>
<div class="mPicker hide"><div class="mPicker-mask hide"></div></div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/index.js"></script>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="js/health.js"></script>
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
$(document).ready(function () {
healthData()
})
function healthData() {
$.ajax({
type:"POST",
url: baseUrl+"user/index/healthData",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
var data = res.data;
if (data.puser == null){
$('.select-value8').val(`0mmHg`)
} else if (data.suger == null){
$('.select-value8').val(`0mmHg`)
}
console.log(res)
}
})
}
$(function(){
$('#beginTime').date();
$('#endTime').date({theme:"datetime"});
});
function upperCase()
{
var x=document.getElementById("fname").value;
if(x.indexOf("次/分钟") == -1){
document.getElementById("fname").value=x+"次/分钟";
}else{
return;
}
}
</script>
</body>
\ No newline at end of file
... ...
... ... @@ -38,8 +38,8 @@
</div>
<div class="mblogo">
<p id="mbvip"><img src="images/mbvip_03.png"/></p>
<p><a href="peridata.html"><img src="images/mblogo_03.png"/></a></p>
<p>李先生</p>
<p><a href="peridata.html"><img src="images/mblogo_03.png" id="avatar"/></a></p>
<p id="person_name"></p>
</div>
</div>
... ... @@ -61,25 +61,25 @@
<div class="mbpart2">
<ul id="mbkuang">
<li>
<a href="order.html.html">
<a href="order.html">
<p><img src="images/mbli_03.jpg"/></p>
<P>我的订单</P>
</a>
</li>
<li>
<a href="health.html.html">
<a href="health.html">
<p><img src="images/mbli_05.jpg"/></p>
<P>健康档案</P>
</a>
</li>
<li>
<a href="vipequity.html.html">
<a href="vipequity.html">
<p><img src="images/mbli_07.jpg"/></p>
<P>我的权益</P>
</a>
</li>
<li style="border-bottom:none;">
<a href="#">
<a href="phone_question.html">
<p><img src="images/mbli_18.jpg"/></p>
<P>常见问题</P>
</a>
... ... @@ -92,7 +92,7 @@
</a>
</li>
<li style="border-bottom:none;">
<a href="set.html.html">
<a href="set.html">
<p><img src="images/mbli_13.jpg"/></p>
<P>设置</P>
</a>
... ... @@ -112,5 +112,32 @@
<!--footer end-->
</div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.ajax({
type:"POST",
url: baseUrl+"user/index/getUserinfo",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
rid:"0"
},
success:function (res) {
var data = res.data
$('#person_name').html('')
$('#person_name').html(`${data.name}`)
if (data.avatar == ''||data.avatar == undefined||data.avatar == null){
$('#avatar').attr('src','images/mblogo_03.png')
} else{
$('#avatar').attr('src',data.avatar)
}
}
})
})
</script>
</body>
</html>
... ...
... ... @@ -106,7 +106,7 @@ function ChangeDiv1()
<!--trpart2 -->
<div class="trpart2 center">
<div class="trptitle">
<span class="gailan">— 行程概览 — </span>
<div class="trptitle">— 行程概览 —</div>
<span class="right close" id="open" onclick="JavaScript:ChangeDiv()"><img src="images/close_03.png"/></span>
<span class="right open" id="close" onclick="JavaScript:ChangeDiv1()"><img src="images/open_03.png"/></span>
... ...
... ... @@ -17,6 +17,9 @@
</script>
<style>
.orpart{
width: 7.5rem;
}
#tab2{
display:none;
}
... ...
... ... @@ -5,18 +5,16 @@
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/weui.css"/>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/tanchu.css" />
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/date.js"></script>
<script type="text/javascript" src="js/iscroll.js"></script>
<script src="js/base.js"></script>
<script type="text/javascript">
$(function () {
$('#beginTime').date();
$('#endTime').date({ theme: "datetime" });
});
// $(function () {
// $('#beginTime').date();
// $('#endTime').date({ theme: "datetime" });
// });
</script>
<title>个人中心</title>
<style>
... ... @@ -25,6 +23,20 @@
bottom: 0;
width:100%;
}
.perp .specp img{
width: 0.5rem;
}
.txt,#input_file{
width: 100%;
height: 100%;
opacity: 0;
position: absolute;
left: 0;
top: 0;
}
.specp{
position: relative;
}
</style>
</head>
... ... @@ -39,14 +51,17 @@
</div>
<div class="perpart1">
<div id="datePlugin"></div>
<div class="perp">
<div class="perp" id="square">
<span>头像</span>
<a href="#">
<span class="right">
<img src="images/pergo_03.jpg" />
</span>
<span class="specp">
<img src="images/cali_05.jpg" />
<form id="uploadimage">
<input type="file" name="file" id="input_file" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg" onchange="imgPreview(this)">
</form>
<img src="images/cali_05.jpg" id="preview"/>
</span>
</a>
</div>
... ... @@ -54,7 +69,7 @@
<div class="perp">
<span>姓名</span>
<span class="right">
<input type="text" placeholder="请输入姓名" />
<input type="text" placeholder="请输入姓名" id="p_name" />
<img src="images/pergo_03.jpg" />
</span>
</div>
... ... @@ -71,7 +86,7 @@
<div class="perp">
<span>手机</span>
<span class="right phonesp">18611022356
<span class="right phonesp" id="phonesp">18611022356
<img src="images/pergo_03.jpg" />
</span>
</div>
... ... @@ -87,7 +102,7 @@
<div class="perp">
<span>身份证号</span>
<span class="right">
<input type="text" placeholder="输入身份证号" maxlength="18" />
<input type="text" placeholder="输入身份证号" maxlength="18" id="id_card" />
<img src="images/pergo_03.jpg" />
</span>
</div>
... ... @@ -95,7 +110,7 @@
<div class="perp">
<span>身高</span>
<span class="right">
<input type="text" class="select-value9" placeholder="174cm" />
<input type="text" class="select-value9" id="person_height" placeholder="174cm" />
<img src="images/pergo_03.jpg" />
</span>
</div>
... ... @@ -103,7 +118,7 @@
<div class="perp">
<span>体重</span>
<span class="right">
<input type="text" class="select-value4" placeholder="79.0kg" />
<input type="text" class="select-value4" id="weight" placeholder="79.0kg" />
<img src="images/pergo_03.jpg" />
</span>
</div>
... ... @@ -111,23 +126,24 @@
<div class="perp">
<span>婚姻状况</span>
<span class="right">
<input type="text" class="select-value12" placeholder="已婚" />
<input type="text" class="select-value12" id="marry" placeholder="已婚" />
<img src="images/pergo_03.jpg" />
<!--<a href="javascript:;" class="weui-btn weui-btn_default" id="showPicker">单列选择器</a>-->
</span>
</div>
<div class="perp">
<div class="perp culture_btn">
<span>文化程度</span>
<span class="right">
<input type="text" class="select-value13" placeholder="研究生以上" />
<input type="text" class="select-value13" id="culture_name" placeholder="研究生以上" />
<img src="images/pergo_03.jpg" />
</span>
</div>
<div class="perp">
<div class="perp medical_btn">
<span>职业</span>
<span class="right">
<input type="text" class="select-value14" placeholder="国家公务员" />
<input type="text" class="select-value14" id="job" placeholder="国家公务员" />
<img src="images/pergo_03.jpg" />
</span>
</div>
... ... @@ -135,15 +151,247 @@
<div class="perp">
<span>医保类型</span>
<span class="right">
<input type="text" class="select-value15" placeholder="城镇居民医保" />
<input type="text" class="select-value15" id="medical_name" placeholder="城镇居民医保" />
<img src="images/pergo_03.jpg" />
</span>
</div>
</div>
<div>
<button type="button" class="perbut" />保存</div>
<script src="js/per.js"></script>
<div class="mPicker hide">
<div class="mPicker-mask hide"></div>
</div>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/common.js"/>
<script type="text/javascript" src="js/weui.js"/>
<script type="text/javascript" src="js/date.js"></script>
<script type="text/javascript" src="js/iscroll.js"></script>
<script src="js/base.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/per.js"></script>
<script type="text/javascript">
$(document).ready(function () {
getMedical()
getCulture()
//上传图片
// var obj = document.getElementById('#input_file')
// imgPreview(obj)
// 获取个人信息
getinfo()
})
// 获取个人信息
function getinfo(){
$.ajax({
type:"POST",
url: baseUrl+"user/index/getUserinfo",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
rid:"0"
},
success:function (res) {
console.log(res)
var data = res.data;
$('#p_name').val('')
$('#p_name').val(data.name)
if (data.sex==1){
$('#male').attr('checked','true')
}else{
$('#female').attr('checked','true')
}
$('#phonesp').html(`${data.mobile}
<img src="images/pergo_03.jpg" />`)
$('#beginTime').val(data.birthday)
$('#id_card').val(data.idcard)
$('#person_height').val(data.height)
if (data.marry==1){
$('#marry').val(`已婚`)
}
$('#culture_name').val(data.culture_name)
$('#job').val(data.job)
$('#medical_name').val(data.medical_name)
}
})
}
function imgPreview(fileDom) {
//判断是否支持FileReader
if(window.FileReader) {
var reader = new FileReader();
} else {
alert("您的设备不支持图片预览功能,如需该功能请升级您的设备!");
}
//获取文件
var file = fileDom.files[0];
console.log(file)
var imageType = /^image\//;
//是否是图片
if(!imageType.test(file.type)) {
alert("请选择图片!");
return;
}
//读取完成
reader.onload = function(e) {
//获取图片dom
var img = document.getElementById("preview");
//图片路径设置为读取的图片
img.src = e.target.result;
var formData = new FormData(document.getElementById('uploadimage'));
// var formData = $('#uploadimage').submit();
//
// formData.append('file',file ); //添加图片信息的参数
// formData.append('fileType','image' ); //添加图片信息的参数
$.ajax({
url: baseUrl+'user/index/upAvatar',
type: 'POST',
cache: false, //上传文件不需要缓存
data:formData,
headers:{
DeviceType:"1",
token:"1",
},
dataType: 'json',
processData: false, // 告诉jQuery不要去处理发送的数据
contentType: false, // 告诉jQuery不要去设置Content-Type请求头
success: function(data) {
alert('上传成功')
},
error: function(data) {
// alert("上传失败");
}
})
};
reader.readAsDataURL(file);
}
function up_pic(img) {
// var formData = new FormData();
// var file=$('#input_file').files[0];
formData.append('file',file ); //添加图片信息的参数
formData.append('sizeid', 123); //添加其他参数
$.ajax({
url: baseUrl+'user/index/upAvatar',
type: 'POST',
cache: false, //上传文件不需要缓存
data:formData,
headers:{
DeviceType:"1",
token:"1",
},
dataType: 'json',
processData: false, // 告诉jQuery不要去处理发送的数据
contentType: false, // 告诉jQuery不要去设置Content-Type请求头
success: function(data) {
alert('上传成功')
},
error: function(data) {
// alert("上传失败");
}
})
}
var level13;
var level14;
//获取文化程度接口
function getCulture(){
$.ajax({
type:"POST",
url: baseUrl+'user/index/getCulture',
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
level13 = []
console.log(res.data)
// var temp = [1,2,3]
for ( key in res.data){
level13.push({
"name": res.data[key].culture_name,
"value": res.data[key].id,
})
}
console.log(level13)
/**文化程度**/
var method3 = $('.select-value13').mPicker({
level: 1,
dataJson: level13,
Linkage: false,
rows: 6,
idDefault: true,
header: '<div class="mPicker-header">文化程度</div>',
confirm: function() {
//console.info($('.select-value3').data('id1'));
},
cancel: function() {
//console.info($('.select-value3').data('id1'));
}
})
},
})
}
//获取文化程度接口
function getMedical(){
$.ajax({
type:"POST",
url: baseUrl+'user/index/getMedical',
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
level14 = []
console.log(res.data)
// var temp = [1,2,3]
for ( key in res.data){
level14.push({
"name": res.data[key].medical_name,
"value": res.data[key].id,
})
}
console.log(level14)
/**文化程度**/
var method3 = $('.select-value14').mPicker({
level: 1,
dataJson: level14,
Linkage: false,
rows: 6,
idDefault: true,
header: '<div class="mPicker-header">文化程度</div>',
confirm: function() {
//console.info($('.select-value3').data('id1'));
},
cancel: function() {
//console.info($('.select-value3').data('id1'));
}
})
},
})
}
/**医保类型**/
var method3 = $('.select-value15').mPicker({
level: 1,
dataJson: level15,
Linkage: false,
rows: 6,
idDefault: true,
header: '<div class="mPicker-header">医保类型</div>',
confirm: function() {
//console.info($('.select-value3').data('id1'));
},
cancel: function() {
//console.info($('.select-value3').data('id1'));
}
})
</script>
</body>
\ No newline at end of file
... ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_641470_ay7pye7aoqk.css"/>
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="css/modern-accordion.css">
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="js/modern-accordion.js"></script>
<style>
.question {
width: 7.5rem;
height: 0.88rem;
background-color: #FFFFFF;
line-height: 0.88rem;
padding: 0 0.33rem;
display: flex;
position: relative;
box-sizing: border-box;
}
.question .icon-wenhao1,.answer .icon-xiaoxi{
font-size: 0.4rem;
margin-right: 0.16rem;
}
.question .icon-wenhao1{
color: #D8B25F;
}
.answer .icon-xiaoxi{
color: #7A96E1;
}
.question_tit{
font-size: 0.24rem;
color: #D8B25F;
}
.question .icon-xiangyou{
font-size: 0.3rem;
color: #CCCCCC;
position: absolute;
right: 0.35rem;
}
.answer{
width: 7.5rem;
padding: 0.2rem 0.33rem 0.37rem;
background-color: #FFFFFF;
display: flex;
position: relative;
box-sizing: border-box;
line-height: 0.5rem;
}
.answer_text{
font-size: 0.22rem;
color: #333333;
}
.qa_list{
border-bottom: 1px solid #E4E4E4;
}
</style>
<title>我的账户</title>
</head>
<body>
<div class="seheader center">
<div class="left seback">
<a href="#" onClick="javascript:history.back(-1);"><img src="images/care_03.jpg" /></a>
</div>
<div class="headertext">常见问题</div>
</div>
<div class="question_wrap">
<div class="qa_list">
<div class="question">
<i class="iconfont icon-wenhao1"></i>
<p class="question_tit">常见问题</p>
<i class="iconfont icon-xiangyou"></i>
</div>
<div class="answer">
<i class="iconfont icon-xiaoxi"></i>
<p class="answer_text">您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。
</p>
</div>
</div>
<div class="qa_list">
<div class="question">
<i class="iconfont icon-wenhao1"></i>
<p class="question_tit">常见问题</p>
<i class="iconfont icon-xiangyou"></i>
</div>
<div class="answer">
<i class="iconfont icon-xiaoxi"></i>
<p class="answer_text">您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。
</p>
</div>
</div>
<div class="qa_list">
<div class="question">
<i class="iconfont icon-wenhao1"></i>
<p class="question_tit">常见问题</p>
<i class="iconfont icon-xiangyou"></i>
</div>
<div class="answer">
<i class="iconfont icon-xiaoxi"></i>
<p class="answer_text">您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。
</p>
</div>
</div>
</div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.question_wrap').on('click','.question',function () {
$(this).siblings('.answer').slideToggle()
})
getQA()
})
function getQA() {
$.ajax({
type:"POST",
url: baseUrl+"user/index/getQA",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
$('.question_wrap').html(``)
var data = res.data
console.log(res.data)
for (key in data){
$('.question_wrap').append(`<div class="qa_list">
<div class="question">
<i class="iconfont icon-wenhao1"></i>
<p class="question_tit">${data[key].question}</p>
<i class="iconfont icon-xiangyou"></i>
</div>
<div class="answer">
<i class="iconfont icon-xiaoxi"></i>
<p class="answer_text">${data[key].question}
</p>
</div>
</div>`)
}
}
})
}
</script>
</body>
<!--paypart2 end-->
\ No newline at end of file
... ...
... ... @@ -25,6 +25,9 @@
bottom:0;
width:100%;
}
.pharea{
resize: none;
}
</style>
</head>
... ... @@ -98,4 +101,12 @@
<div class="mPicker hide">
<div class="mPicker-mask hide"></div>
</div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
})
</script>
</body>
\ No newline at end of file
... ...
... ... @@ -7,8 +7,8 @@
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="css/weui.css">
<script type="text/javascript" src="js/base.js"></script>
<script src="js/common.js"></script>
<script src="js/base.js"></script>
<title>慢病康护</title>
<style>
.remg li {
... ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html lang="zh">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
... ... @@ -7,260 +9,222 @@
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>我的权益</title>
<script src="js/base.js"></script>
<script src="js/base.js" type="text/javascript"></script>
<style>
.vipbox {
padding: 0.28rem;
}
.vipcon {
border: 0.098rem solid #ddbb73;
.title{
text-align: center;
padding: 0.2rem;
color: #424242;
border-radius: 0.2rem;
}
.viptable th {
font-size: 0.18rem;
color: #fff;
background-color: #efc36a;
height: 0.45rem !important;
}
.vipdes {
font-size: 0.18rem;
margin: 0.2rem 0rem;
}
.vipli ul li {
list-style-type: none;
text-align: left;
font-size: 0.2rem;
margin-top: 0.1rem;
}
/*.vipli ul li:nth-child(2n+1){
}*/
.vipli ul li img {
width: 0.19rem;
margin-right: 0.1rem;
vertical-align: middle;
}
.vipli ul li span {
width: 5.55rem;
display: inline-block;
padding-left: 0.3rem;
}
.jiexi {
font-size: 0.2rem;
color: #ddbb73;
margin: 0.15rem 0rem 0.25rem 0rem;
text-align: left;
}
.vipbtdes {
margin-top: 0.1rem;
}
.vipbtdes p {
font-size: 0.2rem;
text-align: left;
color: #383838;
}
.vipallbut {
margin-top: 0.36rem;
display: inline-flex;
margin-bottom: 0.2rem;
}
#vipedit {
border: 0.01rem solid #ddbb73;
color: #ddbb73;
color: #333;
}
body{
background-color: #FFFFFF;
box-shadow: none;
}
.btn_lsit{
display: flex;
width: 6.64rem;
margin: 0 auto;
justify-content: space-between;
}
.btn_item{
width: 2.65rem;
height: 0.61rem;
border: 1px solid #DDBB73;
line-height: 0.61rem;
text-align:center ;
font-size: 0.3rem;
padding: 0.15rem 0rem;
width: 2.63rem;
border-radius: 0.1rem;
margin-right: 0.1rem;
}
#viplook {
border: 0.01rem solid #ddbb73;
color: #ddbb73;
font-size: 0.3rem;
padding: 0.15rem 0rem;
width: 2.63rem;
.popup,.not_popup{
width: 5.2rem;
height: 3.6rem;
background-color: #FFFFFF;
border-radius: 0.1rem;
margin-left: 0.1rem;
}
.viptt {
margin-top: 0.1rem;
position: fixed;
left: 0;
right: 0;
margin: 0 auto;
top: 50%;
transform: translateY(-1.8rem);
display: none;
overflow: hidden;
border: 1px solid #EEEEEE;
}
.not_popup{
}
.popup p{
display: block;
text-align: center;
font-size: 0.36rem;
margin-top: 0.8rem;
}
.popup_list{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
display: flex;
}
.confirm,.cancel,.confirm_sub{
width: 50%;
font-size: 0.3rem;
text-align:center ;
height: 0.88rem;
line-height: 0.88rem;
}
.vipeqspec li img {
width: 0.19rem;
margin-right: 0.1rem;
vertical-align: top !important;
.confirm,.confirm_sub{
color: #FFFFFF;
background-color: #EFC36A;
display: none;
}
.vipeqspec li span {
width: 5.55rem;
display: inline-block;
padding-left: 0rem !important;
.cancel{
color: #333333;
border: 1px solid #EEEEEE;
}
.vipli {
background-image: url(images/log.png);
background-repeat: no-repeat;
background-position: center;
.not_popup_tit{
font-size: 0.42rem;
line-height: 100%;
}
</style>
</head>
<body>
<div class="seheader center">
<div class="left seback">
<a href="#" onClick="javascript:history.back(-1);">
<img src="images/care_03.jpg" />
</a>
</div>
<div class="headertext">我的权益</div>
</div>
<div class="not_popup">
<p class="not_popup_tit">
<div class="capart1 center">
<div class="vipbox">
<div class="vipcon">
<div>慈界医养VIP权益B类细则</div>
<div class="vipdes textleft">
尊敬的VIP用户:
<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。具体如下:
</p>
</div>
<div class="textleft viptt">B类VIP权益方案:</div>
<table class="intable" style="margin-top:0.1rem;">
<tr class="viptable">
<th>分级</th>
<th>起购金额</th>
<th>期限</th>
<th>预期分红收益</th>
<th>可获消费金额</th>
<th>到期退出</th>
</tr>
<tr>
<th>B分类</th>
<td>9万元</td>
<td>3年</td>
<td>1.87万元</td>
<td>1.35万元</td>
<td>转让或等额转消费金额</td>
</tr>
</table>
<div class="textleft viptt">B类VIP权益细则:</div>
<div class="vipli">
<ul>
<li>
<img src="images/vipli_03.jpg" />分红权益
<br />
<img src="images/vipli_07.jpg" />B类VIP权益预期最高可获得1.87万元分红收益,每满六个月进行一次分红;</li>
<div class="popup">
<p class="popup_tit">
<li>
<img src="images/vipli_10.jpg" />消费权益
<br />
<img src="images/vipli_07.jpg" />B类VIP权益可获得1.35万元消费金额,用于自身及家人健康消费;</li>
<li>
<img src="images/vipli_13.jpg" />基础权益
<br />
<img src="images/vipli_07.jpg" />VIP用户专属服务:
<br />
<span>点亮VIP用户专属尊贵图标;专属VIP用户助理,该团队只为VIP用户服务,提供 VIP用户独享的高品质医养服务;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />建立健康档案:
<br />
<span>根据自己及家人的健康数据、检验报告、就医信息等数据,个性化分析身体健康指标,提前预防管控疾病的发生风险,有效执行健康管理计划;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />绿色通道:
<br />
<span>尊享与慈界医养合作的体检机构、医院、养老机构、保险机构等提供的VIP绿色通道服务;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />服务指导:
<br />
<span>尊享慈界医养VIP专属团队,根据VIP用户需求给出专业的事前、事中、事后等服务指导;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />关爱服务:
<br />
<span>针对服务项目及健康提升计划,做全流程的关爱服务;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />健康风险评估:
<br />
<span>通过疾病风险评估、中医体质评估、心理健康评估结合个人的健康史、健康数据进行全面科学健康风险评估;</span>
</li>
<li>
<img src="images/vipli_16.jpg" />增值权益:</li>
<div class="vipeqspec">
<li>
<img src="images/vipli_07.jpg" />
<span>VIP权益到期后可按照认购金额申请等额转消费金额,可获得9.9万元消费金额,用于自身及家人健康消费;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />
<span>VIP用户及家人可尊享慈界医养组织的各类型高端健康沙龙活动;</span>
</li>
<li>
<img src="images/vipe.jpg" />提示:</li>
<div class="vipeqspec">
<li>
<img src="images/vipli_07.jpg" />
<span>VIP权益认购期为5个工作日,期限届满3年之日前5个工作日为转让期,在转让期内可选择以初始认购额转让或等额转消费金额进行健康消费;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />
<span>VIP权益预期分红收益是根据慈界医养公司经营成果确定,且预期分红收益金额分配时间为每满6个月进行一次分红,以实际到账为准;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />
<span>消费金额等同与现金,可以在慈界医养平台进行健康消费,消费金额有不同限制,具体以每张消费金额凭证为准,在健康消费中请仔细核对;</span>
</li>
<li>
<img src="images/vipli_07.jpg" />
<span>认购金额可根据起购金额的整数倍进行认购,所获权益根据实际认购金额进行计算。</span>
</li>
</p>
<div class="popup_list">
<div class="cancel">
取消
</div>
</ul>
<p class="jiexi">慈界医养平台对以上细则保留最终解释权。</p>
<div class="textleft viptt">更多详情:</div>
<div class="vipbtdes">
<p>欲知更多慈界医养公司的相关信息,敬请登陆网站www.cijievip.com</p>
<p>如有任何有关VIP权益的问题,请联系:</p>
<p>慈界医养平台:+86(10)592367189</p>
<div class="confirm">
确定
</div>
<div class="vipallbut">
<a href="#" id="vipedit">转让</a>
<a href="#" id="viplook">等额转消费金</a>
<div class="confirm_sub">
确定
</div>
</div>
</div>
<div class="seheader center">
<div class="left seback">
<a href="#" onClick="javascript:history.back(-1);">
<img src="images/care_03.jpg" />
</a>
</div>
<div class="headertext">我的权益</div>
</div>
<div class="title"></div>
<div class="content">
</div>
<script type="text/javascript" src="js/common.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
myRights()
})
// //富文本转换
// function charToHtml(str) {
// if (str) {
// str = str.replace(/&amp;/g, '&');
// str = str.replace(/&lt;/g, '<');
// str = str.replace(/&gt;/g, '>');
// str = str.replace(/&quot;/g, "'");
// str = str.replace(/&#039;/g, ' ');
// }
// return str;
// }
//提示弹层
$('.content').on('click','.turn',function () {
$.ajax({
type:"POST",
url: baseUrl+"user/index/myRightsCheck",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
if (res.data.able == 0){
$('.not_popup').show('.not_popup');
$('.not_popup_tit').html(`${res.msg}`)
} else {
$('.popup').show('.popup');
$('.confirm').show();
$('.popup_tit').html(`${res.msg}`)
}
}
})
})
//提示弹层
$('.content').on('click','.money_turn',function () {
$.ajax({
type:"POST",
url: baseUrl+"user/index/myRightsCheck",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
$('.popup').show('.popup');
$('.confirm_sub').show();
var data = res.data;
$('.popup_tit').html(`${res.msg}`)
}
})
})
//关闭弹窗
$('.popup').on('click','.confirm',function () {
$('.popup').hide()
$('.confirm').hide();
$('.confirm_sub').hide();
})
$('.popup').on('click','.confirm_sub',function () {
$('.popup').hide()
$('.confirm').hide();
$('.confirm_sub').hide();
})
$('.popup').on('click','.cancel',function () {
$('.popup').hide();
$('.confirm').hide();
$('.confirm_sub').hide();
})
function myRights() {
$.ajax({
type:"POST",
url: baseUrl+"user/index/myRights",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
$('.vipcon').html(``)
var data = res.data
console.log(data)
$('.title').html(`<div>${data.post_title}</div>`)
var post_content = data.post_content
$('.content').append(post_content);
$('.content').append(`<div class="btn_lsit">
<div class="btn_item turn">转让</div>
<div class="btn_item money_turn">等额转消费金</div>
</div>`);
}
})
}
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -7,6 +7,7 @@
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="css/swiper.min.css">
<script type="text/javascript" src="js/base.js"/>
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<title>健康档案</title>
<style>
... ... @@ -46,10 +47,13 @@
.dangreport{
margin-bottom: 0.3rem;
}
.swiper-slide{
/* width:4.77rem !important; */
.swiper-slide {
width: 3.5rem !important;
border-radius: 10px;
margin-right: 1rem;
}
</style>
</head>
... ... @@ -68,55 +72,9 @@
<div class="he2part center">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide swiper-slide-center none-effect">
<div class="he2kuang">
<div class="dangall">
<span>1</span>/3</div>
<div class="dangtit">李凯的健康档案</div>
<div class="dangdesc">最后更新时间:2018-01-26 14:22:14</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_03.jpg" />服务报告(0份)</a>
</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_06.jpg" />检验报告(0份)</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="he3kuang">
<div class="dangall">
<span>2</span>/3</div>
<div class="dangtit">李凯的健康档案</div>
<div class="dangdesc">最后更新时间:2018-01-26 14:22:14</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_03.jpg" />服务报告(0份)</a>
</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_06.jpg" />检验报告(0份)</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="he4kuang">
<div class="dangall">
<span>3</span>/3</div>
<div class="dangtit">李凯的健康档案</div>
<div class="dangdesc">最后更新时间:2018-01-26 14:22:14</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_03.jpg" />服务报告(0份)</a>
</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_06.jpg" />检验报告(0份)</a>
</div>
</div>
</div>
<div class="swiper-wrapper" id="familyRecord">
</div>
</div>
... ... @@ -130,42 +88,67 @@
</body>
<!-- Swiper JS -->
<script src="js/swiper.min.js"></script>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- Initialize Swiper -->
<script>
window.onload = function () {
var swiper = new Swiper('.swiper-container', {
effect: 'coverflow',
slidesPerView: 2,
slidesPerView: 3,
spaceBetween: 30,
centeredSlides: true,
coverflow: {
rotate: 30,
stretch: -50,
depth: 100,
modifier: 1,
slideShadows: true
}
// autoplay: 993000,
// speed: 1000,
// autoplayDisableOnInteraction: false,
// loop: true,
// centeredSlides: true,
// pagination: '.swiper-pagination',
// paginationClickable: true,
// prevButton: '.swiper-button-prev',
// nextButton: '.swiper-button-next',
// onInit: function (swiper) {
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
// },
// breakpoints: {
// 668: {
// slidesPerView: 3,
// }
familyRecord()
}
function familyRecord() {
$.ajax({
type:"POST",
url: baseUrl+"user/index/familyRecord",
dataType:"json",
data:{
DeviceType:"1",
token:"1",
},
success:function (res) {
$('#familyRecord').html(``)
var data = res.data;
var info = data.info
console.log(info[0].time)
for ( key in info) {
var img = key%3 == '0'?'images/hebg2_03.png':key%3 == '1'?'images/he2_03.png':key%3 == '2'?'images/hebg2_04.png':""
console.log(img)
$('#familyRecord').append(`<div class="swiper-slide" id="" data-id = ${parseInt(key)+1}>
<div class="he2kuang" style="background-image:url(${img})">
<div class="dangall">
<span>${parseInt(key)+1}</span>/${info.length}</div>
<div class="dangtit">${info[key].name}的健康档案</div>
<div class="dangdesc">最后更新时间:${info[key].time}</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_03.jpg" />服务报告(${info[key].service}份)</a>
</div>
<div class="dangreport">
<a href="#">
<img src="images/he2a_06.jpg" />检验报告(${info[key].checkout}份)</a>
</div>
</div>
</div>`)
}
// if ($('#swiper_item').attr('data-id')==1){
// $('#swiper_item').css('background-image',"url(../images/hebg2_03.png)")
// } else if ($('#swiper_item').attr('data-id')==2){
// $('#swiper_item').css('background-image',"url(../images/he2_03.png)")
// }else if ($('#swiper_item').attr('data-id')==3){
// $(this).css('background-image',"url(../images/hebg2_04.png)")
// }
});
}
})
}
</script>
... ...
... ... @@ -6,6 +6,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/base.js"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(function () {
... ...
... ... @@ -7,6 +7,7 @@
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/share.css" />
<script type="text/javascript" src="js/base.js"/>
<script src="js/share.js"></script>
<script src="js/jquery-1.2.6.min.js"></script>
<title>好友注册</title>
... ...
... ... @@ -5,7 +5,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>用户协议</title>
<title>用户协议</title>
<!--<script type="text/javascript" src="js/base.js"/>-->
<style type="text/css">
.pcmedia{
line-height: 1rem;
}
</style>
</head>
<body>
... ...
... ... @@ -6,6 +6,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/base.js"/>
<SCRIPT type="text/javascript">
var maxtime = 30 * 60; //一个小时,按秒计算,自己调整!
function CountDown() {
... ...