作者 wendy0406

王玉琪

@@ -18,8 +18,11 @@ @@ -18,8 +18,11 @@
18 } 18 }
19 19
20 .mdn-accordion .accordion-title::before { 20 .mdn-accordion .accordion-title::before {
21 - right: 0.5rem;  
22 - top: 45%; 21 + right: 0.65rem;
  22 + top: 50%;
  23 + transform: translateY(-0.13rem);
  24 + width: 0.26rem;
  25 + height: 0.26rem;
23 } 26 }
24 27
25 ..mdn-accordion .accordion-title { 28 ..mdn-accordion .accordion-title {
@@ -32,13 +35,17 @@ @@ -32,13 +35,17 @@
32 } 35 }
33 36
34 .mdn-accordion .accordion-toggle:checked+.accordion-title::before { 37 .mdn-accordion .accordion-toggle:checked+.accordion-title::before {
35 - right: 40px; 38 + right: 0.65rem;
36 color: #c0c0c0; 39 color: #c0c0c0;
  40 + width: 0.26rem;
  41 + height: 0.26rem;
37 } 42 }
38 43
39 .mdn-accordion .accordion-toggle:checked+.accordion-title::before { 44 .mdn-accordion .accordion-toggle:checked+.accordion-title::before {
40 - right: 0.5rem;  
41 - top: 20%; 45 + right: 0.65rem;
  46 + color: #c0c0c0;
  47 + width: 0.26rem;
  48 + height: 0.26rem;
42 } 49 }
43 50
44 </style> 51 </style>
@@ -85,4 +92,11 @@ @@ -85,4 +92,11 @@
85 </ul> 92 </ul>
86 </div> 93 </div>
87 </div> 94 </div>
88 - <!--paypart2 end-->  
  95 + <!--paypart2 end-->
  96 + <script type="text/javascript">
  97 + $('.acde').click(function () {
  98 + window.location.href='deposit.html'
  99 + })
  100 + </script>
  101 + </body>
  102 +</html>
@@ -96,9 +96,8 @@ @@ -96,9 +96,8 @@
96 data: type_sugar, 96 data: type_sugar,
97 }; 97 };
98 var header = { 98 var header = {
99 - "DeviceType": '1',  
100 - "Token": '1',  
101 - "Accept": 'application/json;text/plain', 99 + "XX-Device-Type": '1',
  100 + "XX-Token": '1',
102 } 101 }
103 if (type_sugar != '' && endTime != '' && time3 != '') { 102 if (type_sugar != '' && endTime != '' && time3 != '') {
104 getRequest('post', "user/index/setBoolData", post, header).then(function (res) { 103 getRequest('post', "user/index/setBoolData", post, header).then(function (res) {
@@ -112,7 +111,7 @@ @@ -112,7 +111,7 @@
112 // url: "http://kindapp.w.bronet.cn/api/user/index/setBoolData", 111 // url: "http://kindapp.w.bronet.cn/api/user/index/setBoolData",
113 // dataType:"json", 112 // dataType:"json",
114 // headers:{ 113 // headers:{
115 - // "DeviceType":'1', 114 + // ""XX-Device-Type"":'1',
116 // "Token":'1', 115 // "Token":'1',
117 // "Accept":'application/json;text/plain', 116 // "Accept":'application/json;text/plain',
118 // // "Content-Type":"text/plain;charset=UTF-8" 117 // // "Content-Type":"text/plain;charset=UTF-8"
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 order_id:1 70 order_id:1
71 }; 71 };
72 var header={ 72 var header={
73 - DeviceType:1, 73 + "XX-Device-Type":1,
74 Token:1 74 Token:1
75 }; 75 };
76 sendAjax('post', 'user/Order/getConsumeMoney', post, header, function (res) { 76 sendAjax('post', 'user/Order/getConsumeMoney', post, header, function (res) {
@@ -19,7 +19,6 @@ body{ @@ -19,7 +19,6 @@ body{
19 margin: 0 auto; 19 margin: 0 auto;
20 height: 100%; 20 height: 100%;
21 background-color:#efefef; 21 background-color:#efefef;
22 - box-shadow: 1px 1px 5px #888888;  
23 font-size:0.24rem; 22 font-size:0.24rem;
24 } 23 }
25 .left{ 24 .left{
@@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <link rel="stylesheet" type="text/css" href="css/base.css" /> 6 <link rel="stylesheet" type="text/css" href="css/base.css" />
7 <link rel="stylesheet" type="text/css" href="css/style.css" /> 7 <link rel="stylesheet" type="text/css" href="css/style.css" />
8 -<link rel="stylesheet" type="text/css" href="css/tanchu.css" />  
9 -<script src="js/base.js" type="text/javascript" charset="utf-8"></script> 8 +<link rel="stylesheet" type="text/css" href="css/tanchu.css" /><link rel="stylesheet" href="css/weui.css">
  9 + <script src="js/base.js" type="text/javascript" charset="utf-8"></script>
10 <title>提现确认</title> 10 <title>提现确认</title>
11 </head> 11 </head>
12 <style type="text/css"> 12 <style type="text/css">
@@ -29,27 +29,27 @@ @@ -29,27 +29,27 @@
29 <div class="infupart1 depobox"> 29 <div class="infupart1 depobox">
30 <div class="appro"> 30 <div class="appro">
31 <span>银行户名</span> 31 <span>银行户名</span>
32 - <span class="right"><input type="text" placeholder="请输入姓名" /></span> 32 + <span class="right"><input type="text" class="test_name" placeholder="请输入姓名" /></span>
33 </div> 33 </div>
34 <div class="appro"> 34 <div class="appro">
35 <span>银行卡号</span> 35 <span>银行卡号</span>
36 - <span class="right"><input type="text" placeholder="请输入银行借记卡卡号" /></span> 36 + <span class="right"><input type="text" class="card_num" placeholder="请输入银行借记卡卡号" /></span>
37 </div> 37 </div>
38 <div class="appro"> 38 <div class="appro">
39 <span>所属银行</span> 39 <span>所属银行</span>
40 - <span class="right"><input type="text" class="select-value5" placeholder="" /><img src="images/pergo_03.jpg"/></span> 40 + <span class="right"><input type="text" class="select-value5 bank" placeholder="" /><img src="images/pergo_03.jpg"/></span>
41 </div> 41 </div>
42 <div class="appro"> 42 <div class="appro">
43 <span>所属地区</span> 43 <span>所属地区</span>
44 - <span class="right"><input type="text" class="select-value" placeholder="" /><img src="images/pergo_03.jpg"/></span> 44 + <span class="right"><input type="text" class="select-value test_address" placeholder="" /><img src="images/pergo_03.jpg"/></span>
45 </div> 45 </div>
46 <div class="appro"> 46 <div class="appro">
47 <span>预留手机号</span> 47 <span>预留手机号</span>
48 - <span class="right"><input type="text" placeholder="请输入您的手机号码" /></span> 48 + <span class="right"><input type="text" class="phone_numphone_num" placeholder="请输入您的手机号码" /></span>
49 </div> 49 </div>
50 <div class="appyan"> 50 <div class="appyan">
51 <span class="right"><span class="qufen">|</span><a href="#">获取验证码</a></span> 51 <span class="right"><span class="qufen">|</span><a href="#">获取验证码</a></span>
52 - <span><input type="text" placeholder="请输入您的验证码" /></span> 52 + <span><input type="text" class="test_num" placeholder="请输入您的验证码" /></span>
53 </div> 53 </div>
54 <div id="inaccount"><img src="images/vipli_19.jpg"/>5-7个工作日审核到账</div> 54 <div id="inaccount"><img src="images/vipli_19.jpg"/>5-7个工作日审核到账</div>
55 55
@@ -60,6 +60,51 @@ @@ -60,6 +60,51 @@
60 60
61 <script src="js/jquery.min.js"></script> 61 <script src="js/jquery.min.js"></script>
62 <script src="js/deposit.js"></script><div class="mPicker hide"><div class="mPicker-mask hide"></div></div> 62 <script src="js/deposit.js"></script><div class="mPicker hide"><div class="mPicker-mask hide"></div></div>
  63 +<script src="js/weui.js"></script>
  64 +<script type="text/javascript">
  65 + var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
  66 + $(document).ready(function () {
  67 +
  68 + })
  69 + $('.approbut').click(function () {
  70 + if ($('.test_name').val()==''||$('.test_name').val()==undefined||$('.test_name').val()==null){
  71 + let loading = weui.loading("请输入姓名")
  72 + setTimeout(function () {
  73 + loading.hide();
  74 + }, 1500);
  75 + }else if ($('.card_num').val()==''||$('.card_num').val()==undefined||$('.card_num').val()==null){
  76 + let loading = weui.loading("请输入银行借记卡卡号")
  77 + setTimeout(function () {
  78 + loading.hide();
  79 + }, 1500);
  80 + }else if ($('.bank').val()==''||$('.bank').val()==undefined||$('.bank').val()==null){
  81 + let loading = weui.loading("请选择所属银行")
  82 + setTimeout(function () {
  83 + loading.hide();
  84 + }, 1500);
  85 + }else if ($('.test_address').val()==''||$('.test_address').val()==undefined||$('.test_address').val()==null){
  86 + let loading = weui.loading("请选择所属地区")
  87 + setTimeout(function () {
  88 + loading.hide();
  89 + }, 1500);
  90 + }else if ($('.test_address').val()==''||$('.test_address').val()==undefined||$('.test_address').val()==null){
  91 + let loading = weui.loading("请选择所属地区")
  92 + setTimeout(function () {
  93 + loading.hide();
  94 + }, 1500);
  95 + }else if(!myreg.test($('.phone_numphone_num').val())){
  96 + let loading = weui.loading("请输入正确手机号")
  97 + setTimeout(function () {
  98 + loading.hide();
  99 + }, 1500);
  100 + }else if ($('.test_num').val()==''||$('.test_num').val()==undefined||$('.test_num').val()==null){
  101 + let loading = weui.loading("请填写验证码")
  102 + setTimeout(function () {
  103 + loading.hide();
  104 + }, 1500);
  105 + }
  106 + })
  107 +</script>
63 </body> 108 </body>
64 109
65 110
@@ -122,9 +122,11 @@ input.labelauty + label{ @@ -122,9 +122,11 @@ input.labelauty + label{
122 type:"POST", 122 type:"POST",
123 url:"http://192.168.1.3/api/user/index/typeInfo", 123 url:"http://192.168.1.3/api/user/index/typeInfo",
124 dataType:"JSON", 124 dataType:"JSON",
  125 + headers:{
  126 + "XX-Device-Type":"1",
  127 + "XX-Token":"1",
  128 + },
125 data:{ 129 data:{
126 - DeviceType:"1",  
127 - token:"1",  
128 type_id:"1", 130 type_id:"1",
129 }, 131 },
130 success:function (res) { 132 success:function (res) {
@@ -163,8 +165,8 @@ input.labelauty + label{ @@ -163,8 +165,8 @@ input.labelauty + label{
163 url:"http://192.168.1.3/api/user/index/typeInfo", 165 url:"http://192.168.1.3/api/user/index/typeInfo",
164 dataType:"JSON", 166 dataType:"JSON",
165 data:{ 167 data:{
166 - DeviceType:"1",  
167 - token:"1", 168 + "XX-Device-Type":"1",
  169 + "XX-Token":"1",
168 type_id:"1", 170 type_id:"1",
169 qid:qid, 171 qid:qid,
170 aid:sele_arr 172 aid:sele_arr
1 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head> 4 <head>
4 -<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">  
5 -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
6 -<link rel="stylesheet" type="text/css" href="css/base.css" />  
7 -<link rel="stylesheet" type="text/css" href="css/style.css" />  
8 -<link rel="stylesheet" type="text/css" href="css/progress.css" />  
9 -<link rel="stylesheet" type="text/css" href="css/font-awesome.css"/>  
10 -<link rel="stylesheet" type="text/css" href="css/modern-accordion.css">  
11 -<link rel="stylesheet" type="text/css" href="css/health.css"> 5 + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  7 + <link rel="stylesheet" type="text/css" href="css/base.css"/>
  8 + <link rel="stylesheet" type="text/css" href="css/style.css"/>
  9 + <link rel="stylesheet" type="text/css" href="css/progress.css"/>
  10 + <link rel="stylesheet" type="text/css" href="css/font-awesome.css"/>
  11 + <link rel="stylesheet" type="text/css" href="css/modern-accordion.css">
  12 + <link rel="stylesheet" type="text/css" href="css/health.css">
12 <script type="text/javascript" src="js/base.js"></script> 13 <script type="text/javascript" src="js/base.js"></script>
13 -<script src="js/modern-accordion.js"></script>  
14 -<style>  
15 -  
16 -@-webkit-keyframes load {  
17 - 0% {  
18 - stroke-dashoffset: 0;  
19 - }  
20 -}  
21 -@keyframes load {  
22 - 0% {  
23 - stroke-dashoffset: 0;  
24 - }  
25 -}  
26 -.mdn-accordion .accordion-title::before{  
27 - display: none;  
28 -}  
29 -.accordion-title {  
30 - width: 7.5rem;  
31 -}  
32 -.progress {  
33 - position: relative;  
34 - display: inline-block;  
35 - padding: 0;  
36 - text-align: center;  
37 - left: -1.1rem;  
38 -top: 0.25rem;  
39 -}  
40 -.progress > li {  
41 - display: inline-block;  
42 - position: relative;  
43 - text-align: center;  
44 - color: #93A2AC;  
45 - font-family: Lato;  
46 - font-weight: 100;  
47 -  
48 -}  
49 -.progress > li:before {  
50 - content: attr(data-name);  
51 - position: absolute;  
52 - width: 100%;  
53 - bottom: -2rem;  
54 - font-weight: 400;  
55 -}  
56 -.progress > li:after {  
57 - content: attr(data-percent);  
58 - position: absolute;  
59 - width: 100%;  
60 - top: 3.7rem;  
61 - left: 0;  
62 - font-size: 2rem;  
63 - text-align: center;  
64 -}  
65 -.progress svg {  
66 - width: 2.5rem;  
67 -height: 3.1rem;  
68 -}  
69 -.progress svg:nth-child(2) {  
70 - position: absolute;  
71 - left: 0;  
72 - top: 0;  
73 - -webkit-transform: rotate(-90deg);  
74 - transform: rotate(-90deg);  
75 -}  
76 -.progress svg:nth-child(2) path {  
77 - fill: none;  
78 - stroke-width: 13;  
79 - stroke-dasharray: 629;  
80 - stroke: #ddc081;  
81 - opacity: .9;  
82 - -webkit-animation: load 10s;  
83 - animation: load 10s;  
84 -}  
85 -#target{  
86 - width:0.58rem  
87 - }  
88 - .mdn-accordion .accordion-title, .mdn-accordion a{  
89 - padding: 0;  
90 - display: block;  
91 - width: 7.5rem;  
92 - }  
93 - .mdn-accordion .accordion-title::before{  
94 - top: 50%;  
95 - transform: translateY(-0.13rem);  
96 - right: 0.15rem;  
97 - width: 0.25rem;  
98 - height: 0.26rem;  
99 - transform: translateY(-0.13rem);  
100 - }  
101 - .textleft{  
102 - height: 0.66rem;  
103 - position: relative;  
104 - line-height: 0.3rem;  
105 - display: flex;  
106 - align-items: center;  
107 - justify-content: space-between;  
108 - width: 7.5rem;  
109 - box-sizing: border-box;  
110 - }  
111 - .textright{  
112 - display: inline-block;  
113 - height: 0.3rem;  
114 - position: absolute;  
115 - }  
116 -</style>  
117 -  
118 -  
119 -<title>健康档案</title> 14 + <script src="js/modern-accordion.js"></script>
  15 + <style>
  16 + .rotate {
  17 +
  18 + transform-origin: center center;
  19 + / / 旋转中心要是正中间 才行 transform: rotate(90 deg);
  20 +
  21 + -webkit-transform: rotate(90deg);
  22 +
  23 + -moz-transform: rotate(90deg);
  24 +
  25 + -ms-transform: rotate(90deg);
  26 +
  27 + -o-transform: rotate(90deg);
  28 +
  29 + transition: transform 0.2s;
  30 + / / 过度时间 可调 -moz-transition: -moz-transform 0.2 s;
  31 +
  32 + -moz-transition: -moz-transform 0.2s;
  33 +
  34 + -o-transition: -o-transform 0.2s;
  35 +
  36 + -ms-transition: -ms-transform 0.2s;
  37 +
  38 + }
  39 +
  40 + .rotate1 {
  41 +
  42 + transform-origin: center center;
  43 +
  44 + transform: rotate(0deg);
  45 + / / 返回原点 -webkit-transform: rotate(0 deg);
  46 +
  47 + -moz-transform: rotate(deg);
  48 +
  49 + -ms-transform: rotate(0deg);
  50 +
  51 + -o-transform: rotate(0deg);
  52 +
  53 + transition: transform 0.2s;
  54 +
  55 + -moz-transition: -moz-transform 0.2s;
  56 +
  57 + -moz-transition: -moz-transform 0.2s;
  58 +
  59 + -o-transition: -o-transform 0.2s;
  60 +
  61 + -ms-transition: -ms-transform 0.2s;
  62 +
  63 + }
  64 +
  65 + @-webkit-keyframes load {
  66 + 0% {
  67 + stroke-dashoffset: 0;
  68 + }
  69 + }
  70 +
  71 + @keyframes load {
  72 + 0% {
  73 + stroke-dashoffset: 0;
  74 + }
  75 + }
  76 +
  77 + .mdn-accordion .accordion-title::before {
  78 + display: none;
  79 + }
  80 +
  81 + .accordion-title {
  82 + width: 7.5rem;
  83 + }
  84 +
  85 + .progress {
  86 + position: relative;
  87 + display: inline-block;
  88 + padding: 0;
  89 + text-align: center;
  90 + left: -1.1rem;
  91 + top: 0.25rem;
  92 + }
  93 +
  94 + .progress > li {
  95 + display: inline-block;
  96 + position: relative;
  97 + text-align: center;
  98 + color: #93A2AC;
  99 + font-family: Lato;
  100 + font-weight: 100;
  101 +
  102 + }
  103 +
  104 + .progress > li:before {
  105 + content: attr(data-name);
  106 + position: absolute;
  107 + width: 100%;
  108 + bottom: -2rem;
  109 + font-weight: 400;
  110 + }
  111 +
  112 + .progress > li:after {
  113 + content: attr(data-percent);
  114 + position: absolute;
  115 + width: 100%;
  116 + top: 3.7rem;
  117 + left: 0;
  118 + font-size: 2rem;
  119 + text-align: center;
  120 + }
  121 +
  122 + .progress svg {
  123 + width: 2.5rem;
  124 + height: 3.1rem;
  125 + }
  126 +
  127 + .progress svg:nth-child(2) {
  128 + position: absolute;
  129 + left: 0;
  130 + top: 0;
  131 + -webkit-transform: rotate(-90deg);
  132 + transform: rotate(-90deg);
  133 + }
  134 +
  135 + .progress svg:nth-child(2) path {
  136 + fill: none;
  137 + stroke-width: 13;
  138 + stroke-dasharray: 629;
  139 + stroke: #ddc081;
  140 + opacity: .9;
  141 + -webkit-animation: load 10s;
  142 + animation: load 10s;
  143 + }
  144 +
  145 + #target {
  146 + width: 0.58rem
  147 + }
  148 +
  149 + .mdn-accordion .accordion-title, .mdn-accordion a {
  150 + padding: 0;
  151 + display: block;
  152 + width: 7.5rem;
  153 + }
  154 +
  155 + .mdn-accordion .accordion-title::before {
  156 + top: 50%;
  157 + transform: translateY(-0.13rem);
  158 + right: 0.15rem;
  159 + width: 0.25rem;
  160 + height: 0.26rem;
  161 + transform: translateY(-0.13rem);
  162 + }
  163 +
  164 + .textleft {
  165 + height: 0.66rem;
  166 + position: relative;
  167 + line-height: 0.3rem;
  168 + display: flex;
  169 + align-items: center;
  170 + justify-content: space-between;
  171 + width: 7.5rem;
  172 + box-sizing: border-box;
  173 + }
  174 +
  175 + .textright {
  176 + display: inline-block;
  177 + height: 0.3rem;
  178 + position: absolute;
  179 + }
  180 + </style>
  181 +
  182 +
  183 + <title>健康档案</title>
120 </head> 184 </head>
121 185
122 <body> 186 <body>
123 187
124 <svg width="0" height="0"> 188 <svg width="0" height="0">
125 -<defs>  
126 -<lineargradient id="cl1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">  
127 - <stop stop-color="#618099"></stop>  
128 - <stop offset="100%" stop-color="#8e6677"></stop>  
129 -</lineargradient>  
130 -<lineargradient id="cl2" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="1">  
131 - <stop stop-color="#8e6677"></stop>  
132 - <stop offset="100%" stop-color="#9b5e67"></stop>  
133 -</lineargradient>  
134 -<lineargradient id="cl3" gradientUnits="objectBoundingBox" x1="1" y1="0" x2="0" y2="1">  
135 - <stop stop-color="#9b5e67"></stop>  
136 - <stop offset="100%" stop-color="#9c787a"></stop>  
137 -</lineargradient>  
138 -<lineargradient id="cl4" gradientUnits="objectBoundingBox" x1="1" y1="1" x2="0" y2="0">  
139 - <stop stop-color="#9c787a"></stop>  
140 - <stop offset="100%" stop-color="#817a94"></stop>  
141 -</lineargradient>  
142 -<lineargradient id="cl5" gradientUnits="objectBoundingBox" x1="0" y1="1" x2="0" y2="0">  
143 - <stop stop-color="#817a94"></stop>  
144 - <stop offset="100%" stop-color="#498a98"></stop>  
145 -</lineargradient>  
146 -<lineargradient id="cl6" gradientUnits="objectBoundingBox" x1="0" y1="1" x2="1" y2="0">  
147 - <stop stop-color="#498a98"></stop>  
148 - <stop offset="100%" stop-color="#618099"></stop>  
149 -</lineargradient>  
150 -</defs> 189 + <defs>
  190 + <lineargradient id="cl1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
  191 + <stop stop-color="#618099"></stop>
  192 + <stop offset="100%" stop-color="#8e6677"></stop>
  193 + </lineargradient>
  194 + <lineargradient id="cl2" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="1">
  195 + <stop stop-color="#8e6677"></stop>
  196 + <stop offset="100%" stop-color="#9b5e67"></stop>
  197 + </lineargradient>
  198 + <lineargradient id="cl3" gradientUnits="objectBoundingBox" x1="1" y1="0" x2="0" y2="1">
  199 + <stop stop-color="#9b5e67"></stop>
  200 + <stop offset="100%" stop-color="#9c787a"></stop>
  201 + </lineargradient>
  202 + <lineargradient id="cl4" gradientUnits="objectBoundingBox" x1="1" y1="1" x2="0" y2="0">
  203 + <stop stop-color="#9c787a"></stop>
  204 + <stop offset="100%" stop-color="#817a94"></stop>
  205 + </lineargradient>
  206 + <lineargradient id="cl5" gradientUnits="objectBoundingBox" x1="0" y1="1" x2="0" y2="0">
  207 + <stop stop-color="#817a94"></stop>
  208 + <stop offset="100%" stop-color="#498a98"></stop>
  209 + </lineargradient>
  210 + <lineargradient id="cl6" gradientUnits="objectBoundingBox" x1="0" y1="1" x2="1" y2="0">
  211 + <stop stop-color="#498a98"></stop>
  212 + <stop offset="100%" stop-color="#618099"></stop>
  213 + </lineargradient>
  214 + </defs>
151 </svg> 215 </svg>
152 <div class="heheader center"> 216 <div class="heheader center">
153 - <div class="left back"><a href="#" onClick="javascript:history.back(-1);"><img src="images/hetop_03.jpg"/></a></div> 217 + <div class="left back"><a href="#" onClick="javascript:history.back(-1);"><img src="images/hetop_03.jpg"/></a></div>
154 <div class="shetitle">健康档案</div> 218 <div class="shetitle">健康档案</div>
155 <div class="right heshare"> 219 <div class="right heshare">
156 - <div class="c-dropdown js-dropdown">  
157 - <span class="c-button c-button--dropdown "><img src="images/her_03.jpg" id ="target"/></span>  
158 - <ul class="c-dropdown__list">  
159 - <li class="c-dropdown__item" data-dropdown-value="angular"><a href="#">完善健康档案</a></li>  
160 - <li class="c-dropdown__item" data-dropdown-value="backbone"><a href="#">添加亲友档案</a></li>  
161 - <li class="c-dropdown__item" data-dropdown-value="ember"><a href="亲友健康档案.html">查看亲友档案</a></li>  
162 - </ul> 220 + <div class="c-dropdown js-dropdown">
  221 + <span class="c-button c-button--dropdown "><img src="images/her_03.jpg" id="target"/></span>
  222 + <ul class="c-dropdown__list">
  223 + <li class="c-dropdown__item" data-dropdown-value="angular"><a href="#">完善健康档案</a></li>
  224 + <li class="c-dropdown__item" data-dropdown-value="backbone"><a href="#">添加亲友档案</a></li>
  225 + <li class="c-dropdown__item qinyou" data-dropdown-value="ember"><a href="亲友健康档案.html.html">查看亲友档案</a></li>
  226 + </ul>
  227 + </div>
163 </div> 228 </div>
164 - </div>  
165 - 229 +
166 </div> 230 </div>
167 231
168 <div class="hebanner center"> 232 <div class="hebanner center">
169 <div id="round" style="margin:0rem;"> 233 <div id="round" style="margin:0rem;">
170 - <div class="data">  
171 - <p id="name">王振华</p>  
172 - <p id="year">男,32岁</p>  
173 - <p id="integrity">资料完整度63%</p>  
174 - </div>  
175 - <!-- Container -->  
176 -<ul class="progress">  
177 - <li>  
178 - <svg viewBox="-10 -10 220 220">  
179 - <g fill="none" stroke-width="12" transform="translate(100,100)">  
180 - <path d="M 0,-100 A 100,100 0 0,1 86.6,-50" stroke="url(#d8b25f)"></path>  
181 - <path d="M 86.6,-50 A 100,100 0 0,1 86.6,50" stroke="url(#d8b25f)"></path>  
182 - <path d="M 86.6,50 A 100,100 0 0,1 0,100" stroke="url(#d8b25f)"></path>  
183 - <path d="M 0,100 A 100,100 0 0,1 -86.6,50" stroke="url(#d8b25f)"></path>  
184 - <path d="M -86.6,50 A 100,100 0 0,1 -86.6,-50" stroke="url(#d8b25f)"></path>  
185 - <path d="M -86.6,-50 A 100,100 0 0,1 0,-100" stroke="url(#d8b25f)"></path>  
186 - </g>  
187 - </svg>  
188 - <svg viewBox="-10 -10 220 220">  
189 - <path d="M200,100 C200,44.771525 155.228475,0 100,0 C44.771525,0 0,44.771525 0,100 C0,155.228475 44.771525,200 100,200 C155.228475,200 200,155.228475 200,100 Z" stroke-dashoffset="415"></path>  
190 - </svg>  
191 - </li>  
192 -</ul>  
193 -<!-- Defining Angle Gradient Colors -->  
194 - <!--<div class="progress-radial progress-63">  
195 - <b>  
196 <div class="data"> 234 <div class="data">
197 <p id="name">王振华</p> 235 <p id="name">王振华</p>
198 <p id="year">男,32岁</p> 236 <p id="year">男,32岁</p>
199 <p id="integrity">资料完整度63%</p> 237 <p id="integrity">资料完整度63%</p>
200 </div> 238 </div>
201 - </b>  
202 - </div>-->  
203 - </div> 239 + <!-- Container -->
  240 + <ul class="progress">
  241 + <li>
  242 + <svg viewBox="-10 -10 220 220">
  243 + <g fill="none" stroke-width="12" transform="translate(100,100)">
  244 + <path d="M 0,-100 A 100,100 0 0,1 86.6,-50" stroke="url(#d8b25f)"></path>
  245 + <path d="M 86.6,-50 A 100,100 0 0,1 86.6,50" stroke="url(#d8b25f)"></path>
  246 + <path d="M 86.6,50 A 100,100 0 0,1 0,100" stroke="url(#d8b25f)"></path>
  247 + <path d="M 0,100 A 100,100 0 0,1 -86.6,50" stroke="url(#d8b25f)"></path>
  248 + <path d="M -86.6,50 A 100,100 0 0,1 -86.6,-50" stroke="url(#d8b25f)"></path>
  249 + <path d="M -86.6,-50 A 100,100 0 0,1 0,-100" stroke="url(#d8b25f)"></path>
  250 + </g>
  251 + </svg>
  252 + <svg viewBox="-10 -10 220 220">
  253 + <path d="M200,100 C200,44.771525 155.228475,0 100,0 C44.771525,0 0,44.771525 0,100 C0,155.228475 44.771525,200 100,200 C155.228475,200 200,155.228475 200,100 Z"
  254 + stroke-dashoffset="415"></path>
  255 + </svg>
  256 + </li>
  257 + </ul>
  258 + <!-- Defining Angle Gradient Colors -->
  259 + <!--<div class="progress-radial progress-63">
  260 + <b>
  261 + <div class="data">
  262 + <p id="name">王振华</p>
  263 + <p id="year">男,32岁</p>
  264 + <p id="integrity">资料完整度63%</p>
  265 + </div>
  266 + </b>
  267 + </div>-->
204 </div> 268 </div>
205 </div> 269 </div>
  270 +</div>
206 271
207 <div class="capart1"> 272 <div class="capart1">
208 - <div class="perfect">  
209 - <ul>  
210 - <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>  
211 - <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>  
212 - <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> 273 + <div class="perfect">
  274 + <ul>
  275 + <li><a href="peridata.html"><img src="images/heli_03.png"/>个人资料<span class="right"><span
  276 + id="info">未完善</span> <img src="images/hego.png"/></span></a></li>
  277 + <li><a href="history.html"><img src="images/heli_06.png"/>健康史<span class="right"><span
  278 + id="history">未完善</span> <img src="images/hego.png"/></span></a></li>
  279 + <li><a href="data.html"><img src="images/heli_08.png"/>健康数据<span class="right"><span id="h_data">未完善</span> <img
  280 + src="images/hego.png"/></span></a></li>
213 </ul> 281 </ul>
214 </div> 282 </div>
215 - 283 +
216 <div> 284 <div>
217 - <ul class="mdn-accordion single-level-accordion record">  
218 - <input class="accordion-toggle" type="checkbox" name="accordion-panel-1" id="accordion-panel-1">  
219 - <label class="accordion-title shu" for="accordion-panel-1"> 285 + <ul class="mdn-accordion single-level-accordion record">
  286 + <input class="accordion-toggle" type="checkbox" name="accordion-panel-1" id="accordion-panel-1">
  287 + <label class="accordion-title shu" for="accordion-panel-1">
220 288
221 - <div class="textleft hefe" style="width: 7.5rem;padding: 0 0.12rem 0 0.35rem;"><div>  
222 - <img src="images/he_03.jpg"/>全生命周期健康记录  
223 - </div>  
224 - <div><span class="right"><span id="life_record">3分报告</span> <img src="images/hego.png"/></span></div>  
225 - </div>  
226 - </label>  
227 - <ul>  
228 - <li><div class="time">2016-07-18<span class="yuan"><img src="images/yuan_03.png"/></span></div>  
229 - <div class="hecontent right">  
230 - <div class="triangle-left"></div>  
231 - <div class="recordti">[ 病历 ]</div>  
232 - <div class="redes">主诉:流涕咽喉疼痛3天</div> 289 + <div class="textleft hefe" style="width: 7.5rem;padding: 0 0.12rem 0 0.35rem;">
  290 + <div>
  291 + <img src="images/he_03.jpg"/>全生命周期健康记录
  292 + </div>
  293 + <div><span class="right"><span id="life_record">3分报告</span> <img src="images/hego.png"
  294 + class="hego_active"/></span></div>
233 </div> 295 </div>
234 - </li>  
235 -  
236 - <li><div class="time">2016-07-18<span class="yuan"><img src="images/yuan_03.png"/></span></div>  
237 - <div class="hecontent right">  
238 - <div class="triangle-left"></div>  
239 - <div class="recordti">[ 护理报告 ] 老年健康定期巡护</div>  
240 - <div class="redes">超声所见:肝脏形态大小正常</div>  
241 - </div>  
242 - </li>  
243 -  
244 - <li><div class="time">2016-07-18<span class="yuan"><img src="images/yuan_03.png"/></span></div>  
245 - <div class="hecontent right">  
246 - <div class="triangle-left"></div>  
247 - <div class="recordti">[体检报告 ] 三高疾病基因风险评估</div>  
248 - <div class="redes">低风险:普通预防;常规检测</div>  
249 - </div>  
250 - </li>  
251 - </ul> 296 + </label>
  297 + <ul>
  298 + <li>
  299 + <div class="time">2016-07-18<span class="yuan"><img src="images/yuan_03.png"/></span></div>
  300 + <div class="hecontent right">
  301 + <div class="triangle-left"></div>
  302 + <div class="recordti">[ 病历 ]</div>
  303 + <div class="redes">主诉:流涕咽喉疼痛3天</div>
  304 + </div>
  305 + </li>
  306 +
  307 + <li>
  308 + <div class="time">2016-07-18<span class="yuan"><img src="images/yuan_03.png"/></span></div>
  309 + <div class="hecontent right">
  310 + <div class="triangle-left"></div>
  311 + <div class="recordti">[ 护理报告 ] 老年健康定期巡护</div>
  312 + <div class="redes">超声所见:肝脏形态大小正常</div>
  313 + </div>
  314 + </li>
  315 +
  316 + <li>
  317 + <div class="time">2016-07-18<span class="yuan"><img src="images/yuan_03.png"/></span></div>
  318 + <div class="hecontent right">
  319 + <div class="triangle-left"></div>
  320 + <div class="recordti">[体检报告 ] 三高疾病基因风险评估</div>
  321 + <div class="redes">低风险:普通预防;常规检测</div>
  322 + </div>
  323 + </li>
  324 + </ul>
252 </ul> 325 </ul>
253 </div> 326 </div>
254 </div> 327 </div>
255 328
256 -<script src="js/health.js"></script> 329 +<script src="js/health.js"></script>
257 <script type="text/javascript" src="js/common.js"/> 330 <script type="text/javascript" src="js/common.js"/>
258 <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> 331 <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
259 <script type="text/javascript" src="js/jquery.min.js"></script> 332 <script type="text/javascript" src="js/jquery.min.js"></script>
260 <script type="text/javascript"> 333 <script type="text/javascript">
261 $(document).ready(function () { 334 $(document).ready(function () {
262 record() 335 record()
  336 +
263 }) 337 })
  338 + $('.textleft').click(function () {
  339 + if ($('.hego_active').hasClass("rotate")) { //点击箭头旋转180度
  340 +
  341 + $('.hego_active').removeClass("rotate");
  342 +
  343 + $('.hego_active').addClass("rotate1");
  344 +
  345 + } else {
  346 +
  347 + $('.hego_active').removeClass("rotate1"); //再次点击箭头回来
  348 +
  349 + $('.hego_active').addClass("rotate");
  350 +
  351 + }
  352 + })
  353 + //跳页
  354 + $('.qinyou').click(function () {
  355 + window.location.href='qinyou.html';
  356 + })
  357 +
264 function record() { 358 function record() {
265 $.ajax({ 359 $.ajax({
266 - type:"POST",  
267 - url: baseUrl+"user/index/record",  
268 - dataType:"json",  
269 - data:{  
270 - DeviceType:"1",  
271 - token:"1", 360 + type: "POST",
  361 + url: baseUrl + "user/index/record",
  362 + dataType: "json",
  363 + headers: {
  364 + "XX-Device-Type": "1",
  365 + "XX-Token": "1",
272 }, 366 },
273 - success:function (res) { 367 + success: function (res) {
274 console.log(res) 368 console.log(res)
275 var data = res.data 369 var data = res.data
276 - if (data.personal == 1){ 370 + if (data.personal == 1) {
277 $('#info').html('已完善') 371 $('#info').html('已完善')
278 } else { 372 } else {
279 $('#info').html('未完善') 373 $('#info').html('未完善')
280 } 374 }
281 - if (data.history == 1){ 375 + if (data.history == 1) {
282 $('#history').html('已完善') 376 $('#history').html('已完善')
283 } else { 377 } else {
284 $('#history').html('未完善') 378 $('#history').html('未完善')
285 } 379 }
286 - if (data.h_data == 1){ 380 + if (data.h_data == 1) {
287 $('#h_data').html('已完善') 381 $('#h_data').html('已完善')
288 } else { 382 } else {
289 $('#h_data').html('未完善') 383 $('#h_data').html('未完善')
290 } 384 }
291 - $('#life_record').html(data.life_record+'分报告') 385 + $('#life_record').html(data.life_record + '分报告')
292 } 386 }
293 }) 387 })
294 } 388 }
@@ -167,9 +167,9 @@ @@ -167,9 +167,9 @@
167 type:"POST", 167 type:"POST",
168 url: baseUrl + "user/index/question", 168 url: baseUrl + "user/index/question",
169 dataType:"json", 169 dataType:"json",
170 - data:{  
171 - DeviceType:"1",  
172 - token:"1", 170 + headers:{
  171 + "XX-Device-Type":"1",
  172 + "XX-Token":"1",
173 }, 173 },
174 success:function (res) { 174 success:function (res) {
175 var data = res.data; 175 var data = res.data;
@@ -178,7 +178,17 @@ @@ -178,7 +178,17 @@
178 for( key in data ){ 178 for( key in data ){
179 if((key%2)== 1){ 179 if((key%2)== 1){
180 // console.log(key) 180 // console.log(key)
181 - $('.history_wrap').append(`<li class="history_item"> 181 + if (data[key].remark == '已完善'){
  182 + $('.history_wrap').append(`<li class="history_item">
  183 + <a href="family.html">
  184 + <div class="history_pic"><img src="${data[key].img}"/></div>
  185 + <div class="inblock hist history_text_sub">${data[key].name}</div>
  186 + <div class="inblock noperfect">已完善</div>
  187 + <div><img src="images/hislibt_03.jpg" class="hislibt"/></div>
  188 + </a>
  189 + </li>`)
  190 + }else {
  191 + $('.history_wrap').append(`<li class="history_item">
182 <a href="family.html"> 192 <a href="family.html">
183 <div class="history_pic"><img src="${data[key].img}"/></div> 193 <div class="history_pic"><img src="${data[key].img}"/></div>
184 <div class="inblock hist history_text">${data[key].name}</div> 194 <div class="inblock hist history_text">${data[key].name}</div>
@@ -186,10 +196,12 @@ @@ -186,10 +196,12 @@
186 <div><img src="images/hislibt_03.jpg" class="hislibt"/></div> 196 <div><img src="images/hislibt_03.jpg" class="hislibt"/></div>
187 </a> 197 </a>
188 </li>`) 198 </li>`)
  199 + }
  200 +
189 }else { 201 }else {
190 // console.log(key) 202 // console.log(key)
191 -  
192 - $('.history_wrap').append(`<li class="history_item"> 203 + if (data[key].remark == '已完善') {
  204 + $('.history_wrap').append(`<li class="history_item">
193 <a href="family.html"> 205 <a href="family.html">
194 <div class="hist2 left history_text_sub">${data[key].name}</div> 206 <div class="hist2 left history_text_sub">${data[key].name}</div>
195 <div class="left history_pic_sub"><img src="${data[key].img}"/></div> 207 <div class="left history_pic_sub"><img src="${data[key].img}"/></div>
@@ -197,6 +209,16 @@ @@ -197,6 +209,16 @@
197 <div><img src="images/hislibt_06.jpg" class="hislibt"/></div> 209 <div><img src="images/hislibt_06.jpg" class="hislibt"/></div>
198 </a> 210 </a>
199 </li>`) 211 </li>`)
  212 + } else {
  213 + $('.history_wrap').append(`<li class="history_item">
  214 + <a href="family.html">
  215 + <div class="hist2 left history_text">${data[key].name}</div>
  216 + <div class="left history_pic_sub"><img src="${data[key].img}"/></div>
  217 + <div class="noperfect">未完善</div>
  218 + <div><img src="images/hislibt_06.jpg" class="hislibt"/></div>
  219 + </a>
  220 + </li>`)
  221 + }
200 } 222 }
201 } 223 }
202 } 224 }
1 // var baseUrl = 'http://kindapp.w.bronet.cn/api/'; 1 // var baseUrl = 'http://kindapp.w.bronet.cn/api/';
2 -// var baseUrl = 'http://192.168.1.3/api/';  
3 -var baseUrl = 'http://kindapp.w.bronet.cn/api/' 2 +var baseUrl = 'http://192.168.1.3/api/';
  3 +// var baseUrl = 'http://kindapp.w.bronet.cn/api/'
4 4
5 function sendAjax(post, url, params, header, callback) { 5 function sendAjax(post, url, params, header, callback) {
6 $.ajax({ 6 $.ajax({
@@ -54,9 +54,9 @@ @@ -54,9 +54,9 @@
54 type:"POST", 54 type:"POST",
55 url: baseUrl+"user/index/healthData", 55 url: baseUrl+"user/index/healthData",
56 dataType:"json", 56 dataType:"json",
57 - data:{  
58 - DeviceType:"1",  
59 - token:"1", 57 + headers:{
  58 + "XX-Device-Type":"1",
  59 + "XX-Token":"1",
60 }, 60 },
61 success:function (res) { 61 success:function (res) {
62 var data = res.data; 62 var data = res.data;
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 position: relative; 29 position: relative;
30 padding-bottom: 1.1rem; 30 padding-bottom: 1.1rem;
31 } 31 }
  32 +
32 </style> 33 </style>
33 </head> 34 </head>
34 35
@@ -38,7 +39,7 @@ @@ -38,7 +39,7 @@
38 <a href="#"><img src="images/mbrig_03.png"/></a> 39 <a href="#"><img src="images/mbrig_03.png"/></a>
39 </div> 40 </div>
40 <div class="mblogo"> 41 <div class="mblogo">
41 - <p id="mbvip"><img src="images/mbvip_03.png"/></p> 42 + <p id="mbvip"><img src="images/mbvip_03.png" id="vip_icon" style="display: none;"/></p>
42 <p><a href="peridata.html"><img src="images/mblogo_03.png" id="avatar"/></a></p> 43 <p><a href="peridata.html"><img src="images/mblogo_03.png" id="avatar"/></a></p>
43 <p id="person_name"></p> 44 <p id="person_name"></p>
44 </div> 45 </div>
@@ -46,14 +47,14 @@ @@ -46,14 +47,14 @@
46 47
47 <div class="mbpart1"> 48 <div class="mbpart1">
48 <div class="mbw"> 49 <div class="mbw">
49 - <a href="accout.html">  
50 - <p class="mbmoney">0.00元</p> 50 + <a href="account.html">
  51 + <p class="mbmoney" id="money">0.00元</p>
51 <p>账户余额</p> 52 <p>账户余额</p>
52 </a> 53 </a>
53 </div> 54 </div>
54 <div class="mbw"> 55 <div class="mbw">
55 <a href="consumption.html"> 56 <a href="consumption.html">
56 - <p class="mbmoney">0张</p> 57 + <p class="mbmoney" id="ticket">0张</p>
57 <p>消费金额</p> 58 <p>消费金额</p>
58 </a> 59 </a>
59 </div> 60 </div>
@@ -120,21 +121,22 @@ @@ -120,21 +121,22 @@
120 $(document).ready(function () { 121 $(document).ready(function () {
121 $.ajax({ 122 $.ajax({
122 type:"POST", 123 type:"POST",
123 - url: baseUrl+"user/index/getUserinfo", 124 + url: baseUrl+"user/index/getUserIndexInfo",
124 dataType:"json", 125 dataType:"json",
125 - data:{  
126 - DeviceType:"1",  
127 - token:"1",  
128 - rid:"0" 126 + headers:{
  127 + "XX-Device-Type":"1",
  128 + "XX-Token":"1",
129 }, 129 },
130 success:function (res) { 130 success:function (res) {
131 var data = res.data 131 var data = res.data
132 - $('#person_name').html('')  
133 - $('#person_name').html(`${data.name}`)  
134 - if (data.avatar == ''||data.avatar == undefined||data.avatar == null){  
135 - $('#avatar').attr('src','images/mblogo_03.png')  
136 - } else{  
137 - $('#avatar').attr('src',data.avatar) 132 + console.log(data)
  133 + $('#avatar').attr('src',data.avatar)
  134 + $('#money').html(data.balance+'元')
  135 + $('#ticket').html(data.count+'张')
  136 + if (data.is_vip==1){
  137 + $('#vip_icon').show()
  138 + }else{
  139 + $('#vip_icon').hide()
138 } 140 }
139 } 141 }
140 }) 142 })
@@ -106,8 +106,8 @@ @@ -106,8 +106,8 @@
106 order_id:id 106 order_id:id
107 }; 107 };
108 var header={ 108 var header={
109 - DeviceType:1,  
110 - Token:1 109 + "XX-Device-Type":1,
  110 + "XX-Token":1
111 }; 111 };
112 sendAjax('post', 'user/Order/getOrderInfo', post, header, function (res) { 112 sendAjax('post', 'user/Order/getOrderInfo', post, header, function (res) {
113 console.log(res); 113 console.log(res);
@@ -158,12 +158,9 @@ @@ -158,12 +158,9 @@
158 </div> 158 </div>
159 <div> 159 <div>
160 <button type="button" class="perbut" />保存</div> 160 <button type="button" class="perbut" />保存</div>
161 -  
162 <div class="mPicker hide"> 161 <div class="mPicker hide">
163 <div class="mPicker-mask hide"></div> 162 <div class="mPicker-mask hide"></div>
164 </div> 163 </div>
165 -  
166 -  
167 <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> 164 <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
168 <script type="text/javascript" src="js/common.js"/> 165 <script type="text/javascript" src="js/common.js"/>
169 <script type="text/javascript" src="js/weui.js"/> 166 <script type="text/javascript" src="js/weui.js"/>
@@ -188,9 +185,11 @@ @@ -188,9 +185,11 @@
188 type:"POST", 185 type:"POST",
189 url: baseUrl+"user/index/getUserinfo", 186 url: baseUrl+"user/index/getUserinfo",
190 dataType:"json", 187 dataType:"json",
  188 + headers:{
  189 + "XX-Device-Type":"1",
  190 + "XX-Token":"1",
  191 + },
191 data:{ 192 data:{
192 - DeviceType:"1",  
193 - token:"1",  
194 rid:"0" 193 rid:"0"
195 }, 194 },
196 success:function (res) { 195 success:function (res) {
@@ -245,53 +244,68 @@ @@ -245,53 +244,68 @@
245 // 244 //
246 // formData.append('file',file ); //添加图片信息的参数 245 // formData.append('file',file ); //添加图片信息的参数
247 // formData.append('fileType','image' ); //添加图片信息的参数 246 // formData.append('fileType','image' ); //添加图片信息的参数
248 - $.ajax({  
249 - url: baseUrl+'user/index/upAvatar',  
250 - type: 'POST',  
251 - cache: false, //上传文件不需要缓存  
252 - data:formData,  
253 - headers:{  
254 - DeviceType:"1",  
255 - token:"1",  
256 - },  
257 - dataType: 'json',  
258 - processData: false, // 告诉jQuery不要去处理发送的数据  
259 - contentType: false, // 告诉jQuery不要去设置Content-Type请求头  
260 - success: function(data) {  
261 - alert('上传成功')  
262 - },  
263 - error: function(data) {  
264 - // alert("上传失败"); 247 + //图片上传
  248 +
  249 + var imgurl = document.getElementById("input_file").value;
  250 +
  251 + $.ajax({
  252 + type:"POST",
  253 + url: baseUrl+'user/index/upAvatar',
  254 + dataType: 'json', //返回值类型 一般设置为json
  255 + headers:{
  256 + "XX-Device-Type":"1",
  257 + "XX-Token":"1",
  258 + },
  259 + success: function(data) {
  260 + alert(data.code + " " + data.msg);
  261 + if(data.code == 200) {
  262 + $("#headPic").attr("src", "/market/images/image.png");
  263 + //将图片换成默认的+图片
  264 + }
  265 + }
  266 +
  267 + });
  268 +
  269 + //建立一個可存取到該file的url
  270 + function getObjectURL(file) {
  271 + var url = null;
  272 + if(window.createObjectURL != undefined) { // basic
  273 + url = window.createObjectURL(file);
  274 + } else if(window.URL != undefined) { // mozilla(firefox)
  275 + url = window.URL.createObjectURL(file);
  276 + } else if(window.webkitURL != undefined) { // webkit or chrome
  277 + url = window.webkitURL.createObjectURL(file);
265 } 278 }
266 - }) 279 + return url;
  280 + }
267 }; 281 };
268 reader.readAsDataURL(file); 282 reader.readAsDataURL(file);
269 } 283 }
270 - function up_pic(img) {  
271 - // var formData = new FormData();  
272 - // var file=$('#input_file').files[0];  
273 - formData.append('file',file ); //添加图片信息的参数  
274 - formData.append('sizeid', 123); //添加其他参数  
275 - $.ajax({  
276 - url: baseUrl+'user/index/upAvatar',  
277 - type: 'POST',  
278 - cache: false, //上传文件不需要缓存  
279 - data:formData,  
280 - headers:{  
281 - DeviceType:"1",  
282 - token:"1",  
283 - },  
284 - dataType: 'json',  
285 - processData: false, // 告诉jQuery不要去处理发送的数据  
286 - contentType: false, // 告诉jQuery不要去设置Content-Type请求头  
287 - success: function(data) {  
288 - alert('上传成功')  
289 - },  
290 - error: function(data) {  
291 - // alert("上传失败");  
292 - }  
293 - })  
294 - } 284 + // function up_pic(img) {
  285 + // // var formData = new FormData();
  286 + // // var file=$('#input_file').files[0];
  287 + // formData.append('file',file ); //添加图片信息的参数
  288 + // formData.append('sizeid', 123); //添加其他参数
  289 + // $.ajax({
  290 + // url: baseUrl+'user/index/upAvatar',
  291 + // type: 'POST',
  292 + // cache: false, //上传文件不需要缓存
  293 + // data:formData,
  294 + // headers:{
  295 + // "XX-Device-Type":"1",
  296 + // "XX-Token":"1",
  297 + // },
  298 + // dataType: 'json',
  299 + // processData: false, // 告诉jQuery不要去处理发送的数据
  300 + // contentType: false, // 告诉jQuery不要去设置Content-Type请求头
  301 + // success: function(data) {
  302 + // alert('上传成功')
  303 + // },
  304 + // error: function(data) {
  305 + // // alert("上传失败");
  306 + // }
  307 + // })
  308 + // }
295 var level13; 309 var level13;
296 var level14; 310 var level14;
297 //获取文化程度接口 311 //获取文化程度接口
@@ -301,8 +315,8 @@ @@ -301,8 +315,8 @@
301 url: baseUrl+'user/index/getCulture', 315 url: baseUrl+'user/index/getCulture',
302 dataType:"json", 316 dataType:"json",
303 data:{ 317 data:{
304 - DeviceType:"1",  
305 - token:"1", 318 + "XX-Device-Type":"1",
  319 + "XX-Token":"1",
306 }, 320 },
307 success:function (res) { 321 success:function (res) {
308 level13 = [] 322 level13 = []
@@ -342,8 +356,8 @@ @@ -342,8 +356,8 @@
342 url: baseUrl+'user/index/getMedical', 356 url: baseUrl+'user/index/getMedical',
343 dataType:"json", 357 dataType:"json",
344 data:{ 358 data:{
345 - DeviceType:"1",  
346 - token:"1", 359 + "XX-Device-Type":"1",
  360 + "XX-Token":"1",
347 }, 361 },
348 success:function (res) { 362 success:function (res) {
349 level14 = [] 363 level14 = []
@@ -125,9 +125,9 @@ @@ -125,9 +125,9 @@
125 type:"POST", 125 type:"POST",
126 url: baseUrl+"user/index/getQA", 126 url: baseUrl+"user/index/getQA",
127 dataType:"json", 127 dataType:"json",
128 - data:{  
129 - DeviceType:"1",  
130 - token:"1", 128 + headers:{
  129 + "XX-Device-Type":"1",
  130 + "XX-Token":"1",
131 }, 131 },
132 success:function (res) { 132 success:function (res) {
133 $('.question_wrap').html(``) 133 $('.question_wrap').html(``)
@@ -119,15 +119,14 @@ @@ -119,15 +119,14 @@
119 code='https://f11.baidu.com/it/u=1562411134,1079853278&fm=173&app=25&f=JPEG?w=640&h=564&s=5A12758DCA255E8EBA8889500300D0B1&access=215967316'; 119 code='https://f11.baidu.com/it/u=1562411134,1079853278&fm=173&app=25&f=JPEG?w=640&h=564&s=5A12758DCA255E8EBA8889500300D0B1&access=215967316';
120 $.ajax({ 120 $.ajax({
121 type:"POST", 121 type:"POST",
122 - url: "http://kindapp.w.bronet.cn/api/user/index/addReport", 122 + url: baseUrl+"user/index/addReport",
123 dataType:"json", 123 dataType:"json",
124 - header:{  
125 - DeviceType:1,  
126 - Token:1,  
127 - // "Content-Type":"text/plain;charset=UTF-8"  
128 - //'Content-Type': 'application/x-www-form-urlencoded' 124 + headers:{
  125 + "XX-Device-Type":1,
  126 + "XX-Token":1,
129 }, 127 },
130 data:{ 128 data:{
  129 + rid:0,
131 checktime:checktime, 130 checktime:checktime,
132 name:name, 131 name:name,
133 org:org, 132 org:org,
@@ -171,8 +171,6 @@ @@ -171,8 +171,6 @@
171 loading.hide(); 171 loading.hide();
172 }, 1500); 172 }, 1500);
173 } 173 }
174 -  
175 -  
176 } 174 }
177 }) 175 })
178 176
@@ -150,9 +150,9 @@ @@ -150,9 +150,9 @@
150 type:"POST", 150 type:"POST",
151 url: baseUrl+"user/index/myRightsCheck", 151 url: baseUrl+"user/index/myRightsCheck",
152 dataType:"json", 152 dataType:"json",
153 - data:{  
154 - DeviceType:"1",  
155 - token:"1", 153 + headers:{
  154 + "XX-Device-Type":"1",
  155 + "XX-Token":"1",
156 }, 156 },
157 success:function (res) { 157 success:function (res) {
158 if (res.data.able == 0){ 158 if (res.data.able == 0){
@@ -172,9 +172,9 @@ @@ -172,9 +172,9 @@
172 type:"POST", 172 type:"POST",
173 url: baseUrl+"user/index/myRightsCheck", 173 url: baseUrl+"user/index/myRightsCheck",
174 dataType:"json", 174 dataType:"json",
175 - data:{  
176 - DeviceType:"1",  
177 - token:"1", 175 + headers:{
  176 + "XX-Device-Type":"1",
  177 + "XX-Token":"1",
178 }, 178 },
179 success:function (res) { 179 success:function (res) {
180 $('.popup').show('.popup'); 180 $('.popup').show('.popup');
@@ -207,9 +207,9 @@ @@ -207,9 +207,9 @@
207 type:"POST", 207 type:"POST",
208 url: baseUrl+"user/index/myRights", 208 url: baseUrl+"user/index/myRights",
209 dataType:"json", 209 dataType:"json",
210 - data:{  
211 - DeviceType:"1",  
212 - token:"1", 210 + headers:{
  211 + "XX-Device-Type":"1",
  212 + "XX-Token":"1",
213 }, 213 },
214 success:function (res) { 214 success:function (res) {
215 $('.vipcon').html(``) 215 $('.vipcon').html(``)
1 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
2 -<html xmlns="http://www.w3.org/1999/xhtml">  
3 -  
4 -<head>  
5 - <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">  
6 - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
7 - <link rel="stylesheet" type="text/css" href="css/base.css" />  
8 - <link rel="stylesheet" type="text/css" href="css/style.css" />  
9 - <link rel="stylesheet" href="css/swiper.min.css">  
10 - <script type="text/javascript" src="js/base.js"/>  
11 - <script src="js/base.js" type="text/javascript" charset="utf-8"></script>  
12 - <title>健康档案</title>  
13 - <style>  
14 - .agheader {  
15 - background: rgba(255, 255, 255, .8);  
16 - }  
17 -  
18 - .body {  
19 - background: none;  
20 - position: fixed;  
21 - top: 0;  
22 - width: 100%;  
23 - height: 100%;  
24 - background-image: url(images/health2_02.jpg);  
25 - background-size: 100% 100%;  
26 - }  
27 -  
28 - .he2part{  
29 - background-image: none;  
30 - height:100%;  
31 - }  
32 - .he2part .swiper-container{  
33 - margin-top: 2rem;  
34 - }  
35 - .he2kuang,.he3kuang,.he4kuang{  
36 - /* width:4.77rem; */  
37 - height:6.04rem;  
38 - background-size: 100% 100%;  
39 - margin-top: 0;  
40 - }  
41 - .dangtit{  
42 - margin-top: 1.5rem;  
43 - }  
44 - .dangdesc{  
45 - margin-bottom: 1.2rem;  
46 - }  
47 - .dangreport{  
48 - margin-bottom: 0.3rem;  
49 - }  
50 - .swiper-slide {  
51 - width: 3.5rem !important;  
52 - border-radius: 10px;  
53 - margin-right: 1rem;  
54 - }  
55 -  
56 -  
57 - </style>  
58 -</head>  
59 -  
60 -<body>  
61 - <div class="body">  
62 - <div class="agheader center">  
63 - <div class="left seback">  
64 - <a href="#" onClick="javascript:history.back(-1);">  
65 - <img src="images/care_03.jpg" />  
66 - </a>  
67 - </div>  
68 - <div class="headertext">健康档案</div>  
69 - </div>  
70 -  
71 -  
72 -  
73 - <div class="he2part center">  
74 - <div class="swiper-container">  
75 - <div class="swiper-wrapper" id="familyRecord">  
76 -  
77 -  
78 - </div>  
79 - </div>  
80 -  
81 - <div style="color:#424242;margin-top:1.5rem;">  
82 - << 左右滑动浏览>></div>  
83 -  
84 - </div>  
85 -  
86 - </div>  
87 -  
88 -</body>  
89 -<!-- Swiper JS -->  
90 -<script src="js/swiper.min.js"></script>  
91 -<script type="text/javascript" src="js/common.js"/>  
92 -<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>  
93 -<script type="text/javascript" src="js/jquery.min.js"></script>  
94 -<!-- Initialize Swiper -->  
95 -<script>  
96 - window.onload = function () {  
97 - var swiper = new Swiper('.swiper-container', {  
98 - slidesPerView: 3,  
99 - spaceBetween: 30,  
100 - centeredSlides: true,  
101 - pagination: {  
102 - el: '.swiper-pagination',  
103 - clickable: true,  
104 - },  
105 - });  
106 -  
107 - familyRecord()  
108 - }  
109 - function familyRecord() {  
110 - $.ajax({  
111 - type:"POST",  
112 - url: baseUrl+"user/index/familyRecord",  
113 - dataType:"json",  
114 - data:{  
115 - DeviceType:"1",  
116 - token:"1",  
117 - },  
118 - success:function (res) {  
119 - $('#familyRecord').html(``)  
120 - var data = res.data;  
121 - var info = data.info  
122 - console.log(info[0].time)  
123 - for ( key in info) {  
124 - var img = key%3 == '0'?'images/hebg2_03.png':key%3 == '1'?'images/he2_03.png':key%3 == '2'?'images/hebg2_04.png':""  
125 - console.log(img)  
126 - $('#familyRecord').append(`<div class="swiper-slide" id="" data-id = ${parseInt(key)+1}>  
127 - <div class="he2kuang" style="background-image:url(${img})">  
128 - <div class="dangall">  
129 - <span>${parseInt(key)+1}</span>/${info.length}</div>  
130 - <div class="dangtit">${info[key].name}的健康档案</div>  
131 - <div class="dangdesc">最后更新时间:${info[key].time}</div>  
132 - <div class="dangreport">  
133 - <a href="#">  
134 - <img src="images/he2a_03.jpg" />服务报告(${info[key].service}份)</a>  
135 - </div>  
136 - <div class="dangreport">  
137 - <a href="#">  
138 - <img src="images/he2a_06.jpg" />检验报告(${info[key].checkout}份)</a>  
139 - </div>  
140 - </div>  
141 - </div>`)  
142 - }  
143 - // if ($('#swiper_item').attr('data-id')==1){  
144 - // $('#swiper_item').css('background-image',"url(../images/hebg2_03.png)")  
145 - // } else if ($('#swiper_item').attr('data-id')==2){  
146 - // $('#swiper_item').css('background-image',"url(../images/he2_03.png)")  
147 - // }else if ($('#swiper_item').attr('data-id')==3){  
148 - // $(this).css('background-image',"url(../images/hebg2_04.png)")  
149 - // }  
150 - }  
151 - })  
152 - }  
153 -</script>  
154 -  
155 -</html>