Commit 854c30a0 by 颜景龙

礼品展示页面

parent 09afab31
...@@ -65,6 +65,19 @@ ...@@ -65,6 +65,19 @@
if (r != null) return unescape(r[2]); return null; //返回参数值 if (r != null) return unescape(r[2]); return null; //返回参数值
} }
var id = getUrlParam('id');
var type =getUrlParam('type');
// type="1:证书 2:相册 3:学员案例"
if (type == 1) {
document.title = "教练证书";
} else if (type == 2) {
document.title = "教练相册";
} else if (type == 3) {
document.title = "学员案例";
}
$(document).ready(function() { $(document).ready(function() {
$(window).ready(function(){ $(window).ready(function(){
...@@ -74,10 +87,7 @@ ...@@ -74,10 +87,7 @@
$('html').css({'font-size':$(window).width()/375*16}); $('html').css({'font-size':$(window).width()/375*16});
}); });
var id = getUrlParam('id'); if (id && type) {
var type =getUrlParam('type');
if (id) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: HTTP_URL+"/wedofit/fitnessTrainer/getImgageHTM5", url: HTTP_URL+"/wedofit/fitnessTrainer/getImgageHTM5",
......
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
<script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script> <script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script>
<script src="../js/zepto-mvalidate.js"></script> <script src="../js/zepto-mvalidate.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var HTTP_URL = 'http://192.168.31.217:8080/wedo'; var HTTP_URL = 'http://192.168.31.182:8080/wedo-fit';
function getUrlParam(name) { function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=">
<meta http-equiv="x-dns-prefetch-control" content="on">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=.0, maximum-scale=.0, user-scalable=no">
<meta name="format-detection" content="telephone = no"/>
<link rel="stylesheet" type="text/css" href="../css/validate.css">
<link rel="stylesheet" type="text/css" href="../css/form.css">
<title>礼品首页</title>
<style>
html {
font-size: 16px;
}
html,
body {
margin: 0;
padding: 0;
background: rgba(243,243,243,1);
font-family: -apple-system-font, "Helvetica Neue", sans-serif;
/* width: 23.4375rem; */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*::before,
*::after {
box-sizing: border-box;
content: '';
}
.img {
display: block;
width: 100%;
}
</style>
</head>
<body>
<img class="img" src="./giftindex.jpg">
</body>
</html>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此消息的编辑!
注册登录 后发表评论