审查视图

orderdetails.html 5.0 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
<!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="css/base.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<script src="js/jquery-1.2.6.min.js" type="text/javascript" ></script>
	<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/t.js"></script>
	<script type="text/javascript">
		var maxtime = 30 * 60; //一个小时,按秒计算,自己调整!   
		function CountDown() {
			if (maxtime >= 0) {
				minutes = Math.floor(maxtime / 60);
				seconds = Math.floor(maxtime % 60);
				msg = "支付剩余时间&nbsp;" + minutes + ":" + seconds + "";
				document.all["timer"].innerHTML = msg;
				if (maxtime == 5 * 60) alert("还剩5分钟");
				--maxtime;
			} else {
				clearInterval(timer);
				alert("时间到,结束!");
			}
		}
		timer = setInterval("CountDown()", 1000);                
	</script>
	<title>预约详情</title>
	<style>
		.appoinpart6{
			width: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="appoinpart1 center">
		<div id="timer" class="paytime"></div>
		<div id="warring"></div>
	</div>
	<div class="centent">
		<!--<div class="appoinpart2 center">-->
			<!--<div class="apointit">-->
				<!--<img src="images/hol_03.jpg" />静脉采血 1 次-->
				<!--<span class="right">待付款</span>-->
			<!--</div>-->
			<!--<div class="apoincon">-->
				<!--<p>-->
					<!--<img src="images/appoinli_03.jpg" />服务对象-->
					<!--<span>李凯</span>-->
				<!--</p>-->
				<!--<p>-->
					<!--<img src="images/appoinli_13.jpg" />联系电话-->
					<!--<span>18110605623</span>-->
				<!--</p>-->

			<!--</div>-->
		<!--</div>-->
		<!--<div class="appoinpart5 center">-->
			<!--<div class="appoinli5">下单日期-->
				<!--<span class="right">2018-02-19 17:11</span>-->
			<!--</div>-->
			<!--<div class="appoinlik5">-->
				<!--<a href="#">-->
					<!--<img class="left" src="images/part4_li_12.jpg" />-->
				<!--</a>-->
				<!--<div class="corigt left">-->
					<!--<a href="#">-->
						<!--<span>女士高发肿瘤风险评估E(2项)</span>-->
						<!--<p>评估卵巢癌、子宫内膜癌风险</p>-->
					<!--</a>-->
					<!--<p class="minute">-->
					<!--<span>-->
						<!--<img src="images/min_09.jpg" />可测1人</span>-->
						<!--<span>-->
						<!--<img src="images/min_11.jpg" />10-15个工作日</span>-->
					<!--</p>-->
					<!--<p class="price">¥8686</p>-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="appoinlif5">总服务费-->
				<!--<span class="right">194元</span>-->
			<!--</div>-->
		<!--</div>-->
		<!--<div class="apoinnum">订单号:010201800078</div>-->
	</div>
	<div class="appoinpart6">
		<button type="button" class="apoinbut">去支付</button>
		<button type="button" class="apoinbut">取消支付</button>
	</div>
	<script src="js/common.js"></script>
	<script type="text/javascript">
        var id =getUrlParam('id');
        var html='';
        var minihtml='';
        // 我的订单接口
        var post={
            order_id:id
		};
        var header={
            DeviceType:1,
            Token:1
        };
        sendAjax('post', 'user/Order/getOrderInfo', post, header, function (res) {
         console.log(res);
         if(res.code == 1){
html +=`<div class="appoinpart2 center">
		<div class="apointit">
			<img src="images/hol_03.jpg" />${res.data.other_title} ${res.data.num} 
			<span class="right">待付款</span>
		</div>
		<div class="apoincon">
			<p>
				<img src="images/appoinli_03.jpg" />服务对象
				<span>${res.data.name}</span>
			</p>
			<p>
				<img src="images/appoinli_13.jpg" />联系电话
				<span>${res.data.mobile}</span>
			</p>

		</div>
	</div>
<div class="appoinpart5 center">
		<div class="appoinli5">下单日期
			<span class="right">${res.data.addtime}</span>
		</div>
		<div class="appoinlik5">
			<a href="#">
				<img class="left" src="${res.data.icon}">
			</a>
			<div class="corigt left">
				<a href="#">
					<span>${res.data.post_title}</span>
					<p>${res.data.other_title}</p>
				</a>
				<p class="minute">

				</p>
				<p class="price">¥${res.data.good_price}</p>
			</div>
		</div>
		<div class="appoinlif5">总服务费
			<span class="right">${res.data.price}</span>
		</div>
	</div>
<div class="apoinnum">订单号:${res.data.order_sn}</div>`
$('.centent').append(html);

	for(let i in res.data.tag){
        minihtml +=`<span>
						<img src="${res.data.tag[i].url}">${res.data.tag[i].text}</span>`
	}
	alert(minihtml);
	$('.minute').append(minihtml);

		 }else{
             console.log(res.msg)

		 }

        })

	</script>
</body>